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:08C#_userC#_userError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 07:36Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 07:370220,544,034191,330,00018,847,0002,154,496line 35: expected 262459326650 got EOFstderr
2Sep 9, 2026 07:370115,591,82296,737,0008,561,0002,158,592line 17: expected 8193098776449 got EOFstderr
3Sep 7, 2026 05:1119,036564,120,517520,453,00031,600,0002,150,400
4Sep 7, 2026 05:1119,238571,701,700521,849,00036,062,0002,154,496
5Sep 7, 2026 05:1119,379573,681,565524,028,00037,966,0002,150,400
6Sep 7, 2026 05:1119,586579,327,454525,898,00042,099,0002,154,496
7Sep 7, 2026 05:1119,629579,755,765525,667,00043,593,0002,154,496
8Sep 7, 2026 05:1119,631580,665,214527,372,00041,955,0002,150,400
9Sep 7, 2026 05:1119,682581,605,141526,041,00044,747,0002,154,496
10Sep 7, 2026 05:1119,870587,572,372528,211,00048,022,0002,150,400
11Sep 7, 2026 05:1119,919588,132,479528,065,00049,588,0002,154,496
12Sep 9, 2026 07:3719,943590,911,883528,500,00049,852,0002,150,400