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:20TudyMTudyMScore: 4,121Success
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:204,111136,647,240118,194,0001,047,0002,355,200
2May 3, 2026 21:204,115135,969,929119,344,00002,367,488
3May 3, 2026 21:204,118132,892,114119,433,00002,375,680
4May 3, 2026 21:204,119137,619,184118,418,0001,033,0002,375,680
5May 3, 2026 21:204,121135,880,412118,460,0001,051,0002,363,392
6May 3, 2026 21:204,122134,948,375118,523,0001,038,0002,363,392
7May 3, 2026 21:204,123137,905,076119,586,00002,371,584
8May 3, 2026 21:204,130135,922,903118,738,0001,059,0002,375,680
9May 3, 2026 21:204,165137,753,486119,755,0001,045,0002,367,488