Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listApr 29, 2026 16:33Charles CabergsCharles CabergsScore: 22,395Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 16:3322,388668,126,563647,273,0001,997,0002,506,752stderr
2Apr 29, 2026 16:3322,390665,290,046646,326,0002,996,0002,506,752stderr
3Apr 29, 2026 16:3322,391676,180,772646,360,0002,997,0002,506,752stderr
4Apr 29, 2026 16:3322,395666,677,145645,484,0003,996,0002,334,720stderr
5Apr 29, 2026 16:3322,395666,591,247647,475,0001,998,0002,310,144stderr
6Apr 29, 2026 16:3322,396666,437,331647,498,0001,998,0002,514,944stderr
7Apr 29, 2026 16:3322,398666,722,527646,555,0002,997,0002,506,752stderr
8Apr 29, 2026 16:3322,400666,408,670646,604,0002,998,0002,334,720stderr
9Apr 29, 2026 16:3322,411669,474,904647,939,0001,999,0002,494,464stderr