結果

問題 No.752 mod数列
ユーザー kotatsugamekotatsugame
提出日時 2018-11-16 23:09:14
言語 Perl
(5.38.2)
結果
AC  
実行時間 471 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 84,860 KB
最終ジャッジ日時 2023-08-26 01:33:37
合計ジャッジ時間 8,680 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
6,444 KB
testcase_01 AC 6 ms
6,432 KB
testcase_02 AC 4 ms
5,996 KB
testcase_03 AC 4 ms
5,232 KB
testcase_04 AC 3 ms
4,988 KB
testcase_05 AC 6 ms
6,336 KB
testcase_06 AC 5 ms
5,836 KB
testcase_07 AC 6 ms
6,500 KB
testcase_08 AC 6 ms
6,672 KB
testcase_09 AC 5 ms
6,400 KB
testcase_10 AC 110 ms
50,256 KB
testcase_11 AC 50 ms
25,056 KB
testcase_12 AC 90 ms
42,968 KB
testcase_13 AC 66 ms
33,544 KB
testcase_14 AC 108 ms
50,856 KB
testcase_15 AC 152 ms
19,736 KB
testcase_16 AC 255 ms
34,976 KB
testcase_17 AC 458 ms
84,860 KB
testcase_18 AC 255 ms
25,772 KB
testcase_19 AC 293 ms
29,176 KB
testcase_20 AC 369 ms
44,312 KB
testcase_21 AC 373 ms
43,312 KB
testcase_22 AC 370 ms
42,060 KB
testcase_23 AC 385 ms
45,488 KB
testcase_24 AC 388 ms
42,852 KB
testcase_25 AC 249 ms
71,500 KB
testcase_26 AC 421 ms
84,056 KB
testcase_27 AC 303 ms
65,828 KB
testcase_28 AC 339 ms
56,988 KB
testcase_29 AC 366 ms
60,960 KB
testcase_30 AC 471 ms
77,896 KB
testcase_31 AC 2 ms
4,636 KB
testcase_32 AC 3 ms
4,812 KB
testcase_33 AC 85 ms
39,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use integer;
$M{0}=0;
sub F{
	my$n=pop;
	my$m;
	$M{$n}//=F($m=$%/($%/$n+1))+($%%$n+$%%($m+1))*($n-$m)/2
}
$%=<>;
print-F($`-/ /)+F($'),$/for<>
0