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:38TudyMTudyMError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:27C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:27013,614,6412,423,0001,252,00020,480No answer to stdout. Died or killed?
2Apr 28, 2026 09:384,828156,706,559138,029,0002,000,0002,363,392
3Apr 28, 2026 09:384,830159,588,601138,080,0002,001,0002,367,488
4Apr 28, 2026 09:384,830155,526,504138,097,0002,001,0002,379,776
5Apr 28, 2026 09:384,833159,273,856138,175,0002,002,0002,375,680
6Apr 28, 2026 09:384,834159,050,239139,202,0001,001,0002,367,488
7Apr 28, 2026 09:384,835157,215,540139,215,0001,001,0002,367,488
8Apr 28, 2026 09:384,842157,248,486139,425,0001,003,0002,363,392
9Apr 28, 2026 09:384,842162,661,418139,432,0001,003,0002,367,488
10Apr 28, 2026 09:384,844154,084,035139,476,0001,003,0002,293,760