题解列表

筛选

超简短代码

摘要:解题思路:注意事项:参考代码:while True:    a,b=map(int,input().split())    print(a+b)    print()……

模拟双指针 (代码简洁)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){    int a=0,b=9;/……

带限制条件的分组背包

摘要:```C++ #include #include /* 思路:首先尝试将问题简化,如果去掉等级这一限制,那么所有的装饰孔可以合并成一个体积为V的背包,对于下面m组t个物品,我们只选……

while循环的持续输入

摘要:解题思路:注意事项:参考代码:while True:    a,b=map(int,input().split())    print(a+b)……

注意换行和列表清空

摘要:解题思路:注意事项:参考代码:while True:    a=list(map(int,input().split()))    a=a[1:]    b=sorted(a,reverse=True……

分类讨论以及循环输入

摘要:解题思路:注意事项:参考代码:while True:    a=int(input())    if a<=100 and a>=90:        print(&#39;A&#39;)    el……

列表注意还原为空列表

摘要:解题思路:注意事项:参考代码:while True:    a,b,c=map(int,input().split())    d=[a,b,c]    xx=sorted(d)    if xx[0……

a,b=0时跳出循环

摘要:解题思路:注意事项:参考代码:while True:    a,b=map(int,input().split())    if a==0 and b==0:        break    prin……