結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-26 17:19:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 705 bytes |
| コンパイル時間 | 1,504 ms |
| コンパイル使用メモリ | 171,108 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 12372.54 |
| 最終ジャッジ日時 | 2024-07-16 11:23:29 |
| 合計ジャッジ時間 | 10,389 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 2 TLE * 1 -- * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
ios::sync_with_stdio( 0 );
vector< int > match( 10 );
for( int i = 0; i < 10; ++i ){
string s;
for( int j = 0; j < 10; ++j )
s += ( char ) ( '0' + i );
cout << s << endl;
string reply;
cin >> match[ i ] >> reply;
}
string s;
for( int i = 0; i < 10; ++i )
for( int j = 0; j < match[ i ]; ++j )
s += ( char ) ( '0' + i );
cout << "1234567890" << endl; int a; string b; cin >> a >> b; if( a == 10 ) exit( 0 );
do{
cout << s << endl;
int m; string reply;
cin >> m >> reply;
if( reply == "unlocked" )
break;
} while( next_permutation( s.begin(), s.end() ) );
return 0;
}