import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String[] input = in.readLine().split(" "); long n = Long.parseLong(input[0]); int b = Integer.parseInt(input[1]); solve(n, b); System.out.println(); } static vo..
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); String[] cases = new String[count]; for(int i=0; i
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); String[] cases = new String[count]; for(int i=0; i