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:26Yuriy LyfenkoYuriy LyfenkoScore: 5,660Success
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:265,430471,863,576157,460,627027,443,200
2Sep 22, 2021 16:265,481456,861,295158,947,126027,443,200
3Sep 22, 2021 16:265,482466,565,746158,966,090027,447,296
4Sep 22, 2021 16:265,650374,326,987134,523,00029,332,00033,632,256
5Sep 22, 2021 16:265,653349,898,173134,775,00029,167,00033,550,336
6Sep 22, 2021 16:265,659359,298,738134,909,00029,196,00033,923,072
7Sep 22, 2021 16:265,660376,117,345140,849,00023,298,00033,751,040
8Sep 22, 2021 16:265,662358,301,679138,381,00025,817,00034,021,376
9Sep 22, 2021 16:265,664355,840,275132,396,00031,854,00033,828,864
10Sep 22, 2021 16:265,679376,825,577139,838,00024,860,00033,751,040
11Sep 22, 2021 16:265,689375,290,714139,916,00025,059,00033,796,096
12Sep 22, 2021 16:265,690378,421,129139,937,00025,063,00033,894,400