結果

問題 No.2394 部分和乗総和
ユーザー tailstails
提出日時 2023-07-31 15:54:38
言語 cLay
(20240714-1)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 106 bytes
コンパイル時間 9,193 ms
コンパイル使用メモリ 221,172 KB
実行使用メモリ 12,968 KB
最終ジャッジ日時 2024-10-10 09:11:59
合計ジャッジ時間 10,781 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
10,508 KB
testcase_01 AC 9 ms
10,816 KB
testcase_02 AC 8 ms
9,964 KB
testcase_03 AC 9 ms
9,548 KB
testcase_04 AC 9 ms
9,800 KB
testcase_05 AC 9 ms
11,844 KB
testcase_06 AC 8 ms
9,904 KB
testcase_07 AC 9 ms
9,804 KB
testcase_08 AC 9 ms
9,752 KB
testcase_09 AC 8 ms
9,796 KB
testcase_10 AC 9 ms
9,928 KB
testcase_11 AC 10 ms
12,092 KB
testcase_12 AC 8 ms
9,864 KB
testcase_13 AC 13 ms
10,036 KB
testcase_14 AC 25 ms
10,184 KB
testcase_15 AC 28 ms
10,764 KB
testcase_16 AC 37 ms
10,564 KB
testcase_17 AC 64 ms
12,968 KB
testcase_18 AC 64 ms
11,968 KB
testcase_19 AC 60 ms
10,696 KB
testcase_20 AC 54 ms
10,940 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