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:52Yuriy LyfenkoYuriy LyfenkoScore: 5,583Success
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:525,551371,265,841136,928,00024,040,00034,275,328
2Sep 22, 2021 15:525,567350,403,029133,854,00027,588,00034,168,832
3Sep 22, 2021 15:525,572378,838,980136,410,00025,183,00034,013,184
4Sep 22, 2021 15:525,576359,850,040131,374,00030,317,00033,845,248
5Sep 22, 2021 15:525,577531,171,382161,744,725027,463,680
6Sep 22, 2021 15:525,583355,295,934130,729,00031,174,00034,373,632
7Sep 22, 2021 15:525,583378,330,693136,681,00025,233,00034,160,640
8Sep 22, 2021 15:525,592370,251,696127,008,00035,171,00034,197,504
9Sep 22, 2021 15:525,607378,440,003134,641,00027,963,00033,812,480
10Sep 22, 2021 15:525,616543,677,972162,869,154027,459,584
11Sep 22, 2021 15:525,619350,438,774134,930,00028,023,00033,751,040
12Sep 22, 2021 15:525,631502,903,821163,287,839027,455,488