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:13Yuriy LyfenkoYuriy LyfenkoScore: 5,329Success
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:135,135540,845,507148,926,069027,439,104
2Oct 11, 2021 06:135,138436,895,812149,009,310027,459,584
3Oct 11, 2021 06:135,148463,021,271149,285,305027,439,104
4Oct 11, 2021 06:135,318350,175,974123,992,00030,242,00033,599,488
5Oct 11, 2021 06:135,321376,049,651126,717,00027,591,00033,751,040
6Oct 11, 2021 06:135,327368,386,242123,596,00030,899,00034,062,336
7Oct 11, 2021 06:135,329359,793,251127,764,00026,789,00033,685,504
8Oct 11, 2021 06:135,330361,559,943128,641,00025,935,00033,779,712
9Oct 11, 2021 06:135,336356,320,253130,534,00024,211,00033,566,720
10Oct 11, 2021 06:135,358366,778,540134,590,00020,790,00033,759,232
11Oct 11, 2021 06:135,370363,019,026120,470,00035,259,00034,418,688
12Oct 11, 2021 06:135,387373,808,904127,262,00028,970,00034,398,208