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 03:40Yuriy LyfenkoYuriy LyfenkoScore: 5,699Success
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 03:405,438434,258,813157,704,819027,447,296
2Oct 11, 2021 03:405,443494,556,735157,840,512027,443,200
3Oct 11, 2021 03:405,475492,933,580158,773,556027,447,296
4Oct 11, 2021 03:405,661370,709,173134,969,00029,209,00033,488,896
5Oct 11, 2021 03:405,697366,575,578130,800,00034,421,00034,017,280
6Oct 11, 2021 03:405,698364,168,660140,146,00025,100,00033,370,112
7Oct 11, 2021 03:405,699374,766,044140,176,00025,106,00034,000,896
8Oct 11, 2021 03:405,711382,516,226143,187,00022,439,00033,914,880
9Oct 11, 2021 03:405,712375,795,113142,434,00023,211,00034,025,472
10Oct 11, 2021 03:405,715378,995,508131,989,00033,741,00033,894,400
11Oct 11, 2021 03:405,725380,227,277139,044,00026,978,00034,549,760
12Oct 11, 2021 03:405,738381,444,770147,784,00018,609,00034,058,240