結果

問題 No.304 鍵(1)
ユーザー delt
提出日時 2019-03-03 18:14:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 398 bytes
コンパイル時間 553 ms
コンパイル使用メモリ 67,276 KB
実行使用メモリ 25,220 KB
平均クエリ数 309.17
最終ジャッジ日時 2024-07-17 02:07:45
合計ジャッジ時間 1,467 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0