3452:【例82.2】 座次问题

950 篇文章 38 订阅
799 篇文章 4 订阅

3452:【例82.2】 座次问题

信息学奥赛一本通-编程启蒙(C++版)在线评测系统

[例82.2] 座次问题

信息学奥赛一本通-编程启蒙(C++版)在线评测系统

【信息学奥赛一本通-编程启蒙】3452【例82.2】 座次问题

【信息学奥赛一本通-编程启蒙】3452【例82.2】 座次问题_哔哩哔哩_bilibili




/*
3452:【例82.2】 座次问题
http://bas.ssoier.cn:8086/problem_show.php?pid=3452
*/
#include <bits/stdc++.h>
using namespace std;
int main( )
{
	vector<string> M1;
	vector<int> M2;
	int N;
	string name;
	cin>>N;
	for(int i=0;i<N;i++)
	{
		cin>>name;
		M1.push_back(name);
		M2.push_back(i);
	}
	do{
		for( vector<int>::iterator it=M2.begin();it!=M2.end();it++){
			cout<<M1[(*it)]<<" ";
		}
		cout<<endl;
	}while(next_permutation(M2.begin(),M2.end()));
	return 0;
}


#include<bits/stdc++.h>
using namespace std;
int main()
{
	vector<string>M1;
	vector<int>M2;
	int N;
	string name;
	cin>>N;
	
	for(int i=0;i<N;i++)
	{
		cin>>name;
		M1.push_back(name);
		M2.push_back(i);
	}
	
	do
	{
		for(vector<int>::iterator it=M2.begin();it!=M2.end();it++)
		{
			cout<<M1[(*it)]<<" ";
		}
		
		cout<<endl;
	}while(next_permutation(M2.begin(),M2.end()));
	
	return 0;
}



 




NOI题库 scratch题解

https://blog.csdn.net/dllglvzhenfeng/category_11603040.html

python算法

https://blog.csdn.net/dllglvzhenfeng/category_11688201.html

信息技术学考一本通(python)

https://blog.csdn.net/pcethonny/category_11943783.html

信息技术学考一本通(python)1036:【例4.1】输出连续10个数(浙版)

信息技术学考一本通(python)1036:【例4.1】输出连续10个数(浙版)_信息技术学考python一本通-CSDN博客

信息技术学考一本通(python)-1062:练4.13 水仙花数

信息技术学考一本通(python)-1062:练4.13 水仙花数_1062:练4.13 水仙花数-CSDN博客

Python信息技术学考一本通题目讲解、python入门、python习题集整理汇总等

Python信息技术学考一本通题目讲解、python入门、python习题集整理汇总等_信息学奥赛一本通python网站-CSDN博客

 




3012:练4.1 阿布拉1(Scratch、C、C++、python)

3012:练4.1 阿布拉1(Scratch、C、C++、python)_尼克是一位好学的学生,他经常做实验。有一天他在做实验的时候需要交换一瓶 毫升的-CSDN博客

Python信息技术学考一本通题目讲解、python入门、python习题集整理汇总等

Python信息技术学考一本通题目讲解、python入门、python习题集整理汇总等 - 哔哩哔哩

Python信息技术学考一本通题目讲解

Python信息技术学考一本通题目讲解_哔哩哔哩_bilibili

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

dllglvzhenfeng

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值