Submission #1241384
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); double X = scan.nextDouble(); if(X<=6){ System.out.println(0); }else if(X<=11){ System.out.println(2); }else{ System.out.println(Math.ceil(X/11*2)); } } }
Submission Info
Submission Time | |
---|---|
Task | C - X: Yet Another Die Game |
User | curi |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 425 Byte |
Status | WA |
Exec Time | 136 ms |
Memory | 25044 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 136 ms | 23380 KB |
00_example_02.txt | WA | 107 ms | 24660 KB |
01.txt | WA | 115 ms | 22740 KB |
02.txt | WA | 115 ms | 21460 KB |
03.txt | WA | 115 ms | 22740 KB |
04.txt | WA | 113 ms | 23124 KB |
05.txt | WA | 105 ms | 21204 KB |
06.txt | WA | 115 ms | 21588 KB |
07.txt | WA | 114 ms | 23124 KB |
08.txt | WA | 112 ms | 22228 KB |
09.txt | WA | 111 ms | 20948 KB |
10.txt | AC | 111 ms | 23892 KB |
11.txt | AC | 113 ms | 20052 KB |
12.txt | WA | 113 ms | 20044 KB |
13.txt | WA | 113 ms | 22356 KB |
14.txt | WA | 101 ms | 23124 KB |
15.txt | WA | 103 ms | 23252 KB |
16.txt | WA | 103 ms | 25044 KB |