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 26, 2026 09:57Charles CabergsCharles CabergsScore: 5,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 09:585,039162,583,073143,141,0003,002,0002,338,816stderr
2Apr 26, 2026 09:585,078164,478,557146,286,0001,001,0002,510,848stderr
3Apr 26, 2026 09:585,080161,961,766146,339,0001,002,0002,523,136stderr
4Apr 26, 2026 09:585,080163,120,106145,336,0002,004,0002,514,944stderr
5Apr 26, 2026 09:585,086166,781,611145,511,0002,007,0002,531,328stderr
6Apr 26, 2026 09:585,089166,494,698145,575,0002,007,0002,527,232stderr
7Apr 26, 2026 09:585,091159,761,795144,666,0002,993,0002,306,048stderr
8Apr 26, 2026 09:585,092165,279,229145,681,0002,009,0002,338,816stderr
9Apr 26, 2026 09:585,095163,792,857144,765,0002,995,0002,519,040stderr