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

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

Challenge History
DateChallengerCostTypeStatus
Sep 11, 2026 06:15Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2026 06:16030,030,523,27024,746,235,0004,383,704,000268,075,008Killed by timeout
2May 3, 2026 19:564,707152,228,044136,513,00002,379,776
3May 3, 2026 19:564,707152,758,864135,504,0001,022,0002,355,200
4May 3, 2026 19:564,709152,899,979135,561,0001,016,0002,363,392
5May 3, 2026 19:564,710150,333,961136,610,00002,367,488
6May 3, 2026 19:564,710153,920,513135,580,0001,021,0002,371,584
7May 3, 2026 19:564,711156,081,971135,561,0001,067,0002,367,488
8May 3, 2026 19:564,713155,168,281135,637,0001,064,0002,371,584
9May 3, 2026 19:564,713154,443,894135,617,0001,084,0002,367,488
10May 3, 2026 19:564,717151,422,198135,784,0001,014,0002,371,584