結果

問題 No.909 たぴの配置
ユーザー tailstails
提出日時 2019-10-18 22:40:57
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,134 ms / 3,000 ms
コード長 167 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 75,420 KB
最終ジャッジ日時 2023-09-08 00:37:09
合計ジャッジ時間 13,279 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,192 KB
testcase_01 AC 5 ms
5,384 KB
testcase_02 AC 6 ms
5,156 KB
testcase_03 AC 6 ms
5,300 KB
testcase_04 AC 6 ms
5,216 KB
testcase_05 AC 1,134 ms
70,616 KB
testcase_06 AC 1,105 ms
72,920 KB
testcase_07 AC 984 ms
67,692 KB
testcase_08 AC 991 ms
71,716 KB
testcase_09 AC 981 ms
73,588 KB
testcase_10 AC 894 ms
68,056 KB
testcase_11 AC 869 ms
67,184 KB
testcase_12 AC 923 ms
72,748 KB
testcase_13 AC 944 ms
75,420 KB
testcase_14 AC 867 ms
67,624 KB
testcase_15 AC 876 ms
66,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 $-=$d-$y[$_],$/;
}
print $d,$/;
0