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 28, 2026 09:49TudyMTudyMScore: 4,830Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:504,828153,958,530138,033,0002,000,0002,293,760
2Apr 28, 2026 09:504,829158,146,154138,049,0002,000,0002,371,584
3Apr 28, 2026 09:504,829158,819,975138,053,0002,000,0002,363,392
4Apr 28, 2026 09:504,829157,476,183138,066,0002,000,0002,297,856
5Apr 28, 2026 09:504,830157,787,210137,084,0003,001,0002,367,488
6Apr 28, 2026 09:504,832157,830,837138,138,0002,002,0002,367,488
7Apr 28, 2026 09:504,836158,964,473139,252,0001,001,0002,301,952
8Apr 28, 2026 09:504,836158,209,945139,244,0001,001,0002,301,952
9Apr 28, 2026 09:504,840159,953,377139,383,0001,002,0002,363,392