(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.

제출 #1110892

#제출 시각아이디문제언어결과실행 시간메모리
1110892julia_08Memory (IOI10_memory)C++17
100 / 100
3 ms508 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; const int MAXN = 60; map<char, pair<int, int>> m; void play(){ for(int i=1; i<=50; i++){ char c = faceup(i); if(m.count(c)){ m[c].second = i; } else m[c].first = i; } for(char c='A'; c<='Y'; c++){ char ans; ans = faceup(m[c].first); ans = faceup(m[c].second); } }

컴파일 시 표준 에러 (stderr) 메시지

memory.cpp: In function 'void play()':
memory.cpp:23:10: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
   23 |     char ans;
      |          ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...