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 阅读全文
posted @ 2025-01-28 19:38 Jkke 阅读(2) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2025-01-26 08:25 Jkke 阅读(3) 评论(0) 推荐(0) 编辑
摘要:2025.1.22——1300 A 1300 Your friends have an array of n elements, calculated its array of prefix sums and passed it to you, accidentally losing one 阅读全文
posted @ 2025-01-24 11:24 Jkke 阅读(11) 评论(0) 推荐(0) 编辑
摘要:2025.1.21——1300 A 1300 Qingshan has a string s which only contains 0 and 1. A string a of length k is good if an 阅读全文
posted @ 2025-01-22 11:13 Jkke 阅读(1) 评论(0) 推荐(0) 编辑
摘要:2025.1.20——1300 A 1300 You are given a binary string s. A binary string is a string consisting of characters 0 and/or 1. You can perform the follo 阅读全文
posted @ 2025-01-21 22:33 Jkke 阅读(2) 评论(0) 推荐(0) 编辑
摘要:2025.1.19——1300 A 1300 You are given an array a consisting of n positive integers. You can perform the following operation on it: Choose a pai 阅读全文
posted @ 2025-01-20 19:24 Jkke 阅读(5) 评论(0) 推荐(0) 编辑
摘要:2025.1.18——1300 A 1300 There are n cities located on the number line, the i-th city is in the point ai. The coordinates of the cities are 阅读全文
posted @ 2025-01-19 22:05 Jkke 阅读(4) 评论(0) 推荐(0) 编辑
摘要:2025.1.17——1200 Q1. 1200 Jellyfish has n green apples with values a1,a2,,an and Gellyfish has m green apples with values \(b_1, 阅读全文
posted @ 2025-01-18 20:01 Jkke 阅读(9) 评论(0) 推荐(0) 编辑
摘要:2025.1.16——1200 Q1. 1200 You are given 3 integers — n, x, y. Let's call the score of a permutation p1,,pn th 阅读全文
posted @ 2025-01-17 18:48 Jkke 阅读(2) 评论(0) 推荐(0) 编辑
摘要:2025.1.15——1200 Q1. 1200 简单来说就是给定3个数组,每个数组选择一个数,三者下标不同,问三者和的最大值。 Winter holidays are coming up. They are going to last for n days. During the holi 阅读全文
posted @ 2025-01-16 12:25 Jkke 阅读(1) 评论(0) 推荐(0) 编辑
摘要:2025.1.14——1200 Q1. 1200 You have n sticks, numbered from 1 to n. The length of the i-th stick is 2ai. You want to choose exac 阅读全文
posted @ 2025-01-15 21:04 Jkke 阅读(4) 评论(0) 推荐(0) 编辑
摘要:2025.1.12——1200 Q1. 1200 You are given a sequence a, consisting of n integers, where the i-th element of the sequence is equal to ai. 阅读全文
posted @ 2025-01-14 19:14 Jkke 阅读(7) 评论(0) 推荐(0) 编辑
摘要:2025.1.5——1200 Q1. 1200 Kevin discovered a binary string s that starts with 1 in the river at Moonlit River Park and handed it over to you. Your tas 阅读全文
posted @ 2025-01-14 18:51 Jkke 阅读(4) 评论(0) 推荐(0) 编辑
摘要:2024.12.30 周一 Q1. 1100 Farmer John has a permutation p1,p2,,pn, where every integer from 0 to n1 occurs exactly once. He gives Bess 阅读全文
posted @ 2025-01-01 16:35 Jkke 阅读(2) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示