結果

問題 No.2394 部分和乗総和
ユーザー tailstails
提出日時 2023-07-31 15:54:38
言語 cLay
(20240104-1)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 106 bytes
コンパイル時間 9,354 ms
コンパイル使用メモリ 219,920 KB
実行使用メモリ 13,096 KB
最終ジャッジ日時 2024-04-18 15:57:13
合計ジャッジ時間 10,446 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
11,844 KB
testcase_01 AC 9 ms
10,192 KB
testcase_02 AC 8 ms
9,800 KB
testcase_03 AC 9 ms
9,800 KB
testcase_04 AC 9 ms
11,844 KB
testcase_05 AC 8 ms
9,676 KB
testcase_06 AC 9 ms
9,800 KB
testcase_07 AC 9 ms
10,612 KB
testcase_08 AC 9 ms
9,800 KB
testcase_09 AC 9 ms
11,716 KB
testcase_10 AC 9 ms
11,716 KB
testcase_11 AC 8 ms
9,544 KB
testcase_12 AC 9 ms
9,544 KB
testcase_13 AC 14 ms
11,720 KB
testcase_14 AC 27 ms
10,312 KB
testcase_15 AC 31 ms
12,528 KB
testcase_16 AC 39 ms
11,844 KB
testcase_17 AC 68 ms
10,824 KB
testcase_18 AC 67 ms
13,096 KB
testcase_19 AC 61 ms
10,828 KB
testcase_20 AC 56 ms
10,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n;
ull@m,@b,z=1;
m%=b;
ull p=EulerPhi(b);
rep(i,n){
	ull@a;
	z=z*(powmod(m,(a-1)%p+1,b)+1)%b;
}
wt(z);
0