You are not logged in. Please login at www.codechef.com to post your questions!

×

long challenge jan. please check i/o( input -output )ambiguity(if any) in Sereja and Circles

here is the link of problem
https://www.codechef.com/JAN17/problems/SEACIR

..Sereja and Circles
it is given in question as
First line will contain three space separated integers N, S, skip. Next line contains 2*N numbers written on the sheet of paper.
Input + Output:
5 10 2
1 1 1 1 1 2 2 2 2 2

1
<9 1
1
<1 9
2
<-1 -1
2
<-1 -1
2
<2 2

can one please tell we have to take '<' and '>' in input and output and is there space between > and input , and < and output.
also if 2*n size (which is said to be written on sheet of paper) required to taken as input
due to input output ambiguity we are getin WA.

asked 11 Jan, 21:16

vijayiota77's gravatar image

4★vijayiota77
853
accept rate: 0%

edited 12 Jan, 13:28


Hi @vijayiota the input+ outputs are

5 10 2
1 1 1 1 1 2 2 2 2 2
>1
<9 1
>1
<1 9
>2
<-1 -1
>2
<-1 -1
>2
<2 2

First line will contain three space separated integers N, S, skip. Next line contains 2*N numbers written on the sheet of paper.

after two lines of input, you will give an input of one number and get one output. Like explained in the sample test case. In theird line input is '1' and output is "9 1".

The symbols ">" represents input and "<" shows output. They are just notations. You don't need to write those symbols in input and your output is not expected with thse symbols.

Hope this helped you.

link

answered 11 Jan, 22:13

only4's gravatar image

3★only4
71019
accept rate: 16%

edited 12 Jan, 13:45

@vijayiota There is NO '<' or '>' in input/output. The signs '>' and '<' are shown in the sample test case just to denote which is input and which is output. If you have a query about a problem in a contest you should comment below the problem in the space provided (and not here), and the problem setter will usually respond with the answer.

link

answered 11 Jan, 23:26

meooow's gravatar image

6★meooow
1.6k15
accept rate: 41%

edited 11 Jan, 23:27

2

@meooow , Sorry for the misunderstanding. I've corrected the answer.

(11 Jan, 23:52) only43★

@meooow thanks and 2*n size (which is (said in question )to be written on sheet of paper) required to taken as input? or not

(11 Jan, 23:59) vijayiota774★

i write here becoz , i got not answer at problem statement comments
please explain the input / output clearly and also why its WA even if all constrains of o/p are satisfied
only some have made submisiions to this problem
i request please explain input and output of sastrong textmple test case of problem clearly @admin

link

answered 12 Jan, 13:25

vijayiota77's gravatar image

4★vijayiota77
853
accept rate: 0%

edited 12 Jan, 15:55

i still can not figure out why it is showing WA even if all conditions of centre x,y are meet
but correct answer with 0 score , should be shown at worst case when output format is as required. can any one please tell


link

answered 13 Jan, 22:40

vijayiota77's gravatar image

4★vijayiota77
853
accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Tags:

×123

Asked: 11 Jan, 21:16

Seen: 1,078 times

Last updated: 13 Jan, 22:40