-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPODIUM.java
More file actions
29 lines (25 loc) · 907 Bytes
/
PODIUM.java
File metadata and controls
29 lines (25 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Problem
Chef got his dream seat in F1 and secured a 3^{rd}3
rd
place in his debut race. He now wants to know the time gap between him and the winner of the race.
You are his chief engineer and you only know the time gap between Chef and the runner up of the race, given as AA seconds, and the time gap between the runner up and the winner of the race, given as BB seconds.
Please calculate and inform Chef about the time gap between him and the winner of the race.
*/
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t-->0){
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println(a+b);
}
// your code goes here
}
}