Source code is correct and giving correct result but still showing run time error on test1

Revision en1, by Biswajit608, 2021-07-30 21:50:37

Here is the problem statement

import java.util.*; public class Main{

public static void main(String[] args){

Scanner scn = new Scanner(System.in);
int test = scn.nextInt();
while(test > 0){
   long n = scn.nextLong();
    if(n < 6){
      System.out.println(15);
      continue;
    }
    if(n % 2 != 0){
       n = n +1; 
    }
    System.out.println((long)(n * 2.5));
   test--;
}

}

}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Biswajit608 2021-07-30 21:50:37 625 Check the screenshot please (published)