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 16:45Yuriy LyfenkoYuriy LyfenkoScore: 5,872Success
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 16:455,672478,791,540164,492,887027,447,296
2Sep 22, 2021 16:455,672495,029,169164,493,422027,443,200
3Sep 22, 2021 16:455,697495,534,302165,203,423027,447,296
4Sep 22, 2021 16:455,860359,905,294134,216,00035,726,00033,644,544
5Sep 22, 2021 16:455,864381,571,764139,873,00030,188,00033,742,848
6Sep 22, 2021 16:455,870382,776,336148,156,00022,065,00033,570,816
7Sep 22, 2021 16:455,872380,226,495137,799,00032,481,00033,714,176
8Sep 22, 2021 16:455,877381,568,546136,344,00034,086,00034,074,624
9Sep 22, 2021 16:455,880380,297,168143,806,00026,706,00033,628,160
10Sep 22, 2021 16:455,885376,261,905141,210,00029,461,00034,222,080
11Sep 22, 2021 16:455,890354,287,118138,664,00032,153,00033,759,232
12Sep 22, 2021 16:455,906378,445,604142,551,00028,715,00033,697,792