← Back to List

5026번: 박사 과정 ↗

Solutions

Python 3
140 B | 140 chars
for i in range(int(input())):
    s=input()
    if s == 'P=NP':
        print("skipped")
    else:
        print(sum(map(int,s.split('+'))))