結果

問題 No.1966 Median of Divisors
ユーザー tailstails
提出日時 2022-06-03 21:35:25
言語 cLay
(20231016-1)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 94 bytes
コンパイル時間 4,206 ms
コンパイル使用メモリ 176,248 KB
実行使用メモリ 5,648 KB
最終ジャッジ日時 2023-10-21 01:40:19
合計ジャッジ時間 5,691 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 74 ms
5,616 KB
testcase_05 AC 92 ms
5,636 KB
testcase_06 AC 87 ms
5,648 KB
testcase_07 AC 10 ms
4,348 KB
testcase_08 AC 58 ms
5,180 KB
testcase_09 AC 71 ms
5,564 KB
testcase_10 AC 71 ms
5,568 KB
testcase_11 AC 34 ms
4,684 KB
testcase_12 AC 46 ms
5,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	Mint@n;ll@m;
	Mint x=n**m;
	Mint y=n**(m/2);
	wt(x*(x+1)/2-y*(y+1)*(2y+1)/6);
}
0