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:17Yuriy LyfenkoYuriy LyfenkoScore: 3,167Success
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:173,166121,460,95289,829,0001,996,0002,404,352
2Apr 12, 2026 02:173,167115,040,45690,836,000998,0002,404,352
3Apr 12, 2026 02:173,167120,316,30890,842,000998,0002,281,472
4Apr 12, 2026 02:173,167118,631,48990,845,000998,0002,400,256
5Apr 12, 2026 02:173,167120,066,29791,846,00002,400,256
6Apr 12, 2026 02:173,169119,265,41790,900,000998,0002,281,472
7Apr 12, 2026 02:173,169118,613,21989,903,0001,997,0002,408,448
8Apr 12, 2026 02:173,170118,692,60089,922,0001,998,0002,392,064
9Apr 12, 2026 02:173,170112,814,76789,930,0001,998,0002,281,472