Submission #13866

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
138662015-04-09 06:50:45gs14004행성 탐사 (GA8_planet)C++14
61.20 / 100
1763 ms1752 KiB
#include "planet.h"
void ainta() {
for(int i=0; i<101; i++){
paint(22 * i,0); // step 1.
}
for (int i=0; i<22; i++) {
paint(0,0); // ignore step 2.
}
for (int i=0; i<101; i++) {
paint(1,22 * i); // step 3.
}
for (int i=0; i<22 + 101; i++) {
paint(0,0); // ignore step 4.
}
}
void sangsoo() {
int resx = -1;
for(int i=0; i<101; i++){
count_row(42); // ignore step 1.
}
int p = 0;
for (int i=0; i<22; i++) {
if(count_row(i)) p = i; // step 2.
}
for (int i=0; i<101; i++) {
int t = count_row((22 * i + p + 1) % 2222); // step 3.
if(t > 0){
resx = 22 * i + p;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...