摘要: B. Emordnilap 原题链接 A permutation of length n is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, [2,3,1,5,4] is 阅读全文
posted @ 2023-01-22 12:17 Keith- 阅读(133) 评论(0) 推荐(0) 编辑
摘要: A. Everybody Likes Good Arrays! 原题链接 An array a is good if for all pairs of adjacent elements【相邻元素】, ai and ai+1 (1≤i<n) are of different parity【奇偶性】. 阅读全文
posted @ 2023-01-22 10:47 Keith- 阅读(52) 评论(0) 推荐(0) 编辑