# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1037144 | 2024-07-28T08:49:32 Z | DeathIsAwe | None (JOI15_memory) | C++14 | 1307 ms | 283984 KB |
#include "Memory_lib.h" #include <bits/stdc++.h> using namespace std; int Memory(int n, int m) { if (n % 2 == 1) { return -2; } int bruh = 0, val; char now = Get(m % 100 + 1); if (now == '<') { bruh++; } bruh += (m / 100); if (2 * bruh < (m % 100 + 1)) { return -2; } if (m % 100 == n - 1) { if (2 * bruh == n) { return -1; } else { return -2; } } val = (m % 100) + (bruh * 100) + 1; if (val > 4194304) { val = 1/0; } return val; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1307 ms | 283984 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Wrong Answer [3] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1307 ms | 283984 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Wrong Answer [3] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1307 ms | 283984 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Wrong Answer [3] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1307 ms | 283984 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Wrong Answer [3] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 38 ms | 7508 KB | Execution killed with signal 4 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1307 ms | 283984 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Wrong Answer [3] |
3 | Halted | 0 ms | 0 KB | - |