题解列表

筛选

多次输入输出每行最大值python

摘要:解题思路:注意事项:输入可能会有点问题,所以在except后面加一个EOFError参考代码:while True:    try:        L = list(map(int,input().s……

邮票组合问题python

摘要:解题思路:注意事项:最后的结果要减1,因为不能都取零张参考代码:L = []for i in range(5):    for j in range(4):        a = 3*i+5*j   ……

"水仙花数"问题2

摘要:参考代码:#include<stdio.h>int main(){    int a,b,c;  //用来存储各位的值    for(int i = 100;i<1000;i++)    //从小到大……

水仙花数判断

摘要:解题思路:和水仙花数问题2一样参考代码:#include<stdio.h>#include<math.h>int main(){    int a,b,c;    for(int i = 100;i<……

:和为给定数 与 二分查找模板

摘要:解题思路:数组排序 然后通过差值找另一半注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100006];//下面就是二……

不重复地输出数

摘要:解题思路:排序 和后面的一样跳过 不一样输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100006];int main(){……

1052: [编程入门]链表合并

摘要:解题思路:先合并,再排序注意事项:参考代码:#include <stdio.h>#include<string.h>#include<malloc.h>#define MaxSize 100typed……