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 listMay 28, 2023 00:02Martin StensgårdMartin StensgårdScore: 6,253Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2023 00:026,033462,823,123174,959,371027,443,200
2May 28, 2023 00:026,084472,737,753176,442,556027,447,296
3May 28, 2023 00:026,158529,538,850178,586,091027,463,680
4May 28, 2023 00:026,240387,691,899156,008,00024,961,00033,492,992
5May 28, 2023 00:026,245378,721,656144,682,00036,410,00033,939,456
6May 28, 2023 00:026,251364,710,197151,066,00030,213,00033,763,328
7May 28, 2023 00:026,253392,056,080146,044,00035,286,00034,164,736
8May 28, 2023 00:026,256381,824,160148,534,00032,896,00033,886,208
9May 28, 2023 00:026,279400,826,462152,431,00029,667,00034,144,256
10May 28, 2023 00:026,285396,937,745158,030,00024,231,00034,177,024
11May 28, 2023 00:026,291381,457,085160,988,00021,465,00033,914,880
12May 28, 2023 00:026,299411,867,757152,064,00030,617,00033,886,208