結果

問題 No.752 mod数列
ユーザー kimiyukikimiyuki
提出日時 2018-11-16 23:20:48
言語 Perl
(5.38.2)
結果
AC  
実行時間 648 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 7,108 KB
実行使用メモリ 101,280 KB
最終ジャッジ日時 2023-08-26 01:36:35
合計ジャッジ時間 10,777 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
6,888 KB
testcase_01 AC 9 ms
7,164 KB
testcase_02 AC 7 ms
6,164 KB
testcase_03 AC 4 ms
5,652 KB
testcase_04 AC 3 ms
5,200 KB
testcase_05 AC 9 ms
6,920 KB
testcase_06 AC 6 ms
6,180 KB
testcase_07 AC 9 ms
7,028 KB
testcase_08 AC 9 ms
7,140 KB
testcase_09 AC 8 ms
6,844 KB
testcase_10 AC 172 ms
63,536 KB
testcase_11 AC 77 ms
30,952 KB
testcase_12 AC 143 ms
53,892 KB
testcase_13 AC 110 ms
42,004 KB
testcase_14 AC 176 ms
64,488 KB
testcase_15 AC 170 ms
19,696 KB
testcase_16 AC 328 ms
39,328 KB
testcase_17 AC 625 ms
101,280 KB
testcase_18 AC 326 ms
26,292 KB
testcase_19 AC 367 ms
30,028 KB
testcase_20 AC 501 ms
45,804 KB
testcase_21 AC 500 ms
44,984 KB
testcase_22 AC 491 ms
43,348 KB
testcase_23 AC 527 ms
47,492 KB
testcase_24 AC 523 ms
43,880 KB
testcase_25 AC 353 ms
88,040 KB
testcase_26 AC 582 ms
100,580 KB
testcase_27 AC 417 ms
79,808 KB
testcase_28 AC 478 ms
65,344 KB
testcase_29 AC 492 ms
70,884 KB
testcase_30 AC 648 ms
89,076 KB
testcase_31 AC 2 ms
4,716 KB
testcase_32 AC 3 ms
4,864 KB
testcase_33 AC 134 ms
50,004 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}//=$n&&(F($m=$%/($%/$n+1|0)|0)+($%%$n+$%%($m+1))*($n-$m)/2)
}
$%=<>;
print-F($`-/ /)+F($'),$/for<>
0