#K12041. Total Manual Intervention Time
Total Manual Intervention Time
Total Manual Intervention Time
You are given a list of jobs. Each job has a priority and a required manual intervention time. Your task is to compute the total manual intervention time across all jobs.
The input is provided in the following format:
Input Format:
- The first line contains a single integer \( n \), representing the number of jobs.
- The next \( n \) lines each contain two integers: the first integer is the job's priority and the second is the manual intervention time required for that job.
Output Format:
Output a single integer, which is the sum of the manual intervention times for all jobs.
Note: Although each job comes with a priority, the priority does not affect the computation, and you simply need to sum the manual times.
inputFormat
The input is read from stdin
and has the following format:
- An integer \( n \) representing the number of jobs.
- \( n \) lines follow, each containing two space-separated integers. The first integer is the job's priority and the second is its manual intervention time.
outputFormat
Output a single integer which is the total manual intervention time required for all jobs. The output should be written to stdout
.
5
1 20
2 15
1 10
3 15
2 5
65
</p>