結果
問題 | No.1359 [Zelkova 3rd Tune] 四人セゾン |
ユーザー |
|
提出日時 | 2021-01-22 21:47:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,999 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 58,772 KB |
最終ジャッジ日時 | 2024-12-27 23:45:40 |
合計ジャッジ時間 | 86,516 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 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()))res = 0for t in zip(sorted(P), sorted(E), sorted(A), sorted(H)):res += pow(max(t) - min(t), K, M)res %= Mprint(res)