Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import java.util.Scanner;
- class type {
- private static Scanner scanner;
- public static void main(String args[]) throws NumberFormatException,
- IOException {
- scanner = new Scanner(System.in);
- int t = scanner.nextInt();
- while (t-- > 0) {
- int f = scanner.nextInt();
- int m = scanner.nextInt();
- if (f == 1) {
- System.out.println("CORRECT");
- } else if (m % f == 0) {
- System.out.println("CORRECT");
- } else {
- System.out.println("WRONG");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement