Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
81564 | 张浩然 | circle | C++ | Wrong Answer | 6 | 1 MS | 252 KB | 243 | 2023-08-09 15:35:34 |
#include<bits/stdc++.h> using namespace std; int n,a,t; int main(){ cin>>t>>n; a=(n*(n-1))/2; if(t==1) cout<<(n*(n-1))/2; if(t==2&&n<4) cout<<0; if(t==2&&n>4) cout<<n*(n-1)/2*(n-2)/3*(n-3)/4; if(t==3) cout<<a+n+1; return 0; }