1 条题解
-
1
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cstring> #include<string> using namespace std; int arr[100]; int main(){ int s1,s2,s3; cin >> s1 >> s2 >> s3; int res = 0; for(int i=1;i<=s1;i++){ for(int j=1;j<=s2;j++){ for(int k=1;k<=s3;k++){ arr[i+j+k]++; if(arr[i+j+k]>arr[res]){ res = i+j+k; } } } } cout << res; return 0; }
- 1
信息
- ID
- 1848
- 时间
- 1000ms
- 内存
- 125MiB
- 难度
- 1
- 标签
- 递交数
- 7
- 已通过
- 7
- 上传者