# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
7274 | gs13068 | 행성 탐사 (GA8_planet) | C++98 | 684 ms | 1756 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "planet.h"
#include <algorithm>
void ainta()
{
int i,j,k;
paint(0,0);
for(i=1;i<63;i++)paint(2222-i,2222-i);
for(j=0;j<8;j++)for(k=0;k<j;k++)paint(2222-j,2222-(i++));
for(j=0;j<5;j++)for(k=0;k<j;k++)paint(k+2,2222-j);
}
void sangsoo()
{
int x,y,z=0;
int i,j,k;
for(x=0;;x+=std::min(z,63))
{
if(x+std::min(z,62)>=2221)
{
i=x+std::min(z,62);
break;
}
z++;
if(count_row(x))
{
i=x+std::min(z-1,62);
break;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |