online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
with open ('26-2.txt') as f: n=int(f.readline()) a=[int(s) for s in f] a.sort() sp=[] for i in range(0,len(a)-1): for j in range(i+1,len(a)): if (a[i]%2==0 and a[j]%2!=0) or (a[i]%2!=0 and a[j]%2==0): if (a[i]+a[j]) in a: sp.append(a[i]+a[j]) print(len(sp),max(sp))

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue