⌘K
Flycodx

Kabaddi Scoring Bonus Tracker

Kabaddi Scoring Bonus Tracker

MediumArrays0% accepted

Arjun works for Pro Kabaddi League's analytics team in Mumbai, calculating final team scores. Each team earns a bonus multiplier if more than 50% of their raids are successful. Scoring rule: total = (sum of raid points + sum of tackle points), multiplied by 1.5 when MORE than 50% of raids scored points (raid value > 0). Round to 1 decimal.

Approach

Given arrays of raid points and tackle points, calculate total score with 1.5x multiplier if successful raids exceed 50% of total raids.

Input

10 20 0 15 5 5 0 3

Output

87.0
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