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:25TudyMTudyMScore: 5,708Success
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:255,703179,544,043164,372,0001,034,0002,371,584
2May 3, 2026 21:255,704178,798,741164,398,0001,023,0002,363,392
3May 3, 2026 21:255,705181,467,879164,456,0001,017,0002,375,680
4May 3, 2026 21:255,706182,725,523164,435,0001,065,0002,367,488
5May 3, 2026 21:255,708181,060,667164,523,0001,011,0002,363,392
6May 3, 2026 21:255,710180,965,877164,574,0001,019,0002,363,392
7May 3, 2026 21:255,710181,108,189164,565,0001,040,0002,371,584
8May 3, 2026 21:255,710184,052,347164,558,0001,043,0002,371,584
9May 3, 2026 21:255,728180,365,731165,031,0001,083,0002,363,392