ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1074. Very Short Problem

For java solution who get WA 12
Posted by taodaling 30 Aug 2023 20:39
The test case contains some unexpected symbols, I don't sure which one, but if you're trying read line by yourself, you're quite likely to get Output limit exceeded.

Just try below code to read from stdin

BufferedReader bis = new BufferedReader(new InputStreamReader(System.in));
String line = bis.readLine();