题解列表
2753: 浮点型数据类型存储空间大小 题解
摘要:解题思路:遵照题意即可参考代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
float a;
doub……
2754: 其他基本数据类型存储空间大小 题解
摘要:解题思路:遵照题意即可参考代码:#include<bits/stdc++.h>using namespace std;int main(){ bool a; char b; cout……
编写题解 1024: [编程入门]矩阵对角线求和 适合新手理解体会
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int k,p=0; int a[……
编写题解 1026: [编程入门]数字逆序输出
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int a[10]; for(in……
[编程入门]最大公约数与最小公倍数 辗转相除法
摘要:解题思路:1.若b=0,不再循环,a为最大公约数2.计算a/b的余数,设t为余数,将b的值赋给a,t的值赋给b3.b不等于0,循环 (最大公约数)4.最小公倍数=a*b/最大公约数 (最小公倍数)注……
编写题解 1500: 蓝桥杯算法提高VIP-分数统计
摘要:解题思路:注意事项:参考代码:#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
int p;
int print(int a……
编写题解 1386: 妹子杀手的故事
摘要:解题思路:注意事项:参考代码://行测试数据,每行包含两个整数a和b(0<a,b<=100),表示长方形的长和宽。当a和b同时为0时,表示输入结束
#include<stdio.h>
int ma……