Facing Problem in my code submission, unable to understand what is it

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

import java.util.*;
class DSTAPLS{
public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int t = sc.nextInt();

    int i;
    for(i = 0 ;i < t; i++){

        int n = sc.nextInt();
        int k = sc.nextInt();

        int fit = n/k;
        if(fit == k){
        else System.out.println("Yes");


This is my code. It is working fine in IDE, but when posting here it gives error. Please help if someone gets what is wrong with this code.

1 Like

Assuming this is DSTAPLS:

a) The answer should be one of YES or NO (note the capitalisation!)
b) What should the answer be for

200 10

c) Remember that N and K can be pretty big - up to 10^{18}!

1 Like

Thnx, It helped !
And can you tell why we get NZEC Runtime error. I submitted this code and got that error.

You haven’t properly addressed c), yet :slight_smile: Try it locally or with Custom Input with very large N and K.