题解列表
蓝桥杯算法提高VIP-质因数2 (C语言代码)保证你喜欢
摘要:解题思路: 我写过这个,就是上一个题;差不多;;思想一样 。大家可以看看注意事项:参考代码:#include <cstdio>
#include <iostream>……
优质题解
蓝桥杯算法提高VIP-质因数 (C语言代码)简洁
摘要:解题思路: 我们只用从2开始判断就好,不用判断是否为素数,因为如果能被2整除,那么会一只除2,直到2不行为止,那么2都不可以了,4、8等2的倍数肯定不可以!3、5、7、1……
蓝桥杯算法提高VIP-计算质因子 (C语言代码)坑啊
摘要:解题思路:注意事项: 我本来是把最后一个空格去掉了,,,, 然后怎末都不对, 后来加上加就好了参考代码:#include <cstdio>
#include <iostream>
#includ……
简单的a+b (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b; scanf("%d%d",&a, &b); int total = a + b; prin……
Tom数 (C语言代码)
摘要:参考代码:#include <stdio.h>
#include <math.h>
int main()
{
double a;
int m,sum;
while(……
汽水瓶 (C语言代码)
摘要:解题思路:取10以内计算可以发现,当n为偶数时,可以换n/2瓶,奇数时就是(n-1)/2,除开n=1时为0,注意事项:参考代码:#include<stdio.h>int main(){ int n,b……
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int sum(int n);//说明函数void main(){int a;scanf("%d",&a);printf("%d",s……
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He……
还是畅通工程 (C++代码)
摘要:解题思路: 还是并查集+快排#include<bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 7;
s……