编写题解 2792: 三角形判断 摘要:解题思路:两个较短的边之和大于最长的那条边注意事项:参考代码:a=list(map(int,input().split()))a.sort()if a[0]+a[1]>a[2]: print(&…… 题解列表 2024年02月27日 0 点赞 0 评论 373 浏览 评分:10.0
整数删除-能看懂系列 摘要:解题思路:第一份代码为通过的代码,借鉴于其处的方法,这边有些大佬的代码可能不太好理解,所以写了这个比较详细的,希望对各位有用;另外这个题我自己也有方法,容易理解但较为繁琐也可惜有4个输出超限,有兴趣的…… 题解列表 2024年03月02日 3 点赞 1 评论 1351 浏览 评分:10.0
Hanoi双塔问题(c语言实现) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void n2(double ar[], int n);//函数求2^n并储存在数组int main(){ int n; …… 题解列表 2024年03月02日 3 点赞 0 评论 538 浏览 评分:10.0
【C语言题解】蓝桥杯2023年第十四届省赛真题-平方差 摘要:``` #include int main(){ long int L,R,cnt; scanf ("%ld%ld",&L,&R); //x=y*y-z*z 即x…… 题解列表 2024年03月03日 4 点赞 3 评论 1059 浏览 评分:10.0
The 3n + 1 problem 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int a,b; int i = 0; int x; while (scan…… 题解列表 2024年03月05日 1 点赞 0 评论 287 浏览 评分:10.0
编写题解 2791: 计算邮资python 摘要:参考代码:r, s = input().split() r = int(r) money = 8 if r > 1000: money += (r-1000)//500*4 …… 题解列表 2024年03月06日 0 点赞 0 评论 466 浏览 评分:10.0
编写题解 1119: C语言训练-"水仙花数"问题1(循环解决) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,c=0; scanf("%d", &n); int t = n; while (n != 0) …… 题解列表 2024年03月06日 1 点赞 0 评论 649 浏览 评分:10.0
C++老管家的忠诚(线段树做法) 摘要:区间查询,果断想到线段树,看了一下题解有很多用的st表,但感觉st表模板太难记了,线段树相对好记很多,还是线段树更香一点。树状数组也可以求最值但得改模板。参考代码:#include using nam…… 题解列表 2024年03月07日 0 点赞 0 评论 306 浏览 评分:10.0
利用类型转换解Hello, world! 摘要:解题思路:利用char,把int类型转换为char类型即可注意事项:参考代码:#include<iostream>using namespace std;int main(){int a = 0;wh…… 题解列表 2024年03月07日 1 点赞 0 评论 372 浏览 评分:10.0
A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2024年03月07日 0 点赞 0 评论 662 浏览 评分:10.0