結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-22 03:42:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 716 bytes |
| コンパイル時間 | 1,946 ms |
| コンパイル使用メモリ | 168,588 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 52.23 |
| 最終ジャッジ日時 | 2024-07-16 15:34:51 |
| 合計ジャッジ時間 | 3,306 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i = (a); i < (b); ++i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) for(int i = (n) - 1; (i) >= 0; --i)
#define SZ(n) (int)(n).size()
#define ALL(n) (n).begin(), (n).end()
#define MOD LL(1e9 + 7)
#define INF 1000000
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;
int main() {
string s = "0000000000";
int re;
string t;
int k = 0;
int r = 0;
cout << s << endl;
cin >> r >> t;
s[k]++;
while (1) {
cout << s << endl;
cin >> re >> t;
if (t == "unlocked")
break;
if (re != r) {
if (re > r) {
r = re;
k++;
}
else {
s[k]--;
k++;
}
continue;
}
s[k]++;
}
return 0;
}