結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-14 10:38:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 448 bytes |
| コンパイル時間 | 1,713 ms |
| コンパイル使用メモリ | 170,840 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 309.17 |
| 最終ジャッジ日時 | 2024-07-17 02:57:18 |
| 合計ジャッジ時間 | 2,542 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
string rec(int a){
if(to_string(a).size()==3){
return to_string(a);
}
else if(to_string(a).size()==2){
string s="0";
s+=to_string(a);
return s;
}
else{
string s="00";
s+=to_string(a);
return s;
}
}
signed main(){
for(int i=0;i<=999;i++){
cout<<rec(i)<<endl;
string s;
cin>>s;
if(s=="unlocked"){
return 0;
}
}
}