博客
关于我
P1088火星人
阅读量:330 次
发布时间:2019-03-04

本文共 403 字,大约阅读时间需要 1 分钟。

?????????????

#include 
using namespace std;typedef long long ll;int a[10005];ll n, m;int main() { cin >> n >> m; for(int i = 1; i <= n; i++) cin >> a[i]; for(int i = 1; i <= m; i++) next_permutation(a + 1, a + 1 + n); for(int i = 1; i <= n; i++) { cout << a[i] << " "; } return 0;}

???????????????????????????????????????????????????????????

转载地址:http://bsrq.baihongyu.com/

你可能感兴趣的文章
poj1730 - Perfect Pth Powers(完全平方数)(水题)
查看>>
poj1753——Flip Game
查看>>
poj1936 假期计划第一水
查看>>
poj1958-汉诺四塔问题(三种方法)
查看>>
poj1988(并查集)
查看>>
POJ2007+几何+极角排序
查看>>
poj2039
查看>>
posix多线程有感--自旋锁
查看>>
PostgreSQL cube 插件 - 多维空间对象
查看>>
postgresql 主从配置_生产环境postgresql主从环境配置
查看>>
postgresql 函数&存储过程 ; 递归查询
查看>>
PostgreSQL 同步流复制锁瓶颈分析
查看>>
PostgreSQL 备份与还原命令 pg_dump
查看>>
Postgresql 外部表插件postgres_fdw的安装和使用
查看>>
PostgreSQL 如何从崩溃状态恢复(上)
查看>>
PostgreSQL 存储过程基本语法
查看>>
PostgreSQL 导入 .gz 备份文件
查看>>
PostgreSQL 批量插入&更新数据时报错(ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time)
查看>>
PostgreSQL 新增数据返回自增ID
查看>>
postgresql 更新多列数据
查看>>