Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: spiwips

Problemset: ตัวอักษรตัวแรกในคำ

Language: python

Time: 0.012 second

Submitted On: 2025-09-29 23:41:28

inp = input()
inp = list(inp)
s = []
for i in inp:
    s.append(ord(i))
s.sort()
st = []
for i in s:
    if st and st[-1] == i:
        st.pop()
    else:
        st.append(i)
print(chr(st[0]))