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 10, 2021 03:42Yuriy LyfenkoYuriy LyfenkoScore: 5,686Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 03:425,516446,192,303159,969,915027,455,488
2Oct 10, 2021 03:425,532491,532,951160,439,517027,451,392
3Oct 10, 2021 03:425,543457,974,936160,734,889027,451,392
4Oct 10, 2021 03:425,669371,157,839128,418,00035,996,00034,246,656
5Oct 10, 2021 03:425,676384,827,888134,119,00030,481,00034,013,184
6Oct 10, 2021 03:425,678364,871,010138,452,00026,222,00033,718,272
7Oct 10, 2021 03:425,686382,337,481132,710,00032,172,00034,164,736
8Oct 10, 2021 03:425,694381,635,442139,714,00025,402,00033,980,416
9Oct 10, 2021 03:425,695382,069,039144,371,00020,780,00034,414,592
10Oct 10, 2021 03:425,699381,417,889133,845,00031,433,00033,980,416
11Oct 10, 2021 03:425,713384,079,393140,346,00025,325,00034,312,192
12Oct 10, 2021 03:425,743374,503,310142,591,00023,946,00033,812,480