我直接ifififif 摘要:```cpp#include #include using namespace std;int main(){ string s; int a[50]={0},…… 题解列表 2025年02月18日 0 点赞 0 评论 196 浏览 评分:0.0
优先队列解法 摘要:解题思路:1. 使用优先队列来优化选择窗口的操作,优先队列(小顶堆)的特性可以保证每次堆顶元素就是当前空闲时间最早(即空闲时间最短)的窗口&…… 题解列表 2025年02月18日 1 点赞 0 评论 168 浏览 评分:10.0
字符逆序-一个for搞定 摘要:解题思路:注意事项:#include<stdio.h>#include<string.h>intmain(){&…… 题解列表 2025年02月18日 0 点赞 0 评论 249 浏览 评分:0.0
最容易想到的解法了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i…… 题解列表 2025年02月18日 0 点赞 0 评论 124 浏览 评分:0.0
易于理解-数1的个数-for、while结合 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){intn,a=0,i…… 题解列表 2025年02月18日 0 点赞 0 评论 245 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intzhishu(inti){&nbs…… 题解列表 2025年02月18日 0 点赞 0 评论 634 浏览 评分:0.0
判断一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//判断一个数是否为质数int&…… 题解列表 2025年02月18日 0 点赞 0 评论 217 浏览 评分:0.0
stricmp用不了,换普通解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i…… 题解列表 2025年02月18日 0 点赞 0 评论 146 浏览 评分:0.0
一个有点复杂的方法,不如其他大佬的优质解法(本人刚起步学习哈) 摘要:#includeint main(void){ int num; scanf("%d",&num); int a[num]; for(int…… 题解列表 2025年02月17日 0 点赞 0 评论 305 浏览 评分:0.0
Python代码-去掉空格 摘要:```pythonif __name__ == '__main__': while True: try: str1 = str(input()…… 题解列表 2025年02月17日 0 点赞 0 评论 140 浏览 评分:0.0