上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页
摘要: Lily is fascinated by numbers. She believes the whole world revolves around them, and that everything is connected by numbers. Her friends, Alice, Bob 阅读全文
posted @ 2020-05-09 20:31 DeaL57 阅读(518) 评论(0) 推荐(0) 编辑
摘要: Denis, after buying flowers and sweets (you will learn about this story in the next task), went to a date with Nastya to ask her to become a couple. N 阅读全文
posted @ 2020-05-09 11:37 DeaL57 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Hilbert's Hotel is a very unusual hotel since the number of rooms is infinite! In fact, there is exactly one room for every integer, including zero an 阅读全文
posted @ 2020-05-08 17:05 DeaL57 阅读(200) 评论(0) 推荐(0) 编辑
摘要: You are given two integers aa and bb, and qq queries. The ii-th query consists of two numbers lili and riri, and the answer to it is the number of int 阅读全文
posted @ 2020-05-06 23:03 DeaL57 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Phoenix has a string ss consisting of lowercase Latin letters. He wants to distribute all the letters of his string into kk non-empty strings a1,a2,…, 阅读全文
posted @ 2020-05-06 16:59 DeaL57 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Santa Claus has received letters from nn different kids throughout this year. Of course, each kid wants to get some presents from Santa: in particular 阅读全文
posted @ 2020-05-05 18:46 DeaL57 阅读(182) 评论(0) 推荐(0) 编辑
摘要: We start with a string ss consisting only of the digits 11, 22, or 33. The length of ss is denoted by |s||s|. For each ii from 11 to |s||s|, the ii-th 阅读全文
posted @ 2020-05-05 17:24 DeaL57 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Your friend Jeff Zebos has been trying to run his new online company, but it's not going very well. He's not getting a lot of sales on his website whi 阅读全文
posted @ 2020-05-05 16:18 DeaL57 阅读(179) 评论(0) 推荐(0) 编辑
摘要: This is the hard version of this problem. The only difference is the constraint on kk — the number of gifts in the offer. In this version: 2≤k≤n2≤k≤n. 阅读全文
posted @ 2020-05-04 00:16 DeaL57 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Recall that the permutation is an array consisting of nn distinct integers from 11 to nn in arbitrary order. For example, [2,3,1,5,4][2,3,1,5,4] is a 阅读全文
posted @ 2020-05-03 23:21 DeaL57 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页