# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
7486 |
2014-08-09T10:26:15 Z |
gs13068 |
행성 탐사 (GA8_planet) |
C++ |
|
0 ms |
1756 KB |
#include "planet.h"
#define BUCKET 67
void ainta()
{
int i,j;
for(i=0;i<BUCKET;i++)paint((2222-i)%2222,0);
for(j=1;j<BUCKET;j++)paint(0,(2222-j)%2222);
}
void sangsoo()
{
int x,y,z=0;
int i,j,k;
for(k=0;!count_row(k*(k+1)/2%2222);k++)z++;
i=k*(k+1)/2%2222+2222;
j=i+k;
while(i<j)
{
k=(i+j+1)/2;
if(count_row(k%2222))i=k;
else j=k-1;
z++;
}
x=j;
while(z++<BUCKET)count_col(0);
for(k=0;!count_col(k*(k+1)/2%2222);k++);
i=k*(k+1)/2%2222+2222;
j=i+k;
while(i<j)
{
k=(i+j+1)/2;
if(count_col(k%2222))i=k;
else j=k-1;
}
y=j;
report(x%2222,y%2222);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1756 KB |
Output isn't correct - 답이 틀려서 프로그램을 종료합니다. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |