結果
| 問題 | 
                            No.1359 [Zelkova 3rd Tune] 四人セゾン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             convexineq
                         | 
                    
| 提出日時 | 2021-01-23 10:39:39 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 632 ms / 2,000 ms | 
| コード長 | 258 bytes | 
| コンパイル時間 | 409 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 145,816 KB | 
| 最終ジャッジ日時 | 2024-12-30 06:15:39 | 
| 合計ジャッジ時間 | 43,713 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 75 | 
ソースコード
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)
            
            
            
        
            
convexineq