Из питона в С++!! Срочно!

вот код на питон:
def main():

n = int(input())

a = input().split(maxsplit=n)

a.sort(key=lambda x: sum(map(int, x)), reverse=True)

print(*a)

if __name__ == "__main__":

main()
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.