Submission #45254569
Source Code Expand
use proconio::input; fn main() { input! { x: usize, }; let ans = x / 11 * 2 + match x % 11 { 0 => 0, 1..=6 => 1, 7..=10 => 2, _ => unreachable!(), }; println!("{}", ans); }
Submission Info
Submission Time | |
---|---|
Task | C - X: Yet Another Die Game |
User | bouzuya |
Language | Rust (rustc 1.70.0) |
Score | 300 |
Code Size | 262 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 2092 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 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 | 1 ms | 1872 KiB |
00_example_02.txt | AC | 0 ms | 1928 KiB |
01.txt | AC | 1 ms | 2092 KiB |
02.txt | AC | 0 ms | 1920 KiB |
03.txt | AC | 0 ms | 1868 KiB |
04.txt | AC | 0 ms | 1928 KiB |
05.txt | AC | 1 ms | 1972 KiB |
06.txt | AC | 0 ms | 1976 KiB |
07.txt | AC | 1 ms | 2068 KiB |
08.txt | AC | 1 ms | 1812 KiB |
09.txt | AC | 1 ms | 2068 KiB |
10.txt | AC | 0 ms | 1916 KiB |
11.txt | AC | 0 ms | 2088 KiB |
12.txt | AC | 1 ms | 1928 KiB |
13.txt | AC | 0 ms | 1808 KiB |
14.txt | AC | 0 ms | 2088 KiB |
15.txt | AC | 0 ms | 1876 KiB |
16.txt | AC | 0 ms | 2028 KiB |