题解列表

筛选

NOIP提高组2007

摘要:参考代码:#include<stdio.h> char s[150]; int p1, p2, p3; char c; char now, left, right; int main() ……

编写题解 2792: 三角形判断

摘要:解题思路:两个较短的边之和大于最长的那条边注意事项:参考代码:a=list(map(int,input().split()))a.sort()if a[0]+a[1]>a[2]:    print(&……

整数删除-能看懂系列

摘要:解题思路:第一份代码为通过的代码,借鉴于其处的方法,这边有些大佬的代码可能不太好理解,所以写了这个比较详细的,希望对各位有用;另外这个题我自己也有方法,容易理解但较为繁琐也可惜有4个输出超限,有兴趣的……

Hanoi双塔问题(c语言实现)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>  void n2(double ar[], int n);//函数求2^n并储存在数组int main(){    int n;   ……

The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int a,b; int i = 0; int x; while (scan……