結果
| 問題 | No.3468 あるジャッジサーバー |
| コンテスト | |
| ユーザー |
MM
|
| 提出日時 | 2026-03-06 22:58:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 85,288 KB |
| 実行使用メモリ | 58,936 KB |
| 最終ジャッジ日時 | 2026-03-06 22:58:08 |
| 合計ジャッジ時間 | 1,573 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
N = int(input())
T = list(map(int,input().split()))
S = list(map(int,input().split()))
ans = 0
end = 0
for t,s in zip(T,S):
if s >= end:
ans += 1
end = s + t
print(ans)
MM