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:57Yuriy LyfenkoYuriy LyfenkoScore: 5,702Success
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:575,544492,535,141160,780,482027,455,488
2Sep 22, 2021 15:575,573505,311,458161,628,789027,467,776
3Sep 22, 2021 15:575,592456,504,423162,174,137027,451,392
4Sep 22, 2021 15:575,685366,652,053130,167,00034,711,00033,636,352
5Sep 22, 2021 15:575,688367,230,280136,618,00028,335,00033,718,272
6Sep 22, 2021 15:575,698363,210,011138,546,00026,683,00033,898,496
7Sep 22, 2021 15:575,702376,550,762140,250,00025,119,00033,955,840
8Sep 22, 2021 15:575,710372,209,237141,183,00024,415,00033,751,040
9Sep 22, 2021 15:575,719355,335,442133,878,00031,971,00033,902,592
10Sep 22, 2021 15:575,728378,684,278135,726,00030,386,00034,074,624
11Sep 22, 2021 15:575,729379,351,320133,301,00032,828,00033,751,040
12Sep 22, 2021 15:575,755363,442,912140,658,00026,242,00035,831,808