結果
問題 |
No.1359 [Zelkova 3rd Tune] 四人セゾン
|
ユーザー |
|
提出日時 | 2025-03-15 19:47:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 528 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 26,668 KB |
最終ジャッジ日時 | 2025-03-15 19:47:29 |
合計ジャッジ時間 | 12,852 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | -- * 75 |
ソースコード
n, k, m = map(int, input().split()) p = list(map(int, input().split())) e = list(map(int, input().split())) a = list(map(int, input().split())) h = list(map(int, input().split())) p.sort() e.sort() a.sort() h.sort() ans = 0 for i in zip(p, e, a, h): ans += (max(i) - min(i))**k ans %= m print(ans)