My issue
My code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int t = scanner.nextInt(); // number of test cases
for (int i = 0; i < t; i++) {
int n = scanner.nextInt(); // input integer for each test case
// Your code here
//System.out.println((n*50)-((0.2*n)+(0.2*n)+(0.3*n)));
int a = 50*n;
int b = (2*((20/100)*a));
int c = ((30/100)*a);
System.out.println(a-(b+c));
}
scanner.close();
}
}
Problem Link: SUGARCANE Problem - CodeChef