摘要: //拒绝抄袭 //f[i]表示洗劫前i家店铺的最大收益 #include <iostream> #include <cstdio> using namespace std; const int N = 100010; int w[N], f[N]; int main(){ int T; //f[0] 阅读全文
posted @ 2022-07-24 16:52 男孩吖好朋友 阅读(412) 评论(0) 推荐(0)
摘要: #include<stdio.h> using namespace std; int main(){ double a,b,c,d,x,f; scanf("%lf%lf%lf%lf%lf",&x,&a,&b,&c,&d); f=a*x*x*x+b*x*x+c*x+d; printf("%.7lf\n 阅读全文
posted @ 2022-07-04 14:48 男孩吖好朋友 阅读(95) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int main(){ float r1,r2; cin>>r1>>r2; cout<<setiosflags(ios::fixed)<<setprecision(2); cout 阅读全文
posted @ 2022-07-04 14:46 男孩吖好朋友 阅读(73) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> #include<algorithm> using namespace std; bool get_prime(int k){ if(k==0||k==1) return 0; for(int i=2;i*i<=k;i++) i 阅读全文
posted @ 2022-06-02 21:07 男孩吖好朋友 阅读(642) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,d; cin>>a; if(a==1){ b=0; } else{ c=0; b=1; int i=3; while(i<=a){ i++; 阅读全文
posted @ 2022-05-27 20:04 男孩吖好朋友 阅读(50) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> #define A 1000000+5 using namespace std; int i,j; char ch[A]; inline int ask(int m,int n){ if(m==0) return n+1; if 阅读全文
posted @ 2022-05-25 21:25 男孩吖好朋友 阅读(203) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int a[10000]={0},n,m,x=1,y; cin>>n>>m; y=n; for(int i=1;i<=n;i++){ if(a[i]!=1){ if(x==m){ cou 阅读全文
posted @ 2022-05-25 20:55 男孩吖好朋友 阅读(939) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ long long a,b,c; cin>>a>>b; c = a+b; cout<<c<<endl; return 0; } 阅读全文
posted @ 2022-05-08 21:44 男孩吖好朋友 阅读(32) 评论(1) 推荐(0)
点击右上角即可分享
微信分享提示