結果
問題 |
No.268 ラッピング(Easy)
|
ユーザー |
|
提出日時 | 2023-07-15 20:11:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 139 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 53,372 KB |
最終ジャッジ日時 | 2024-09-17 04:53:34 |
合計ジャッジ時間 | 1,709 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
P = sorted(map(int, input().split())) Q = sorted(map(int, input().split())) print((sum(P) * sum(Q) - sum(p * q for p, q in zip(P, Q))) * 2)