数字整除 (C++代码) 摘要:解题思路:看题目数据范围,肯定是大数啦,用字符数组读取,然后再减去‘0’就是对应的数字了。然后把每个得到的数字对17取余,余数*10到加到下一位,继续取余,最后直接判断余数是否为0就OK了。注意事项:…… 题解列表 2018年07月24日 0 点赞 1 评论 2301 浏览 评分:9.9
优质题解 此解可AC (C语言代码) 摘要:解题思路: 先判断是否为因数,再判断因数是否为质数注意事项: 1不是质数,质因数不包括本身参考代码:#include<stdio.h> int fun(int n) { int i; …… 题解列表 2018年07月24日 1 点赞 1 评论 1361 浏览 评分:9.7
王牌花色 (C++代码) 摘要:#include "iostream" #include "cstdio" #include "cstring" #include "string" using namespace std; …… 题解列表 2018年07月24日 1 点赞 0 评论 2071 浏览 评分:0.0
连通图 (C++代码)(并查集) 摘要:解题思路: 判断连通图,构建并查集即可注意事项:参考代码:#include <iostream> #include <cstring> using namespace…… 题解列表 2018年07月25日 0 点赞 0 评论 1648 浏览 评分:8.0
蓝桥杯算法提高VIP-分数统计 (C语言代码) 摘要:解题思路:注意事项:此处有坑!当有最多人数有相同的时候,需要输出数值最大的分数。参考代码:#include<stdio.h>#include<string.h>int main(){ int i,a[…… 题解列表 2018年07月25日 0 点赞 0 评论 1069 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:用冒泡排序解决冒泡排序解决参考代码:#include<stdio.h>int main(){ int a[3]; int temp; int i,j; for(i=…… 题解列表 2018年07月25日 0 点赞 0 评论 757 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:double型 用printf("%.2lf\n",Sn)参考代码:#include<stdio.h>int main(){ int a,b,c,i; double s=0,d=0…… 题解列表 2018年07月25日 0 点赞 0 评论 1183 浏览 评分:0.0
可AC (C语言代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int fun(int n) { int sum = 0; if (n == 1) sum = 0; i…… 题解列表 2018年07月25日 2 点赞 0 评论 1939 浏览 评分:0.0
【魔板】 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int AimValue; bool Vis[49451 + 1]; type…… 题解列表 2018年07月25日 0 点赞 0 评论 1357 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:辗转相除法求最大公约数,再用两个数的积除以最大公约数得到最小公倍数注意事项:参考代码:#include<stdio.h>int yue(int x,int y){ int t,temp…… 题解列表 2018年07月25日 0 点赞 0 评论 1051 浏览 评分:0.0