Live2d Test Env
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 101 下一页
摘要: 题意:取出字符串Str里的两个串S,T,问对应位置的的字符在否有一一映射关系。 hash:对于每个字符s=‘a’-‘z’,我们任意找一个i,满足Si==s,(代码里用lower_bound在区间找到最小的位置i)其对应的字符为Ti==t。然后我们判断这段区间里s的hash值是否等于t的hash值。不 阅读全文
posted @ 2018-05-22 20:50 nimphy 阅读(524) 评论(3) 推荐(0) 编辑
摘要: 都是取的模板,这几天做的素数题挺多的,所以整理了放在这里,感觉有一天回用到的! SPOJ:Nth Prime: 求第N个素数,N<1e9。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=2 阅读全文
posted @ 2018-05-21 14:02 nimphy 阅读(303) 评论(0) 推荐(0) 编辑
摘要: It is Dandiya Night! A certain way how dandiya is played is described: There are N pairs of people playing at a time. Both the person in a pair are pl 阅读全文
posted @ 2018-05-20 21:11 nimphy 阅读(241) 评论(0) 推荐(0) 编辑
摘要: String Play Milo has a string S of length L. Tutu picks a random prefix and Mota picks a random suffix ofS. Now, Chotku is given a task of concatenati 阅读全文
posted @ 2018-05-20 19:50 nimphy 阅读(262) 评论(0) 推荐(0) 编辑
摘要: DCE Coders admins are way much geekier than they actually seem! Kartik has been following that tradition lately. How? Well, he took the inversion coun 阅读全文
posted @ 2018-05-19 09:30 nimphy 阅读(672) 评论(4) 推荐(0) 编辑
摘要: One of DB and TN common interests is traveling. One day, they went to Grand Line and found One Piece ! The One Piece treasure has n gold coins (n is e 阅读全文
posted @ 2018-05-18 20:59 nimphy 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of n numbers a1, a2, ..., an and a number of k-queries. A k-query is a triple (i, j, k) (1 ≤ i ≤ j ≤ n). For each k-query (i, j, k), 阅读全文
posted @ 2018-05-17 22:55 nimphy 阅读(378) 评论(2) 推荐(0) 编辑
摘要: Finding factorials are easy but they become large quickly that is why Lucky hate factorials. Today he have another task related to factorials. For a g 阅读全文
posted @ 2018-05-17 10:04 nimphy 阅读(122) 评论(0) 推荐(0) 编辑
摘要: There is a robot on the 2D plane. Robot initially standing on the position (0, 0). Robot can make a 4 different moves: After moving N times Robot gets 阅读全文
posted @ 2018-05-16 16:05 nimphy 阅读(311) 评论(0) 推荐(0) 编辑
摘要: The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landscape. The pine's trunk includes several branches, locat 阅读全文
posted @ 2018-05-15 18:44 nimphy 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 101 下一页