結果

問題 No.752 mod数列
ユーザー kimiyukikimiyuki
提出日時 2018-11-16 23:23:57
言語 Perl
(5.38.2)
結果
AC  
実行時間 665 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 101,128 KB
最終ジャッジ日時 2023-08-26 01:36:52
合計ジャッジ時間 10,977 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
7,136 KB
testcase_01 AC 9 ms
7,036 KB
testcase_02 AC 6 ms
6,204 KB
testcase_03 AC 5 ms
5,716 KB
testcase_04 AC 4 ms
5,092 KB
testcase_05 AC 9 ms
7,116 KB
testcase_06 AC 7 ms
6,316 KB
testcase_07 AC 9 ms
6,992 KB
testcase_08 AC 9 ms
7,252 KB
testcase_09 AC 8 ms
6,772 KB
testcase_10 AC 179 ms
63,548 KB
testcase_11 AC 79 ms
30,908 KB
testcase_12 AC 147 ms
53,868 KB
testcase_13 AC 112 ms
42,052 KB
testcase_14 AC 179 ms
64,512 KB
testcase_15 AC 172 ms
19,640 KB
testcase_16 AC 355 ms
39,116 KB
testcase_17 AC 644 ms
101,128 KB
testcase_18 AC 327 ms
26,172 KB
testcase_19 AC 381 ms
30,052 KB
testcase_20 AC 526 ms
45,932 KB
testcase_21 AC 527 ms
44,816 KB
testcase_22 AC 522 ms
43,352 KB
testcase_23 AC 535 ms
47,344 KB
testcase_24 AC 526 ms
43,820 KB
testcase_25 AC 364 ms
88,276 KB
testcase_26 AC 592 ms
100,508 KB
testcase_27 AC 432 ms
79,788 KB
testcase_28 AC 500 ms
65,256 KB
testcase_29 AC 511 ms
70,716 KB
testcase_30 AC 665 ms
89,100 KB
testcase_31 AC 3 ms
4,700 KB
testcase_32 AC 3 ms
4,712 KB
testcase_33 AC 139 ms
49,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::M" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

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