Submission #18742892
Source Code Expand
from operator import mul
from functools import reduce
def cmb(n_cmb, r_cmb):
r_cmb = min(n_cmb - r_cmb, r_cmb)
if r_cmb == 0: return 1
over = reduce(mul, range(n_cmb, n_cmb - r_cmb, -1))
under = reduce(mul, range(1, r_cmb + 1))
return over // under
L = int(input())
print(cmb((L - 12) + 11, 11))
Submission Info
| Submission Time | |
|---|---|
| Task | C - Duodecim Ferra |
| User | kanade9 |
| Language | Python (3.8.2) |
| Score | 300 |
| Code Size | 334 Byte |
| Status | AC |
| Exec Time | 29 ms |
| Memory | 9612 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | handmade_00.txt, handmade_01.txt, handmade_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| handmade_00.txt | AC | 27 ms | 9612 KiB |
| handmade_01.txt | AC | 28 ms | 9468 KiB |
| handmade_02.txt | AC | 22 ms | 9320 KiB |
| random_00.txt | AC | 25 ms | 9428 KiB |
| random_01.txt | AC | 21 ms | 9480 KiB |
| random_02.txt | AC | 22 ms | 9432 KiB |
| random_03.txt | AC | 21 ms | 9324 KiB |
| random_04.txt | AC | 21 ms | 9492 KiB |
| random_05.txt | AC | 24 ms | 9328 KiB |
| random_06.txt | AC | 25 ms | 9312 KiB |
| random_07.txt | AC | 29 ms | 9276 KiB |
| random_08.txt | AC | 22 ms | 9612 KiB |
| random_09.txt | AC | 21 ms | 9484 KiB |
| sample_01.txt | AC | 23 ms | 9208 KiB |
| sample_02.txt | AC | 22 ms | 9312 KiB |
| sample_03.txt | AC | 25 ms | 9328 KiB |