摘要: There are nn segments [li,ri][li,ri] for 1≤i≤n1≤i≤n. You should divide all segments into two non-empty groups in such way that there is no pair of seg 阅读全文
posted @ 2019-01-12 13:51 茄子Min 阅读(926) 评论(2) 推荐(0) 编辑
摘要: An accordion is a string (yes, in the real world accordions are musical instruments, but let's forget about it for a while) which can be represented a 阅读全文
posted @ 2019-01-12 13:35 茄子Min 阅读(418) 评论(0) 推荐(0) 编辑
摘要: You are given qq queries in the following form: Given three integers lili, riri and didi, find minimum positive integer xixi such that it is divisible 阅读全文
posted @ 2019-01-12 13:25 茄子Min 阅读(563) 评论(0) 推荐(0) 编辑