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:06TudyMTudyMScore: 4,246Success
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:104,241137,326,406121,982,0001,020,0002,375,680
2May 3, 2026 21:104,243136,841,046122,006,0001,041,0002,371,584
3May 3, 2026 21:104,243137,269,891122,027,0001,025,0002,371,584
4May 3, 2026 21:104,246142,708,254122,078,0001,068,0002,363,392
5May 3, 2026 21:104,246142,286,303122,092,0001,051,0002,367,488
6May 3, 2026 21:104,247139,009,987122,143,0001,037,0002,367,488
7May 3, 2026 21:104,247141,086,547123,188,00002,371,584
8May 3, 2026 21:104,250140,551,366122,198,0001,067,0002,371,584
9May 3, 2026 21:104,257140,251,512122,343,0001,128,0002,355,200