Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7884e2a

Browse files
SET-ADD
1 parent 9a8f60d commit 7884e2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Hackerrank-Python3/set_add.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Enter your code here. Read input from STDIN. Print output to STDOUT
2+
n = int(input())
3+
lst = set()
4+
for i in range(n):
5+
x = input()
6+
lst.add(x)
7+
print(len(lst))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /