摘要: 题目描述 Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although 阅读全文
posted @ 2018-01-20 16:38 蒟蒻JHY 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定两个字符串,求出在两个字符串中各取出一个子串使得这两个子串相同的方案数。两个方案不同当且仅当这两个子串中有一个位置不同。 输入输出格式 输入格式: 两行,两个字符串s1,s2,长度分别为n1,n2。1 <=n1, n2<= 200000,字符串中只有小写字母 输出格式: 输出一个整数表 阅读全文
posted @ 2018-01-20 11:11 蒟蒻JHY 阅读(408) 评论(0) 推荐(0) 编辑
摘要: discription Given the value of N, you will have to find the value of G. The definition of G is given below:Here GCD(i, j) means the greatest common di 阅读全文
posted @ 2018-01-20 09:16 蒟蒻JHY 阅读(178) 评论(0) 推荐(0) 编辑