Submission #1037133

#TimeUsernameProblemLanguageResultExecution timeMemory
1037133DeathIsAwe기억 압축 (JOI15_memory)C++14
0 / 100
1 ms344 KiB
#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 = 100; char now = Get(m % 100 + 1); if (now == '<') { bruh++; } else { bruh--; } bruh += (m / 100); if (m % 100 == n - 1) { if (bruh == 100) { return 1000001; } else { return 1000000; } } return (m % 100) + (bruh * 100) + 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...