#35325: answer


1452945-9@g.puiching.edu.mo (sandy koya)

學校 : 不指定學校
編號 : 188268
來源 : [27.109.238.197]
最後登入時間 :
2023-07-23 11:53:37
k628. Centauri Prime | From: [113.52.79.107] | 發表日期 : 2023-05-26 13:33

a = int(input())
b = ['A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u']
for i in range(a):
    c = str(input())
    d = 0
    for j in b:
        if (c[len(c)-1] == j):
            d = 1
    if (c[len(c)-1] == 'y'):
        d = 2
    if (c[len(c)-1] == 'Y'):
        d = 2
    if d == 1:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Alice.')
    elif d == 0:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Bob.')
    else:
        print('Case #' + str(i+1) + ': '+c+' is ruled by nobody.')
 
#35381: Re: answer


1450840-0@g.puiching.edu.mo (肥余好朋友)

學校 : 不指定學校
編號 : 188719
來源 : [202.86.172.163]
最後登入時間 :
2024-03-18 13:39:58
k628. Centauri Prime | From: [202.86.172.163] | 發表日期 : 2023-05-30 16:33

a = int(input())
b = ['A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u']
for i in range(a):
    c = str(input())
    d = 0
    for j in b:
        if (c[len(c)-1] == j):
            d = 1
    if (c[len(c)-1] == 'y'):
        d = 2
    if (c[len(c)-1] == 'Y'):
        d = 2
    if d == 1:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Alice.')
    elif d == 0:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Bob.')
    else:
        print('Case #' + str(i+1) + ': '+c+' is ruled by nobody.')


垃圾?

 
#35385: Re: answer


1452945-9@g.puiching.edu.mo (sandy koya)

學校 : 不指定學校
編號 : 188268
來源 : [27.109.238.197]
最後登入時間 :
2023-07-23 11:53:37
k628. Centauri Prime | From: [60.246.199.127] | 發表日期 : 2023-05-30 18:41

a = int(input())
b = ['A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u']
for i in range(a):
    c = str(input())
    d = 0
    for j in b:
        if (c[len(c)-1] == j):
            d = 1
    if (c[len(c)-1] == 'y'):
        d = 2
    if (c[len(c)-1] == 'Y'):
        d = 2
    if d == 1:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Alice.')
    elif d == 0:
        print('Case #' + str(i+1) + ': '+c+' is ruled by Bob.')
    else:
        print('Case #' + str(i+1) + ': '+c+' is ruled by nobody.')


垃圾?


answer

 
ZeroJudge Forum