Submission #2858233
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int d = scan.nextInt(); int L = a+b; int R = c+d; if (L>R) { System.out.println("Left"); } if (L<R) { System.out.println("Right"); } if (L==R) { System.out.println("Balanced"); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Libra |
User | sarashin |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 441 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 22612 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt, s3.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 93 ms | 21844 KB |
02.txt | AC | 95 ms | 21332 KB |
03.txt | AC | 92 ms | 19668 KB |
04.txt | AC | 94 ms | 22612 KB |
05.txt | AC | 93 ms | 21716 KB |
06.txt | AC | 95 ms | 19412 KB |
07.txt | AC | 92 ms | 19924 KB |
08.txt | AC | 94 ms | 19924 KB |
09.txt | AC | 94 ms | 18900 KB |
s1.txt | AC | 92 ms | 20692 KB |
s2.txt | AC | 95 ms | 19796 KB |
s3.txt | AC | 93 ms | 21844 KB |