Submission #1046221

#TimeUsernameProblemLanguageResultExecution timeMemory
1046221Hugo1729기억 압축 (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>>10); int count = M-(ptr<<10); 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)<<10)+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...