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 listSep 21, 2021 23:00Yuriy LyfenkoYuriy LyfenkoScore: 6,213Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 23:005,977496,743,641173,340,886027,459,584
2Sep 21, 2021 23:006,021487,191,135174,608,329027,451,392
3Sep 21, 2021 23:006,062486,991,576175,806,371027,463,680
4Sep 21, 2021 23:006,209387,304,582148,225,00031,833,00033,779,712
5Sep 21, 2021 23:006,210370,256,345149,900,00030,181,00033,984,512
6Sep 21, 2021 23:006,211366,872,369154,394,00025,732,00033,726,464
7Sep 21, 2021 23:006,213393,691,828153,402,00026,768,00033,726,464
8Sep 21, 2021 23:006,228370,799,638146,874,00033,741,00033,996,800
9Sep 21, 2021 23:006,234390,788,014143,851,00036,934,00034,332,672
10Sep 21, 2021 23:006,255388,463,342162,716,00018,690,00033,718,272
11Sep 21, 2021 23:006,268391,850,776149,635,00032,136,00033,488,896
12Sep 21, 2021 23:006,268396,282,606158,253,00023,524,00034,340,864