제출 #298275

#제출 시각아이디문제언어결과실행 시간메모리
298275aloo123Memory (IOI10_memory)C++14
0 / 100
1 ms256 KiB
// #include "grader.h" #include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; char a[51]; bool vis[51]; map<char,pair<int,int>> m; void play() { for(int i = 1;i<=50;i++){ a[i] = faceup(i); } for(int i =1;i<=50;i++){ if(vis[i] == false) continue; for(int j = 1;j<=50;j++){ if(vis[j] == false && a[i] == a[j]){ m[a[i]] = make_pair(i,j); vis[j] = true; vis[i] = true; break; } } } for(char c = 'A';c<='Y';c++){ faceup(m[c].first); faceup(m[c].second); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...