众数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[1000],b[100],p,j,i,k,m=0,max,sum=0; scanf("%d",&…… 题解列表 2018年07月26日 0 点赞 0 评论 1507 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.5 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;struct student{ char num[2…… 题解列表 2018年07月26日 0 点赞 0 评论 917 浏览 评分:0.0
可 AC (C语言代码) 摘要:解题思路: 判断是否为质数,然后做乘积,质数个数加一.当质数个数达到n时,退出循环. 注意事项: 尽量优化算法,免得时间超限, 较大的数尽量使用 long long 参考代码:…… 题解列表 2018年07月26日 2 点赞 0 评论 1811 浏览 评分:0.0
三位数反转 (C语言代码) 摘要:解题思路:用字符串保存直接反输出注意事项:直接输出printf("%c%c%c",s[2],s[1],s[0]);是错误的 因为输入两位数的时候,s[2]是'\0'了参考代码:#in…… 题解列表 2018年07月26日 1 点赞 0 评论 1867 浏览 评分:6.0
数日子 (C语言代码) 摘要:解题思路:直接输出注意事项:参考代码:#include<stdio.h>int main(){printf("200\n");return 0;}…… 题解列表 2018年07月26日 0 点赞 1 评论 436 浏览 评分:2.0
判断第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <string.h>#include<stdio.h>#include <math.h>int data[13] = { 0,31,28,31,30,3…… 题解列表 2018年07月26日 2 点赞 0 评论 1526 浏览 评分:0.0
求输入数据绝对值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <string.h>#include<stdio.h>#include <math.h>int main(){ float n; while(scanf…… 题解列表 2018年07月26日 0 点赞 0 评论 988 浏览 评分:0.0
蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void) { int a[100][100]; //用二位数组储存元素 …… 题解列表 2018年07月26日 1 点赞 0 评论 1809 浏览 评分:0.0
蓝桥杯算法提高- c++_ch02_03 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>#include <iomanip>using namespace std;int main ()…… 题解列表 2018年07月26日 0 点赞 0 评论 1443 浏览 评分:0.0
【亲和数】 (Java代码) 摘要:解题思路: 1.用变量保存输入的两个数字 2.取出其中一个数字,从1开始到这个数字循环取模,如果能够整除就累加 3.如果累加的结果正好等于另一个数字,就可以输出 YES 4.…… 题解列表 2018年07月25日 2 点赞 0 评论 1382 浏览 评分:0.0