Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('input.txt', 'r') as InputFile:
- N,a, b, c = InputFile.read().split()
- N = int(N);a = int(a);b = int(b);c = int(c);
- if a+b ==N or b+c==N or a+c == N:
- value = 2
- if a or b or c == N :
- value = 1
- if a+b+c == N:
- value = 3
- with open('output.txt', 'w') as OutputFile:
- OutputFile.write(str(value))
Advertisement
Add Comment
Please, Sign In to add comment