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 listDec 30, 2025 01:59Josu San MartinJosu San MartinScore: 6,812Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2025 01:356,797216,259,946195,115,0002,001,0002,281,472
2Dec 30, 2025 01:596,805222,080,978196,334,0001,001,0002,334,720
3Dec 30, 2025 01:356,807225,081,603197,413,00002,338,816
4Dec 30, 2025 01:356,809224,410,267197,467,00002,281,472
5Dec 30, 2025 01:356,810220,216,975195,488,0002,005,0002,281,472
6Dec 30, 2025 01:356,810219,812,430197,501,00002,330,624
7Dec 30, 2025 01:356,812222,824,458197,558,00002,281,472
8Dec 30, 2025 01:356,813223,309,192197,565,00002,338,816
9Dec 30, 2025 01:596,815225,933,910197,624,00002,334,720
10Dec 30, 2025 01:596,820223,585,652195,777,0001,997,0002,342,912
11Dec 30, 2025 01:356,839224,831,438197,343,0001,001,0002,334,720
12Dec 30, 2025 01:357,048226,326,266204,394,00002,338,816