結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2015-11-27 22:40:22 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 54.38 |
最終ジャッジ日時 | 2024-07-16 20:47:01 |
合計ジャッジ時間 | 1,612 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
Unquoted string "u" may clash with future reserved word at Main.pl line 4. Unquoted string "u" may clash with future reserved word at Main.pl line 10. Main.pl syntax OK
ソースコード
$|=1; print 0 x10,$/; $r=<>; exit if$r=~u; for$a(0..9){ for$d(0..9){ print'0'x$a,$d,'0'x(9-$a),$/; $s=<>; exit if$s=~u; if($r>$s){ $b.=0; last; } if($r<$s){ $b.=$d; last; } } } print $b,$/;