1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要: $$GCD(A,B)\times LCM(A,B)=A\times B$$ ```cpp #include using namespace std; // 最大公约数 int GCD(…… 题解列表 2023年12月09日 1 点赞 0 评论 300 浏览 评分:9.9
1866:三位数反转(C++) 摘要:解题思路:百位数为i/100;十位数为1/10-i/100*10;个位数为i-i/100*100-(i/10-i/100*10)*10注意事项:此题目含“有多组测试数据”则需要用循环结构参考代码:#i…… 题解列表 2023年12月09日 0 点赞 0 评论 325 浏览 评分:9.9
编写题解 1160: 出圈(队列) 摘要:解题思路:把m-1个数加到后面之后,删除第一个数即可注意事项:参考代码:while True: try: n,m = map(int,input().split()) …… 题解列表 2023年12月09日 1 点赞 0 评论 290 浏览 评分:0.0
感觉不错的方法 摘要:解题思路:用布尔函数判断是否为素数注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; cin >>…… 题解列表 2023年12月09日 0 点赞 0 评论 262 浏览 评分:0.0
for循环简单解题 摘要:解题思路:注意事项:是s【f-1】,不是s【i-】哦!!!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ string s; …… 题解列表 2023年12月09日 0 点赞 0 评论 251 浏览 评分:9.9
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月09日 0 点赞 2 评论 147 浏览 评分:6.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char c; cin>>c; if(in…… 题解列表 2023年12月09日 0 点赞 0 评论 366 浏览 评分:9.9
编写题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; cout…… 题解列表 2023年12月09日 0 点赞 0 评论 292 浏览 评分:9.9
题解 2752: 整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; short b; cout<<size…… 题解列表 2023年12月09日 0 点赞 0 评论 311 浏览 评分:9.9
题解 2997: 梯形面积 摘要:解题思路:在梯形中阴影部分面积是150平方厘米,求梯形面积。众所周知,梯形的面积公式是S=(上底+下底)×高÷2其中,上底为15厘米,下底为25厘米高指的是图中上底与下底之间互相垂直的线段题目给出的是…… 题解列表 2023年12月09日 0 点赞 0 评论 716 浏览 评分:9.9