結果

問題 No.752 mod数列
ユーザー kotatsugamekotatsugame
提出日時 2018-11-16 23:13:01
言語 Perl
(5.38.2)
結果
AC  
実行時間 667 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 5,380 KB
実行使用メモリ 103,468 KB
最終ジャッジ日時 2023-08-26 01:34:11
合計ジャッジ時間 11,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
7,056 KB
testcase_01 AC 10 ms
7,116 KB
testcase_02 AC 8 ms
6,484 KB
testcase_03 AC 6 ms
5,640 KB
testcase_04 AC 4 ms
5,244 KB
testcase_05 AC 9 ms
7,080 KB
testcase_06 AC 7 ms
6,408 KB
testcase_07 AC 9 ms
7,196 KB
testcase_08 AC 10 ms
7,148 KB
testcase_09 AC 9 ms
6,848 KB
testcase_10 AC 186 ms
65,248 KB
testcase_11 AC 85 ms
31,812 KB
testcase_12 AC 154 ms
55,256 KB
testcase_13 AC 118 ms
43,024 KB
testcase_14 AC 190 ms
66,460 KB
testcase_15 AC 171 ms
19,776 KB
testcase_16 AC 377 ms
39,852 KB
testcase_17 AC 657 ms
103,468 KB
testcase_18 AC 333 ms
26,000 KB
testcase_19 AC 398 ms
30,188 KB
testcase_20 AC 548 ms
46,208 KB
testcase_21 AC 516 ms
44,920 KB
testcase_22 AC 507 ms
43,492 KB
testcase_23 AC 539 ms
47,484 KB
testcase_24 AC 524 ms
44,008 KB
testcase_25 AC 373 ms
90,360 KB
testcase_26 AC 600 ms
102,764 KB
testcase_27 AC 433 ms
81,660 KB
testcase_28 AC 500 ms
66,212 KB
testcase_29 AC 506 ms
72,152 KB
testcase_30 AC 667 ms
90,580 KB
testcase_31 AC 2 ms
4,640 KB
testcase_32 AC 3 ms
4,824 KB
testcase_33 AC 144 ms
51,464 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|0
}
$%=<>;
print-F($`-/ /)+F($'),$/for<>
0