# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
72059 | 인프라웨어 상한가 가주세요. 물렸어요 (#118) | Magic Dowsing (FXCUP3_magic) | C++14 | 2 ms | 256 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 "dowsing.h"
void FindTreasure(int N) {
int hasIdx = -1;
for (int i = 1; i <= N; ++i) {
int check = Detect(1, i);
if (check) {
hasIdx = i;
break;
}
}
if (hasIdx == -1)
for (int i = 1; i <= N; ++i) {
int check = Detect(2, i);
if (check) {
hasIdx = i;
break;
}
}
int yIdx = -1;
for (int i = 1; i <= N; ++i) {
int check = Detect(i, hasIdx);
if (check == 0) {
yIdx = i;
break;
}
}
Report(yIdx, hasIdx);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |