import java.util.*;
import java.io.*;
public class algo01 {
public static void main(String[] args) throws FileNotFoundException 
{
Scanner input = null;
input = new Scanner(new File("/Users/myname/Documents/Admin_s_folder/University/Programming/algo/hw1/testcase/testcase1.txt"));
int num = input.nextInt();
int []check = new int[num];
int length = 1;
int savepoint =0 ;
for(int a=0; a<num; a++)
check[a] = input.nextInt();
long before_time2 = System.nanoTime();
for(int i=0; i<num-1;)
{
if(check[i]<check[i+1])
{
length++;
i++;
}
else
{
i++;
if(savepoint<length)
savepoint=length;
length = 1;
}
}
long after_time2 = System.nanoTime();
System.out.println(after_time2-before_time2 + "ns");
System.out.println(savepoint);
}
}

파일 형식이
100000 <--- 배열크기
30 40 50 60 30 40 30 20.......<100000개>데이터 있어요.

5만개부터 들어가질않고 

nosuchelementexceptions뜨네요.
10000개까진 잘나오거든여..