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:37Yuriy LyfenkoYuriy LyfenkoScore: 5,611Success
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:375,344449,029,029154,963,841027,435,008
2Oct 11, 2021 04:375,368461,195,459155,671,623027,443,200
3Oct 11, 2021 04:375,397441,244,589156,522,700027,439,104
4Oct 11, 2021 04:375,599353,342,263129,123,00033,259,00033,492,992
5Oct 11, 2021 04:375,601354,526,779128,186,00034,248,00033,792,000
6Oct 11, 2021 04:375,610346,961,704132,758,00029,945,00033,927,168
7Oct 11, 2021 04:375,611374,036,548133,580,00029,126,00033,402,880
8Oct 11, 2021 04:375,617368,126,290133,560,00029,342,00034,267,136
9Oct 11, 2021 04:375,619365,703,067133,775,00029,169,00033,812,480
10Oct 11, 2021 04:375,624364,661,254130,682,00032,424,00033,927,168
11Oct 11, 2021 04:375,625344,600,916128,941,00034,189,00033,480,704
12Oct 11, 2021 04:375,629380,068,998139,163,00024,065,00034,156,544