結果
問題 | No.3069 Invisible Speedrun |
ユーザー |
![]() |
提出日時 | 2025-03-22 03:03:36 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 79 ms / 2,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 5,853 ms |
コンパイル使用メモリ | 332,096 KB |
実行使用メモリ | 25,972 KB |
平均クエリ数 | 585.15 |
最終ジャッジ日時 | 2025-03-22 03:03:50 |
合計ジャッジ時間 | 13,307 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 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('R'); } } }