結果
問題 | No.253 ロウソクの長さ |
ユーザー | tails |
提出日時 | 2015-07-24 23:55:41 |
言語 | Perl (5.38.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 5,216 KB |
実行使用メモリ | 24,516 KB |
平均クエリ数 | 37.17 |
最終ジャッジ日時 | 2023-09-23 05:02:08 |
合計ジャッジ時間 | 5,605 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 29 ms
23,688 KB |
testcase_02 | AC | 30 ms
23,424 KB |
testcase_03 | AC | 28 ms
23,412 KB |
testcase_04 | AC | 28 ms
23,664 KB |
testcase_05 | AC | 28 ms
23,544 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 27 ms
24,024 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 27 ms
24,324 KB |
testcase_15 | AC | 29 ms
23,568 KB |
testcase_16 | AC | 27 ms
24,276 KB |
testcase_17 | AC | 30 ms
23,544 KB |
testcase_18 | WA | - |
testcase_19 | AC | 27 ms
24,384 KB |
testcase_20 | WA | - |
testcase_21 | AC | 28 ms
23,460 KB |
testcase_22 | AC | 28 ms
23,688 KB |
testcase_23 | WA | - |
testcase_24 | AC | 29 ms
23,460 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | AC | 27 ms
23,592 KB |
testcase_35 | WA | - |
コンパイルメッセージ
Unquoted string "say" may clash with future reserved word at Main.pl line 1. Main.pl syntax OK
ソースコード
use feature say; $|=1; say"? 100";++$n; if(<><1){ do{ say"? 1";++$n; }while<>>0; say"! ",$n; }else{ $a=100; $b=1e9+1; while($a<$b-1){ say"? ",($c=$a+$b>>1)-$n++; <><1?$b:$a=$c; } say"! ",$a; }