結果

問題 No.1359 [Zelkova 3rd Tune] 四人セゾン
コンテスト
ユーザー convexineq
提出日時 2021-01-23 10:39:39
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 312 ms / 2,000 ms
+ 206µs
コード長 258 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 95 ms
コンパイル使用メモリ 80,992 KB
実行使用メモリ 156,004 KB
最終ジャッジ日時 2026-10-09 14:07:19
合計ジャッジ時間 31,689 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 75
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n,k,m = map(int,input().split())
a = sorted(map(int,input().split()))
b = sorted(map(int,input().split()))
c = sorted(map(int,input().split()))
d = sorted(map(int,input().split()))
v = 0
for lst in zip(a,b,c,d):
    v += pow(max(lst)-min(lst),k,m)
print(v%m)
0