import java.io.*; import java.util.*; import java.math.BigInteger; public class Main { static void solve() { int n = in.nextInt(),q = in.nextInt(); StringBuilder s = new StringBuilder(in.next()); while(q-->0) { int l = in.nextInt(),r = in.nextInt(); ...