KSzsh

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

2023年4月15日 #

Ian and Array Sorting

摘要: 题目链接 题目描述: To thank Ian, Mary gifted an array a of length n to Ian. To make himself look smart, he wants to make the array in non-decreasing order 阅读全文

posted @ 2023-04-15 11:42 KSzh 阅读(66) 评论(0) 推荐(1) 编辑

2023年2月6日 #

Range Add Query

摘要: 题目链接 题目描述: You are given an integer sequence of length N, A=(A1,A2,,AN), and a positive integer K. For each i=1,2,,Q, determine whethe 阅读全文

posted @ 2023-02-06 19:07 KSzh 阅读(60) 评论(0) 推荐(0) 编辑

2023年2月3日 #

Flexible String

摘要: 题目链接 题目描述: You have a string a and a string b. Both of the strings have length n. There are at most 10 different characters in the string a. You 阅读全文

posted @ 2023-02-03 20:40 KSzh 阅读(17) 评论(0) 推荐(0) 编辑

2023年2月1日 #

Remove the Bracket

摘要: 题目链接 题目描述: RSJ has a sequence a of n integers a1,a2,,an and an integer s. For each of a2,a3,,an1, he chose a pair of non-negat 阅读全文

posted @ 2023-02-01 11:00 KSzh 阅读(19) 评论(0) 推荐(0) 编辑

2023年1月31日 #

Number Factorization

摘要: 题目链接 题目描述: Given an integer n. Consider all pairs of integer arrays a and p of the same length such that n=aipi(i.e. $a^{p1}_1⋅a^{p2}_2 阅读全文

posted @ 2023-01-31 19:14 KSzh 阅读(21) 评论(0) 推荐(0) 编辑

Vlad and a Pair of Numbers

摘要: 题目链接 题目描述: Vlad found two positive numbers a and b(a,b>0). He discovered that ab=a+b2, where means the bitwise exclusive OR , and 阅读全文

posted @ 2023-01-31 09:39 KSzh 阅读(62) 评论(0) 推荐(0) 编辑

2023年1月30日 #

Matryoshkas

摘要: 题目链接 题目描述: Matryoshka is a wooden toy in the form of a painted doll, inside which you can put a similar doll of a smaller size. A set of nesting dolls 阅读全文

posted @ 2023-01-30 10:43 KSzh 阅读(51) 评论(0) 推荐(0) 编辑

2023年1月26日 #

Min Max Sort

摘要: 题目链接 题目描述: You are given a permutation p of length n (a permutation of length n is an array of length n in which each integer from 1 to n 阅读全文

posted @ 2023-01-26 23:17 KSzh 阅读(110) 评论(0) 推荐(0) 编辑

2023年1月19日 #

Change Usernames(拓扑序列)

摘要: 题目链接 题目描述: You run a web service with N users. The i-th user with a current handle Si wants to change it to Ti. Here, S1,, and SN are 阅读全文

posted @ 2023-01-19 21:00 KSzh 阅读(30) 评论(0) 推荐(0) 编辑

2023年1月12日 #

Gardener and the Array

摘要: 题目链接 题目描述: The gardener Kazimir Kazimirovich has an array of n integers c1,c2,,cn. He wants to check if there are two different subsequences $ 阅读全文

posted @ 2023-01-12 10:18 KSzh 阅读(62) 评论(0) 推荐(0) 编辑

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