2 条题解

  • 2
    @ 2025-3-14 20:41:29
    n = int(input())
    print(n * (n-1) * (n-2) * (n-3) // 24 if n >= 4 else 0)
    • 0
      @ 2025-3-22 13:25:48
      #include<bits/stdc++.h>
      using namespace std;
      unsigned long long n,ans;
      int main(){
          cin>>n;
          ans=n*(n-1)/2*(n-2)/3*(n-3)/4;
          cout<<ans;
          return 0;
      }
      
      • 1

      信息

      ID
      629
      时间
      1000ms
      内存
      256MiB
      难度
      7
      标签
      递交数
      28
      已通过
      8
      上传者