結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-03 14:17:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 626 bytes |
| コンパイル時間 | 597 ms |
| コンパイル使用メモリ | 65,964 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 91.77 |
| 最終ジャッジ日時 | 2024-07-16 15:50:27 |
| 合計ジャッジ時間 | 3,859 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 11 |
ソースコード
#include<iostream>
using namespace std;
int main(){
string key = "0000000000";
int maxscore, nextnum, judgeN;
string tmpkey,judgeS;
for(int i = 0; i < 10; i++){
maxscore = -1;
tmpkey = key;
for(int j = 0; j < 10; j++){
nextnum = (key[i]-'0'+j)%10;
key[i] = (char)('0'+nextnum);
cout << key << endl << flush;
cin >> judgeN >> judgeS;
if(judgeS == "unlocked") exit(0);
if(judgeN > maxscore){
maxscore = judgeN;
tmpkey = key;
}
}
key = tmpkey;
}
}