結果

問題 No.909 たぴの配置
ユーザー tailstails
提出日時 2019-10-18 22:36:49
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 503 ms
コンパイル使用メモリ 5,228 KB
実行使用メモリ 75,468 KB
最終ジャッジ日時 2023-09-08 00:35:21
合計ジャッジ時間 15,245 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 6 ms
5,212 KB
testcase_02 WA -
testcase_03 AC 5 ms
5,064 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@x=glob<>;
@y=glob<>;
$d=2e6;
for(0..$n-1){
	$a=$x[$_]+$y[$_];
	$d=$d<$a?$d:$a;
}
print $d,$/;
print 0,$/;
for(0..$n-1){
	print $-=$x[$_]-$d,$/;
}
print $d,$/;
0