python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
arr=[int(x) for x in input().split()] sum=int(input()) for x in arr: for y in arr[arr.index(x)+1:]: for z in arr[arr.index(y)+1:]: if(x+y+z==sum):print(f"{x},{y},{z}")
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up