結果

問題 No.2709 1975 Powers
ユーザー 👑 p-adicp-adic
提出日時 2024-04-04 21:55:53
言語 cLay
(20240104-1)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 2,973 ms
コンパイル使用メモリ 180,176 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-04-04 21:55:58
合計ジャッジ時間 5,065 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 2 ms
6,548 KB
testcase_02 AC 2 ms
6,548 KB
testcase_03 AC 51 ms
6,548 KB
testcase_04 AC 83 ms
6,548 KB
testcase_05 AC 58 ms
6,548 KB
testcase_06 AC 19 ms
6,548 KB
testcase_07 AC 2 ms
6,548 KB
testcase_08 AC 18 ms
6,548 KB
testcase_09 AC 58 ms
6,548 KB
testcase_10 AC 2 ms
6,548 KB
testcase_11 AC 3 ms
6,548 KB
testcase_12 AC 6 ms
6,548 KB
testcase_13 AC 67 ms
6,548 KB
testcase_14 AC 10 ms
6,548 KB
testcase_15 AC 11 ms
6,548 KB
testcase_16 AC 46 ms
6,548 KB
testcase_17 AC 2 ms
6,548 KB
testcase_18 AC 7 ms
6,548 KB
testcase_19 AC 82 ms
6,548 KB
testcase_20 AC 2 ms
6,548 KB
testcase_21 AC 18 ms
6,548 KB
testcase_22 AC 97 ms
6,548 KB
testcase_23 AC 98 ms
6,548 KB
testcase_24 AC 97 ms
6,548 KB
testcase_25 AC 97 ms
6,548 KB
testcase_26 AC 98 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@P,@Q,@A[N],s=0;sort(A,A+N);modint q=Q,x=10,y=9,z=7,w=5,X[N][4];q.setmod(P);rep(a,N)X[a][0]=x.pw(A[a]),X[a][1]=y.pw(A[a]),X[a][2]=z.pw(A[a]),X[a][3]=w.pw(A[a]);rep(d,N)rep(c,d)rep(b,c)rep(a,b)s+=X[a][0]+X[b][1]+X[c][2]+X[d][3]==q;wt(s);
0