Submission #7202

# Submission time Handle Problem Language Result Execution time Memory
7202 2014-07-28T05:10:49 Z gs13068 행성 탐사 (GA8_planet) C++
98 / 100
700 ms 1756 KB
#include "planet.h"
#include <cstdio>
#include <cstdlib>

void ainta()
{
  int i,j;
  paint(0,0);
  for(i=1;i<98;i++)paint(2222-i,2222-i);
  paint(1,0);
  paint(2,0);
  paint(3,0);
  paint(1,2221);
  paint(2,2221);
  paint(1,2220);
}

void sangsoo()
{
  int x,y,z=0;
  int i,j,k,t=0;
  for(x=0;;x+=z)
  {
    if(x+z>=2221)
    {
	  i=x+z;
	  break;
    }
    z++;
    if(count_row(x))
    {
	  i=x+z-1;
  	  break;
    }
  }
  if(i>2221)i=2221;
  while(x<i)
  {
    k=(x+i+1)/2;
    z++;
    if(count_row(k))x=k;
    else i=k-1;
  }
  for(y=0;;y+=z)
  {
	if(y+z>=2221)
	{
	  j=y+z;
	  break;
	}
	z++;
	if(count_col(y))
	{
	  j=y+z-1;
	  break;
	}
  }
  if(j>2221)j=2221;
  while(y<j&&z<103)
  {
	k=(y+j+1)/2;
	z++;
	if(t=count_col(k))y=k;
	else j=k-1;
  }
  while(z<103)
  {
	z++;
	count_col(0);
  }
  z++;
  t=count_col((y+1)%2222);
  if(t)y+=5-t;
  report(x,y);
}
# Verdict Execution time Memory Grader output
1 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 104
2 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 104
3 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 104
4 Partially correct 56 ms 1756 KB Output is partially correct : max_calls = 104
5 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
6 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
7 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
8 Partially correct 60 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 56 ms 1756 KB Output is partially correct : max_calls = 104
11 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
12 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
13 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
14 Partially correct 60 ms 1756 KB Output is partially correct : max_calls = 104
15 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
16 Partially correct 64 ms 1756 KB Output is partially correct : max_calls = 104
17 Partially correct 72 ms 1756 KB Output is partially correct : max_calls = 104
18 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 104
19 Partially correct 68 ms 1756 KB Output is partially correct : max_calls = 104
20 Partially correct 156 ms 1756 KB Output is partially correct : max_calls = 104
# Verdict Execution time Memory Grader output
1 Partially correct 616 ms 1756 KB Output is partially correct : max_calls = 104
2 Partially correct 604 ms 1756 KB Output is partially correct : max_calls = 104
3 Partially correct 688 ms 1756 KB Output is partially correct : max_calls = 104
4 Partially correct 612 ms 1756 KB Output is partially correct : max_calls = 104
5 Partially correct 612 ms 1756 KB Output is partially correct : max_calls = 104
6 Partially correct 700 ms 1756 KB Output is partially correct : max_calls = 104
7 Partially correct 624 ms 1756 KB Output is partially correct : max_calls = 104
8 Partially correct 648 ms 1756 KB Output is partially correct : max_calls = 104
9 Partially correct 636 ms 1756 KB Output is partially correct : max_calls = 104
10 Partially correct 668 ms 1756 KB Output is partially correct : max_calls = 104
11 Partially correct 220 ms 1756 KB Output is partially correct : max_calls = 104
12 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 104
13 Partially correct 676 ms 1756 KB Output is partially correct : max_calls = 104
14 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 104
15 Partially correct 660 ms 1756 KB Output is partially correct : max_calls = 104
16 Partially correct 656 ms 1756 KB Output is partially correct : max_calls = 104
17 Partially correct 672 ms 1756 KB Output is partially correct : max_calls = 104
18 Partially correct 668 ms 1756 KB Output is partially correct : max_calls = 104
19 Partially correct 676 ms 1756 KB Output is partially correct : max_calls = 104
20 Partially correct 680 ms 1756 KB Output is partially correct : max_calls = 104
21 Partially correct 684 ms 1756 KB Output is partially correct : max_calls = 104
22 Partially correct 688 ms 1756 KB Output is partially correct : max_calls = 104
23 Partially correct 680 ms 1756 KB Output is partially correct : max_calls = 104