摘要: #include using namespace std; int main() { int a,b,c,d,k,n; double m,x; scanf("%d",&n); scanf("%d%d",&a,&b); m=(double)b/(double)a;//double(a)/double(b); for(int i=2;i=m-0.05&&x<=m+0.05)cout... 阅读全文
posted @ 2018-06-28 21:22 CJjiqirenqiu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { char a[500]; int m,n=0,num; cin>>a; for(int i=0;i<strlen(a);i++) { n++; if(a[i+1]!=a[i]) { cout<<n<<a[i]; n=0; } } re... 阅读全文
posted @ 2018-06-28 21:08 CJjiqirenqiu 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int a,b,c,n=0,m=0,l=0; scanf("%d",&a); for(int i=1;i<=a;i++) { scanf("%d",&b); if(b==1)m++; if(b==5)n++; if(b==10)l++; }... 阅读全文
posted @ 2018-06-28 20:54 CJjiqirenqiu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 今天这个题目及其难。还好靠身边的丁冠宇大佬帮忙,最后还是把这道题给搞出来了!!! 这里给大家分享一下。希望能帮助到各位。 阅读全文
posted @ 2018-06-28 20:43 CJjiqirenqiu 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 这题充满了玄学问题!!!用cin.getline竟然会报错;而且输出一些不得了的东西。看来有时候还是要用cin了啊!!! 阅读全文
posted @ 2018-06-28 16:36 CJjiqirenqiu 阅读(849) 评论(0) 推荐(0) 编辑