蓝桥杯算法训练VIP-整数平均值 (C语言代码) 摘要:解题思路:注意事项: 在函数内部使用指针操纵数组元素参考代码:#include <stdio.h>int main(){ int n, i; scanf("%d", &n); int a[100…… 题解列表 2018年12月13日 2 点赞 0 评论 1613 浏览 评分:5.2
Jam的计数法 (C语言代码) 摘要:参考代码:时间超限:(自增1,再逐个判断)#include <stdio.h> #include <stdlib.h> int s,t,w; int inc(char *str) { …… 题解列表 2019年01月09日 0 点赞 0 评论 1913 浏览 评分:5.2
[编程入门]Sn的公式求和 (C++代码) 摘要:解题思路:由题目的式子可以知道,我们可以把和看作是每一次每位数之和,例如第一次是n*2,第二次加上(n-1)*(2*10)......所以我们可以设置一个变量a=2,令其每次自乘10即可。注意事项:w…… 题解列表 2019年04月21日 0 点赞 0 评论 1183 浏览 评分:5.2
速算24点 (C语言代码) 摘要:解题思路:括号没算进去大致看一下思路把注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int jia(int a,int …… 题解列表 2019年04月22日 0 点赞 0 评论 2705 浏览 评分:5.2
蓝桥杯2017年第八届真题-小数第n位 (C++代码) 摘要:#include "stdio.h" #include "stdlib.h" #include "iostream" #include "string.h" #include "algorit…… 题解列表 2019年05月19日 4 点赞 1 评论 1045 浏览 评分:5.2
蓝桥杯算法提高VIP-合并石子 (C++代码) 摘要: 朴素区间 Dp O(n^3),这题需要四边形不等式优化成 O(n^2) 。参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif …… 题解列表 2019年05月22日 0 点赞 0 评论 1971 浏览 评分:5.2
快到你无法想象 摘要:````c #include int main() { int a,b; scanf("%d",&a); while (sancf("%d",&b)!=EOF&&b!=-1) …… 题解列表 2019年06月30日 0 点赞 1 评论 1008 浏览 评分:5.2
求平方和-题解(C++代码) 摘要:这个题就是基础题目了 我们可以用 #include 头文件的pow函数直接求出平方和 也可以用 sum = a*a+b*b; 那么就上代码 ```cpp #include…… 题解列表 2019年09月20日 0 点赞 0 评论 2397 浏览 评分:5.2
奖学金-题解(C++代码)(结构体排序做的) 摘要:将学号和各科成绩及总分五项数据项做成一个结构体,对结构体对象进行排序 先写结构体: ```cpp typedef struct { int xuehao; int yuwen; …… 题解列表 2019年11月17日 0 点赞 0 评论 1438 浏览 评分:5.2
取石子游戏-题解(C语言代码)值得参考 摘要:##### 大佬代码值得参考 #include #include using namespace std; int…… 题解列表 2019年11月30日 0 点赞 0 评论 2179 浏览 评分:5.2