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:21Yuriy LyfenkoYuriy LyfenkoScore: 5,717Success
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:215,531512,000,494160,409,451027,455,488
2Sep 22, 2021 15:215,578516,774,390161,763,992027,459,584
3Sep 22, 2021 15:215,579461,683,539161,784,059027,451,392
4Sep 22, 2021 15:215,689358,643,018135,440,00029,532,00033,742,848
5Sep 22, 2021 15:215,711381,911,584139,590,00026,042,00033,710,080
6Sep 22, 2021 15:215,715368,629,044140,571,00025,177,00033,751,040
7Sep 22, 2021 15:215,717345,444,505137,147,00028,657,00033,996,800
8Sep 22, 2021 15:215,720381,762,485137,390,00028,495,00033,562,624
9Sep 22, 2021 15:215,733378,473,752145,743,00020,512,00033,980,416
10Sep 22, 2021 15:215,758379,497,686131,628,00035,362,00035,012,608
11Sep 22, 2021 15:215,767387,149,178135,833,00031,424,00033,910,784
12Sep 22, 2021 15:215,772379,170,302131,939,00035,446,00033,902,592