Submission #288553
Source Code Expand
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h1 = sc.nextInt(); int h2 = sc.nextInt(); int h3 = 0; if ( h1 < h2){ h3= h2 - h1; System.out.println(h3); }else{ h3 = h1 -h2; System.out.println(h3); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | yamadadayo |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 319 Byte |
Status | WA |
Exec Time | 478 ms |
Memory | 23460 KB |
Judge Result
Set Name | all | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 460 ms | 23344 KB |
00_sample_02.txt | AC | 465 ms | 23436 KB |
00_sample_03.txt | WA | 445 ms | 23260 KB |
test_01.txt | AC | 459 ms | 23252 KB |
test_02.txt | AC | 455 ms | 23360 KB |
test_03.txt | WA | 460 ms | 23396 KB |
test_04.txt | AC | 448 ms | 23424 KB |
test_05.txt | AC | 443 ms | 23392 KB |
test_06.txt | WA | 441 ms | 23328 KB |
test_07.txt | WA | 443 ms | 23360 KB |
test_08.txt | WA | 469 ms | 23296 KB |
test_09.txt | WA | 452 ms | 23252 KB |
test_10.txt | WA | 459 ms | 23404 KB |
test_11.txt | WA | 456 ms | 23264 KB |
test_12.txt | AC | 463 ms | 23376 KB |
test_13.txt | WA | 457 ms | 23356 KB |
test_14.txt | AC | 478 ms | 23392 KB |
test_15.txt | WA | 463 ms | 23344 KB |
test_16.txt | WA | 452 ms | 23356 KB |
test_17.txt | AC | 459 ms | 23460 KB |