Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
16858 | 2024-04-19 13:44:10 | dnt | Max Number | Java | 201 ms | 47296 kb | Accepted |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 102 ms | 38732 kb | Accepted | ||||||||
2 | 104 ms | 42396 kb | Accepted | ||||||||
3 | 107 ms | 42092 kb | Accepted | ||||||||
4 | 105 ms | 42228 kb | Accepted | ||||||||
5 | 101 ms | 38928 kb | Accepted | ||||||||
6 | 102 ms | 38220 kb | Accepted | ||||||||
7 | 201 ms | 47296 kb | Accepted | ||||||||
Source Code
program.java
import java.util.Scanner; public class Main { int testCases = sc.nextInt(); // Read the number of test cases for (int i = 0; i < testCases; i++) { int a = sc.nextInt(); // Read the first number int b = sc.nextInt(); // Read the second number int c = sc.nextInt(); // Read the third number // Find the maximum among a, b, and c } } }