結果

問題 No.2178 Payable Magic Items
ユーザー 👑 p-adicp-adic
提出日時 2024-02-14 21:31:21
言語 cLay
(20240104-1)
結果
AC  
実行時間 3,271 ms / 4,000 ms
コード長 159 bytes
コンパイル時間 2,480 ms
コンパイル使用メモリ 178,516 KB
実行使用メモリ 9,280 KB
最終ジャッジ日時 2024-02-14 21:31:48
合計ジャッジ時間 26,288 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,616 KB
testcase_01 AC 3 ms
7,616 KB
testcase_02 AC 3 ms
7,616 KB
testcase_03 AC 2 ms
7,616 KB
testcase_04 AC 3 ms
7,616 KB
testcase_05 AC 2 ms
7,616 KB
testcase_06 AC 3 ms
7,616 KB
testcase_07 AC 2 ms
7,616 KB
testcase_08 AC 2 ms
7,616 KB
testcase_09 AC 3 ms
7,616 KB
testcase_10 AC 3 ms
7,616 KB
testcase_11 AC 3,271 ms
9,280 KB
testcase_12 AC 3,240 ms
9,280 KB
testcase_13 AC 3,236 ms
9,280 KB
testcase_14 AC 3,243 ms
9,280 KB
testcase_15 AC 3,203 ms
9,280 KB
testcase_16 AC 3,264 ms
9,280 KB
testcase_17 AC 335 ms
8,256 KB
testcase_18 AC 3 ms
7,616 KB
testcase_19 AC 186 ms
8,000 KB
testcase_20 AC 3 ms
7,616 KB
testcase_21 AC 3 ms
7,616 KB
testcase_22 AC 4 ms
7,616 KB
testcase_23 AC 3 ms
7,616 KB
testcase_24 AC 1,600 ms
9,024 KB
testcase_25 AC 60 ms
7,744 KB
testcase_26 AC 352 ms
8,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

uint@N,@K,c[5]{0,1,3,7,15},S[N]{},a=0,r;rep[S](s,N){string@T;rep(k,K)(s<<=4)|=c[T[k]-48];}sort(S,S+N);rep[S,i](s,N){r=0;rep(j,i+1,N)r|=(s&S[j])==s;a+=r;}wt(a);
0