题解列表

筛选

我直接ifififif

摘要:```cpp#include #include using namespace std;int main(){ string s; int a[50]={0},……

优先队列解法

摘要:解题思路:1. 使用优先队列来优化选择窗口的操作,优先队列(小顶堆)的特性可以保证每次堆顶元素就是当前空闲时间最早(即空闲时间最短)的窗口&……

最容易想到的解法了

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i……

筛选N以内的素数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intzhishu(inti){&nbs……

判断一个数是否为质数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//判断一个数是否为质数int&……