結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-12 16:54:50 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 590 bytes |
| 記録 | |
| コンパイル時間 | 1,307 ms |
| コンパイル使用メモリ | 212,576 KB |
| 実行使用メモリ | 29,552 KB |
| 平均クエリ数 | 0.85 |
| 最終ジャッジ日時 | 2026-06-07 16:41:56 |
| 合計ジャッジ時間 | 5,318 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int cnt[10]{};
for (int i=0;i<=9;i++) {
string s;
for (int j=0;j<10;j++) s+=i+'0';
cout<<s<<endl;
int a;
string t;
cin>>a>>t;
if (a==10) return 0;
cnt[i]=a;
}
string s;
for (int i=0;i<=9;i++) {
for (int j=0;j<cnt[i];j++) s+=i+'0';
}
do {
cout<<s<<endl;
int a;
string t;
cin>>a>>t;
if (a==10) return 0;
} while (next_permutation(s.begin(),s.end()));
return 0;
}