allowed, blocked = [], []
for row in data['jobs']:
    (allowed if row['chars'] <= data['max_input_chars'] and len(allowed) < data['max_calls'] else blocked).append(row['id'])
check('发请求之前允许J1/J3并拦截J2/J4', allowed == ['J1', 'J3'] and blocked == ['J2', 'J4'])
result = {'allowed': allowed, 'blocked': blocked, 'budget_type': 'character and call count; not exact token billing', 'explanation': output}
