結果
問題 |
No.2925 2-Letter Shiritori
|
ユーザー |
|
提出日時 | 2024-10-12 15:29:02 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 546 bytes |
コンパイル時間 | 5,674 ms |
コンパイル使用メモリ | 211,408 KB |
実行使用メモリ | 25,216 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2024-10-12 15:29:15 |
合計ジャッジ時間 | 7,446 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
import std; void main () { // 末尾を必ずαにしたら勝てる char a = readln.chomp.to!char; writefln("? %s%s", a, a); stdout.flush; while (true) { auto input = readln.split; if (input[0] == "!") break; auto S = input[1]; writefln("? %s%s", S[1], a); stdout.flush; } } 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)); } }