/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in));
String position[];
int x[] = new int[3];
int y[] = new int[3];
int tryCount = Integer.parseInt(buffer.readLine().trim());
for(int i = 0 ; i < tryCount ; i++){
for(int z = 0 ; z < 3 ; z++)
{
position = buffer.readLine().split(" ");
x[z] = Integer.parseInt(position[0]);
y[z] = Integer.parseInt(position[1]);
}
lopiter
안녕하세요,
어제 처음으로 가입해서 처음 문제를 풀어보고 있는데요..
계속 RTE 오류가 나는데,
혹시 원인을 확인 할 수 있을까요?
감사합니다.
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in));
String position[];
int x[] = new int[3];
int y[] = new int[3];
int tryCount = Integer.parseInt(buffer.readLine().trim());
for(int i = 0 ; i < tryCount ; i++){
for(int z = 0 ; z < 3 ; z++)
{
position = buffer.readLine().split(" ");
x[z] = Integer.parseInt(position[0]);
y[z] = Integer.parseInt(position[1]);
}
}
11년 전