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 listSep 12, 2024 20:24Daan de GraafDaan de GraafScore: 7,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2024 20:247,718420,785,963197,485,00026,331,00033,697,792
2Sep 12, 2024 20:247,726422,456,859189,653,00034,393,00034,095,104
3Sep 12, 2024 20:247,729427,432,966195,005,00029,150,00033,845,248
4Sep 12, 2024 20:247,735423,357,431195,139,00029,170,00034,267,136
5Sep 12, 2024 20:247,736418,401,456189,233,00035,115,00034,009,088
6Sep 12, 2024 20:247,738428,961,009195,214,00029,181,00034,009,088
7Sep 12, 2024 20:247,740440,010,137197,039,00027,423,00033,992,704
8Sep 12, 2024 20:247,749428,116,931199,072,00025,653,00033,476,608
9Sep 12, 2024 20:247,767432,047,579192,510,00032,746,00034,140,160