結果

問題 No.555 世界史のレポート
ユーザー %20%20
提出日時 2017-08-26 19:15:45
言語 Perl
(5.38.2)
結果
AC  
実行時間 485 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-23 17:15:12
合計ジャッジ時間 4,472 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
6,816 KB
testcase_01 AC 6 ms
6,940 KB
testcase_02 AC 7 ms
6,944 KB
testcase_03 AC 8 ms
6,944 KB
testcase_04 AC 9 ms
6,944 KB
testcase_05 AC 10 ms
6,940 KB
testcase_06 AC 11 ms
6,940 KB
testcase_07 AC 11 ms
6,940 KB
testcase_08 AC 11 ms
6,944 KB
testcase_09 AC 12 ms
6,944 KB
testcase_10 AC 324 ms
10,496 KB
testcase_11 AC 364 ms
11,008 KB
testcase_12 AC 314 ms
10,496 KB
testcase_13 AC 285 ms
9,984 KB
testcase_14 AC 356 ms
10,880 KB
testcase_15 AC 358 ms
11,008 KB
testcase_16 AC 307 ms
10,240 KB
testcase_17 AC 338 ms
10,624 KB
testcase_18 AC 367 ms
11,136 KB
testcase_19 AC 485 ms
12,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$N=<>;
($C,$V)=glob<>;
for$i(1..$N-1){
	for($j=1;$i+$j*$i<=2*$N;++$j){
		$d[$i+$j*$i]-=$-=($d[$i+$j*$i]||=1e9)-($d[$i]+$C+$V*$j);
	}
}
$%=1e9;
$%-=$-=$%-$d[$_]for$N..2*$N;
print$%
0