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 listMay 1, 2026 18:49Victor MerckléVictor MerckléScore: 3,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2026 18:503,133112,369,01088,872,0001,997,0002,449,408
2May 1, 2026 18:503,133112,213,56489,860,0001,009,0002,453,504
3May 1, 2026 18:503,134109,504,11088,912,0001,998,0002,453,504
4May 1, 2026 18:503,136110,104,29588,954,0001,998,0002,461,696
5May 1, 2026 18:503,137111,435,09788,979,0001,999,0002,437,120
6May 1, 2026 18:503,138108,890,62789,006,0002,000,0002,457,600
7May 1, 2026 18:503,140108,122,93490,082,0001,000,0002,523,136
8May 1, 2026 18:503,141107,416,12189,092,0002,002,0002,465,792
9May 1, 2026 18:503,142105,731,92089,135,0002,003,0002,453,504