此解可AC (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x, y; scanf("%lf", &x); if (x < 0…… 题解列表 2018年07月15日 3 点赞 0 评论 2506 浏览 评分:6.0
此解可AC(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, s, sum = 0, i = 0; while (scanf("…… 题解列表 2018年07月16日 1 点赞 0 评论 1379 浏览 评分:6.0
蓝桥杯算法提高VIP-色盲的民主 (C语言代码) 解题思路:每种颜色都对应有其票数,可定义颜色结构:包含数据成员颜色单词(词组)和获得的投票数;色盲的人数不多于1000个,每人一句话,最多有1000种不同的颜色,组成可查询的颜色表;输入n后可以读取随后的n句话,每句话包含颜色单词(词组)、换行符和结束符, 题解列表 2018年07月16日 0 点赞 0 评论 2032 浏览 评分:6.0
蓝桥杯算法训练VIP-s01串 (C语言代码) 解题思路:刚开始,要求s01串,不复杂,只有两种变换方式,输入数据的规模也不大,用两个数组,从一个数组里读取当前需要变换的子串,另一个数组不断往后增加变换得到的新串,就能逐步变换;可是,算法的时间和空间怎样限定呢?对空间,逐步探测,先假设串长只有1000个字符, 题解列表 2018年07月17日 0 点赞 0 评论 2546 浏览 评分:6.0
蓝桥杯算法提高VIP-身份证排序 (C语言代码) 摘要:解题思路:数字拆分注意事项:0也要输出参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> typedef struct {…… 题解列表 2018年07月23日 0 点赞 0 评论 3330 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题9.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) ((y%4==0 && y%100!=0)||(y%400==0))?'L':…… 题解列表 2018年07月23日 0 点赞 0 评论 1683 浏览 评分:6.0
此解可AC (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int num[4], i, j, k, t; for (i = 0; i < 4; i++) …… 题解列表 2018年07月23日 2 点赞 0 评论 2265 浏览 评分:6.0
可AC (C语言代码) 摘要:解题思路: 定义大小为26的整型数组,对应26个英文字母, 判断字符串的每个元素, 对应下表的数组值加加, 然后进行比较大小,输出即可. 别忘记清空数…… 题解列表 2018年07月24日 2 点赞 0 评论 2736 浏览 评分:6.0
三位数反转 (C语言代码) 摘要:解题思路:用字符串保存直接反输出注意事项:直接输出printf("%c%c%c",s[2],s[1],s[0]);是错误的 因为输入两位数的时候,s[2]是'\0'了参考代码:#in…… 题解列表 2018年07月26日 1 点赞 0 评论 2230 浏览 评分:6.0
蓝桥杯算法提高VIP-现代诗如蚯蚓 (C++代码) 摘要:#include "iostream" #include "algorithm" #include "string" using namespace std; int a[1001]; in…… 题解列表 2018年07月28日 0 点赞 0 评论 2652 浏览 评分:6.0