結果

問題 No.752 mod数列
ユーザー kotatsugamekotatsugame
提出日時 2018-11-16 23:15:41
言語 Perl
(5.38.2)
結果
AC  
実行時間 631 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 101,316 KB
最終ジャッジ日時 2023-08-26 01:36:03
合計ジャッジ時間 10,890 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
7,004 KB
testcase_01 AC 9 ms
7,140 KB
testcase_02 AC 7 ms
6,184 KB
testcase_03 AC 6 ms
5,648 KB
testcase_04 AC 4 ms
5,164 KB
testcase_05 AC 9 ms
7,076 KB
testcase_06 AC 7 ms
6,336 KB
testcase_07 AC 9 ms
6,964 KB
testcase_08 AC 9 ms
7,240 KB
testcase_09 AC 8 ms
6,976 KB
testcase_10 AC 175 ms
63,688 KB
testcase_11 AC 78 ms
30,892 KB
testcase_12 AC 143 ms
53,820 KB
testcase_13 AC 108 ms
41,948 KB
testcase_14 AC 176 ms
64,488 KB
testcase_15 AC 169 ms
19,576 KB
testcase_16 AC 331 ms
39,076 KB
testcase_17 AC 618 ms
101,316 KB
testcase_18 AC 318 ms
26,184 KB
testcase_19 AC 366 ms
30,172 KB
testcase_20 AC 497 ms
45,828 KB
testcase_21 AC 491 ms
44,868 KB
testcase_22 AC 484 ms
43,264 KB
testcase_23 AC 519 ms
47,424 KB
testcase_24 AC 514 ms
43,940 KB
testcase_25 AC 348 ms
88,004 KB
testcase_26 AC 555 ms
100,404 KB
testcase_27 AC 409 ms
79,792 KB
testcase_28 AC 474 ms
65,304 KB
testcase_29 AC 491 ms
70,784 KB
testcase_30 AC 631 ms
89,004 KB
testcase_31 AC 3 ms
4,728 KB
testcase_32 AC 3 ms
4,828 KB
testcase_33 AC 133 ms
49,928 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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