1018递归解法(Python) 摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) : glo…… 题解列表 2022年11月04日 0 点赞 0 评论 252 浏览 评分:0.0
简单易懂,小白必看 摘要:#include<stdio.h>int main(){ int a[10],pjs=0,sum=0,num=0; for(int i=0;i<10;i++) { sc…… 题解列表 2022年11月04日 0 点赞 0 评论 282 浏览 评分:0.0
两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 327 浏览 评分:0.0
题解 2906: 笨小猴 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int ZS(int n){ if(n<2) return 0; …… 题解列表 2022年11月04日 0 点赞 0 评论 327 浏览 评分:0.0
编写题解 1206: 字符串问题(最短) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a;//定义 cin>>a;//输出 …… 题解列表 2022年11月04日 0 点赞 0 评论 373 浏览 评分:0.0
判断是否为两位数 摘要:解题思路:注意事项:输入的数值大于0参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a/100<1) p…… 题解列表 2022年11月04日 0 点赞 0 评论 385 浏览 评分:0.0
明白题意写题解 摘要:注意事项: 要枚举的是游戏的结果,不是游戏方式。不要把石头剪刀布枚举出来。 只是要求用输入的0、1、2表示石头、布、剪刀。参 题解列表 2022年11月04日 0 点赞 0 评论 282 浏览 评分:0.0
1009: [编程入门]数字的处理与判断(入门新手) 摘要:#include<stdio.h>int main(){ int a,b,c,d,e,f,t; scanf("%d",&a); b=a/10000; c=a/1000%10; d=a/100%10; …… 题解列表 2022年11月04日 0 点赞 0 评论 242 浏览 评分:0.0
1159: 偶数求和 摘要:```cpp #include using namespace std; int main() { int n,m,num[100]; num[0]=2; for…… 题解列表 2022年11月05日 0 点赞 0 评论 414 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum=0;int j,n,i; while(scanf("%d",&n)!=EOF) …… 题解列表 2022年11月05日 0 点赞 0 评论 208 浏览 评分:0.0