結果

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

テストケース

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

ソースコード

diff #

$n=<>;
$a[$_]=<>for 1..$n-1;
<>=~$",$p+=$'-$`,$s+=$p*$a[$_]for 1..$n;
print$s;
0