01 2025 档案
摘要:2025.1.26——1400 A 1400 B 1400 2024年最后一篇 A 发现和区间非1之和与1的个数大小有关。前缀维护两个信息即可。 B 找到一种构造方式为:来回摆动构造。 代码 A #include <bits/stdc++.h> #define int long long // #d
阅读全文
摘要:2025.1.24——1400 A 1400 Two players are playing an online card game. The game is played using a 32-card deck. Each card has a suit and a rank. There ar
阅读全文
摘要:2025.1.22——1300 A 1300 Your friends have an array of elements, calculated its array of prefix sums and passed it to you, accidentally losing one
阅读全文
摘要:2025.1.21——1300 A 1300 Qingshan has a string which only contains and . A string of length is good if an
阅读全文
摘要:2025.1.20——1300 A 1300 You are given a binary string . A binary string is a string consisting of characters 0 and/or 1. You can perform the follo
阅读全文
摘要:2025.1.19——1300 A 1300 You are given an array consisting of positive integers. You can perform the following operation on it: Choose a pai
阅读全文
摘要:2025.1.18——1300 A 1300 There are cities located on the number line, the -th city is in the point . The coordinates of the cities are
阅读全文
摘要:2025.1.17——1200 Q1. 1200 Jellyfish has green apples with values and Gellyfish has green apples with values \(b_1,
阅读全文
摘要:2025.1.16——1200 Q1. 1200 You are given integers — , , . Let's call the score of a permutation th
阅读全文
摘要:2025.1.15——1200 Q1. 1200 简单来说就是给定3个数组,每个数组选择一个数,三者下标不同,问三者和的最大值。 Winter holidays are coming up. They are going to last for days. During the holi
阅读全文
摘要:2025.1.14——1200 Q1. 1200 You have sticks, numbered from to . The length of the -th stick is . You want to choose exac
阅读全文
摘要:2025.1.12——1200 Q1. 1200 You are given a sequence , consisting of integers, where the -th element of the sequence is equal to .
阅读全文
摘要:2025.1.5——1200 Q1. 1200 Kevin discovered a binary string that starts with 1 in the river at Moonlit River Park and handed it over to you. Your tas
阅读全文
摘要:2024.12.30 周一 Q1. 1100 Farmer John has a permutation , where every integer from to occurs exactly once. He gives Bess
阅读全文