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 12, 2026 02:04Yuriy LyfenkoYuriy LyfenkoScore: 3,236Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2026 02:043,231117,185,36393,694,00002,404,352
2Apr 12, 2026 02:043,231121,782,31592,688,0001,007,0002,400,256
3Apr 12, 2026 02:043,231121,902,88392,692,0001,007,0002,281,472
4Apr 12, 2026 02:043,236124,847,39592,843,000998,0002,510,848
5Apr 12, 2026 02:043,236118,254,02892,845,000998,0002,281,472
6Apr 12, 2026 02:043,236116,967,73892,846,000998,0002,281,472
7Apr 12, 2026 02:043,236122,100,21493,848,00002,281,472
8Apr 12, 2026 02:043,236124,913,64993,851,00002,392,064
9Apr 12, 2026 02:043,237115,462,63792,876,000998,0002,281,472