結果
| 問題 |
No.3069 Invisible Speedrun
|
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2025-03-22 03:02:57 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 608 bytes |
| コンパイル時間 | 6,473 ms |
| コンパイル使用メモリ | 332,664 KB |
| 実行使用メモリ | 26,456 KB |
| 平均クエリ数 | 586.74 |
| 最終ジャッジ日時 | 2025-03-22 03:03:13 |
| 合計ジャッジ時間 | 13,806 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 80 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
int ask(char c) {
cout << c << endl;
int x;
cin >> x;
if (x != 0) {
exit(0);
}
return x;
}
int main() {
FAST_IO
int N;
cin >> N;
for (int i = 0; i < N * 2; i ++) {
if (i % 2 == 0) {
ask('D');
} else {
ask('U');
}
}
}
hiromi_ayase