# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
717685 | 2023-04-02T10:45:48 Z | nikos | Memory (IOI10_memory) | C++17 | 1 ms | 208 KB |
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long void play() { char a, b; vector< pair<int, int> > v; for(int i = 0; i < 25; i++){ v.pb(make_pair(0, 0)); } for(int i = 1; i < 50; i += 2){ a = faceup(i); b = faceup(i + 1); if(v[a - 'A'].first != 0){ v[a - 'A'].first = i; } else{ v[a - 'A'].second = i; } if(v[b - 'A'].first != 0){ v[b - 'A'].first = i; } else{ v[b - 'A'].second = i; } } for(int i = 0; i < v.size(); i++){ faceup(v[i].first); faceup(v[i].second); } return; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 208 KB | Incorrect |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 208 KB | Incorrect |
2 | Halted | 0 ms | 0 KB | - |