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 listDec 7, 2024 18:38NoSIMD_C#NoSIMD_C#Score: 20,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 18:3819,880807,787,357525,669,00050,838,00033,509,376
2Dec 7, 2024 18:3819,909817,998,384527,921,00049,430,00033,501,184
3Dec 7, 2024 18:3819,978818,533,447515,553,00063,820,00033,947,648
4Dec 7, 2024 18:3820,020802,440,501517,747,00062,847,00033,832,960
5Dec 7, 2024 18:3820,048798,983,869534,546,00046,836,00034,267,136
6Dec 7, 2024 18:3820,049797,322,597528,576,00052,857,00034,144,256
7Dec 7, 2024 18:3820,057810,657,876519,340,00062,320,00034,004,992
8Dec 7, 2024 18:3820,096809,081,958527,084,00055,691,00033,320,960
9Dec 7, 2024 18:3820,138827,304,151530,176,00053,830,00034,156,544