結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-08-22 17:07:31 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 184 bytes |
| 記録 | |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 7,340 KB |
| 実行使用メモリ | 9,548 KB |
| 平均クエリ数 | 27.00 |
| 最終ジャッジ日時 | 2026-08-15 07:17:08 |
| 合計ジャッジ時間 | 5,645 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
tails