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 19:02TudyMTudyMScore: 4,733Success
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 19:064,726151,110,681137,067,00002,367,488
2May 3, 2026 19:064,730152,647,640136,128,0001,060,0002,363,392
3May 3, 2026 19:064,731153,665,730136,185,0001,039,0002,375,680
4May 3, 2026 19:064,733154,623,920136,226,0001,057,0002,359,296
5May 3, 2026 19:064,733153,311,327136,194,0001,082,0002,363,392
6May 3, 2026 19:064,734157,708,355136,303,0001,011,0002,355,200
7May 3, 2026 19:064,739155,766,137136,372,0001,087,0002,359,296
8May 3, 2026 19:064,741159,423,764136,305,0001,189,0002,359,296
9May 3, 2026 19:064,744155,779,178136,401,0001,183,0002,367,488