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:57Josu San MartinJosu San MartinScore: 6,068Success
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:576,036202,007,039173,037,0002,000,0002,334,720
2Dec 30, 2025 01:596,043197,902,313174,233,0001,001,0002,342,912
3Dec 30, 2025 01:576,045199,821,669174,316,0001,001,0002,281,472
4Dec 30, 2025 01:596,062204,616,733174,801,000998,0002,281,472
5Dec 30, 2025 01:596,063201,471,703173,835,0001,998,0002,330,624
6Dec 30, 2025 01:596,064201,496,018173,860,0001,998,0002,330,624
7Dec 30, 2025 01:596,065198,801,786173,873,0001,998,0002,281,472
8Dec 30, 2025 01:596,065199,394,869174,891,000999,0002,326,528
9Dec 30, 2025 01:576,068204,663,245174,961,000999,0002,281,472
10Dec 30, 2025 01:596,068208,648,086174,961,000999,0002,281,472
11Dec 30, 2025 01:576,083200,531,520175,402,0001,002,0002,281,472
12Dec 30, 2025 01:596,086201,375,419176,499,00002,334,720
13Dec 30, 2025 01:576,098204,759,492174,856,0001,998,0002,326,528
14Dec 30, 2025 01:576,102204,108,417174,961,0001,999,0002,281,472
15Dec 30, 2025 01:596,102199,623,929175,970,000999,0002,342,912
16Dec 30, 2025 01:576,103201,980,379174,986,0001,999,0002,281,472
17Dec 30, 2025 01:576,104204,153,851176,009,0001,000,0002,281,472
18Dec 30, 2025 01:576,112199,814,498175,234,0002,002,0002,326,528