結果
問題 | No.2178 Payable Magic Items |
ユーザー | tails |
提出日時 | 2023-01-06 22:21:35 |
言語 | cLay (20240104-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 2,695 ms |
コンパイル使用メモリ | 176,036 KB |
実行使用メモリ | 12,868 KB |
最終ジャッジ日時 | 2024-05-08 13:36:47 |
合計ジャッジ時間 | 4,559 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 7 ms
8,064 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 34 ms
8,960 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 38 ms
9,088 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | AC | 10 ms
12,356 KB |
testcase_21 | AC | 8 ms
8,064 KB |
testcase_22 | WA | - |
testcase_23 | AC | 7 ms
8,064 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 13 ms
8,704 KB |
ソースコード
ll d[390625]; ll es[2d5]; ll@n,@k; rep(i,n){ ll e=0; string@s; rep(j,k){ e=e*5+(s[j]-'0'); } es[i]=e; d[e]+=1; } ll m=1; rep(o,8){ rrep(i,5**(7-o)){ rrep(j,m*4){ d[i*m*5+j]+=d[i*m*5+j+m]; } } m*=5; } ll z=0; rep(i,n){ ll e=es[i]; if(d[e]>1){ z+=1; } } wt(z);