結果
| 問題 | No.3468 あるジャッジサーバー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-06 21:23:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 2,494 ms |
| コンパイル使用メモリ | 85,028 KB |
| 実行使用メモリ | 60,300 KB |
| 最終ジャッジ日時 | 2026-03-06 21:23:40 |
| 合計ジャッジ時間 | 1,946 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
N=int(input())
T=list(map(int,input().split()))
S=list(map(int,input().split()))
ans=0
i=0
end=-0.1
for s in S:
if end<s:
ans+=1
end=s+T[i]-0.1
i+=1
print(ans)