多次输入输出每行最大值python 摘要:解题思路:注意事项:输入可能会有点问题,所以在except后面加一个EOFError参考代码:while True: try: L = list(map(int,input().s…… 题解列表 2023年03月19日 0 点赞 0 评论 198 浏览 评分:0.0
邮票组合问题python 摘要:解题思路:注意事项:最后的结果要减1,因为不能都取零张参考代码:L = []for i in range(5): for j in range(4): a = 3*i+5*j …… 题解列表 2023年03月19日 0 点赞 0 评论 147 浏览 评分:0.0
亲和数——一个数的因子和等于另一个数 摘要:解题思路:注意事项:前面那个数的因子和不包括它本身参考代码:def yzh(n): L = [1] for i in range(2,n): if n%i == 0: …… 题解列表 2023年03月19日 0 点赞 0 评论 195 浏览 评分:0.0
"水仙花数"问题2 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; //用来存储各位的值 for(int i = 100;i<1000;i++) //从小到大…… 题解列表 2023年03月19日 0 点赞 0 评论 157 浏览 评分:0.0
水仙花数判断 摘要:解题思路:和水仙花数问题2一样参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; for(int i = 100;i<…… 题解列表 2023年03月19日 0 点赞 0 评论 157 浏览 评分:0.0
二级C语言-温度转换 摘要:```c #include int main() { double f=0,c; scanf("%lf",&f); c=(f-32)/9*5; print…… 题解列表 2023年03月19日 0 点赞 0 评论 195 浏览 评分:0.0
二级C语言-求偶数和 摘要:```c #include int main() { int s[100]={'\0'}; int n=0,k=0; scanf("%d",&n); fo…… 题解列表 2023年03月19日 0 点赞 0 评论 151 浏览 评分:0.0
:和为给定数 与 二分查找模板 摘要:解题思路:数组排序 然后通过差值找另一半注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100006];//下面就是二…… 题解列表 2023年03月19日 0 点赞 0 评论 169 浏览 评分:0.0
不重复地输出数 摘要:解题思路:排序 和后面的一样跳过 不一样输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100006];int main(){…… 题解列表 2023年03月19日 0 点赞 0 评论 156 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:解题思路:先合并,再排序注意事项:参考代码:#include <stdio.h>#include<string.h>#include<malloc.h>#define MaxSize 100typed…… 题解列表 2023年03月19日 0 点赞 0 评论 114 浏览 评分:0.0