蓝桥杯算法提高VIP-不同单词个数统计(字典树)----momoc 摘要:解题思路:使用字典树来解。字典树传送门。https://blog.csdn.net/qq_38891827/article/details/80532462注意事项: 边插入边统计,如果当前字符…… 题解列表 2019年04月20日 1 点赞 0 评论 996 浏览 评分:0.0
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:利用字符串注意事项:参考代码: #include<stdio.h>#include<string.h>int main(void){ char arr1[6]; int i, n; i…… 题解列表 2019年04月19日 0 点赞 0 评论 743 浏览 评分:0.0
[编程入门]三个数字的排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],s; for(int i=0;i<3;i++){ scanf("%d…… 题解列表 2019年04月19日 2 点赞 0 评论 1097 浏览 评分:0.0
检查一个数是否为质数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,k; scanf("%d",&n); for(i=2;i<n;i++) { if(n%i==0…… 题解列表 2019年04月19日 0 点赞 0 评论 874 浏览 评分:0.0
第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int n…… 题解列表 2019年04月19日 0 点赞 0 评论 822 浏览 评分:0.0
GC的苦恼 (C语言代码)百思不得其解的正确率!!!很简单好吧!!! 摘要:解题思路:if语句划分区间注意事项:if语句的否定特性!!利用这个特性可以在定区间的时候简化代码!!!参考代码:#include<stdio.h>int main(){ int x; while(sc…… 题解列表 2019年04月19日 0 点赞 0 评论 686 浏览 评分:0.0
陈教主的三角形 (C语言代码)这奇葩的正确率是什么鬼。。你们是认真的么?? 摘要:解题思路:小学知识,平面内,一切三角形任意两边之和大于第三边(不能等于!!)注意事项:无。。。参考代码:#include<stdio.h>int main(){ int a,b,c; while(sc…… 题解列表 2019年04月19日 0 点赞 6 评论 708 浏览 评分:6.8
妹子杀手的故事 (C语言代码)只能水题了。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d %d\n",&a,&b)!=EOF&&a&&b) { …… 题解列表 2019年04月19日 0 点赞 0 评论 571 浏览 评分:0.0
Tom数 (C语言代码)另辟蹊径!!/(ㄒoㄒ)/~~只能靠这道题走出自闭了!!! 摘要:解题思路:不要按照题目的要求输入一个数,而是把要输入的这个数看做一个字符串!!!!注意事项:无!!参考代码:#include<stdio.h>int main(){ char a[12]; int i…… 题解列表 2019年04月19日 0 点赞 0 评论 653 浏览 评分:0.0
蓝桥杯算法提高VIP-P0102 (C++代码) 摘要:解题思路:输入直接输入一个16进制数,然后直接输出。输出16进制:%x为输出小写,%X为输出大写。输出3位16进制(不足补0):%03x为输出小写,%03X为输出大写。输出8进制:%o。输出4位8进制…… 题解列表 2019年04月19日 0 点赞 0 评论 770 浏览 评分:0.0