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 listApr 28, 2026 09:42TudyMTudyMScore: 4,833Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:434,823157,196,840137,877,0001,998,0002,375,680
2Apr 28, 2026 09:434,823158,429,350137,869,0001,998,0002,375,680
3Apr 28, 2026 09:434,825162,191,222137,933,0001,999,0002,314,240
4Apr 28, 2026 09:434,830159,639,163138,087,0002,001,0002,371,584
5Apr 28, 2026 09:434,833157,467,685138,182,0002,002,0002,371,584
6Apr 28, 2026 09:434,835156,677,262139,219,0001,001,0002,375,680
7Apr 28, 2026 09:434,836158,296,705139,248,0001,001,0002,359,296
8Apr 28, 2026 09:434,836162,899,109139,255,0001,001,0002,367,488
9Apr 28, 2026 09:434,838159,455,137139,321,0001,002,0002,428,928