Submission #1037117

#TimeUsernameProblemLanguageResultExecution timeMemory
1037117clementine기억 압축 (JOI15_memory)C++17
0 / 100
0 ms608 KiB
#include "Memory_lib.h" #include <bits/stdc++.h> using namespace std; int Memory(int N, int M) { int day = M / 10000; char ith = Get(day + 1); if(ith == '<') { M += 100; } else if(ith == '>') { M -= 100; } else if(ith == '[') { M +=1; } else if(ith == ']') { M -=1; } M += 10000; int trig = (M / 100) % 100; int sqr = M % 100; if(trig > 50 || sqr > 50) { return -2; } if(day + 1 == N && M % 10000 == 0) { return -1; } return M; }
#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...