Submission #2703295
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int ab = a + b; int bc = b + c; int ac = a + c; if(ab == c || bc == a || ac == b){ System.out.println("Yes"); } else { System.out.println("No"); } } public static void printArray(int[] array){ for(int i=0; i<array.length; i++){ if(i == array.length){ System.out.println(array[i]); } else { System.out.print(String.format("%d ", array[i])); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - Fighting over Candies |
User | tottiiiiiii |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 769 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 21844 KB |
Judge Result
Set Name | sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 94 ms | 21716 KB |
sample_02.txt | AC | 95 ms | 19284 KB |
sample_03.txt | AC | 95 ms | 21588 KB |
test_01.txt | AC | 94 ms | 21844 KB |
test_02.txt | AC | 94 ms | 18636 KB |
test_03.txt | AC | 93 ms | 19796 KB |
test_04.txt | AC | 94 ms | 16980 KB |
test_05.txt | AC | 93 ms | 21332 KB |
test_06.txt | AC | 94 ms | 19664 KB |
test_07.txt | AC | 93 ms | 21844 KB |