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:38Yuriy LyfenkoYuriy LyfenkoScore: 5,670Success
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:385,421425,053,224157,205,906027,443,200
2Sep 22, 2021 16:385,464476,685,665158,455,801027,447,296
3Sep 22, 2021 16:385,474443,383,471158,755,915027,426,816
4Sep 22, 2021 16:385,653376,174,117132,941,00030,986,00033,796,096
5Sep 22, 2021 16:385,658370,243,902134,713,00029,373,00033,759,232
6Sep 22, 2021 16:385,668372,000,389143,162,00021,209,00034,344,960
7Sep 22, 2021 16:385,670346,682,277135,357,00029,076,00033,746,944
8Sep 22, 2021 16:385,677365,483,492142,189,00022,451,00033,705,984
9Sep 22, 2021 16:385,684352,313,954137,016,00027,815,00034,156,544
10Sep 22, 2021 16:385,691373,763,081141,753,00023,272,00033,423,360
11Sep 22, 2021 16:385,703381,196,559141,012,00024,385,00034,267,136
12Sep 22, 2021 16:385,704381,976,852140,288,00025,126,00034,013,184