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

제출 #1109886

#제출 시각아이디문제언어결과실행 시간메모리
1109886MarszpaceMemory (IOI10_memory)C++14
100 / 100
3 ms512 KiB
#include<bits/stdc++.h> #include "grader.h" #include "memory.h" using namespace std; void play(){ vector<int> ls[258]; for(int i=1;i<=50;i++){ ls[faceup(i)].push_back(i); } for(int i='A';i<'Z';i++){faceup(ls[i][0]);faceup(ls[i][1]);} }

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

memory.cpp: In function 'void play()':
memory.cpp:9:14: warning: array subscript has type 'char' [-Wchar-subscripts]
    9 |     ls[faceup(i)].push_back(i);
      |        ~~~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...