結果
問題 | No.949 飲酒プログラミングコンテスト |
ユーザー |
![]() |
提出日時 | 2019-12-12 19:00:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-06-25 12:36:47 |
合計ジャッジ時間 | 2,269 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 WA * 19 |
ソースコード
N = int(input()) A = [int(i)for i in input().split()] B = [int(i)for i in input().split()] D = [int(i)for i in input().split()] D.sort(reverse=True) A.append(0) B.append(0) nowa = A.pop(0) nowb = B.pop(0) ans = 0 def kousin(): global nowa,nowb,A,B if nowa -A[0] < nowb -B[0]: nowa = A.pop(0) else: nowb = B.pop(0) return False kousin() for i in D: if i <= nowa +nowb: ans += 1 kousin() print(ans)