[Python]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:def yue(a,b): if a < b: a,b = b,a for i in range(2,b+1): if a%i =…… 题解列表 2022年11月19日 0 点赞 0 评论 367 浏览 评分:0.0
1182: 人民币问题 摘要:```cpp #include using namespace std; int main() { int a,b,c,count=0; int sum; cin…… 题解列表 2022年11月19日 0 点赞 0 评论 422 浏览 评分:9.9
1181: 不容易系列2 摘要:```cpp #include using namespace std; int main() { int n; while(cin>>n) { …… 题解列表 2022年11月19日 0 点赞 0 评论 519 浏览 评分:9.9
只是写写注意事项 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d",&a); getchar(); //这里写…… 题解列表 2022年11月19日 0 点赞 0 评论 912 浏览 评分:9.9
糖果游戏(简单一般法) 摘要:解题思路:就是一个很简单的循环加上条件分支。注意事项:参考代码:#include<stdio.h>int main(){ int a[5]; int i=0; for(i=0;i<5…… 题解列表 2022年11月19日 0 点赞 6 评论 1144 浏览 评分:9.9
1013: [编程入门]Sn的公式求和(通过通项公式实现) 摘要:解题思路:这里是应用高中内容求出2 22 222 2222......的通项公式求解首先我们可以很容易知道在n =(1,2,3......)时10^n = 10,100,1000......而再减去1…… 题解列表 2022年11月19日 0 点赞 0 评论 378 浏览 评分:9.9
C语言 宏定义之找最大数& 摘要:解题思路:注意事项:此代码在蓝桥杯在线测试运行不起来,本人VS2019运行没问题,可能是float num[Long]的问题,如果改为int num[Long蓝桥杯就能运行了参考代码:#include…… 题解列表 2022年11月19日 0 点赞 0 评论 348 浏览 评分:0.0
c++字符串加密病历单 摘要:解题思路:注意事项:xyz的逆序输出参考代码:#include <bits/stdc++.h>using namespace std;int main (){ string tmp; char ans…… 题解列表 2022年11月19日 0 点赞 0 评论 955 浏览 评分:7.3
利用二维数组的思想,找出填充数据之间的规律 摘要:解题思路:注意事项:参考代码:n = int(input())n_list = [[0 for i in range(n)] for j in range(n)]n_list[0][0] = 1for…… 题解列表 2022年11月19日 0 点赞 0 评论 336 浏览 评分:0.0
c语言的一种思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<limits.h>#include<math.h>#include<stdlib.h>int main(){ i…… 题解列表 2022年11月19日 0 点赞 0 评论 357 浏览 评分:0.0