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:56Yuriy LyfenkoYuriy LyfenkoScore: 6,103Success
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:565,845599,916,465169,500,056027,455,488
2Sep 22, 2021 03:565,885455,916,327170,677,280027,451,392
3Sep 22, 2021 03:565,889444,866,689170,769,133027,455,488
4Sep 22, 2021 03:566,072376,626,698149,321,00026,774,00033,546,240
5Sep 22, 2021 03:566,087383,126,301147,111,00029,422,00033,701,888
6Sep 22, 2021 03:566,102377,505,370150,925,00026,021,00033,902,592
7Sep 22, 2021 03:566,103388,639,666148,511,00028,481,00033,738,752
8Sep 22, 2021 03:566,108390,623,905147,607,00029,521,00033,947,648
9Sep 22, 2021 03:566,116387,075,135153,365,00023,995,00034,111,488
10Sep 22, 2021 03:566,118384,092,385154,986,00022,446,00033,980,416
11Sep 22, 2021 03:566,144388,897,566151,091,00027,092,00033,751,040
12Sep 22, 2021 03:566,148384,222,925151,353,00026,953,00033,996,800