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 03:28Yuriy LyfenkoYuriy LyfenkoScore: 6,291Success
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 03:285,790464,754,305167,905,953027,455,488
2Sep 22, 2021 03:285,821468,520,794168,796,218027,455,488
3Sep 22, 2021 03:285,828445,212,486169,015,023027,455,488
4Sep 22, 2021 03:286,269383,002,324150,012,00031,790,00033,714,176
5Sep 22, 2021 03:286,285394,761,369156,364,00025,888,00033,681,408
6Sep 22, 2021 03:286,286372,457,781158,050,00024,234,00033,853,440
7Sep 22, 2021 03:286,291389,434,908150,534,00031,901,00033,714,176
8Sep 22, 2021 03:286,299384,998,019154,963,00027,708,00033,722,368
9Sep 22, 2021 03:286,300381,281,393152,582,00030,114,00033,927,168
10Sep 22, 2021 03:286,301389,563,464158,715,00024,016,00033,685,504
11Sep 22, 2021 03:286,313385,754,666151,062,00032,013,00034,160,640
12Sep 22, 2021 03:286,323401,803,063159,125,00024,237,00033,812,480