Submission #18766806


Source Code Expand

#include <bits/stdc++.h>
#define ll long long
using namespace std;

ll dp[13][201];

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n;
    cin>>n;
    dp[0][0]=1;
    for (int i=1;i<13;++i)
        for (int j=0;j<=n;++j)
            for (int k=0;k<j;++k)
                dp[i][j]+=dp[i-1][k];
    cout<<dp[12][n];
    return 0;
}

Submission Info

Submission Time
Task C - Duodecim Ferra
User ScarletS
Language C++ (GCC 9.2.1)
Score 300
Code Size 367 Byte
Status AC
Exec Time 7 ms
Memory 3656 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 7 ms 3544 KiB
handmade_01.txt AC 2 ms 3536 KiB
handmade_02.txt AC 2 ms 3592 KiB
random_00.txt AC 4 ms 3552 KiB
random_01.txt AC 2 ms 3588 KiB
random_02.txt AC 2 ms 3592 KiB
random_03.txt AC 2 ms 3472 KiB
random_04.txt AC 2 ms 3596 KiB
random_05.txt AC 2 ms 3552 KiB
random_06.txt AC 3 ms 3588 KiB
random_07.txt AC 5 ms 3536 KiB
random_08.txt AC 2 ms 3592 KiB
random_09.txt AC 2 ms 3656 KiB
sample_01.txt AC 2 ms 3500 KiB
sample_02.txt AC 3 ms 3540 KiB
sample_03.txt AC 2 ms 3540 KiB