- 进阶班课堂练习
求助
- 2024-6-1 20:35:17 @
哪位义父能告我第二题代码
6 条评论
-
turing_hsy LV 7 @ 2024-6-1 21:04:39
#include<bits/stdc++.h> using namespace std; int main() { cout<<-1; return 0; }
-
2024-6-1 20:59:54@
#include<bits/stdc++.h> using namespace std; int main() { cout<<-1; }
-
2024-6-1 20:54:19@
#include<bits/stdc++.h> #define int long long using namespace std; int a[100],f[10086]; signed main(){ for(int i=1;i<=12;i++)cin>>a[i]; for(int i=1;i<=12;i++){ for(int j=a[i];j>=0;j--)f[j]=max(f[j],a[i]); } cout<<f[12]; }
-
2024-6-1 20:52:39@
cout<<"-1";
-
2024-6-1 20:51:19@
?
-
2024-6-1 20:41:47@
不知道
- 1