It seems time limit is too strict for java while the same algo passes in c++. Can anyone provide any optimation for java . I am already using Fast IO. any help is appreciated.
I m getting the same issue any help …used fast I/o reader