백준 문제 풀이 4641 ( Doubles )
백준 Doubles
문제
풀이
while(1):
index = 0
case = input().split()
if case[0] == '-1':
break
for i in case[:-1]:
if str(int(i)*2) in case:
index += 1
print(index)
while(1):
index = 0
case = input().split()
if case[0] == '-1':
break
for i in case[:-1]:
if str(int(i)*2) in case:
index += 1
print(index)