摘要: //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) 编辑