求解!!!cin怎么实现??、 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>using namespace std;int fun(){ char ch; ch=ge…… 题解列表 2018年04月07日 13 点赞 0 评论 1500 浏览 评分:2.0
进军ACM!题解1159:【偶数求和】 (C++代码) 摘要:解题思路:先得出等差数列,在计算普通情况下的平均数,在考虑极端情况下,注意事项:sum=0参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2018年04月07日 11 点赞 0 评论 1640 浏览 评分:8.7
蓝桥杯历届试题-大臣的旅费 (C++代码) 摘要:#include<vector> #include<cstdio> #include<cstring> #include<iostream> #include<queue> #define…… 题解列表 2018年04月06日 0 点赞 0 评论 1327 浏览 评分:0.0
【亲和数】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int sum(int x){ int i,sum=0; for(i=1;i<x;…… 题解列表 2018年04月06日 13 点赞 3 评论 2882 浏览 评分:7.1
蓝桥杯历届试题-幸运数 (C++代码) 摘要:解题思路:我写的时间复杂度感觉挺高的,但是竟然没有超时,不知道他的时间复杂度是不是很低。#define maxn 500010 #include<stdio.h> int a[maxn],b[ma…… 题解列表 2018年04月06日 0 点赞 0 评论 1013 浏览 评分:0.0
蓝桥杯历届试题-带分数 (C++代码) 摘要:#include<cstdio> #include<iostream> using namespace std; int vis[10]; int a[10],ans,n; long lon…… 题解列表 2018年04月06日 0 点赞 0 评论 992 浏览 评分:0.0
蓝桥杯历届试题-小朋友排队 (C++代码) 摘要:#include<cstdio> #define maxn 100010 struct data { int num,cnt; }A[maxn],temp[maxn]; int n; …… 题解列表 2018年04月06日 0 点赞 0 评论 2479 浏览 评分:7.5
c++判断素数 摘要:#include<iostream>#include<iomanip>using namespace std;class acm { public: void sushu(int a,int b) {…… 题解列表 2018年04月03日 2 点赞 0 评论 1801 浏览 评分:2.0
蓝桥杯算法提高VIP-交换Easy (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1005; int a[M]={0}; int main(…… 题解列表 2018年04月01日 0 点赞 0 评论 639 浏览 评分:0.0
蓝桥杯算法提高VIP-一元一次方程 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { double a,b; while(cin>>a>…… 题解列表 2018年04月01日 0 点赞 0 评论 757 浏览 评分:0.0