結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-02 20:51:39 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 958 ms |
| コンパイル使用メモリ | 186,556 KB |
| 実行使用メモリ | 215,532 KB |
| 平均クエリ数 | 86.69 |
| 最終ジャッジ日時 | 2026-04-02 20:51:48 |
| 合計ジャッジ時間 | 2,172 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=(a);i<(b);i++)
int main(){
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
string ans="0000000000",res;
rep(i,0,10){
vector<int>A(10);
rep(j,0,10){
ans[i]='0'+j;
cout<<ans<<endl;
cin>>A[j]>>res;
if(res=="unlocked")exit(0);
}
ans[i]=max_element(A.begin(),A.end())-A.begin()+'0';
}
assert(0);
return 0;
}