結果

問題 No.293 4>7の世界
ユーザー tailstails
提出日時 2015-10-23 22:32:19
言語 Perl
(5.38.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 4,752 KB
最終ジャッジ日時 2023-08-28 21:44:19
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,604 KB
testcase_01 AC 3 ms
4,584 KB
testcase_02 AC 2 ms
4,524 KB
testcase_03 AC 2 ms
4,656 KB
testcase_04 AC 3 ms
4,708 KB
testcase_05 AC 2 ms
4,692 KB
testcase_06 AC 3 ms
4,528 KB
testcase_07 AC 3 ms
4,520 KB
testcase_08 AC 3 ms
4,496 KB
testcase_09 AC 2 ms
4,604 KB
testcase_10 AC 2 ms
4,492 KB
testcase_11 AC 2 ms
4,708 KB
testcase_12 AC 2 ms
4,660 KB
testcase_13 AC 2 ms
4,552 KB
testcase_14 AC 3 ms
4,712 KB
testcase_15 AC 2 ms
4,752 KB
testcase_16 AC 2 ms
4,644 KB
testcase_17 AC 3 ms
4,512 KB
testcase_18 AC 3 ms
4,604 KB
testcase_19 AC 2 ms
4,712 KB
testcase_20 AC 2 ms
4,624 KB
testcase_21 AC 2 ms
4,704 KB
testcase_22 AC 2 ms
4,500 KB
testcase_23 AC 3 ms
4,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~$";$a=$`+0;$b=$'+0;
exit!print $a if length($a)>length($b);
exit!print $b if length($b)>length($a);
$a=~s/.//,$b=~s/.//,print$& while ord$a == ord$b;
exit!print $a if $a=~/^4/ && $b=~/^7/;
exit!print $b if $b=~/^4/ && $a=~/^7/;
exit!print $a if $a > $b;
exit!print $b if $b > $a;
0