import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int cases = sc.nextInt(); sc.nextLine(); for(int times = 0; times
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int cases = sc.nextInt(); for(int i = 0; i
import java.util.*; import static java.lang.System.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNextInt()) { long p = sc.nextLong(); long d = sc.nextLong(); long s = p; while(s
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int cases = sc.nextInt(); for(int i =0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNextInt()) { int num1 = sc.nextInt(); int num2 = sc.nextInt(); int max_n = Math.max(num1, num2); int min_n = Math.min(num1, num2); int max = 0; for(int i = min_n; i max) max = count; } System.out.printf("%d %d %d\r\n", num1, num2, max); } } };
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int cases = 0; while(sc.hasNextInt()) { int input = sc.nextInt(); if(input >= 2 && input sum = new ArrayList (); for(int i = 0; i
import java.util.*; import static java.lang.System.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int lines = sc.nextInt(); for(int i =0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int lines = sc.nextInt(); sc.nextLine(); int[] count = new int[26]; int max = 0; for(int i = 0; i = 97 && ch max) max = count[ch - 97]; } } for(int i = max; i > 0; i--) for(int j = 0; j
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int lines = sc.nextInt(); sc.nextLine(); String[] datas = new String[lines]; for(int i = 0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int times = sc.nextInt(); for(int i = 0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextLine()) { int x = Integer.parseInt(sc.nextLine()); String[] str = sc.nextLine().split(" "); //System.out.println(x); int output = 0; for(int i = 0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextLine()) { String str = sc.nextLine(); if(str.equals("0")) return; int odd=0, even=0; for(int i = 0; i
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int times = sc.nextInt(); for(int i = 0; i