結果
問題 | No.305 鍵(2) |
ユーザー | tails |
提出日時 | 2015-11-27 22:40:22 |
言語 | Perl (5.38.2) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 5,216 KB |
実行使用メモリ | 24,408 KB |
平均クエリ数 | 54.38 |
最終ジャッジ日時 | 2023-09-23 20:56:36 |
合計ジャッジ時間 | 1,633 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
24,276 KB |
testcase_01 | AC | 26 ms
23,424 KB |
testcase_02 | AC | 26 ms
24,264 KB |
testcase_03 | AC | 26 ms
24,300 KB |
testcase_04 | AC | 27 ms
24,324 KB |
testcase_05 | AC | 28 ms
24,408 KB |
testcase_06 | AC | 24 ms
23,640 KB |
testcase_07 | AC | 27 ms
24,036 KB |
testcase_08 | AC | 26 ms
24,060 KB |
testcase_09 | AC | 27 ms
23,640 KB |
testcase_10 | AC | 27 ms
23,436 KB |
testcase_11 | AC | 26 ms
23,556 KB |
testcase_12 | AC | 27 ms
23,424 KB |
コンパイルメッセージ
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,$/;