#include "planet.h"
void ainta()
{
int i,j;
paint(0,0);
for(i=1;i<98;i++)paint(2222-i,2222-i);
for(j=0;j<3;j++)paint(2221-j,0);
for(i=1;i<2;i++)for(j=i;j<3;j++)paint(2221-j,2222-i);
}
void sangsoo()
{
int x=0,y=0,z=0;
int i=-1,j=-1,k,t=0;
while(1)
{
if(x+z>=2221)
{
i=x+z;
break;
}
z++;
if(count_row(x))
{
i=x+z-1;
break;
}
x+=z;
}
if(i>2221)i=2221;
while(x<i)
{
k=(x+i+1)/2;
z++;
if(count_row(k))x=k;
else i=k-1;
}
if(j<0)
{
while(1)
{
if(y+z>=2221)
{
j=y+z;
break;
}
z++;
if(t=count_col(y))
{
j=y+z-1;
break;
}
y+=z;
}
}
if(t<=1)
{
if(j>2221)j=2221;
while(y<j)
{
k=(y+j+1)/2;
z++;
if(t=count_col(k))
{
y=k;
if(t>1)break;
}
else j=k-1;
}
}
if(t==2&&z>=102)y++;
if(t==3&&z>=103)y++;
if(t==2&&z>=104)y++;
report(x,y);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
2 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
3 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
4 |
Partially correct |
52 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
5 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
6 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
7 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
8 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
9 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
10 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
11 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
12 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
13 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
14 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
15 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
16 |
Partially correct |
60 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
17 |
Partially correct |
56 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
18 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
19 |
Partially correct |
64 ms |
1756 KB |
Output is partially correct : max_calls = 103 |
20 |
Partially correct |
152 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
572 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
2 |
Partially correct |
568 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
3 |
Partially correct |
564 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
4 |
Partially correct |
572 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
5 |
Partially correct |
576 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
6 |
Partially correct |
584 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
7 |
Partially correct |
592 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
8 |
Partially correct |
596 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
9 |
Partially correct |
600 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
10 |
Partially correct |
604 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
11 |
Partially correct |
192 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
12 |
Partially correct |
612 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
13 |
Partially correct |
608 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
14 |
Partially correct |
612 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
15 |
Partially correct |
608 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
16 |
Partially correct |
628 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
17 |
Partially correct |
624 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
18 |
Partially correct |
640 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
19 |
Partially correct |
632 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
20 |
Partially correct |
660 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
21 |
Partially correct |
648 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
22 |
Partially correct |
660 ms |
1756 KB |
Output is partially correct : max_calls = 104 |
23 |
Partially correct |
644 ms |
1756 KB |
Output is partially correct : max_calls = 104 |