3 solutions

  • 2
    @ 2022-2-5 11:08:33
    #include<stdio.h>
    int main(){
       int ans = 1;
       for(int i=2021; i>=1; i-=2){
            ans = ans*i%100000;	  
       }
       printf("%d\n",ans);
    }
    
    • 2
      @ 2021-10-16 19:28:17

      2021双阶乘的结果数值很大,可以考虑黑科技python自带大数乘法秒出结果

      • 0
        @ 2022-4-5 1:47:36

        水题

        #include <iostream>
        using namespace std;
        int main()
        {
            int sum = 1;
            for(int n = 2021; n >= 1; n-=2)
            {
                sum = (sum * n) % 100000;
            }
            cout << sum << endl;
            return 0;
        }
        
        • 1

        Information

        ID
        104
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        6
        Tags
        # Submissions
        887
        Accepted
        285
        Uploaded By