10 2017 档案

摘要:4009: Doges 题目描述 在一个遥远的地方,住着n只 Doge,它们分别被编号为1到n之间的正整数。 有一天,一个叫 Jrisme 的人来到这里,进行了一些「虐狗」行为。具体的,Jrisme 每次会虐编号连续的一些 Doge。现给出每次虐狗的区间,求最幸运(被虐次数最多)Doge 被虐了多少 阅读全文
posted @ 2017-10-31 21:53 TTTCoder 阅读(2021) 评论(0) 推荐(0)
摘要:Crossing River A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle 阅读全文
posted @ 2017-10-29 21:10 TTTCoder 阅读(289) 评论(0) 推荐(0)
摘要:int l; char a[1100]; int tmp[1100]; bool div(int k) { int j=0; int y=0; for(int i=0;i<l;i++) { int sum=a[i]+y*10; int x=sum/k; y=sum%k; ... 阅读全文
posted @ 2017-10-27 21:53 TTTCoder 阅读(274) 评论(0) 推荐(0)
摘要:KMP图解 阅读全文
posted @ 2017-10-14 18:00 TTTCoder 阅读(257) 评论(0) 推荐(0)
摘要:字典树模板 阅读全文
posted @ 2017-10-14 17:53 TTTCoder 阅读(262) 评论(0) 推荐(0)
摘要:You have got a cylindrical cup. Its bottom diameter is 2 units and its height is 2 units as well. The height of liquid level in the cup is d (0 ≤ d ≤ 阅读全文
posted @ 2017-10-02 17:57 TTTCoder 阅读(451) 评论(0) 推荐(0)