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 listSep 22, 2021 15:20Yuriy LyfenkoYuriy LyfenkoScore: 5,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 15:205,603481,518,309162,481,797027,463,680
2Sep 22, 2021 15:205,609483,914,954162,665,461027,451,392
3Sep 22, 2021 15:205,663490,096,635164,214,987027,451,392
4Sep 22, 2021 15:205,706372,147,565145,068,00020,417,00033,640,448
5Sep 22, 2021 15:205,711349,872,642126,313,00039,297,00033,562,624
6Sep 22, 2021 15:205,722349,174,848133,340,00032,594,00033,697,792
7Sep 22, 2021 15:205,736387,223,316136,738,00029,592,00033,722,368
8Sep 22, 2021 15:205,739380,632,442135,165,00031,269,00034,537,472
9Sep 22, 2021 15:205,745364,479,806134,674,00031,922,00034,164,736
10Sep 22, 2021 15:205,749375,719,399132,405,00034,327,00033,529,856
11Sep 22, 2021 15:205,753380,850,413130,741,00036,100,00034,013,184
12Sep 22, 2021 15:205,775380,449,905142,938,00024,534,00034,013,184