結果

問題 No.253 ロウソクの長さ
ユーザー %20%20
提出日時 2017-05-27 12:10:41
言語 Perl
(5.38.2)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 24,360 KB
平均クエリ数 35.14
最終ジャッジ日時 2023-09-24 01:18:06
合計ジャッジ時間 3,132 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
24,220 KB
testcase_01 AC 27 ms
24,228 KB
testcase_02 AC 29 ms
24,036 KB
testcase_03 AC 28 ms
24,252 KB
testcase_04 AC 28 ms
23,520 KB
testcase_05 AC 28 ms
24,360 KB
testcase_06 AC 27 ms
24,168 KB
testcase_07 AC 27 ms
24,360 KB
testcase_08 AC 27 ms
24,216 KB
testcase_09 AC 26 ms
24,180 KB
testcase_10 AC 28 ms
23,388 KB
testcase_11 AC 28 ms
23,364 KB
testcase_12 AC 29 ms
24,288 KB
testcase_13 AC 27 ms
23,364 KB
testcase_14 AC 27 ms
23,376 KB
testcase_15 AC 30 ms
23,388 KB
testcase_16 AC 27 ms
24,204 KB
testcase_17 AC 28 ms
23,532 KB
testcase_18 AC 28 ms
24,024 KB
testcase_19 AC 27 ms
23,412 KB
testcase_20 AC 27 ms
24,348 KB
testcase_21 AC 28 ms
23,604 KB
testcase_22 AC 27 ms
24,252 KB
testcase_23 AC 27 ms
23,388 KB
testcase_24 AC 29 ms
23,628 KB
testcase_25 AC 27 ms
24,360 KB
testcase_26 AC 27 ms
24,024 KB
testcase_27 AC 27 ms
23,364 KB
testcase_28 AC 27 ms
23,628 KB
testcase_29 AC 27 ms
24,132 KB
testcase_30 AC 26 ms
23,388 KB
testcase_31 AC 27 ms
23,796 KB
testcase_32 AC 27 ms
23,976 KB
testcase_33 AC 27 ms
24,276 KB
testcase_34 AC 26 ms
23,616 KB
testcase_35 AC 27 ms
24,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub a{$c+=print"? @_\n";<>}
$|=1;
$l=98,$r=1e9-1if$f=a(99)>0;
$f&&($%<0?(--$l,$r=$m-2):($l=$m,--$r))while$%=a($m=$l+$r>>1);
print'! ',$m+$c-1
0