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 04:22Yuriy LyfenkoYuriy LyfenkoScore: 5,567Success
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 04:225,419448,851,270157,159,400027,443,200
2Oct 11, 2021 04:225,455440,003,306158,208,405027,443,200
3Oct 11, 2021 04:225,462437,726,760158,392,163027,435,008
4Oct 11, 2021 04:225,539344,627,049130,319,00030,306,00033,763,328
5Oct 11, 2021 04:225,546355,795,111129,856,00030,965,00033,808,384
6Oct 11, 2021 04:225,561350,878,901132,030,00029,228,00033,763,328
7Oct 11, 2021 04:225,567375,908,782134,544,00026,908,00033,488,896
8Oct 11, 2021 04:225,568359,422,915134,727,00026,739,00034,533,376
9Oct 11, 2021 04:225,569360,590,445134,759,00026,746,00034,000,896
10Oct 11, 2021 04:225,575372,765,243134,740,00026,948,00034,017,280
11Oct 11, 2021 04:225,581369,261,277132,685,00029,150,00033,792,000
12Oct 11, 2021 04:225,664395,739,138130,214,00034,056,00037,531,648