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 listMay 3, 2026 18:53TudyMTudyMScore: 4,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 18:544,760156,298,379136,987,0001,076,0002,363,392
2May 3, 2026 18:544,761154,084,855138,075,00002,375,680
3May 3, 2026 18:544,762154,851,492137,057,0001,067,0002,367,488
4May 3, 2026 18:544,764153,435,297137,085,0001,076,0002,375,680
5May 3, 2026 18:544,764152,703,237137,108,0001,075,0002,371,584
6May 3, 2026 18:544,764153,862,209137,091,0001,089,0002,359,296
7May 3, 2026 18:544,765158,029,325137,119,0001,074,0002,375,680
8May 3, 2026 18:544,766157,509,815137,157,0001,071,0002,375,680
9May 3, 2026 18:544,767158,859,430137,160,0001,107,0002,375,680