随笔分类 -  水题2

摘要:#include<iostream> #define PI 3.141592653589793 #include<cmath> using namespace std; int main(){ double x1,y1,x2,y2,x3,y3; double k1,b1,k2,b2,x,y,resu 阅读全文
posted @ 2021-12-01 11:14 智人心 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; int main(){ int s,t,r,n,k,tmp,tmp2; scanf("%d%d",&n,&k); while(k--){ scanf("%d%d%d",&s,&t,&r); 阅读全文
posted @ 2021-11-29 20:01 智人心 阅读(15) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ int n,s; char data[20][20]; scanf("%d%d",&n,&s); memset(data,' ',sizeof data); f 阅读全文
posted @ 2021-11-29 19:35 智人心 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; int main(){ int b,n,result,i,minj,minx,tmp; while(scanf("%d%d",&b,&n)==2&&b){ minx = 1000005; 阅读全文
posted @ 2021-11-29 19:25 智人心 阅读(62) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ char a[100]; while(gets(a)){ printf("%s\n",a); } return 0; } 阅读全文
posted @ 2021-11-29 19:05 智人心 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; #define PI 3.14159265 int main(){ double D,d,s; int n,result; scanf("%d",&n); while(n--){ scan 阅读全文
posted @ 2021-11-29 18:59 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ long long n,m,result; int i,cnt,cnt_sum; scanf("%d",&cnt_sum); for(int cnt=1;cnt<=cnt_sum;cnt++){ 阅读全文
posted @ 2021-11-29 18:30 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ int n,cnt,result; char a[100],b[100]; int dataA[26],dataB[26]; scanf("%d\n",&n); 阅读全文
posted @ 2021-11-29 18:22 智人心 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int l,m,result,start,end; while(scanf("%d%d",&l,&m)==2&&l){ result = l+1; while(m--){ scanf("%d%d" 阅读全文
posted @ 2021-11-29 18:08 智人心 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; int main(){ long long n,a,b,c,n1,result; scanf("%lld",&n); while(n--){ scanf("%lld%lld",&a,&b) 阅读全文
posted @ 2021-11-29 17:07 智人心 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ double a,b,c,f0,f1,f2,f3,f4,f5; while(scanf("%lf%lf%lf",&f0,&f1,&f2)==3){ c = f0; a = (f2-2*f1+f0) 阅读全文
posted @ 2021-11-29 16:21 智人心 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int a[3],h = 168; bool flag = false; for(int i=0;i<3;i++) scanf("%d",&a[i]); for(int i=0;i<3;i++){ 阅读全文
posted @ 2021-11-29 16:10 智人心 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int n,m,p,c; while(scanf("%d%d%d%d",&n,&m,&p,&c)==4&&n){ printf("%d\n",n+c-(m+c-p)); } return 0; } 阅读全文
posted @ 2021-11-29 16:04 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ int n,len,sum,dis[] = {9,3,7},p,q,val; char data[10]; scanf("%d",&n); for(int cn 阅读全文
posted @ 2021-11-29 15:57 智人心 阅读(10) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; #define PI 3.14159265 int main(){ double V,d,D; while(scanf("%lf%lf",&D,&V)==2&&D){ d = pow(D* 阅读全文
posted @ 2021-11-29 14:37 智人心 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<climits> using namespace std; int main(){ int n,m,c,i,j,result; while(scanf("%d%d%d",&n,&m,&c)==3&&n){ i = n; result = 0; 阅读全文
posted @ 2021-11-29 13:37 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> using namespace std; int main(){ int r,m,y; scanf("%d%d%d",&r,&m,&y); double a = pow((100.0+r)/100,y)*m; printf("%. 阅读全文
posted @ 2021-11-29 13:25 智人心 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; #define maxn 16000005 bool has[maxn]; char a[maxn]; int s[150]; int main(){ int n,nc,len,zz, 阅读全文
posted @ 2021-11-27 10:07 智人心 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> using namespace std; int main(){ int i,n,data[10005]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&data[i]); } 阅读全文
posted @ 2021-11-19 16:54 智人心 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int c,n,i,j,t; int data[1005]; double sum; scanf("%d",&c); while(c--){ scanf("%d",&n); sum = 0; fo 阅读全文
posted @ 2021-11-18 19:06 智人心 阅读(18) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示