結果
問題 |
No.1965 Heavier
|
ユーザー |
👑 ![]() |
提出日時 | 2022-06-03 22:37:14 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 82,520 KB |
実行使用メモリ | 131,468 KB |
最終ジャッジ日時 | 2024-09-21 03:02:18 |
合計ジャッジ時間 | 4,635 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 18 |
ソースコード
N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) X=0 r=0 for l in range(N): r=max(r,l+1) while r<N and A[r]-A[l]>abs(B[r]-B[l]): r+=1 X+=r-l-1 print(X)