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 20:11TudyMTudyMScore: 5,507Success
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 20:125,494177,561,971136,107,00023,234,0002,367,488
2May 3, 2026 20:125,501176,885,514136,368,00023,181,0002,371,584
3May 3, 2026 20:125,503178,275,571136,295,00023,296,0002,383,872
4May 3, 2026 20:125,505176,148,883136,288,00023,363,0002,355,200
5May 3, 2026 20:125,507175,143,720136,500,00023,229,0002,363,392
6May 3, 2026 20:125,509177,947,620136,327,00023,439,0002,367,488
7May 3, 2026 20:125,511176,513,823136,477,00023,352,0002,375,680
8May 3, 2026 20:125,511179,243,572136,231,00023,614,0002,359,296
9May 3, 2026 20:125,512176,376,933136,280,00023,576,0002,359,296