結果
問題 | No.304 鍵(1) |
ユーザー | delt |
提出日時 | 2019-03-03 18:14:51 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 63 ms / 2,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 567 ms |
コンパイル使用メモリ | 68,500 KB |
実行使用メモリ | 23,844 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2023-09-24 02:07:04 |
合計ジャッジ時間 | 1,506 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
23,364 KB |
testcase_01 | AC | 32 ms
23,832 KB |
testcase_02 | AC | 63 ms
23,520 KB |
testcase_03 | AC | 29 ms
23,616 KB |
testcase_04 | AC | 45 ms
23,628 KB |
testcase_05 | AC | 29 ms
23,844 KB |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <ios> #include <iomanip> using namespace std; int main(void){ int key = 0; cout << setfill('0') << right << setw(3) << key << endl; string s; while(1){ cin >> s; if(s == "locked"){ key++; cout << setfill('0') << right << setw(3) << key << endl; }else{ break; } } return 0; }