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 19:31TudyMTudyMScore: 4,745Success
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 19:354,734156,762,213136,238,0001,065,0002,371,584
2May 3, 2026 19:354,737154,717,935136,316,0001,070,0002,371,584
3May 3, 2026 19:354,738153,648,734136,323,0001,083,0002,367,488
4May 3, 2026 19:354,740153,036,178137,473,00002,371,584
5May 3, 2026 19:354,745154,222,457136,571,0001,046,0002,379,776
6May 3, 2026 19:354,746157,254,395136,568,0001,083,0002,379,776
7May 3, 2026 19:354,749152,444,504136,660,0001,065,0002,379,776
8May 3, 2026 19:354,750154,592,730136,665,0001,095,0002,359,296
9May 3, 2026 19:354,863160,209,931137,001,0004,054,0002,371,584