# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
13877 |
2015-04-09T07:55:36 Z |
gs14004 |
행성 탐사 (GA8_planet) |
C++14 |
|
0 ms |
1752 KB |
#include "planet.h"
#include <algorithm>
using namespace std;
const int EE = 2222;
void ainta() {
for (int i=0; i<67; i++) {
paint(i,0); // step 1.
}
for (int i=0; i<67; i++) {
paint(0,i); // step 1.
}
for (int i=0; i<14; i++) {
paint(0,0); // ignore step 2.
}
}
void sangsoo() {
int s = 0, e = 0, f = 0;
for (int i=1; i <= 67; i++) {
if(count_row(e)){
f = 1;
}
if(f) continue;
s = e+1;
e = e + i + 1;
}
e = min(e,EE-1);
for(int i=0; i<7; i++){
if(s == e){
count_row(42);
continue;
}
int m = (s+e) / 2;
if(count_row(m)) e = m;
else s = m+1;
}
int posx = s;
s = 0, e = 6;
for (int i=8; i <= 67; i++) {
if(count_row(e)){
f = 1;
}
if(f) continue;
s = e+1;
e = e + i + 1;
}
e = min(e,EE-1);
for(int i=0; i<7; i++){
if(s == e){
count_row(42);
continue;
}
int m = (s+e) / 2;
if(count_row(m)) e = m;
else s = m+1;
}
int posy = s;
report(posx,posy);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1752 KB |
Output isn't correct - ?듭씠 ??젮???꾨줈洹몃옩??醫낅즺?⑸땲?? |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |