結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2017-05-25 15:29:02 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 1,070 ms |
コンパイル使用メモリ | 100,352 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 10.33 |
最終ジャッジ日時 | 2024-06-12 19:24:22 |
合計ジャッジ時間 | 3,771 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 20 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; const maxR = 1000; 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; }