← 返回 stripe 的题目列表KYC Conundrum
类型:online_judge
Simulate Stripe's KYC (Know Your Customer) verification process. The goal is to determine whether onboarding business accounts are VERIFIED or NOT VERIFIED based on progressively stricter criteria.
Requirements
Each business must provide the following five KYC fields: business_name, business_profile_name, full_statement_descriptor, short_statement_descriptor, url, and product_description.
An account is marked as VERIFIED only if all fields are present and non-empty.
Example Output: VERIFIED: Pawsome Pets Inc.
Additional Criteria
Part 2 — Descriptor Length Validation
A new validation rule is added: full_statement_descriptor must be between 5 and 31 characters (inclusive).
Accounts violating this rule are marked as NOT VERIFIED even if all other fields are valid.
Example Issues:
ITCS → too short
OAKRIDGE CUSTOM WOODWORKING AND FURNITURE EMPORIUM → too long
Expected Updated Output: NOT VERIFIED: Oakridge Furniture Crafters LLC
Part 3 — Generic Descriptor Blocklist
Add another layer of validation: accounts using any generic full statement descriptors are not verified.
Blocklisted descriptors include: ONLINE STORE, ECOMMERCE, RETAIL, SHOP, GENERAL MERCHANDISE
Even if all previous conditions pass, these are automatically marked as NOT VERIFIED.
Final Expected Output
VERIFIED: Pawsome Pets Inc. NOT VERIFIED: Bean Bliss Coffee Company, etc.
Example
Input
Pawsome Pets Inc.,Pets,Pawsome Descr,Pawsome,http://pawsomepets.com,Pet products
Bean Bliss Coffee Company,Coffee,COFFEE CO,COFFEE,http://beanbliss.com,Coffee products
Oakridge Furniture Crafters LLC,Furniture,OAKRIDGE CUSTOM WOODWORKING AND FURNITURE EMPORIUM,OAKRIDGE,http://oakridgefurniture.com,Furniture products
Information Technology Consulting Solutions Inc.,IT,ITCS,IT,http://itcs.com,IT solutions