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 10, 2026 10:14limanjun99limanjun99Score: 6,083Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 10:146,075203,264,423174,186,0002,002,0002,293,760
2Apr 10, 2026 10:146,080198,191,436175,330,0001,001,0002,363,392
3Apr 10, 2026 10:146,082204,476,722175,370,0001,002,0002,293,760
4Apr 10, 2026 10:146,082197,680,245176,389,00002,363,392
5Apr 10, 2026 10:146,083202,840,933175,398,0001,002,0002,293,760
6Apr 10, 2026 10:146,083199,228,032175,414,0001,002,0002,293,760
7Apr 10, 2026 10:146,084198,860,015175,443,0001,002,0002,293,760
8Apr 10, 2026 10:146,085203,123,562175,462,0001,002,0002,363,392
9Apr 10, 2026 10:146,087202,943,701175,510,0001,002,0002,293,760