摘要: //1#includeusing namespace std;struct node{ string s; int a,b;};int main(){ int n; scanf("%d",&n); vectorv(n); for(int i=0;i>v[i].s>>v[i].a>>v[i].b; } int m,t; scan... 阅读全文
posted @ 2019-02-21 16:02 捕鱼儿海 阅读(153) 评论(0) 推荐(0) 编辑
摘要: //1#include<bits/stdc++.h>using namespace std;int main(){ int n,m; char c; scanf("%d %c",&n,&c); if(n%2==0) m=n/2; if(n%2==1) m=(n+1)/2; for(int i=0;i 阅读全文
posted @ 2019-02-21 09:49 捕鱼儿海 阅读(132) 评论(0) 推荐(0) 编辑
摘要: //1////字符中可能有0-9以外的字符,这时就直接打印输出并输入下一个!!!! #include<bits/stdc++.h>using namespace std;int s[18]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2}; char z[12]={'1', 阅读全文
posted @ 2019-02-20 21:16 捕鱼儿海 阅读(149) 评论(0) 推荐(0) 编辑
摘要: //1#include<stdio.h>int main(){ double c1,c2; scanf("%lf%lf",&c1,&c2); long long c3; c3=(c2-c1)/100+0.5; int h,m,s; h=c3/3600; m=c3%3600/60; s=c3%60; 阅读全文
posted @ 2019-02-19 22:23 捕鱼儿海 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <algorithm>using namespace std;int main() { int first, k, n, temp; cin >> first >> n >> k; int data[100005], next[100005], 阅读全文
posted @ 2019-02-19 19:35 捕鱼儿海 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int main(){ string s; int i=0,e=0,pos; cin>>s; while(s[i]!='E'){ i++; } pos=i; i+=2; for(i;i<s.length();i++ 阅读全文
posted @ 2019-02-19 19:33 捕鱼儿海 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ long a,b; int d; int s[40]={0},t=0; scanf("%ld%ld%d",&a,&b,&d); a+=b; int flag; if(a==0) flag=0; else{ flag=1; while(a){ 阅读全文
posted @ 2019-02-19 19:32 捕鱼儿海 阅读(79) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int s[10]={0}; int m; for(int i=0;i<10;i++){ scanf("%d",&m); if(m!=0) s[i]=m; } int p; if(s[0]==0){ for(int j=1;j<10;j++) 阅读全文
posted @ 2019-02-19 19:32 捕鱼儿海 阅读(63) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>int main(){ int s[11]={0}; char c; while((c=getchar())!='\n'){ // scanf("%c",&c); s[c-'0']++; } for(int i=0;i<10;i+ 阅读全文
posted @ 2019-02-19 19:31 捕鱼儿海 阅读(77) 评论(0) 推荐(0) 编辑
摘要: //1#include<bits/stdc++.h>using namespace std;int main(){ string a,b; int Da,Db,cnt=0; long pa=0,pb=0; cin>>a>>Da>>b>>Db; int l=a.length(); for(int i= 阅读全文
posted @ 2019-02-18 19:42 捕鱼儿海 阅读(254) 评论(0) 推荐(0) 编辑