結果
| 問題 |
No.3069 Invisible Speedrun
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-21 22:47:14 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 604 bytes |
| コンパイル時間 | 4,124 ms |
| コンパイル使用メモリ | 159,136 KB |
| 実行使用メモリ | 26,356 KB |
| 平均クエリ数 | 586.02 |
| 最終ジャッジ日時 | 2025-03-21 22:47:28 |
| 合計ジャッジ時間 | 12,330 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 58 WA * 22 |
ソースコード
import std;
void main () {
int N = readln.chomp.to!int;
// 乱択で通りそう?
auto command = new byte[](2 * N);
foreach (i; 0 .. N) {
command[i] = 'R';
command[i + N] = 'D';
}
foreach (c; command) {
writeln(c.to!char);
stdout.flush;
int v = readln.chomp.to!int;
if (v == 1) return;
if (v == -1) return;
}
}
void read (T...) (string S, ref T args) {
import std.conv : to;
import std.array : split;
auto buf = S.split;
foreach (i, ref arg; args) {
arg = buf[i].to!(typeof(arg));
}
}