873

Codeforces Round 873 (Div. 2) B. Permutation Swap

给一个无序排列 $p_1, p_2, \cdots, p_n$ 。为了排序这个排列,选一个常数 $k(k \geq 1)$ 并且在排列上做一些操作。 * 一次操作可以选择 $i, j, (1 \leq j view ``` #include typedef long long ll; ll gcd( ......
Permutation Codeforces Round Swap 873

【873】Python读取NetCDF中的scale_factor和add_offset

参考:python中scale的用法_在netCDF4和Python中使用scale_factor和add_offset的示例? 参考代码: import netCDF4 as nc dir_path = "./2m_temperature/03_TIFF/" files = os.listdir( ......
scale_factor add_offset Python NetCDF factor

Codeforces Round 873 (Div. 2) A~D2

## Codeforces Round 873 (Div. 2) A~D2 ### A. Divisible Array 因为$1$一定整除,构造$a_i=i$,再让$a_1$加上和模$n$的余数 ```c++ void work() { int n; cin >> n; vector a(n + ......
Codeforces Round 873 Div D2

Codeforces Round 873 (Div. 2)

Codeforces Round 873 (Div. 2) 链接 Codeforces Round 873 (Div. 2) A题 打印2-n并且计算总和,然后找到严格大于sum的n的倍数记为x,然后用这个x减去sum得到a. 然后先打印a然后再打印2-n #include <iostream> # ......
Codeforces Round 873 Div

Codeforces Round 873 A~E

Codeforces Round 873 (Div.1) A. Counting Orders 对于每个 $a_i$,可以计算出 $c_i$ 表示有多少个 $b_j\lt a_i$。 那么第 $i$ 个人就有 $c_i$ 种可能的位置。 注意到如果将 $a$ 升序排序,则能放的位置集合从前往后是包含 ......
Codeforces Round 873
共5篇  :1/1页 首页上一页1下一页尾页