蓝桥杯算法提高VIP-单词个数统计-题解(C语言代码) ```c#include#includeintmain(){chara[100];gets(a);inti=0,sum=1;while(a[i]!='\0'){if(a[i]=='')sum++;i++;}printf("%d\n",sum);return0;}``` 题解列表 2020年10月03日 0 点赞 0 评论 721 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布-题解(C语言代码) ```c#includeenumOut{a=-1,b,c};intmain(){intx,y;enumOutoutput;scanf("%d%d",&x,&y);if(x==y)printf("%d\n",output=b);if(x-y==-1||x-y==2)printf("%d\n", 题解列表 2020年10月03日 0 点赞 0 评论 682 浏览 评分:2.0
蓝桥杯算法提高VIP-3000米排名预测-题解(Python代码) 摘要:解题思路: 先全排列,然后筛选掉不符合的。时间复杂度O(n3),时间超限17,但用java或C/C++可以AC。注意事项:参考代码:from itertools import permutati…… 题解列表 2020年10月03日 0 点赞 0 评论 1617 浏览 评分:9.9
蓝桥杯基础练习VIP-2n皇后问题-题解(Python代码) ```pythonn=int(input())mapL=[list(map(int,input().split()))for_inrange(n)]#模拟棋盘count=0#计数器defdfs(row,n,s,mapL):#参数带入0,n,2, 题解列表 2020年10月03日 0 点赞 0 评论 1406 浏览 评分:9.9
蓝桥杯算法提高VIP-模拟计算器-题解(C语言代码) 摘要:```c #include int main() { int a, b; char c; scanf("%d%d %c", &a, &b, &c); sw…… 题解列表 2020年10月03日 0 点赞 0 评论 1160 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数-题解(C语言代码) 摘要:```c #include int main() { for (int i= 1000; i < 10000; i++) { if (i == (i / 1…… 题解列表 2020年10月03日 0 点赞 0 评论 768 浏览 评分:0.0
蓝桥杯2016年第七届真题-四平方和-题解(C++代码) 摘要:### 三重循环暴力解决 ```c #include using namespace std; int main() { int n; scanf("%d",&n); int a…… 题解列表 2020年10月03日 0 点赞 0 评论 1200 浏览 评分:0.0
C语言考试练习题_一元二次方程-题解(C语言代码) 摘要:```c #include #include int main() { double a, b, c, x1, x2; scanf("%lf%lf%lf", &a, &b,…… 题解列表 2020年10月03日 0 点赞 0 评论 902 浏览 评分:0.0
A+B for Input-Output Practice-题解(C语言代码) 摘要:```c #include int main() { int n; scanf("%d",&n); for(int i=0;i…… 题解列表 2020年10月03日 0 点赞 0 评论 1186 浏览 评分:0.0
A+B for Input-Output Practice (VII)-题解(C语言代码) 摘要:```c #include int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) printf("%d\n\n…… 题解列表 2020年10月03日 0 点赞 0 评论 1201 浏览 评分:0.0