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:45TudyMTudyMScore: 5,026Success
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:465,019170,435,405145,554,00002,379,776
2Apr 28, 2026 09:465,021167,189,969144,632,0001,004,0002,375,680
3Apr 28, 2026 09:465,021164,715,795144,632,0001,004,0002,371,584
4Apr 28, 2026 09:465,025164,540,850143,757,0001,996,0002,371,584
5Apr 28, 2026 09:465,026164,265,627143,778,0001,996,0002,383,872
6Apr 28, 2026 09:465,026163,098,453144,763,0001,005,0002,363,392
7Apr 28, 2026 09:465,027164,438,659143,803,0001,997,0002,363,392
8Apr 28, 2026 09:465,028162,180,702143,819,0001,997,0002,367,488
9Apr 28, 2026 09:465,030168,544,170145,880,00002,375,680