ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 10f03c4c-401c-4fce-b57c-54e61999c0ae
コード
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; [[noreturn]] void ch(ll a, ll b, ll c) { if (clamp(a, b, c) != a) { abort(); } } int main() { int q; cin >> q; assert(clamp(q, 1, 100000) == q); deque<int> d; while (q--) { int t; cin >> t; ch(t, 1, 3); if (t == 3) { //assert(!d.empty()); cout << d.front() << endl; d.pop_front(); } else { int x; cin >> x; //ch(x, 1, 1000000000ll); if (t == 1) d.push_back(x); else d.push_front(x); } } }
結果
問題
点数
言語
結果
実行時間
メモリ
E - Q2
0
C++
RE
107 ms
3444 KiB
コンパイルエラー
Main.cpp: In function 'void ch(ll, ll, ll)': Main.cpp:10:1: warning: 'noreturn' function does return 10 | } | ^