結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
hirokazu1020
|
| 提出日時 | 2015-11-27 22:41:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 906 bytes |
| コンパイル時間 | 768 ms |
| コンパイル使用メモリ | 95,760 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 86.69 |
| 最終ジャッジ日時 | 2024-07-16 21:46:42 |
| 合計ジャッジ時間 | 2,116 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#include<sstream>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<cmath>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<numeric>
#include<functional>
#include<algorithm>
#include<bitset>
#include<tuple>
#include<unordered_set>
#include<random>
using namespace std;
#define INF (1<<29)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define uniq(v) v.erase(unique(all(v)),v.end())
#define indexOf(v,x) (find(all(v),x)-v.begin())
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
string ans;
rep(i,10){
int mx=-1,mxj=0;
rep(j,10){
string s=ans;
s+='0'+j;
while(s.size()<10)s+='0';
cout<<s<<endl;
int n;
cin>>n>>s;
if(n==10){
return 0;
}
if(mx<n){
mx=n;
mxj=j;
}
}
ans += mxj+'0';
}
return 0;
}
hirokazu1020