Submission #1355342
Source Code Expand
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input =new BufferedReader (new InputStreamReader (System.in)); String str = input.readLine( ); String[] list = str.split(" "); double n = Double.parseDouble(list[0]); double m = Double.parseDouble(list[1]); n = n % 12; double hour = (n * 60 + m) / 2; double minute = m * 6; double answer = hour - minute; if(answer < 0){ answer = -answer; } if(answer > 180){ answer = 360 - answer; } System.out.println(answer); } }
Submission Info
Submission Time | |
---|---|
Task | A - 勝率計算 |
User | unirita51 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 679 Byte |
Status | WA |
Exec Time | 80 ms |
Memory | 21332 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt |
All | 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0.txt | WA | 72 ms | 19284 KB |
1.txt | WA | 70 ms | 19156 KB |
10.txt | WA | 79 ms | 19284 KB |
11.txt | WA | 73 ms | 18132 KB |
12.txt | WA | 71 ms | 19156 KB |
13.txt | WA | 71 ms | 19156 KB |
14.txt | WA | 76 ms | 20564 KB |
15.txt | WA | 72 ms | 18516 KB |
16.txt | WA | 72 ms | 18260 KB |
17.txt | WA | 70 ms | 19412 KB |
18.txt | WA | 69 ms | 21332 KB |
19.txt | WA | 70 ms | 18900 KB |
2.txt | WA | 71 ms | 17492 KB |
20.txt | WA | 72 ms | 20948 KB |
21.txt | WA | 72 ms | 18132 KB |
22.txt | WA | 71 ms | 17108 KB |
23.txt | WA | 72 ms | 21076 KB |
24.txt | WA | 70 ms | 21076 KB |
25.txt | WA | 80 ms | 18260 KB |
26.txt | WA | 72 ms | 19668 KB |
27.txt | WA | 71 ms | 19156 KB |
28.txt | WA | 72 ms | 20948 KB |
29.txt | WA | 73 ms | 19156 KB |
3.txt | WA | 72 ms | 19156 KB |
4.txt | WA | 73 ms | 18772 KB |
5.txt | WA | 76 ms | 21076 KB |
6.txt | WA | 70 ms | 21204 KB |
7.txt | WA | 71 ms | 20180 KB |
8.txt | WA | 70 ms | 19156 KB |
9.txt | WA | 72 ms | 19280 KB |
subtask0_sample_01.txt | WA | 71 ms | 16980 KB |
subtask0_sample_02.txt | WA | 72 ms | 19156 KB |
subtask0_sample_03.txt | WA | 70 ms | 20180 KB |