Skip to content

Commit

Permalink
Merge pull request #149 from Source-Machine-Ent/ningpop
Browse files Browse the repository at this point in the history
[#148] 6416 트리인가? - 미해결
  • Loading branch information
ningpop authored May 20, 2022
2 parents 8ae46e2 + d97eb26 commit b7af37d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ningpop/6416.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 2022.05.20
# 풀이 시간 10분 00초
# 채점 결과:
# 시간복잡도:
# 문제 링크: https://www.acmicpc.net/problem/6416

import sys

input = sys.stdin.readline

def is_tree(tree: list) -> bool:
pass

case = 1
while True:
tree = []
while True:
u, v = map(int, input().split())
if u == -1 and v == -1:
exit()
if u == 0 and v == 0:
break

if is_tree(tree):
print(f'Case {case} is a tree.')
else:
print(f'Case {case} is not a tree.')
case += 1

0 comments on commit b7af37d

Please sign in to comment.