摘要:
Farmer John has purchased a subscription to Good Hooveskeeping magazine for his cows, so they have plenty of material to read while waiting around in 阅读全文
摘要:
第一行给你一个n(<=10^10)表示有一个长度为n的0,1字符串,第二行给你一个m(<=5000)表示接下来有m行输入, 接下来的m行输入中x, y, even表示第x到第y个字符中间1的个数为偶数个, x, y, odd表示第x到第y个字符中间1的个数为奇数个,若m句话中第k+1是第一次与前面的 阅读全文
摘要:
Give you a string S,assume the Sub-String Stri = S[0..i] and the length of the string is N. e.g. S = "moreandmorecold", N = 15, Str0 = "m" Str1 = "mo" 阅读全文