摘要:
Problem Description Given n integers. You have two operations: U A B: replace the Ath number by B. (index counting from 0) Q A B: output the length of 阅读全文
posted @ 2023-05-15 20:37
ruoye123456
阅读(44)
评论(0)
推荐(0)
摘要:
Problem Description 在缺水的地方,水是非常有限的资源,所以人们常常为争夺最大的水源而战。 给定一系列水源,用a1, a2, a3, …, an代表水源的大小。 给定一组查询,每个查询包含2 整数 L 和 R,请找出L和R之间最大的水源。 Input 输入数据首先给定一个整数T(T 阅读全文
posted @ 2023-05-15 20:22
ruoye123456
阅读(150)
评论(0)
推荐(0)
摘要:
Problem Description 小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。 —— 余光中 集训是辛苦的,道路是坎坷的,休息还是必须的。经过一段时间的训练,lcy决定让大家回家放松一下,但是训练还是得照常进行,lcy想出了如下回家规定,每一个队(三人一队)或者队长留下或者其余两名队员 阅读全文
posted @ 2023-05-15 20:17
ruoye123456
阅读(26)
评论(0)
推荐(0)
摘要:
Problem Description 有n对夫妻被邀请参加一个聚会,因为场地的问题,每对夫妻中只有1人可以列席。在2n 个人中,某些人之间有着很大的矛盾(当然夫妻之间是没有矛盾的),有矛盾的2个人是不会同时出现在聚会上的。有没有可能会有n 个人同时列席? Input n: 表示有n对夫妻被邀请 ( 阅读全文
posted @ 2023-05-15 20:09
ruoye123456
阅读(53)
评论(0)
推荐(0)
摘要:
Problem Description Our protagonist is the handsome human prince Aragorn comes from The Lord of the Rings. One day Aragorn finds a lot of enemies who 阅读全文
posted @ 2023-05-15 19:55
ruoye123456
阅读(27)
评论(0)
推荐(0)
摘要:
Problem Description There are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this “How 阅读全文
posted @ 2023-05-15 19:46
ruoye123456
阅读(28)
评论(0)
推荐(0)
摘要:
Problem Description Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of th 阅读全文
posted @ 2023-05-15 19:36
ruoye123456
阅读(52)
评论(0)
推荐(0)
摘要:
Problem Description 1967年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为“六度分离”理论 阅读全文
posted @ 2023-05-15 19:30
ruoye123456
阅读(63)
评论(0)
推荐(0)
摘要:
Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或62的号码。 阅读全文
posted @ 2023-05-15 03:32
ruoye123456
阅读(45)
评论(0)
推荐(0)
摘要:
题目描述 给出若干个正整数\(n\),请你求出最小的\(m\),使得\(\varphi(m)\ge n\)。 输入 本题有多组输入。 第一行一个正整数T表示数据组数 接下来T行每行一个正整数n 数据保证\(1\le T \le 10^4, 1\le n \le 10^6\)。 输出 共T行,每行一个 阅读全文
posted @ 2023-05-15 01:01
ruoye123456
阅读(83)
评论(0)
推荐(0)


浙公网安备 33010602011771号