結果
問題 | No.246 質問と回答 |
ユーザー |
|
提出日時 | 2017-05-25 15:29:27 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 950 ms |
コンパイル使用メモリ | 98,840 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 30.93 |
最終ジャッジ日時 | 2024-06-12 19:24:35 |
合計ジャッジ時間 | 3,750 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;const maxR = 10 ^^ 9 + 2;void main(){auto r = iota!int(1, maxR+2).assumeSorted!isLow.lowerBound(0);writeln("! ", r.back); stdout.flush();}bool isLow(int x, int _){writeln("? ", x); stdout.flush();auto r = readln.chomp.to!int;return r == 1;}