14 solutions

  • 0
    @ 2022-1-17 10:06:27
    #include<iostream>
    using namespace std;
    int main()
    {
    	long long ans=1;
    	for(int i=2020,j=1;i>=2017;i--,j++)
    	{
    		ans=ans*i/j;
    	}
    	cout<<ans<<endl;
    	return 0;
    }
    

    Information

    ID
    106
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    513
    Accepted
    165
    Uploaded By