結果
問題 | No.305 鍵(2) |
ユーザー |
|
提出日時 | 2024-09-13 23:48:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 587 bytes |
コンパイル時間 | 1,941 ms |
コンパイル使用メモリ | 194,824 KB |
最終ジャッジ日時 | 2025-02-24 08:18:06 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string S="??????????"; for(int i=0;i<10;i++){ int mx=-1,id=-1; for(int j=0;j<10;j++){ S[i]='0'+j; for(int k=0;k<10;k++)cout<<(S[k]=='?'?'0':S[k]); cout<<endl; ll c; string r; cin>>c>>r; if(r[0]=='u')return 0; if(mx<c){ mx=c; id=j; } } S[i]='0'+id; } }