ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 b821c870-9ea1-4191-bf78-774c01774e22
コード
#include <bits/stdc++.h> using namespace std; int main() { int q; cin >> q; vector<int> A(0); while (q--) { int T, X; cin >> T; for(int i = 0; i<q; i++){ if (T == 1) { cin >> X; A.push_back(X); } else if (T == 2) { cin >> X; A.insert(A.begin(),X); }else{ A.erase(A.begin()); cout << A.at(0); } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q2
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:26:6: error: expected '}' at end of input 26 | } | ^ Main.cpp:4:12: note: to match this '{' 4 | int main() { | ^