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:29TudyMTudyMScore: 4,191Success
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:304,185137,920,172120,347,0001,031,0002,375,680
2May 3, 2026 21:304,185139,395,206120,315,0001,057,0002,371,584
3May 3, 2026 21:304,185141,041,825120,337,0001,031,0002,367,488
4May 3, 2026 21:304,188139,342,482120,418,0001,052,0002,363,392
5May 3, 2026 21:304,191137,431,259120,493,0001,047,0002,359,296
6May 3, 2026 21:304,193138,783,682120,557,0001,062,0002,371,584
7May 3, 2026 21:304,193139,787,295120,577,0001,030,0002,375,680
8May 3, 2026 21:304,195141,285,424120,622,0001,060,0002,371,584
9May 3, 2026 21:304,196137,673,764120,612,0001,078,0002,363,392