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 listSep 7, 2026 05:35C#_userC#_userError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 07:38Tomislav Tunkovic47.33CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 07:39089,574,70268,761,00010,795,0002,158,592line 24: expected 3 got EOFstderr
2Sep 9, 2026 07:39071,124,05453,039,0008,184,0002,154,496line 18: expected -2612710507641 got EOFstderr
3Sep 9, 2026 07:39073,737,17855,526,0008,135,0002,154,496line 19: expected 2272 got EOFstderr
4Sep 7, 2026 05:389,953299,010,909264,782,00023,880,0002,154,496
5Sep 7, 2026 05:3810,034301,304,741265,072,00025,921,0002,154,496
6Sep 7, 2026 05:3810,060303,008,128265,336,00026,426,0002,150,400
7Sep 7, 2026 05:3810,081302,581,316265,690,00026,665,0002,154,496
8Sep 7, 2026 05:3810,082302,907,864266,515,00025,875,0002,154,496
9Sep 7, 2026 05:3810,116303,627,382265,559,00027,824,0002,154,496
10Sep 7, 2026 05:3810,127304,297,262266,940,00026,762,0002,154,496
11Sep 7, 2026 05:3810,233309,741,333267,231,00029,526,0002,154,496
12Sep 7, 2026 05:3810,272308,012,685267,731,00030,160,0002,154,496