পৃষ্ঠাসমূহ

মঙ্গলবার, ১৩ জুন, ২০১৭

621 - Secret Research

import java.util.Scanner;

class Another {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        int testCases = scanner.nextInt();
        scanner.nextLine();
        while (testCases-- > 0) {
            String input = scanner.nextLine();
            
            if (input.equals("1") || input.equals("4") || input.equals("78"))
                System.out.println("+");
            else if (input.endsWith("35"))
                System.out.println("-");
            else if (input.startsWith("9") && input.endsWith("4"))
                System.out.println("*");
            else if (input.startsWith("190"))
                System.out.println("?");
            else                System.out.println("?");
        }
    }


}

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন