My issue
Printing for 1 to n, is also a correct answer, but I get TLE. Did I get something wrong ?, Thanks in advance.
My code
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef {
public static void main (String[] args) throws java.lang.Exception{
Scanner s = new Scanner(System.in);
int t = s.nextInt();
while(t-- > 0 ){
int n = s.nextInt();
for(int i = 1;i <= n;i++){
System.out.print(i+" ");
}
System.out.println();
}
}
}
Problem Link: PERMOR Problem - CodeChef