답안 #975503

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
975503 2024-05-05T10:49:05 Z vjudge1 Pizza (COCI21_pizza) Python 3
0 / 50
15 ms 2976 KB
ndislike = int(input())
dislike = []
for i in range(ndislike):
  dislike.append(int(input()))

nbingkisan = int(input())
set_binks = []
for i in range(nbingkisan):
  ncemilan = int(input())
  setcemilan = []
  for j in range(ncemilan):
    cemil = int(input())
    setcemilan.append(cemil)

  set_binks.append(setcemilan)

# nbingkisan = 4
# ndislike = 3
# dislike = [1,2,3]
# set_binks = [[2,1,3],[4,5],[1],[10]]

def exist(el, set):
  cnt = 0
  for i in set:
    if (el-i==0):
      cnt += 1
      break
  return cnt

ans = 0
for i in set_binks:
  for j in i:
    if (exist(j,dislike)==0):
      ans += 1
      break
  
print(ans)
# 결과 실행 시간 메모리 Grader output
1 Runtime error 15 ms 2908 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 11 ms 2908 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 11 ms 2908 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 11 ms 2776 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 11 ms 2976 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -