ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 c66e2edf-0984-4a94-baac-1aba689ad558
コード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int Q; cin >> Q; queue<long long> A; for (int i = 0; i < Q; i++) { int T; cin >> T; if (T == 1) { long long X; cin >> X; A.push(X); } else if (T == 2) { cout << A.front() << endl; A.pop(); } else if (T == 3) { cout << A.size() << endl; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q
100
C++
AC
174 ms
3916 KiB