結果

問題 No.305 鍵(2)
ユーザー 0w10w1
提出日時 2016-11-26 17:13:51
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 587 bytes
コンパイル時間 1,636 ms
コンパイル使用メモリ 168,452 KB
実行使用メモリ 24,012 KB
平均クエリ数 0.85
最終ジャッジ日時 2023-09-24 00:43:27
合計ジャッジ時間 4,991 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,012 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

signed main(){
  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 );
  do{
    cout << s << endl;
    int m; string reply;
    cin >> m >> reply;
    if( reply == "unlocked" )
      break;
  } while( next_permutation( s.begin(), s.end() ) );
  return 0;
}
0