結果
問題 |
No.596 郵便配達
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:12:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 593 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 81,968 KB |
実行使用メモリ | 183,540 KB |
最終ジャッジ日時 | 2025-06-12 19:12:49 |
合計ジャッジ時間 | 3,363 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 16 |
ソースコード
import sys def main(): input = sys.stdin.read data = input().split() idx = 0 N = int(data[idx]) idx += 1 M = int(data[idx]) idx += 1 max_post = -1 max_dest = -1 for _ in range(M): x = int(data[idx]) idx += 1 d = int(data[idx]) idx += 1 if x > max_post: max_post = x for __ in range(d): y = int(data[idx]) idx += 1 if y > max_dest: max_dest = y print(max_post + max_dest) if __name__ == '__main__': main()