⌘K
Flycodx

AutoRickshaw Daily Fare Revenue

AutoRickshaw Daily Fare Revenue

EasyArrays100% accepted

Priya manages an autorickshaw fleet in Bangalore and tracks daily trip fares (120, 150, 95, 130, 110 rupees). To calculate total daily revenue, she sums all trip collections from her fleet.

Approach

Given an array of N individual trip fares, calculate total daily revenue by summing all fare amounts.

Input

5 120 150 95 130 110

Output

605
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
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3