結果

問題 No.304 鍵(1)
ユーザー chacoder1
提出日時 2021-04-26 22:19:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 3,411 ms
コンパイル使用メモリ 190,992 KB
最終ジャッジ日時 2025-01-21 01:19:00
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
string s;

int main(void) {
  for(int i=0;i<=999;i++){
    if(i<10){
      cout<<"00";
      cout<<i;
      cout<<endl;
    }
    else if(i<100){
      cout<<"0";
      cout<<i;
      cout<<endl;
    }
    else{
      cout<<i<<endl;
    }
    cin>>s;
    if(s=="unlocked") return 0;
    else continue;
  }
  return 0;
}
0