连通图(sf14b) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=100005;int father[N];//找…… 题解列表 2025年06月01日 0 点赞 0 评论 192 浏览 评分:0.0
队列queue(sf13a) 摘要:解题思路:注意事项:在操作2时,当队列为空时,输出no,且return 0(退出);参考代码:#include<bits/stdc++.h>using namespace std;int …… 题解列表 2025年05月29日 0 点赞 0 评论 196 浏览 评分:0.0
链表合并map(sf13c) 摘要:解题思路:map<int,int>mp;//一个是键,一个是值//map有自动排序特性注意事项:注意map的输入和输出的方式参考代码:#include<bits/stdc…… 题解列表 2025年05月29日 0 点赞 0 评论 322 浏览 评分:0.0
c语言解决 小九九 题号1671 摘要:解题思路:For循环嵌套do while循环,再嵌套if-else判断。注意事项:在做这个题目中最主要其实就是需要每个左对齐,我之前尝试了别的方法,比如增加/t缩进等,但最后还是发现,直接判断敲空格是…… 题解列表 2025年06月26日 1 点赞 0 评论 319 浏览 评分:0.0
2998: 电影票 摘要:解题思路:人数*10注意事项:需要输出空格。参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年06月29日 0 点赞 1 评论 228 浏览 评分:0.0
报数问题(约瑟夫环问题) 摘要:```#include #include using namespace std;int findLastPerson (int n){ if(n1){ …… 题解列表 2025年07月02日 0 点赞 0 评论 269 浏览 评分:10.0
结构体之时间设计 摘要:```#include using namespace std;struct Date { int day, month, year;};int main() {…… 题解列表 2025年07月02日 1 点赞 0 评论 253 浏览 评分:0.0
7月4号刷题记录yyyyyyyyyyyyyyyyyyy 摘要:解题思路:飒飒的注意事项:啊实打实的参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main…… 题解列表 2025年07月04日 1 点赞 0 评论 439 浏览 评分:0.0
优质题解 [北邮大作业]俄罗斯方块OJ版题解思路 摘要:题目很难,题目也很简单。这边是用cpp写的,参考基于Pierre Dellacherie算法(一下简称PD)这边图形就根据数组定义建系棋盘长这样:1. …… 题解列表 2025年05月20日 4 点赞 0 评论 1000 浏览 评分:7.3