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 21:16TudyMTudyMScore: 5,098Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:175,092165,125,217147,686,00002,375,680
2May 3, 2026 21:175,093166,941,591147,721,00002,367,488
3May 3, 2026 21:175,094164,343,866147,739,00002,367,488
4May 3, 2026 21:175,095161,738,283147,782,00002,367,488
5May 3, 2026 21:175,098163,191,370146,821,0001,048,0002,363,392
6May 3, 2026 21:175,098167,561,785146,797,0001,071,0002,371,584
7May 3, 2026 21:175,099163,997,562146,877,0001,018,0002,367,488
8May 3, 2026 21:175,100168,223,311146,860,0001,047,0002,367,488
9May 3, 2026 21:175,103167,660,831146,962,0001,047,0002,371,584