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 20, 2021 18:59Ilya AniskovetsIlya AniskovetsScore: 6,315Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:596,281394,110,588153,502,00028,653,00033,394,688
2Sep 20, 2021 18:596,290370,932,524150,525,00031,899,00033,898,496
3Sep 20, 2021 18:596,300457,682,916182,687,966027,459,584
4Sep 20, 2021 18:596,307397,662,317147,890,00035,026,00033,656,832
5Sep 20, 2021 18:596,310374,515,628148,372,00034,620,00034,045,952
6Sep 20, 2021 18:596,313393,315,411148,264,00034,827,00034,045,952
7Sep 20, 2021 18:596,315381,395,542152,781,00030,353,00034,308,096
8Sep 20, 2021 18:596,319392,985,875150,207,00033,045,00033,931,264
9Sep 20, 2021 18:596,332392,623,731162,162,00021,478,00033,980,416
10Sep 20, 2021 18:596,343393,184,509152,276,00031,681,00033,902,592
11Sep 20, 2021 18:596,374523,595,256184,851,156027,455,488
12Sep 20, 2021 18:596,395537,727,734185,440,691027,459,584