ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 fac0ae83-655a-4834-8307-2eb2476e18be
コード
#include <bits/stdc++.h> #include <queue> #include <iostream> using namespace std; int main() { int Q; queue<int>answer; int T; for(int i =0;i<Q;i++){ cin>>T; } for(int i =0;i<Q;i++){ if(T==1){ int X; cin>>X; answer.push(X); } if(T==2){ cout<<answer.front()<<endl; answer.pop(); } if(T==3){ cout<<answer.size()<<endl; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q
0
C++
WA
3 ms
3860 KiB