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 13:43Yuriy LyfenkoYuriy LyfenkoScore: 5,970Success
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 13:435,681484,366,603164,746,470027,451,392
2Sep 22, 2021 13:435,723483,399,740165,953,554027,463,680
3Sep 22, 2021 13:435,730516,061,973166,164,854027,443,200
4Sep 22, 2021 13:435,943374,505,390148,331,00024,025,00033,718,272
5Sep 22, 2021 13:435,952361,516,913144,869,00027,741,00033,624,064
6Sep 22, 2021 13:435,958382,358,227143,310,00029,475,00033,452,032
7Sep 22, 2021 13:435,970370,279,905146,173,00026,954,00034,160,640
8Sep 22, 2021 13:435,970392,909,827144,447,00028,684,00034,164,736
9Sep 22, 2021 13:435,986388,429,394140,674,00032,923,00034,537,472
10Sep 22, 2021 13:435,987380,475,848149,409,00024,200,00033,587,200
11Sep 22, 2021 13:435,987354,182,775144,183,00029,445,00033,701,888
12Sep 22, 2021 13:435,993391,516,044141,658,00032,149,00034,205,696