摘要: next_permutation 是一个定义在 <algorithm> 中的一个全排列函数, 用于按顺序生成一个数列的全排列 基本用法 : 阅读全文
posted @ 2018-07-30 15:25 楼主好菜啊 阅读(166) 评论(0) 推荐(0)
摘要: int read() { //输入挂 int x = 0, f = 1; register char ch = getchar(); while (ch'9') { if (ch == '-')f = -1; ch = getchar(); } while (ch >= '0'&&ch <= '9') { x = x * 10 + c... 阅读全文
posted @ 2018-07-30 10:41 楼主好菜啊 阅读(196) 评论(1) 推荐(1)
摘要: 链接:https://www.nowcoder.com/acm/contest/139/J来源:牛客网题目描述Given a sequence of integers a1, a2, ..., an and q pairs of integers (l1, r1), (l2, r2), ..., ( 阅读全文
posted @ 2018-07-30 09:06 楼主好菜啊 阅读(1851) 评论(0) 推荐(0)