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

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:23Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:26013,654,0102,684,0001,090,00020,480No answer to stdout. Died or killed?
2May 3, 2026 18:564,726156,085,505135,988,0001,070,0002,379,776
3May 3, 2026 18:564,727151,729,804137,099,00002,379,776
4May 3, 2026 18:564,729150,927,324136,092,0001,071,0002,371,584
5May 3, 2026 18:564,731154,081,577136,147,0001,075,0002,379,776
6May 3, 2026 18:564,732153,502,824136,180,0001,074,0002,371,584
7May 3, 2026 18:564,734151,851,350136,208,0001,091,0002,363,392
8May 3, 2026 18:564,734154,412,445136,181,0001,105,0002,371,584
9May 3, 2026 18:564,737153,755,748136,323,0001,069,0002,371,584
10May 3, 2026 18:564,737154,258,419136,300,0001,085,0002,363,392