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 4, 2026 23:27olliecrowolliecrowScore: 3,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 4, 2026 23:273,730124,429,298107,127,0001,064,0002,351,104
2May 4, 2026 23:273,731125,538,842107,123,0001,079,0002,351,104
3May 4, 2026 23:273,731124,309,128107,164,0001,053,0002,342,912
4May 4, 2026 23:273,732126,832,653107,224,0001,032,0002,363,392
5May 4, 2026 23:273,733123,205,462107,182,0001,083,0002,359,296
6May 4, 2026 23:273,735126,545,604107,232,0001,107,0002,355,200
7May 4, 2026 23:273,736125,513,380107,263,0001,094,0002,351,104
8May 4, 2026 23:273,738127,194,461107,396,0001,010,0002,363,392
9May 4, 2026 23:273,749129,087,363107,603,0001,124,0002,359,296