-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolveMeFirst.java
More file actions
38 lines (31 loc) · 931 Bytes
/
Copy pathSolveMeFirst.java
File metadata and controls
38 lines (31 loc) · 931 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
30
31
32
33
34
35
36
37
38
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/*
The purpose of this super super simple challenge is to familiarize
oneself with reading input from stdin (the standard input stream)
and writing output to stdout (the standard output stream)
Input Format:
Code that reads input from stdin is provided for you in the editor.
There are lines of input, and each line contains a single integer.
Output Format:
Code that prints the sum calculated and returned by solveMeFirst
is provided for you in the editor.
*/
public class Solution {
static int solveMeFirst(int a, int b) {
return a+b;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a;
a = in.nextInt();
int b;
b = in.nextInt();
int sum;
sum = solveMeFirst(a, b);
System.out.println(sum);
}
}