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:34TudyMTudyMError
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,703,1042,783,0001,086,00020,480No answer to stdout. Died or killed?
2Apr 28, 2026 09:344,838159,431,968138,320,0002,004,0002,371,584
3Apr 28, 2026 09:344,842160,328,877139,423,0001,003,0002,363,392
4Apr 28, 2026 09:344,843159,823,607138,458,0002,006,0002,379,776
5Apr 28, 2026 09:344,843157,971,662139,456,0001,003,0002,375,680
6Apr 28, 2026 09:344,847159,419,142139,561,0001,004,0002,363,392
7Apr 28, 2026 09:344,847157,950,704139,575,0001,004,0002,375,680
8Apr 28, 2026 09:344,848156,489,325139,592,0001,004,0002,355,200
9Apr 28, 2026 09:344,848157,815,753139,596,0001,004,0002,301,952
10Apr 28, 2026 09:344,848157,951,988138,604,0001,994,0002,363,392