题目 1210: 小明A+B 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct B{ int a1; int a2; };int main(){ in…… 题解列表 2023年04月17日 0 点赞 0 评论 330 浏览 评分:9.9
这题明明很简单,你知道你为啥做不对吗? 摘要:小编刚刚一看到这个题目的时候,感觉这个题目不是很简单吗? 但是每次提交都是显示格式错误 我顿时迷糊了 不过我立马又读了一变题目 and you must note that there is …… 题解列表 2023年04月17日 0 点赞 0 评论 321 浏览 评分:0.0
1072: 汽水瓶 摘要:解题思路:对数数据一次次-3,直到不符合条件跳出第二层循环为止注意事项:n -= 3;要放在if (n == 2)sum++;后面注意顺序参考代码:#include <iostream>using n…… 题解列表 2023年04月17日 0 点赞 0 评论 265 浏览 评分:0.0
1299: 零花钱 摘要:```cpp #include using namespace std; struct lin { int a,b; }s[30]; int cmp(const void *x,…… 题解列表 2023年04月17日 0 点赞 0 评论 1037 浏览 评分:6.0
使用库函数math 摘要:解题思路:注意事项:pow函数只能支持float和double型参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b; int…… 题解列表 2023年04月17日 0 点赞 0 评论 554 浏览 评分:9.9
c语言不用数组,小白做法 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){int a,b,i,z,t=0,c=0;for(i=1;i<8;i++){scanf("%d%d",&a,&…… 题解列表 2023年04月17日 0 点赞 0 评论 323 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-平均-python-排序求和 摘要:解题思路:直接排序求和注意事项:参考代码:n = int(input())dp = list([] for _ in range(10)) # 定义 保存对应数字及代价le = list(0 f…… 题解列表 2023年04月17日 0 点赞 6 评论 1329 浏览 评分:9.8
数据的处理与判断(5位数以内) 摘要:解题思路:先求出数的位数,通过while循环求出,然后定义一个大小为5的数组,将每一位的数依次存入数组。最后根据不同要求,输出数组即可。注意事项:参考代码:#include<stdio.h>int m…… 题解列表 2023年04月16日 0 点赞 0 评论 287 浏览 评分:0.0
while循环题解,就是感觉比for方便 摘要:解题思路:首先,在众多数中比较最大的数,我们首先就想到循环语句,就可以多次连续输入; 然后,输入-1结束,那就是不能等于-1咯,判定这个条件就行; …… 题解列表 2023年04月16日 0 点赞 0 评论 302 浏览 评分:0.0
非常基础的解决方法 摘要:解题思路:用了一些取巧的办法,比较无脑,刚学习c++哈注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin…… 题解列表 2023年04月16日 0 点赞 0 评论 303 浏览 评分:9.0