摘要: You are given n strings s1, s2, ..., sn consisting of characters 0 and 1. m operations are performed, on each of them you concatenate two existing str 阅读全文
posted @ 2017-10-15 16:18 Z-Y-Y-S 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小 B 有一个很大的数 S,长度达到了 N 位;这个数可以看成是一个串,它可能有前导 0,例如00009312345。小B还有一个素数P。现在,小 B 提出了 M 个询问,每个询问求 S 的一个子串中有多少子串是 P 的倍数(0 也是P 的倍数)。例如 S为0077时,其子串 007有6个 阅读全文
posted @ 2017-10-15 10:34 Z-Y-Y-S 阅读(418) 评论(0) 推荐(0) 编辑