题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:别忘记用endl换行和少打*!参考代码: #include <bits/stdc++.h>//万能头文件 using namespace std;int mai…… 题解列表 2023年11月19日 0 点赞 0 评论 383 浏览 评分:0.0
题解:2752:整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x; short a; co…… 题解列表 2023年11月19日 0 点赞 0 评论 680 浏览 评分:9.9
买房子(第一年房子没涨价) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N, K,i=2; float money=200.0; scanf("%d %d", &N, &K);…… 题解列表 2023年11月19日 0 点赞 0 评论 457 浏览 评分:0.0
最大公约数与最小公倍数for语句(逆向思维) 摘要:解题思路:先找出a与b哪个最小,再赋值给i。采用逆向思维,倒着找到最大公约数,再求最小公倍数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,g…… 题解列表 2023年11月19日 0 点赞 0 评论 305 浏览 评分:9.9
求整数的和与均值(求解答) 摘要:解题思路:注意事项:此代码可实现所要求的功能但无法通过测试,令人忍俊不禁参考代码:n=int(input())sum=0for i in range(n): k=int(input()) su…… 题解列表 2023年11月18日 0 点赞 6 评论 714 浏览 评分:7.3
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum; int a[n]; int i; scanf("%d",&…… 题解列表 2023年11月18日 0 点赞 0 评论 394 浏览 评分:0.0
优质题解 [编程入门]自定义函数之字符串连接 摘要:### 解题思路: >首先,我想说既然题目中给出自己写一个函数将两个字符串连接,那么出题人的意图应该就是要考生自己编写一个函数实现与`strcat`函数同样的效果,而不是直接引用`strcat`…… 题解列表 2023年11月18日 0 点赞 9 评论 3025 浏览 评分:8.3
C语言--好理解 摘要:解题思路:简单的if语句的使用;注意事项:用pow(n,m)表示立方,不然只有75分。pow(n,m)代表n的m次方;参考代码:#include <stdio.h>int main(){ int…… 题解列表 2023年11月18日 0 点赞 0 评论 487 浏览 评分:0.0
题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a…… 题解列表 2023年11月18日 0 点赞 0 评论 381 浏览 评分:9.9
2829: 数1的个数 摘要:``` #include using namespace std; int n,x,sum; int main(){ cin>>n; for( int i=1;i…… 题解列表 2023年11月18日 0 点赞 0 评论 470 浏览 评分:9.9