- 2024十一集训入门组day3
寄吧
- 2024-10-4 11:47:47 @
都是鸡巴
9 条评论
-
刘浩杰 LV 6 @ 2025-2-10 0:26:35
chao ni ma
-
2024-10-4 12:19:43@
@卢梓辰 你好帅
-
2024-10-4 12:19:18@
感谢
-
2024-10-4 12:18:50@
@卢梓辰 你好誜
-
2024-10-4 12:15:04@
#include<bits/stdc++.h> using namespace std; int main() { freopen("happy.in", "r", stdin); freopen("happy.out", "w", stdout); int n,a,b; cin>>n>>a>>b; int wo_cao_zhe_ge_shu_biao=n *a; for(int i=1;i<=n/4;i++){ int S_shu_biao =b*i*i; int huan_yi_ge_shu_biao_ba=n-4*i; if(huan_yi_ge_shu_biao_ba>=0){ int qu_qu_le=a*huan_yi_ge_shu_biao_ba; int huan_shu_biao_ba=S_shu_biao+qu_qu_le; wo_cao_zhe_ge_shu_biao=max(wo_cao_zhe_ge_shu_biao, huan_shu_biao_ba); } } cout<<wo_cao_zhe_ge_shu_biao; return 0; }
-
2024-10-4 12:02:45@
#include<bits/stdc++.h> using namespace std; int main() { int n,a,b; cin>>n>>a>>b; int sum=0; sum=n*a; for(int i=1;i*i<=n;i++){ int pf=i*i; int cnm=n-pf; if(cnm>=0){ int wc=(pf*b)+(cnm*a); sum=max(sum,wc); } } cout<<sum; return 0; }
-
2024-10-4 11:53:15@
666
-
2024-10-4 11:51:02@
using namespace std; int main() { freopen("happy.in","r",stdin); freopen("happy.out","w",stdout); int a,b,c; cin>>a>>b>>c; int sum=0,sum1=0; sum=b*a; sum1=c*int(a/4*a/4); if(a-a/4*4!=0){ sum1+=b*(a-a/4*4); } if(sum>sum1){ cout<<sum; } else if(sum1>sum){ cout<<sum1; } else{ cout<<sum1; } return 0; }
-
2024-10-4 11:49:37@
李晨硕你太帅了
- 1