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:26Yuriy LyfenkoYuriy LyfenkoScore: 5,668Success
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:265,410451,169,994156,889,357027,447,296
2Sep 22, 2021 16:265,486444,162,149159,088,640027,443,200
3Sep 22, 2021 16:265,544531,842,725160,767,863027,447,296
4Sep 22, 2021 16:265,659372,180,565124,944,00039,161,00034,058,240
5Sep 22, 2021 16:265,663377,958,365131,768,00032,450,00034,095,104
6Sep 22, 2021 16:265,667355,203,493130,874,00033,456,00034,123,776
7Sep 22, 2021 16:265,668352,574,579135,776,00028,584,00033,796,096
8Sep 22, 2021 16:265,672381,254,216134,216,00030,274,00034,058,240
9Sep 22, 2021 16:265,673380,288,255141,170,00023,351,00033,935,360
10Sep 22, 2021 16:265,680372,906,288141,501,00023,231,00033,751,040
11Sep 22, 2021 16:265,689352,476,856130,612,00034,371,00034,320,384
12Sep 22, 2021 16:265,694374,728,017139,004,00026,128,00034,451,456