1 solutions

  • 0
    @ 2025-9-29 13:59:38
    #include<bits/stdc++.h>
    using namespace std;
    long long count(int a){
        if(a == 1) return a;
        return a * count(a - 1);
    }
    int main(){
        int a;
        cin >> a;
        cout << count(a);
    }```
    • 1

    Information

    ID
    4716
    Time
    1000ms
    Memory
    125MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    2
    Accepted
    2
    Uploaded By