# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
13868 |
2015-04-09T06:55:22 Z |
gs14004 |
행성 탐사 (GA8_planet) |
C++14 |
|
0 ms |
1752 KB |
#include "planet.h"
void ainta() {
for(int i=0; i<22; i++){
paint(101 * i,0); // step 1.
}
for (int i=0; i<101; i++) {
paint(0,0); // ignore step 2.
}
for (int i=0; i<22; i++) {
paint(1,22 * i); // step 3.
}
for (int i=0; i<22 + 101; i++) {
paint(0,0); // ignore step 4 and step 5.
}
}
void sangsoo() {
int resx = -1;
for(int i=0; i<22; i++){
count_row(42); // ignore step 1.
}
int p = 0;
for (int i=0; i<101; i++) {
if(count_row(i)) p = i; // step 2.
}
for (int i=0; i<22; i++) {
int t = count_row((101 * i + p + 1) % 2222); // step 3.
if(t > 0){
resx = 101 * i + p;
}
}
for (int i=0; i<101; i++) {
if(count_col(i)) p = i; // step 4.
}
for (int i=0; i<22; i++) {
int t = count_col(101 * i + p); // step 5.
if(t > 1){
report(resx,101 * i + p);
return;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1752 KB |
Output isn't correct - report() ?⑥닔??媛??뚯뒪??耳?씠?ㅻ쭏????踰덉? ?몄텧?섏뼱???⑸땲? |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |