結果
問題 |
No.2999 Long Long Friedrice
|
ユーザー |
|
提出日時 | 2025-02-24 21:02:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 315 ms |
コンパイル使用メモリ | 82,464 KB |
実行使用メモリ | 63,200 KB |
最終ジャッジ日時 | 2025-02-24 21:02:19 |
合計ジャッジ時間 | 4,127 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 6 |
other | AC * 33 |
ソースコード
N = int(input()) A = list(map(int,input().split())) B = list(map(int,input().split())) C = [(A[i],B[i]) for i in range(N)] C.sort() s = set() s.add(1) for a,b in C: if a in s: s.add(a + b) print(max(s))