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:22Yuriy LyfenkoYuriy LyfenkoScore: 5,680Success
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:225,522533,319,345160,125,705027,435,008
2Sep 22, 2021 16:225,573475,510,210161,610,202027,443,200
3Sep 22, 2021 16:225,608463,621,468162,618,186027,447,296
4Sep 22, 2021 16:225,676372,662,489134,680,00029,929,00033,447,936
5Sep 22, 2021 16:225,677360,974,126128,046,00036,584,00034,058,240
6Sep 22, 2021 16:225,680361,016,995132,168,00032,549,00034,021,376
7Sep 22, 2021 16:225,680370,430,414135,413,00029,305,00034,058,240
8Sep 22, 2021 16:225,684380,259,728141,587,00023,245,00034,156,544
9Sep 22, 2021 16:225,685365,359,466135,528,00029,330,00033,751,040
10Sep 22, 2021 16:225,698374,534,204136,869,00028,387,00033,787,904
11Sep 22, 2021 16:225,705366,018,363138,736,00026,719,00034,041,856
12Sep 22, 2021 16:225,717377,921,027137,988,00027,803,00034,496,512