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 22, 2021 20:51Yuriy LyfenkoYuriy LyfenkoScore: 5,779Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 20:515,574447,715,209161,646,355027,447,296
2Sep 22, 2021 20:515,581471,879,010161,857,609027,443,200
3Sep 22, 2021 20:515,615442,248,961162,846,835027,443,200
4Sep 22, 2021 20:515,742352,218,233138,257,00028,257,00033,538,048
5Sep 22, 2021 20:515,756371,925,441140,999,00025,919,00033,730,560
6Sep 22, 2021 20:515,777375,705,964142,409,00025,131,00033,730,560
7Sep 22, 2021 20:515,779382,980,395132,716,00034,874,00034,271,232
8Sep 22, 2021 20:515,779359,823,961144,414,00023,190,00033,533,952
9Sep 22, 2021 20:515,780355,091,308140,032,00027,597,00034,025,472
10Sep 22, 2021 20:515,784374,043,445143,632,00024,113,00033,677,312
11Sep 22, 2021 20:515,809380,503,613134,180,00034,279,00033,988,608
12Sep 22, 2021 20:515,825388,529,044139,421,00029,512,00034,189,312