Submission
# | When | Author | Problem | Language | CPU | Memory | |
---|---|---|---|---|---|---|---|
5889 | 2022-08-20 11:50:48 | ewu_battle22u_79 | Max Number | Java | 96 ms | 36760 kb | Runtime Error - 1 |
Source Code
package javaapplication30; import java.util.Scanner; public class JavaApplication30 { public static void main(String[] args) { int a,i; long b,c,d; Scanner input=new Scanner(System.in); a=input.nextInt(); for(i=0;i<a;i++) { b=input.nextLong(); c=input.nextLong(); d=input.nextLong(); if(b>=c && b>=d) { System.out.println(b); } else if(c>=b && c>=d) { System.out.println(c); } else if(d>=b && d>=c) { System.out.println(d); } } } }