# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
282150 |
2020-08-24T04:45:18 Z |
반딧불(#5757) |
None (JOI15_memory) |
C++17 |
|
2880 ms |
283864 KB |
#include <bits/stdc++.h>
#include "Memory_lib.h"
int Memory(int n, int k){
int k1 = k/200, k2 = k%200;
k1++;
if(!(1 <= k1 && k1 <= n && 0 <= k2)) return -2;
char tmp = Get(k1);
if(tmp=='<') k2++;
else k2--;
if(k2<0) return -2;
if(k1 == n && k2 != 0) return -2;
if(k1 == n) return -1;
return k1*200+k2;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2868 ms |
283864 KB |
Output is correct |
2 |
Incorrect |
2876 ms |
283748 KB |
Wrong Answer [6] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2868 ms |
283864 KB |
Output is correct |
2 |
Incorrect |
2876 ms |
283748 KB |
Wrong Answer [6] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2868 ms |
283864 KB |
Output is correct |
2 |
Incorrect |
2876 ms |
283748 KB |
Wrong Answer [6] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2868 ms |
283864 KB |
Output is correct |
2 |
Incorrect |
2876 ms |
283748 KB |
Wrong Answer [6] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2880 ms |
283640 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2868 ms |
283864 KB |
Output is correct |
2 |
Incorrect |
2876 ms |
283748 KB |
Wrong Answer [6] |
3 |
Halted |
0 ms |
0 KB |
- |