Submission #163944
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int M; if(m < 100){ System.out.println(00); } else if (m < 1000){ M = m / 100; System.out.println("0"+M); } else if(m <= 5000){ M = m / 100; System.out.println(M); } else if(m <= 3000){ M = m / 1000 + 50; System.out.println(M); } else if(m <= 7000){ M = (m / 1000 - 30) / 5 + 80; System.out.println(M); } else{ System.out.println(89); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | violineet |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 723 Byte |
Status | WA |
Exec Time | 461 ms |
Memory | 22748 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 | WA | 461 ms | 22732 KB |
00_sample_02.txt | AC | 428 ms | 22748 KB |
00_sample_03.txt | WA | 431 ms | 22744 KB |
test_01.txt | AC | 424 ms | 22612 KB |
test_02.txt | WA | 436 ms | 22620 KB |
test_03.txt | WA | 427 ms | 22744 KB |
test_04.txt | WA | 451 ms | 22740 KB |
test_05.txt | WA | 428 ms | 22748 KB |
test_06.txt | WA | 425 ms | 22616 KB |
test_07.txt | WA | 427 ms | 22748 KB |
test_08.txt | WA | 432 ms | 22744 KB |
test_09.txt | WA | 438 ms | 22608 KB |
test_10.txt | WA | 431 ms | 22740 KB |
test_11.txt | WA | 431 ms | 22736 KB |
test_12.txt | WA | 427 ms | 22620 KB |
test_13.txt | WA | 441 ms | 22740 KB |
test_14.txt | WA | 442 ms | 22612 KB |
test_15.txt | WA | 444 ms | 22744 KB |
test_16.txt | WA | 446 ms | 22748 KB |
test_17.txt | WA | 440 ms | 22748 KB |