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 27, 2023 21:28Martin StensgårdMartin StensgårdScore: 6,762Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2023 21:286,419458,417,894186,144,926027,443,200
2May 27, 2023 21:286,431561,648,539186,511,952027,451,392
3May 27, 2023 21:286,477506,027,054187,843,269027,443,200
4May 27, 2023 21:286,746400,061,836170,661,00024,974,00033,419,264
5May 27, 2023 21:286,756414,515,058167,354,00028,572,00033,763,328
6May 27, 2023 21:286,760404,933,896164,863,00031,163,00033,894,400
7May 27, 2023 21:286,762378,695,994160,003,00036,098,00034,385,920
8May 27, 2023 21:286,771388,015,434167,865,00028,486,00033,931,264
9May 27, 2023 21:286,773412,118,323167,058,00029,361,00033,689,600
10May 27, 2023 21:286,785384,475,709169,829,00026,924,00034,013,184
11May 27, 2023 21:286,791410,956,605174,592,00022,356,00034,426,880
12May 27, 2023 21:286,799405,663,023166,693,00030,492,00033,722,368