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:32TudyMTudyMScore: 4,528Success
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:324,523149,915,389130,134,0001,041,0002,363,392
2May 3, 2026 21:324,526150,082,893130,213,0001,068,0002,367,488
3May 3, 2026 21:324,526149,426,435130,231,0001,051,0002,375,680
4May 3, 2026 21:324,527148,477,262130,227,0001,064,0002,371,584
5May 3, 2026 21:324,528149,396,621130,278,0001,044,0002,367,488
6May 3, 2026 21:324,528147,837,029130,257,0001,069,0002,363,392
7May 3, 2026 21:324,528147,860,900130,281,0001,059,0002,359,296
8May 3, 2026 21:324,530147,079,387130,327,0001,050,0002,367,488
9May 3, 2026 21:324,530146,398,717130,359,0001,011,0002,375,680