摘要: Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a 阅读全文
posted @ 2018-05-12 22:26 楼主好菜啊 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/112/D来源:牛客网 题目描述 一个只含数字的字符串,q次操作,每次操作将第i位数字改为x,每次操作后,统计长度在[l, r]之间且首数字大于尾数字的子串的个数。 输入描述: 第一行一个只含数字的字符串;第二行3个整数 阅读全文
posted @ 2018-05-12 17:20 楼主好菜啊 阅读(218) 评论(0) 推荐(0) 编辑