在代码堵塞中的基本代码中获取运行时错误
Getting runtime error in basic code in code jam
/*package whatever //这里不要写包名*/
import java.util.*;
class Nested {
public static void main (String[] args) {
Scanner in=new Scanner(System.in);
int t=in.nextInt();
while(t-->0)
{
String input=in.nextLine();
//solve(input);
}
}
}
我路过
1
1
作为输入,但它向我显示运行时错误...不知道为什么,因为它在 geeksforgeeks 上工作正常 ide
Code Jam 接受类名作为解决方案
这就是问题所在!
非常感谢大家的帮助!
/*package whatever //这里不要写包名*/
import java.util.*;
class Nested {
public static void main (String[] args) {
Scanner in=new Scanner(System.in);
int t=in.nextInt();
while(t-->0)
{
String input=in.nextLine();
//solve(input);
}
}
}
我路过
1
1
作为输入,但它向我显示运行时错误...不知道为什么,因为它在 geeksforgeeks 上工作正常 ide
Code Jam 接受类名作为解决方案 这就是问题所在!
非常感谢大家的帮助!