822A Codeforces - I m bored with life


822A Codeforces - I m bored with life




Solution in C++

#include <bits/stdc++.h>

using namespace std;

typedef long long int lli;

lli n,m,sol=1,nm;

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>n>>m;
    nm=min(n,m);
    while(nm>1)sol*=nm,nm--;
    cout<<sol;
}

Share on Google Plus

About Mohamed Sobhi

My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo
My hobbies is programming ,and web development ,playing chess and writing horror stories.
    Blogger Comment
    Facebook Comment

0 التعليقات:

إرسال تعليق