結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2017-07-10 01:07:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 1,972 ms |
コンパイル使用メモリ | 166,840 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2024-07-17 01:16:45 |
合計ジャッジ時間 | 3,128 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>#define REP(i,n,N) for(int i=(n);i<(int) N;i++)#define p(s) cout<<(s)<<endlusing namespace std;int main(){string s="0000000000",tmp;int ok;p(s);cin>>ok>>tmp;if(ok == 10) return 0;int cnt=ok;REP(i,0,10){REP(j,0,10){s[i]++;p(s);cin>>ok>>tmp;if(ok == 10) return 0;if(cnt<ok){cnt=ok;break;}else if(cnt>ok){s[i]--;break;}}}return 0;}