1858C

[Codeforces] CF1858C Yet Another Permutation Problem

Yet Another Permutation Problem - 洛谷 这题本来很简单,思路我也想到了,但是代码一直没写对,思路也一直换来换去(悲 然而发现最开始的思路是对的 题意 Alex 收到了一个名为 "GCD 排列" 的游戏作为生日礼物。这个游戏的每一轮进行如下操作: 首先,Alex 选择 ......
Permutation Codeforces Another Problem 1858C

CF1858C Yet Another Permutation Problem

CF1858C Yet Another Permutation Problem Yet Another Permutation Problem - 洛谷 这题本来很简单,思路我也想到了,但是代码一直没写对,思路也一直换来换去(悲 然而发现最开始的思路是对的 题意 Alex 收到了一个名为 "GCD ......
Permutation Another Problem 1858C 1858

CF1858C Yet Another Permutation Problem 题解

## 思路 这个题是一个简单的构造题。~~竟然比 T2 简单,也是少见~~ 我们可以首先从 $1$ 开始不断乘以 $2$,像这样:$1, 2, 4, 8, 16\cdots,2^x$,直到什么时候超过 $n$ 就停止。 这样相邻两个数字就可以凑出 $1, 2, 4, 6, \cdots,2^{x- ......
题解 Permutation Another Problem 1858C

CF1858C Yet Another Permutation Problem 题解

## 杂言 赛时想到做法,结果调 code 把自己心态调炸了,所以来写一篇题解(恼)。 另:此题与 [P9345 夕阳西下几时回](https://www.luogu.com.cn/problem/P9345) 几乎相同,可以此练手。 另另:本题多测,多测不清空,爆零两行泪。 ## 题意翻译 $a_ ......
题解 Permutation Another Problem 1858C
共4篇  :1/1页 首页上一页1下一页尾页