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 listApr 21, 2026 01:22olliecrowolliecrowScore: 3,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 01:223,718135,616,664106,830,000998,0002,248,704
2Apr 21, 2026 01:223,718133,654,155105,828,0001,996,0002,252,800
3Apr 21, 2026 01:223,719137,598,315105,867,0001,997,0002,289,664
4Apr 21, 2026 01:223,720129,599,883105,890,0001,997,0002,281,472
5Apr 21, 2026 01:223,720132,622,383105,901,0001,998,0002,498,560
6Apr 21, 2026 01:223,721131,636,714105,930,0001,998,0002,248,704
7Apr 21, 2026 01:223,723127,574,592105,969,0001,999,0002,252,800
8Apr 21, 2026 01:223,726121,678,152106,062,0002,001,0002,289,664
9Apr 21, 2026 01:223,730141,598,925106,208,0001,985,0002,289,664