Submission #38589
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include<bits/stdc++.h> using namespace std; int main(){ queue< int > q; string pu= "push" ,f= "front" ,po= "pop" ,e= "exit" ,s; int n; while (0==0){ cin>>s; if (s==e) break ; if (s==pu){ scanf ( "%d" ,&n); q.push(n); } if (s==f) printf ( "%d\n" ,q.front()); if (s==po)q.pop(); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0601 - プログラミング入門:Queue |
ユーザー名 | 珈琲の素材は虚数渦動 |
投稿日時 | 2018-07-11 17:25:29 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 335 Byte |
最大実行時間 | 633 ms |
最大メモリ使用量 | 4212 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
Input01 | AC | 25 ms | 480 KB |
1
|
Input02 | AC | 15 ms | 456 KB |
1
|
Input03 | AC | 23 ms | 432 KB |
1
|
Input04 | AC | 27 ms | 664 KB |
1
|
Input05 | AC | 29 ms | 628 KB |
1
|
Input06 | AC | 57 ms | 840 KB |
1
|
Input07 | AC | 87 ms | 988 KB |
1
|
Input08 | AC | 224 ms | 1560 KB |
1
|
Input09 | AC | 417 ms | 2776 KB |
1
|
Input10 | AC | 633 ms | 4212 KB |
1
|