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:18Yuriy LyfenkoYuriy LyfenkoScore: 5,553Success
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:185,421489,314,762157,203,768027,435,008
2Oct 11, 2021 04:185,435427,044,552157,605,393027,443,200
3Oct 11, 2021 04:185,492455,760,618159,256,080027,435,008
4Oct 11, 2021 04:185,535350,076,188132,917,00027,605,00033,796,096
5Oct 11, 2021 04:185,539373,577,243132,155,00028,464,00033,501,184
6Oct 11, 2021 04:185,551366,901,823142,484,00018,490,00033,529,856
7Oct 11, 2021 04:185,553374,958,233130,839,00030,193,00034,021,376
8Oct 11, 2021 04:185,566346,922,138130,344,00031,082,00034,021,376
9Oct 11, 2021 04:185,568373,750,699134,048,00027,419,00034,521,088
10Oct 11, 2021 04:185,571366,381,941132,273,00029,281,00033,480,704
11Oct 11, 2021 04:185,581358,809,713132,340,00029,522,00033,849,344
12Oct 11, 2021 04:185,595370,431,777129,413,00032,851,00034,287,616