結果

問題 No.304 鍵(1)
ユーザー KuraKura
提出日時 2019-07-22 12:42:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,149 ms
コンパイル使用メモリ 144,500 KB
実行使用メモリ 23,856 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 02:17:29
合計ジャッジ時間 2,066 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
23,568 KB
testcase_01 AC 28 ms
23,448 KB
testcase_02 AC 60 ms
23,376 KB
testcase_03 AC 29 ms
23,376 KB
testcase_04 AC 44 ms
23,652 KB
testcase_05 AC 27 ms
23,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n=0;int a,b,c;
  a=n/100;b=n%100/10;c=n%10;
  cout<<a<<b<<c<<endl;
  string w;cin>>w;
  while(w=="locked"){
    n++;
    a=n/100;b=n%100/10;c=n%10;
  cout<<a<<b<<c<<endl;
  cin>>w;
  }
}
0