#include <stdio.h> int main() { int n, m;//字符数,行数 int l, r;//选取范围 int i = 0; char s[1000] = {0}, c1, c2; scanf("%d %d", &n, &m);//输入 scanf("%s", s); for (i = 0; i < m; i++) { //根据m值进行循环 scanf("%d %d %c %c", &a...