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 LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:34Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:35025,383,41915,419,00002,113,536line 15: expected 3431902025767 got 617795127270
2Sep 9, 2026 08:35026,221,94016,243,00002,113,536line 15: expected -228327331515 got -14182711814174
3Sep 9, 2026 08:35025,251,71815,317,00002,113,536line 15: expected 2822473487554 got -14
4Apr 12, 2026 02:173,166121,460,95289,829,0001,996,0002,404,352
5Apr 12, 2026 02:173,167115,040,45690,836,000998,0002,404,352
6Apr 12, 2026 02:173,167120,316,30890,842,000998,0002,281,472
7Apr 12, 2026 02:173,167118,631,48990,845,000998,0002,400,256
8Apr 12, 2026 02:173,167120,066,29791,846,00002,400,256
9Apr 12, 2026 02:173,169119,265,41790,900,000998,0002,281,472
10Apr 12, 2026 02:173,169118,613,21989,903,0001,997,0002,408,448
11Apr 12, 2026 02:173,170118,692,60089,922,0001,998,0002,392,064
12Apr 12, 2026 02:173,170112,814,76789,930,0001,998,0002,281,472