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 06:02Yuriy LyfenkoYuriy LyfenkoScore: 5,387Success
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 06:025,088499,581,638147,550,763027,443,200
2Oct 11, 2021 06:025,122474,193,497148,543,669027,430,912
3Oct 11, 2021 06:025,136436,013,382148,957,899027,435,008
4Oct 11, 2021 06:025,378357,649,372122,617,00033,351,00033,804,288
5Oct 11, 2021 06:025,380345,582,640133,742,00022,290,00033,632,256
6Oct 11, 2021 06:025,383353,026,540125,094,00031,023,00034,004,992
7Oct 11, 2021 06:025,387367,879,263130,349,00025,863,00033,517,568
8Oct 11, 2021 06:025,404365,727,828127,204,00029,511,00034,275,328
9Oct 11, 2021 06:025,406362,737,893120,959,00035,803,00033,529,856
10Oct 11, 2021 06:025,417366,041,416125,674,00031,418,00033,779,712
11Oct 11, 2021 06:025,417368,907,786122,189,00034,911,00033,656,832
12Oct 11, 2021 06:025,420361,011,011129,445,00027,738,00034,017,280