Submission #18731887


Source Code Expand

use proconio::{fastout, input};

#[fastout]
fn main() {
    input! {in_l: i64};
    let mut c = 1;
    let mut d = 2;

    for i in 1..=11 {
        c *= in_l - i;

        for j in d..=11 {
            if c % j == 0 {
                c /= j;
                d = j + 1;
            } else {
                break;
            }
        }
    }

    println!("{}", c);
}

Submission Info

Submission Time
Task C - Duodecim Ferra
User takedarts
Language Rust (1.42.0)
Score 300
Code Size 370 Byte
Status AC
Exec Time 4 ms
Memory 2140 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 16
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 4 ms 2136 KiB
handmade_01.txt AC 1 ms 2140 KiB
handmade_02.txt AC 3 ms 2100 KiB
random_00.txt AC 1 ms 2124 KiB
random_01.txt AC 2 ms 2100 KiB
random_02.txt AC 1 ms 2092 KiB
random_03.txt AC 2 ms 2064 KiB
random_04.txt AC 2 ms 2136 KiB
random_05.txt AC 1 ms 2084 KiB
random_06.txt AC 1 ms 2136 KiB
random_07.txt AC 1 ms 1984 KiB
random_08.txt AC 2 ms 2092 KiB
random_09.txt AC 1 ms 1928 KiB
sample_01.txt AC 2 ms 2084 KiB
sample_02.txt AC 1 ms 2108 KiB
sample_03.txt AC 2 ms 1984 KiB