(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #298286

#TimeUsernameProblemLanguageResultExecution timeMemory
298286aloo123Memory (IOI10_memory)C++14
100 / 100
3 ms384 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] == true) continue; for(int j = 1;j<=50;j++){ if(vis[j] == false && a[i] == a[j] && i != 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...