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 24, 2026 10:37Charles CabergsCharles CabergsScore: 3,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 10:383,656121,532,019104,032,0002,000,0002,514,944
2Apr 24, 2026 10:383,657122,310,149104,063,0002,001,0002,523,136
3Apr 24, 2026 10:383,659126,260,140104,126,0002,002,0002,510,848
4Apr 24, 2026 10:383,660123,334,766103,143,0003,004,0002,330,624
5Apr 24, 2026 10:383,661126,671,682103,180,0003,005,0002,531,328
6Apr 24, 2026 10:383,664126,061,898104,269,0002,005,0002,510,848
7Apr 24, 2026 10:383,665121,846,209103,290,0003,008,0002,519,040
8Apr 24, 2026 10:383,665122,217,792104,297,0002,005,0002,514,944
9Apr 24, 2026 10:383,671125,288,336104,462,0002,008,0002,510,848