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 listOct 31, 2021 14:18Ilya AniskovetsIlya AniskovetsScore: 5,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2021 14:185,256461,860,780152,424,942027,463,680
2Oct 31, 2021 14:185,307430,883,884153,892,877027,471,872
3Oct 31, 2021 14:185,318483,238,742154,236,117027,467,776
4Oct 31, 2021 14:185,546346,814,107132,140,00028,681,00033,722,368
5Oct 31, 2021 14:185,547357,080,907137,262,00023,591,00034,172,928
6Oct 31, 2021 14:185,547365,752,186132,173,00028,688,00034,050,048
7Oct 31, 2021 14:185,553381,122,972131,676,00029,374,00034,631,680
8Oct 31, 2021 14:185,559369,661,654129,181,00032,044,00033,701,888
9Oct 31, 2021 14:185,565367,004,227128,517,00032,876,00034,095,104
10Oct 31, 2021 14:185,583370,481,256141,118,00020,784,00033,558,528
11Oct 31, 2021 14:185,591367,076,056130,718,00031,412,00033,980,416
12Oct 31, 2021 14:185,603375,138,953141,637,00020,861,00034,164,736