結果

問題 No.633 バスの運賃
ユーザー %20%20
提出日時 2018-01-21 19:45:17
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 87 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 5,492 KB
実行使用メモリ 4,680 KB
最終ジャッジ日時 2023-08-26 20:01:25
合計ジャッジ時間 714 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,576 KB
testcase_01 AC 2 ms
4,596 KB
testcase_02 AC 3 ms
4,492 KB
testcase_03 AC 3 ms
4,612 KB
testcase_04 AC 2 ms
4,656 KB
testcase_05 AC 2 ms
4,576 KB
testcase_06 AC 3 ms
4,680 KB
testcase_07 AC 2 ms
4,672 KB
testcase_08 AC 2 ms
4,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
@a=(0,map<>+0,1..$n-1);
for(1..$n){
	<>=~$";
	$%+=$'-$`;
	$\+=$a[$_]*$%
}
print
0