Home > Back-end >  Abnormal NoSuchElementException, please answer
Abnormal NoSuchElementException, please answer

Time:10-06

import java.util.Scanner;

Public class q1 {
Public static void main (String [] args) {
Scanner in=new Scanner(System.in);
Int a0=in nextInt ();
Int j=in nextInt ();
Int arr1=new int [] [1000000].
Int arr2=new int [] [1000000].
Int arr3 []=new int [1000000].
Int a1=a0;
for(int i=0; i<1000000; I++) {
Arr1=[I] in the nextInt ();
If (arr1 [I] & gt; 0 {
Arr2=[I] in the nextInt ();
A1=(arr1 [I] * a1 + arr2 [I]) % m;
Arr3 [I]=a1;
} the if (arr1 [I]==1) {
for(int j=0; jA0=a0 ^ arr3 [j];
}
System. The out. Println (a0);
}

}
in.close();
}
}
Freshman Java homework,, no problem, when his run on eclipse submitted to go up and say something abnormal o great god answers
  • Related