#45842: ?IDK


qiqiloveke@gmail.com (第一執政(不是蛋糕)

學校 : 國立臺灣大學
編號 : 240708
來源 : [111.241.102.250]
最後登入時間 :
2025-05-06 19:09:40
f515. 英文縮寫 (Abbreviation) -- TOI練習賽202012新手組第3題 | From: [111.243.101.139] | 發表日期 : 2025-04-19 12:26

def damn():
 a = list((input().split()))
 c = []
 for i in range(len(a)):
  v = a[i]
  b = v.lower()
  if b == "you":
   c.append("u")
  elif b == "for":
   c.append("4")
  elif b == "to":
   c.append("2")
  elif b == "and":
   c.append("n")
  else:
   d = b[0]
   c.append(d.upper())
 print("".join(c))
damn()

 
ZeroJudge Forum