UPI Payment Bank Routing Threshold
UPI Payment Bank Routing Threshold
MediumArrays100% accepted
Priya at a fintech startup routes UPI payments across different banks. Each payment incurs a 2% processing fee. She needs to identify banks that received total payments exceeding ₹1,00,000 (after deducting fees) to apply special settlement rules.
Approach
Given an array of payment amounts to banks, calculate post-fee amounts (98% of original) and find how many banks exceed ₹1,00,000 after fee deduction.
Input
n=5
threshold=100000
payments=[52000,51000,40000,30000,20000]
Output
0
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards