随笔分类 -  水题

摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n; while(scanf("%d",&n)==1){ int k = 1; while(k*(k+1)/2<n)k++; k--; int t = n 阅读全文
posted @ 2021-07-30 20:22 智人心 阅读(41) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s[100005],t[100005]; int main(){ while(scanf("%s%s",s,t)==2){ int i,j, 阅读全文
posted @ 2021-07-30 19:49 智人心 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int s; scanf("%d",&s); int n = 1; while(n*(n+1)/2<s){ n++; } while((n*(n+1)/2-s)% 阅读全文
posted @ 2021-07-30 14:58 智人心 阅读(15) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cmath> using namespace std; #define PI 3.1415927 int main(){ int t,n; double R,tmp; scanf("%d",&t); for(i 阅读全文
posted @ 2021-07-30 14:45 智人心 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; #define PI 3.1415927 int main(){ double d,r,t,ansl,ansspd; int kase = 1; while(scanf("%lf%lf% 阅读全文
posted @ 2021-07-30 00:50 智人心 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int f(int m,int n){ if(m==0||n==1)return 1; if(m<n){ return f(m,m); } return f(m,n-1)+f(m-n,n 阅读全文
posted @ 2021-07-30 00:24 智人心 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,x,y; scanf("%d",&n); while(n--){ scanf("%d%d",&x,&y); if(x==y){ printf("%d\ 阅读全文
posted @ 2021-07-30 00:23 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int data[100]; double ans[100]; int i=0; while(scanf("%d",&data[i])==1){ ans[i] = 阅读全文
posted @ 2021-07-29 21:08 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,maxv,maxi,minv,mini,a,b,c,v; char data[10][10]; while(scanf("%d",&n)==1&&n! 阅读全文
posted @ 2021-07-29 20:03 智人心 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> /* PERFECTION OUTPUT 15 DEFICIENT 28 PERFECT 6 PERFECT 56 ABUNDANT 60000 ABUNDANT 22 DEFICIENT 496 PERFECT END OF 阅读全文
posted @ 2021-07-29 19:50 智人心 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char a[100],b[100],f[2],tmp[100]; int m,sum; sum = 0; while(tru 阅读全文
posted @ 2021-07-29 13:58 智人心 阅读(19) 评论(0) 推荐(0) 编辑

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