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:11Yuriy LyfenkoYuriy LyfenkoScore: 5,891Success
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:115,828498,213,866169,002,592027,455,488
2Sep 22, 2021 16:115,865375,825,060136,663,00033,428,00033,456,128
3Sep 22, 2021 16:115,869378,599,545132,909,00037,291,00033,718,272
4Sep 22, 2021 16:115,879468,540,929170,481,959027,459,584
5Sep 22, 2021 16:115,880355,218,067137,611,00032,907,00034,115,584
6Sep 22, 2021 16:115,885367,970,596139,540,00031,120,00033,685,504
7Sep 22, 2021 16:115,891368,446,857137,877,00032,970,00033,382,400
8Sep 22, 2021 16:115,894363,145,349145,038,00025,899,00033,472,512
9Sep 22, 2021 16:115,898488,796,302171,044,543027,451,392
10Sep 22, 2021 16:115,903390,507,702143,338,00027,842,00034,533,376
11Sep 22, 2021 16:115,914392,126,467147,313,00024,201,00033,587,200
12Sep 22, 2021 16:115,929382,764,126141,414,00030,521,00034,107,392