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 21, 2026 21:39Charles CabergsCharles CabergsScore: 5,305Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 21:395,301166,224,969151,736,0001,996,0002,334,720stderr
2Apr 21, 2026 21:395,303177,840,173150,808,0002,996,0002,510,848stderr
3Apr 21, 2026 21:395,304175,359,671150,834,0002,996,0002,510,848stderr
4Apr 21, 2026 21:395,304172,093,222150,822,0002,996,0002,514,944stderr
5Apr 21, 2026 21:395,305172,101,019150,874,0002,997,0002,510,848stderr
6Apr 21, 2026 21:395,307170,473,971151,921,0001,998,0002,514,944stderr
7Apr 21, 2026 21:395,309171,573,312150,984,0002,999,0002,527,232stderr
8Apr 21, 2026 21:395,311170,219,530151,035,0003,000,0002,519,040stderr
9Apr 21, 2026 21:395,314174,141,700151,113,0003,002,0002,514,944stderr