ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1008. Image Encoding

Test 2 is incorrect!
Posted by P_Nyagolov 12 May 2015 16:26
The following code:

cin>>n;
for(i=1;i<=n;i++) {
  cin>>x[i]>>y[i];
  assert(x[i]>=1 && x[i]<=10 && y[i]>=1 && y[i]<=10);
  here[x[i]][y[i]]=true;
}

gives RTE, so test 2 is wrong. After, removing the assert, it gives WA :)
Re: Test 2 is incorrect!
Posted by Oxxxymiron 25 May 2015 17:45
Input
One representation of the image will be given to your program in the input.
Output
Your program has to write other representation of the image to the output.
P_Nyagolov wrote 12 May 2015 16:26
The following code:

cin>>n;
for(i=1;i<=n;i++) {
  cin>>x[i]>>y[i];
  assert(x[i]>=1 && x[i]<=10 && y[i]>=1 && y[i]<=10);
  here[x[i]][y[i]]=true;
}

gives RTE, so test 2 is wrong. After, removing the assert, it gives WA :)
Re: Test 2 is incorrect!
Posted by Khujamurod97 24 Oct 2017 12:37
TEST 2 like this :
Input:
2 3
RT,
RT,
,
B,
,
.
Output:
6
2 3
2 4
3 3
3 4
4 2
4 3