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 20:20TudyMTudyMScore: 4,740Success
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 20:214,734154,247,131137,308,00002,371,584
2May 3, 2026 20:214,737155,392,236136,350,0001,037,0002,379,776
3May 3, 2026 20:214,738154,642,361136,372,0001,032,0002,367,488
4May 3, 2026 20:214,739156,611,603136,430,0001,005,0002,359,296
5May 3, 2026 20:214,740153,995,223137,460,00002,367,488
6May 3, 2026 20:214,742154,973,335136,476,0001,049,0002,367,488
7May 3, 2026 20:214,743155,308,343136,506,0001,044,0002,367,488
8May 3, 2026 20:214,745156,340,742137,623,00002,371,584
9May 3, 2026 20:214,745156,221,266136,573,0001,044,0002,359,296