Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class Solution {
- public static void main(String[] args) throws IOException {
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- String read = br.readLine();
- String [] parsed = read.split(" ");
- int max = 0;
- for(int i=0;i<parsed.length;i++) {
- int tmp = Integer.parseInt(parsed[i]);
- if(tmp>max) {
- max = tmp;
- }
- }
- System.out.println(max);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement