답안 #7192

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7192 2014-07-27T14:27:13 Z gs13068 행성 탐사 (GA8_planet) C++
75.8 / 100
1172 ms 1756 KB
#include "planet.h"

#define BUCKET 168

void ainta()
{
  int i,j;
  for(i=0;i<BUCKET;i++)paint((2222-i)%2222,(2222-i)%2222);
}

void sangsoo()
{
  int x,y,z=0;
  int i,j,k;
  for(x=0;++z&&!count_row(x%2222);x+=z);
  i=x+z-1;
  while(x<i)
  {
    k=(x+i+1)/2;
    if(++z&&count_row(k%2222))x=k;
    else i=k-1;
  }
  for(y=0;++z&&!count_col(y%2222);y+=z);
  j=y+z-1;
  while(y<j)
  {
    k=(y+j+1)/2;
    if(count_col(k%2222))y=k;
    else j=k-1;
  }
  report(x%2222,y%2222);
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 92 ms 1756 KB Output is partially correct : max_calls = 168
2 Partially correct 100 ms 1756 KB Output is partially correct : max_calls = 168
3 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
4 Partially correct 100 ms 1756 KB Output is partially correct : max_calls = 168
5 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
6 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
7 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
8 Partially correct 96 ms 1756 KB Output is partially correct : max_calls = 168
9 Partially correct 96 ms 1756 KB Output is partially correct : max_calls = 168
10 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
11 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
12 Partially correct 104 ms 1756 KB Output is partially correct : max_calls = 168
13 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
14 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
15 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
16 Partially correct 116 ms 1756 KB Output is partially correct : max_calls = 168
17 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
18 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
19 Partially correct 108 ms 1756 KB Output is partially correct : max_calls = 168
20 Partially correct 196 ms 1756 KB Output is partially correct : max_calls = 168
# 결과 실행 시간 메모리 Grader output
1 Partially correct 1028 ms 1756 KB Output is partially correct : max_calls = 168
2 Partially correct 1024 ms 1756 KB Output is partially correct : max_calls = 168
3 Partially correct 1024 ms 1756 KB Output is partially correct : max_calls = 168
4 Partially correct 1032 ms 1756 KB Output is partially correct : max_calls = 168
5 Partially correct 1032 ms 1756 KB Output is partially correct : max_calls = 168
6 Partially correct 1072 ms 1756 KB Output is partially correct : max_calls = 168
7 Partially correct 1072 ms 1756 KB Output is partially correct : max_calls = 168
8 Partially correct 1144 ms 1756 KB Output is partially correct : max_calls = 168
9 Partially correct 1092 ms 1756 KB Output is partially correct : max_calls = 168
10 Partially correct 1064 ms 1756 KB Output is partially correct : max_calls = 168
11 Partially correct 300 ms 1756 KB Output is partially correct : max_calls = 168
12 Partially correct 1072 ms 1756 KB Output is partially correct : max_calls = 168
13 Partially correct 1088 ms 1756 KB Output is partially correct : max_calls = 168
14 Partially correct 1084 ms 1756 KB Output is partially correct : max_calls = 168
15 Partially correct 1080 ms 1756 KB Output is partially correct : max_calls = 168
16 Partially correct 1088 ms 1756 KB Output is partially correct : max_calls = 168
17 Partially correct 1096 ms 1756 KB Output is partially correct : max_calls = 168
18 Partially correct 1100 ms 1756 KB Output is partially correct : max_calls = 168
19 Partially correct 1108 ms 1756 KB Output is partially correct : max_calls = 168
20 Partially correct 1112 ms 1756 KB Output is partially correct : max_calls = 168
21 Partially correct 1132 ms 1756 KB Output is partially correct : max_calls = 168
22 Partially correct 1172 ms 1756 KB Output is partially correct : max_calls = 168
23 Partially correct 1108 ms 1756 KB Output is partially correct : max_calls = 168