随笔分类 -  水题2

摘要:#include<iostream> #include<cmath> #include<cstring> using namespace std; int main(){ int sum,mile; char a[2][20],icon[2]; while(true){ sum = 0; while 阅读全文
posted @ 2021-11-14 17:25 智人心 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int n,ip[4],i,j,base; char a[35]; scanf("%d",&n); while(n--){ scanf("%s",a); for(j=0;j<4;j++){ ip[ 阅读全文
posted @ 2021-11-13 21:12 智人心 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> using namespace std; int main(){ long long n,data[20005],sum,tmp,t; scanf("%lld",&n); int i,j; for(i=0;i<n;i++) 阅读全文
posted @ 2021-11-13 18:03 智人心 阅读(15) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cctype> using namespace std; int main(){ char a[80]; int data[30]; int out[400][60]; int i,j,l_max; mems 阅读全文
posted @ 2021-11-13 16:41 智人心 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cmath> using namespace std; int cmp(int a,int b){ return abs(a)<abs(b); } int main(){ int i,t,n,data[5 阅读全文
posted @ 2021-11-13 12:24 智人心 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ char a[2][5];//不可以是a[2][4] int n,x,y,i,data[2][11]; scanf("%d",&n); while(n--){ 阅读全文
posted @ 2021-11-13 12:07 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ char irr[25][2][25],tgt[25],vowel[]={'a','e','i','o','u'},tail[]={'o','s','x'},t 阅读全文
posted @ 2021-11-11 12:42 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> using namespace std; int main(){ char dict[10005][20],tar[20],tmp[20]; int count,i,j,diff_num; bool flag; count = 阅读全文
posted @ 2021-11-11 09:17 智人心 阅读(26) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cctype> #include<cstring> #include<string> using namespace std; int main(){ char a[][5] = {".-","-...","-.-.","-..",".",". 阅读全文
posted @ 2021-11-10 19:22 智人心 阅读(39) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int n; int x,y,z,data[10]; char name[10][10]; int maxv,minv,maxi,mini; while(scanf("%d",&n)==1&&n! 阅读全文
posted @ 2021-11-10 08:47 智人心 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int n,x,y; scanf("%d",&n); while(n--){ scanf("%d%d",&x,&y); if(x<y)printf("NO BRAINS\n"); else pri 阅读全文
posted @ 2021-11-09 22:26 智人心 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #define PI 3.14159265 using namespace std; int main(){ int n; double s,x,y,r; int count = 0; scanf("%d",&n); while( 阅读全文
posted @ 2021-11-05 10:06 智人心 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ double s,m; for(int i=0;i<12;i++){ scanf("%lf",&m); s += m; } printf("$%.2lf",s/12); return 0; } 阅读全文
posted @ 2021-11-05 09:51 智人心 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ double s,n; int i; while(scanf("%lf",&n)==1&&n!=0.00){ s = 0; i = 1; while(s<n){ s+= 1.0/(i+1); i+ 阅读全文
posted @ 2021-11-05 09:44 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",a+b); return 0; } 阅读全文
posted @ 2021-11-04 19:54 智人心 阅读(25) 评论(0) 推荐(0) 编辑

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