| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 81672 | 杨竣周 | circle | C++ | Accepted | 102 | 0 MS | 248 KB | 245 | 2023-08-09 18:10:09 |
#include<bits/stdc++.h> using namespace std; int t; unsigned long long n; int main(){ cin>>t>>n; if(t==1) cout<<n*(n-1)/2; if(t==2) cout<<n*(n-1)/2*(n-2)/3*(n-3)/4; if(t==3) cout<<n*(n-1)/2+n*(n-1)/2*(n-2)/3*(n-3)/4+1; return 0; }