結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-31 18:17:04 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 478 bytes |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 57,328 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 32.85 |
| 最終ジャッジ日時 | 2024-07-16 10:14:25 |
| 合計ジャッジ時間 | 4,096 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 12 |
ソースコード
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
int get() {
int num; cin >> num;
string str; cin >> str;
return num;
}
int main(void) {
string str = "0000000000";
cout << str << endl;
int num = get();
if (num == 10) return 0;
for (int i = 0; i < 10; ++i) {
for (int j = 0; j < 9; ++j) {
str[i]++;
cout << str << endl;
int n = get();
if (n == 10) return 0;
if (n > num) {
n = num;
break;
}
}
}
return 0;
}