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 28, 2021 04:13Yuriy LyfenkoYuriy LyfenkoScore: 6,005Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 04:135,774442,404,448167,434,083027,439,104
2Sep 28, 2021 04:135,797451,072,638168,125,563027,439,104
3Sep 28, 2021 04:135,826468,434,516168,965,806027,447,296
4Sep 28, 2021 04:135,984354,966,852138,630,00034,900,00033,484,800
5Sep 28, 2021 04:135,988365,814,794139,697,00033,954,00033,751,040
6Sep 28, 2021 04:136,003385,102,516134,991,00039,100,00033,738,752
7Sep 28, 2021 04:136,005375,868,898142,290,00031,841,00033,869,824
8Sep 28, 2021 04:136,015393,242,516144,197,00030,251,00033,742,848
9Sep 28, 2021 04:136,017359,516,791147,660,00026,847,00033,746,944
10Sep 28, 2021 04:136,023381,676,946148,120,00026,559,00033,796,096
11Sep 28, 2021 04:136,029388,990,772136,837,00038,010,00034,017,280
12Sep 28, 2021 04:136,041388,517,168145,829,00029,368,00035,373,056