# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1037130 |
2024-07-28T08:25:22 Z |
DeathIsAwe |
None (JOI15_memory) |
C++14 |
|
38 ms |
7300 KB |
#include "Memory_lib.h"
#include <bits/stdc++.h>
using namespace std;
int Memory(int n, int m) {
if (m == 1000000) {
return -2;
} else if (m == 1000001) {
return -1;
}
int bruh = 0;
char now = Get(m % 100 + 1);
if (now == '<') {
bruh++;
} else {
bruh--;
}
bruh += (m / 100);
if (m % 100 == n - 1) {
if (bruh == 0) {
return 1000001;
} else {
return 1000000;
}
}
return (m % 100) + (bruh * 100) + 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
38 ms |
7300 KB |
Wrong Answer [1] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |