上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 68 下一页
摘要: Let's say string ss has period kk if si=si+ksi=si+k for all ii from 11 to |s|−k|s|−k (|s||s| means length of string ss) and kk is the minimum positive 阅读全文
posted @ 2020-04-27 11:16 XXXSANS 阅读(433) 评论(0) 推荐(0)
摘要: Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisting of n vert 阅读全文
posted @ 2020-04-26 10:02 XXXSANS 阅读(199) 评论(0) 推荐(0)
摘要: Kate has a set SS of nn integers {1,…,n}{1,…,n}. She thinks that imperfection of a subset M⊆SM⊆S is equal to the maximum of gcd(a,b)gcd(a,b) over all 阅读全文
posted @ 2020-04-25 09:58 XXXSANS 阅读(183) 评论(0) 推荐(0)
摘要: Eugene likes working with arrays. And today he needs your help in solving one challenging task. An array cc is a subarray of an array bb if cc can be 阅读全文
posted @ 2020-04-24 16:06 XXXSANS 阅读(131) 评论(0) 推荐(0)
摘要: Once again, Boris needs the help of Anton in creating a task. This time Anton needs to solve the following problem: There are two arrays of integers a 阅读全文
posted @ 2020-04-24 09:00 XXXSANS 阅读(217) 评论(0) 推荐(0)
摘要: We guessed a permutation pp consisting of nn integers. The permutation of length nn is the array of length nn where each element from 11 to nn appears 阅读全文
posted @ 2020-04-23 18:48 XXXSANS 阅读(259) 评论(0) 推荐(0)
摘要: Recall that the sequence bb is a a subsequence of the sequence aa if bb can be derived from aa by removing zero or more elements without changing the 阅读全文
posted @ 2020-04-23 17:20 XXXSANS 阅读(183) 评论(0) 推荐(0)
摘要: 其实大家平常常会用的主要有三个:cout、cerr、clog,首先简单介绍下三者。 这三者在C++中都是标准IO库中提供的输出工具(至于有关的重载问题在此不讨论): cout:写到标准输出的ostream对象; cerr:输出到标准错误的ostream对象,常用于程序错误信息; clog:也是输出标 阅读全文
posted @ 2020-04-23 01:36 XXXSANS 阅读(224) 评论(0) 推荐(0)
摘要: (没错,就是跟上一篇叫拍的。。。 1、强烈的事业心将来,他也一定会有自己热爱的事业。而且,男人最性感的时刻之一,就是他专心致志做事的时候。所以,找一个机会在他全神贯注玩ACM的时候,从侧面好好观察他,你就会发现我说的话没错。 2、永不放弃的精神在比赛刚开始,神牛队就飘崎岖。玩ACM的男生不会退缩,而 阅读全文
posted @ 2020-04-23 01:15 XXXSANS 阅读(431) 评论(0) 推荐(0)
摘要: 劳资六年前开始搞ACM啊!!!!!!!!!!从此踏上了尼玛不归路啊!!!!!!!!!!!!谁特么跟劳资讲算法是程序设计的核心啊!!!!!!尼玛除了面试题就没见过用算法的地方啊!!!!!!谁再跟劳资讲算法之美算法的力量,劳资一本算法导论拍死你啊!!!!!!!!那是搞ACM的入门书啊!!!!特么的入门书 阅读全文
posted @ 2020-04-23 01:13 XXXSANS 阅读(199) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 68 下一页