Submission #1046216

#TimeUsernameProblemLanguageResultExecution timeMemory
1046216Hugo1729기억 압축 (JOI15_memory)C++11
0 / 100
0 ms348 KiB
#include "Memory_lib.h" #include <bits/stdc++.h> using namespace std; int Memory(int N, int M) { int ptr = (M>>7); int count = M-(ptr<<7); if(ptr==N){ if (count==0) return -1; else return -2; } char sus = Get(ptr+1); if(sus=='<')count++; else count--; if(count<0)return -2; else return (((ptr+1)<<7)+count); }
#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...