結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-08-22 17:08:00 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 190 bytes |
| 記録 | |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 38,080 KB |
| 平均クエリ数 | 27.00 |
| 最終ジャッジ日時 | 2026-03-31 21:18:10 |
| 合計ジャッジ時間 | 16,347 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 54 |
コンパイルメッセージ
Unquoted string "out" may clash with future reserved word at Main.pl line 7. Unquoted string "out" may clash with future reserved word at Main.pl line 10. Main.pl syntax OK
ソースコード
$|=1;
$a=0;
$b=1001;
while($a<$b-1){
$c=$a+$b>>1;
print"? $c\n";
if(<>=~out){
++$c;
print"? $c\n";
if(<>=~out){
$b=$c;
}else{
$a=$c;
}
}else{
$a=$c;
}
}
print"! $a\n"
tails