蓝桥杯算法提高VIP-删除重复元素-题解(C++代码)——转换成ASCII码进行桶排序 摘要:解题思路:转换成ASCII码进行桶排序参考代码:#include<bits/stdc++.h> using namespace std;int main() { int a[200]={0}; …… 题解列表 2020年07月24日 0 点赞 0 评论 503 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:参考代码:#include <stdio.h> typedef struct { int year; int month; int day; }Time; i…… 题解列表 2020年07月24日 0 点赞 0 评论 1148 浏览 评分:9.0
[编程入门]选择排序-题解(C语言代码) 摘要:# include<stdio.h> int main() { int i,a[10],min,j,temp; for(i=0; i<10; i++) //数据导入数组 scan…… 题解列表 2020年07月24日 0 点赞 1 评论 1413 浏览 评分:9.0
[编程入门]完数的判断-题解(C语言代码) 摘要:参考代码:#include <stdio.h> int main() { int N,sum; scanf("%d",&N); for(int i=2; i<=N; ++i) {//从2…… 题解列表 2020年07月24日 0 点赞 0 评论 865 浏览 评分:9.9
草莓橙须圆:[编程入门]字符串分类统计-题解(C语言代码)最直接做法 摘要:解题思路:首先要知道getchar()是干嘛的注意事项:while((temp = getchar())!='\n'){//输入字符且不是会车 注意这里的写法就好直接代码:#incl…… 题解列表 2020年07月24日 0 点赞 0 评论 1136 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数-题解(C语言代码) 摘要:``` #include int main() { int a,b,r;//r:余数 scanf("%d%d",&a,&b); int pro=a*b;//两数乘积 while(…… 题解列表 2020年07月24日 0 点赞 0 评论 606 浏览 评分:9.9
[编程入门]报数问题-题解(C++代码)不用复杂的数据结构解 摘要:解题思路://本题模拟每个人相当于一个数组元素,其编号=元素值 ,元素值为0,则被踢出,元素值不为0,则计数,计数到3时,踢出该人,该元素值置为0,当踢出n-1个人时,还剩下一个人,即一个不为0的元素…… 题解列表 2020年07月24日 0 点赞 1 评论 547 浏览 评分:9.9
[编程入门]二进制移位练习-题解(Python代码) 摘要:解题思路:注意事项:参考代码:def binary(d): s = "" while d > 0: s = str(d % 2) + s d //= 2 …… 题解列表 2020年07月23日 0 点赞 0 评论 465 浏览 评分:0.0
[编程入门]温度转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码#include<iostream>#include<iomanip>using namespace std ;int main(){ float f ; ci…… 题解列表 2020年07月23日 0 点赞 0 评论 766 浏览 评分:6.0
蓝桥杯算法提高VIP-任意年月日历输出-题解(Python代码)超详细,超简单 摘要:解题思路:这里用到了calendar库,在设置第一周第一天为星期日时,用到了setfirstweekday()注意事项:参考代码:import calendaryear,month=map(int,i…… 题解列表 2020年07月23日 0 点赞 0 评论 423 浏览 评分:0.0