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 29, 2026 21:31Victor MerckléVictor MerckléScore: 3,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 21:323,716129,156,657105,793,0001,996,0002,531,328
2Apr 29, 2026 21:323,719126,204,633105,856,0001,997,0002,523,136
3Apr 29, 2026 21:323,719126,956,869105,872,0001,997,0002,338,816
4Apr 29, 2026 21:323,720127,750,468106,890,000998,0002,527,232
5Apr 29, 2026 21:323,720128,934,792105,907,0001,998,0002,322,432
6Apr 29, 2026 21:323,721124,330,464105,924,0001,998,0002,514,944
7Apr 29, 2026 21:323,722127,594,830105,949,0001,999,0002,523,136
8Apr 29, 2026 21:323,722124,743,606105,963,0001,999,0002,527,232
9Apr 29, 2026 21:323,723125,406,516105,987,0001,999,0002,342,912