⌘K
Flycodx

NSP Scholarship Equal Distribution System

NSP Scholarship Equal Distribution System

EasyArrays100% accepted

A Kolkata college receives a National Scholarship Portal (NSP) grant of amount M to distribute equally among top K performing students. Given student merit scores array, identify top K students and calculate equal scholarship amount each will receive.

Approach

Given array of N merit scores, grant amount M, and count K, find per-student scholarship.

Input

scores=[85,92,78,95,88] total_grant=50000 K=3

Output

16666
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