题解列表

筛选

1035 字符类型统计

摘要:解题思路:#include<stdio.h>#include<ctype.h>int letters=0,digits=0,spaces=0,others=0;void cou……

能量项链 - dp

摘要:解题思路:处理环形结构:将环形项链"展开"成线性结构,通过复制一份数组来处理&nbs……

用vector来写

摘要:#includeusing namespace std;int main(){ vector vec; int n,num; for(int i=0;i>num;……

动态窗口1111111

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,k; cin>>n>……

连连看Python

摘要:n,m=map(int,input().strip().split())num=[list(map(int,input().split()))for _ in range(n)]sum=0……

欧亚李鑫超级无敌暴力解法

摘要:解题思路:如果只有1枚硬币,不需要称量,直接返回0。如果有2枚或3枚硬币,只需要称量1次即可找出假币。递归关系:对于 n 枚硬币,每次称量可以将硬币分成三组,每组大约有 3n 枚硬币。如果 n 不能被……