14 solutions
-
0
直接暴力出答案 #include<bits/stdc++.h> using namespace std; int main(){ int num=0; for(int i=0;i<2018;i++){ for(int j=0;j<2018;j++){ for(int k=0;k<2018;k++){ for(int l=0;l<2018;l++){ for(int m=0;m<2018;m++){ if(i+j+l+k+m==2021){ num++; } } } } } } cout<<num; return 0; }
Information
- ID
- 106
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 512
- Accepted
- 164
- Uploaded By