結果

問題 No.304 鍵(1)
ユーザー CleyLCleyL
提出日時 2019-04-26 14:28:42
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 60,388 KB
実行使用メモリ 24,360 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 02:13:55
合計ジャッジ時間 1,275 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,352 KB
testcase_01 AC 26 ms
23,364 KB
testcase_02 AC 56 ms
23,616 KB
testcase_03 AC 25 ms
24,000 KB
testcase_04 AC 40 ms
23,520 KB
testcase_05 AC 24 ms
24,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
using namespace std;
#define anyfill(n,s) setw(n) << setfill(s)
int main(){
  cout << "000" << endl;
  int n = 0;
  while(true){
    string s;cin>>s;
    if(s == "unlocked"){
      return 0;
    }
    n++;
    cout << anyfill(3,'0') << n << endl;
  }
}
0