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 05:44Ilya AniskovetsIlya AniskovetsScore: 5,562Success
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 05:445,268500,333,455152,783,670027,463,680
2Oct 11, 2021 05:445,325456,612,485154,412,070027,357,184
3Oct 11, 2021 05:445,341499,869,558154,898,909027,459,584
4Oct 11, 2021 05:445,528362,653,482134,284,00026,024,00033,607,680
5Oct 11, 2021 05:445,543342,428,243132,934,00027,823,00033,968,128
6Oct 11, 2021 05:445,548343,272,413131,182,00029,720,00033,587,200
7Oct 11, 2021 05:445,562358,616,220134,588,00026,712,00034,082,816
8Oct 11, 2021 05:445,568368,219,833130,191,00031,286,00034,148,352
9Oct 11, 2021 05:445,586377,672,890134,319,00027,684,00034,246,656
10Oct 11, 2021 05:445,592372,084,363138,687,00023,470,00034,017,280
11Oct 11, 2021 05:445,649376,206,760137,562,00026,252,00033,853,440
12Oct 11, 2021 05:445,649377,664,365135,164,00028,671,00033,710,080