Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5.  
  6. public class Solution {
  7.     public static void main(String[] args) throws IOException {
  8.         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  9.         String read = br.readLine();
  10.         String [] parsed = read.split(" ");
  11.         int max = 0;
  12.         for(int i=0;i<parsed.length;i++) {
  13.             int tmp = Integer.parseInt(parsed[i]);
  14.             if(tmp>max) {
  15.                 max = tmp;
  16.             }
  17.         }
  18.         System.out.println(max);
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement