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 11, 2021 01:01Yuriy LyfenkoYuriy LyfenkoScore: 5,718Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 01:015,531466,752,698160,409,767027,463,680
2Oct 11, 2021 01:015,583474,639,012161,906,925027,451,392
3Oct 11, 2021 01:015,590437,049,512162,112,908027,471,872
4Oct 11, 2021 01:015,702372,033,400142,189,00023,171,00033,488,896
5Oct 11, 2021 01:015,717376,721,800135,468,00030,328,00033,583,104
6Oct 11, 2021 01:015,718376,405,397140,626,00025,186,00033,996,800
7Oct 11, 2021 01:015,718377,429,368134,864,00030,968,00034,168,832
8Oct 11, 2021 01:015,730377,351,038132,738,00033,430,00033,902,592
9Oct 11, 2021 01:015,744377,552,132138,805,00027,761,00033,980,416
10Oct 11, 2021 01:015,745364,379,643143,099,00023,493,00033,456,128
11Oct 11, 2021 01:015,752377,931,567132,265,00034,546,00034,045,952
12Oct 11, 2021 01:015,777372,969,685144,993,00022,554,00035,405,824