結果
| 問題 |
No.2709 1975 Powers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-01 20:55:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 358 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,168 KB |
| 最終ジャッジ日時 | 2024-11-01 20:55:58 |
| 合計ジャッジ時間 | 4,259 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 24 |
ソースコード
import itertools N,P,Q=map(int,input().split()) A=list(map(int,input().split())) # 200C4=64684950通り count=0 for a in itertools.combinations(A,4): a=sorted(a) if (10**a[0]+9**a[1]+7**a[2]+5**a[3])%P==Q: count+=1 print(count)