complete 7785.c and 7785.py
This commit is contained in:
1 parent
d99ce96c0d
commit
1857734b75
2 files changed
+57
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import sys
|
||||
|
||||
input = sys.stdin.readline
|
||||
print = sys.stdout.write
|
||||
|
||||
N = int(input())
|
||||
d = dict()
|
||||
for _ in range(N):
|
||||
n, t = input().rstrip().split()
|
||||
if t.startswith("e"):
|
||||
d[n] = 1
|
||||
else:
|
||||
d[n] = 0
|
||||
x = sorted([k for k, v in d.items() if v == 1])[::-1]
|
||||
for i in x:
|
||||
print(i)
|
||||
print('\n')
|
||||
Reference in new issue
Block a user