結果
| 問題 | No.949 飲酒プログラミングコンテスト |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-19 14:24:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 63,104 KB |
| 最終ジャッジ日時 | 2026-05-19 14:25:02 |
| 合計ジャッジ時間 | 3,935 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 WA * 19 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
d=list(map(int,input().split()))
d.sort(reverse=True);ans=0
ans=0;i,j,l=0,0,0;c=a[0]+b[0]
for _ in range(n):
if a[i]-a[i+1]>b[j]-b[j+1]:
c-=b[j]-b[j+1];j+=1
else:
c-=a[i]-a[i+1];i+=1
while l<n and d[l]>c:
l+=1
if l>=n:
break
ans+=1;l+=1
print(ans)