結果

問題 No.131 マンハッタン距離
ユーザー %20%20
提出日時 2016-12-31 13:33:20
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 589 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,336 KB
最終ジャッジ日時 2023-08-22 08:53:44
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,204 KB
testcase_01 AC 6 ms
5,156 KB
testcase_02 AC 6 ms
5,332 KB
testcase_03 AC 6 ms
5,236 KB
testcase_04 AC 6 ms
5,176 KB
testcase_05 AC 6 ms
5,300 KB
testcase_06 AC 6 ms
5,212 KB
testcase_07 WA -
testcase_08 AC 6 ms
5,080 KB
testcase_09 AC 6 ms
5,168 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 6 ms
5,156 KB
testcase_13 AC 6 ms
5,264 KB
testcase_14 AC 5 ms
5,124 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 6 ms
5,068 KB
testcase_18 AC 6 ms
5,104 KB
testcase_19 AC 6 ms
5,176 KB
testcase_20 AC 6 ms
5,124 KB
testcase_21 AC 6 ms
5,044 KB
testcase_22 WA -
testcase_23 AC 6 ms
5,172 KB
testcase_24 AC 6 ms
5,200 KB
testcase_25 WA -
testcase_26 AC 6 ms
5,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub max{$_[$_[1]>$_[0]]}
sub min{$_[$_[1]<$_[0]]}
($x,$y,$d)=glob<>;
print max($x,$y)<$d?0:min($x,$y)<$d?min($x,$y)+1:$d+1
0