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:31TudyMTudyMScore: 4,580Success
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:314,563147,768,890132,355,00002,359,296
2May 3, 2026 21:314,568147,856,415131,483,0001,017,0002,367,488
3May 3, 2026 21:314,572149,652,597131,575,0001,016,0002,379,776
4May 3, 2026 21:314,577151,687,414131,702,0001,037,0002,363,392
5May 3, 2026 21:314,580149,217,007131,773,0001,050,0002,371,584
6May 3, 2026 21:314,588149,361,781132,016,0001,043,0002,367,488
7May 3, 2026 21:314,593152,136,337132,157,0001,045,0002,371,584
8May 3, 2026 21:314,593149,705,554132,150,0001,049,0002,371,584
9May 3, 2026 21:314,596147,524,498132,206,0001,103,0002,367,488