都是循环队列的最基本应用,都是简单模拟,就不多讲了。
POJ 3125
题目传送门:http://poj.org/problem?id=3125
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdio>
using namespace std;
const int MAX = 105;
int main()
{
int t;
scanf("%d",&t);
int n,loc;
这篇博客主要介绍了如何使用循环队列解决POJ上的3125和3750两道题目,涉及约瑟夫环的模拟,是数据结构基础应用的实践展示。
最低0.47元/天 解锁文章

1154

被折叠的 条评论
为什么被折叠?



