题解列表

筛选

活动安排-排序

摘要:解题思路:题意就是求出一个时间段最多相容的数量,意味着我们只需要排序出所有时间段的顺序后按照a[i+1].first>=a[i].second就能求得最优解,按照结束的时间段排序即可测试数据:……

统计字符数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,l; int……

计算并联电阻阻值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float r1,r2; scanf("……

dfs菜鸟级包能懂

摘要:解题思路:dfs直接搜,拿一个数组存一下访问过的数组就行啦,变量名不规范见谅注意事项:参考代码:#include<bits/stdc++.h>using namespace std;con……

dafasdfasdfasdf

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; int sum; int temp; while(n>0) { t……