题解列表

筛选

c++简单解题思路

解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include#includeusingnamespacestd;intmain(intargc,charconst*argv[]){intn;inta,

贝茜的训练-模拟

摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intm,t,u,f,d,……

T1015 求和 四行解决

解题思路:注意事项:参考代码:a,b,c=map(int,input().strip().split())deff1(a,b,c):lst=[sum([iforiinrange(1,a+1)]),sum([i**2foriinrange(1,

ISBN码-模拟+双指针

摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(……

排座椅[NOIP2008 年普及组]:贪心

摘要:解题思路:贪心策略, 分隔最多同学对数倒序排列, 选取前k(l)个加入vector, 然后以Idx排序输出注意事项:参考代码:#include<bits/stdc++.h>using&……

T1020 猴子偷桃

摘要:解题思路:注意事项:参考代码:n=int(input())def f(n): s=1 while n-1: ……