結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-26 17:27:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 537 bytes |
| コンパイル時間 | 1,532 ms |
| コンパイル使用メモリ | 170,468 KB |
| 実行使用メモリ | 40,528 KB |
| 最終ジャッジ日時 | 2024-07-17 00:38:53 |
| 合計ジャッジ時間 | 8,008 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int ans = 0;
for( int i = ( int ) 1e9; i; i /= 10 ){
vector< int > match( 10 );
for( int j = 0; j < 10; ++j ){
cout << setw( 10 ) << setfill( '0' ) << j * i;
int m; string r; cin >> m >> r;
if( r == "unlocked" )
exit( 0 );
match[ j ] = m;
}
ans = ans * 10 + max_element( match.begin(), match.end() ) - match.begin();
}
cout << setw( 10 ) << setfill( '0' ) << ans << endl;
int m; string r; cin >> m >> r;
return 0;
}