結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
moti
|
| 提出日時 | 2015-11-27 22:37:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,080 bytes |
| コンパイル時間 | 1,031 ms |
| コンパイル使用メモリ | 101,344 KB |
| 実行使用メモリ | 25,476 KB |
| 平均クエリ数 | 100.00 |
| 最終ジャッジ日時 | 2024-07-16 06:35:18 |
| 合計ジャッジ時間 | 4,505 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 13 |
ソースコード
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <complex>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <iomanip>
#include <assert.h>
#include <array>
#include <cstdio>
#include <cstring>
#include <random>
#include <functional>
#include <numeric>
#include <bitset>
using namespace std;
#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
#define all(c) (c).begin(), (c).end()
#define zero(a) memset(a, 0, sizeof a)
#define minus(a) memset(a, -1, sizeof a)
#define minimize(a, x) a = std::min(a, x)
#define maximize(a, x) a = std::max(a, x)
using ll = long long;
int const inf = 1<<29;
int main() {
string s = "0000000000";
rep(curr, 10) {
int max = 0, idx = -1;
rep(i, 10) {
s[curr] = i;
cout << s << endl;
int x; string judge; cin >> x >> judge;
if(max < x) {
max = x; idx = i;
}
if(judge == "unlocked") {
exit(0);
}
}
s[curr] = '0' + idx;
}
return 0;
}
moti