---
# System prepended metadata

title: 220430 Class Notes - Jack
tags: [Jack, CS, Programming, Tutor]

---

# 220430 Class Notes - Jack
###### tags: `Jack` `Tutor` `Programming` `CS`

## ZeroJudge

- [a040. 阿姆斯壯數](https://zerojudge.tw/ShowProblem?problemid=a040)


- 步驟:
1.找出範圍
2.找出所有可能的值
3.找出符合條件的值
4.打印出來

```python=
c = input().split()
a = int(c[0])
b = int(c[1])
y = []
for i in range(a, b, 1):
    arm = list(str(i))
    al = 0
    for j in range(len(arm)):
        al = al + int(arm[j])**len(arm)
    if al == i:
        y.append(i)
if len(y) == 0:
    print('none')
else:
    for k in y:
        print(k , end=' ')

```

## Homework

- [a059: 完全平方和](https://zerojudge.tw/ShowProblem?problemid=a059)

> 1. 寫出解題步驟
> 2. 寫出遇到的問題
> 3. 解題
