题解列表
蓝桥杯基础练习VIP-时间转换 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <cstdio>int main(){ int t; scanf("%d",&t); int h,m,s; h=t/3600; ……
蓝桥杯基础练习VIP-分解质因数 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>#define maxn 10005bool isprime[maxn];int prime[ma……
蓝桥杯基础练习VIP-字符串对比 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char s[11],d[11]; scanf("%s%s",……
蓝桥杯基础练习VIP-阶乘计算 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <cstdio>int main(){ int i[10005]; i[0]=1; int n; scanf("%d",&n);……
汽水瓶 (C语言代码)
摘要:解题思路:看题会绕晕,多写几组数据就会发现,其他他绕了一圈,就是看看输入的这个数是2的多少倍。注意事项:参考代码:#include<stdio.h>int main(void){int i,ping,……
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)
摘要:解题思路:注意事项:注意每轮循环重新对sum和count赋值参考代码:int n; scanf("%d", &n); for (int i = 3; i <= n; i++) { ……
蓝桥杯算法训练VIP-最长字符串 (C++代码)
摘要:#include<iostream>
using namespace std;
int main(){
string a[5];
int m=0;
int j=-1;……
C语言程序设计教程(第三版)课后习题6.6 (C语言代码)
摘要:参考代码:#include <stdio.h> #include <math.h>int main() { for (int a = 1; a < 10; a++) { for (……
WU-蓝桥杯算法提高VIP-进制转换 (C++代码)
摘要:代码中包含<iomanip>头文件之后,可以规定数据的输入输出格式cin>>hex>>n 表示输入十六进制的数cin>>oct>>n 表示输入八进制的数cin>>dec>>n 表示输入十进制的数co……