#46048: Python簡單解


chunyutsai97@gmail.com (淳)

學校 : 臺北市立陽明高級中學
編號 : 259744
來源 : [122.116.19.249]
最後登入時間 :
2025-05-13 22:37:23
a824. 2.藏寶問題 -- 100學年度桃竹苗區資訊學科能力競賽 | From: [122.116.19.249] | 發表日期 : 2025-05-14 01:11

def f(a, b, c):
    return sum(i for i in range(1, c+1) if i%a==0 or i%b==0)

a, b, c = map(int, input().split())
print(chr(f(a, b, c)%26+64))

 
ZeroJudge Forum