热门图集
最近更新
递归7行解决猴子吃桃
摘要:参考代码:n=eval(input())def peach(m): if m==n: return 1 else: return 2*(peach(m+1)+1……
简单的A+B(C++和Python和Java)
摘要:C++:
```cpp
#include
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)cout……
数据结构-链表的基本操作--C语言
摘要:解题思路:保存题解注意事项:需要确保即使初始元素数量为 0,链表仍然有一个有效的头结点。这样可以避免在后续操作中因为 L 为 NULL 而导致的问题参考代码:#include <stdio.h>
#……
字符菱形的c语言解法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); printf( " %c \n %c%c%……
成绩排序C语言答案(char name[101]!!! 100会只得50分)
摘要:注意事项:分配足够的内存空间char name[101]!!! 100会只得50分参考代码:#include <stdio.h>
#include <stdlib.h>
#include <st……
老头也能看懂的for循环
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=0,b=0,c=0; for(;;){ scanf("%d",&n); i……
新手必看,一正常,一函数递归
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; long long cows[55] = {0}; // 初始化前三年的母牛……
2139: 信息学奥赛一本通T1291-数字组合 两种方法超简单
摘要:解题思路:注意事项:参考代码:DFS#include"bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, t, a[25]; // n: 数……