AOJ プログラミング入門 トピック#1, トピック#2, トピック#3, トピック#4

#トピック#1
##[ITP1_1_A](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/1/ITP1_1_A)
###Hello World

```Python:Python
print("Hello World")
```

##[ITP1_1_B](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/1/ITP1_1_B)
###xの3乗

```Python:Python
n = int(input())
print(n**3)
```

##[ITP1_1_C](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/1/ITP1_1_C)
###長方形の面積と周の長さ

```Python:Python
h, w = list(map(int, input().split()))
print(f"{h * w} {h+h+w+w}")
```

##[ITP1_1_D](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/1/ITP1_1_D)
###演算子

```Python:Python
S = int(input())

h = S // 3600
m = S % 3600 // 60
s = S % 60
print(f"{h}:{m}:{s}")
```

#トピック#2
##[ITP1_2_A](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/2/ITP1_2_A)
###大小関係

```Python:Python
a, b = list(map(int, input().split()))

if a<b:
    print("a < b")
elif a>b:
    print("a > b")
else:
    print("a == b")
```

##[ITP1_2_B](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/2/ITP1_2_B)
###範囲

```Python:Python
a, b, c = list(map(int, input().split()))

if a<b<c:
    print("Yes")
else:
    print("No")
```

##[ITP1_2_C](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/2/ITP1_2_C)
###3つの数の整列

```Python:Python
A = list(map(int, input().split()))

for i in range(1, len(A)):
    v = A[i]
    j = i - 1
    while j>=0 and A[j]>v:
        A[j+1]=A[j]
        j=j-1
    A[j+1]=v
    
for i in range(0, len(A)):
    if i<len(A)-1:
        print(f"{A[i]} ", end='')
    else:
        print(f"{A[i]}")
```

##[ITP1_2_D](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/2/ITP1_2_D)
###長方形の中の円

```Python:Python
W, H, x, y, r = list(map(int, input().split()))

if 0<=x-r and x+r<=W and 0<=y-r and y+r<=H:
    print("Yes")
else:
    print("No")
```

#トピック#3
##[ITP1_3_A](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/3/ITP1_3_A)
###複数のHello Worldの出力

```Python:Python
for i in range(0, 1000):
    print("Hello World")
```

##[ITP1_3_B](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/3/ITP1_3_B)
###テストケースの出力

```Python:Python
n = 1
A = [0] * 1
while n > 0:
    n = int(input())
    A.append(n)
    
for i in range(1, len(A)):
    if A[i] != 0:
        print(f"Case {i}: {A[i]}")
```

##[ITP1_3_C](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/3/ITP1_3_C)
###2つの数の交換

```Python:Python
while True:
    a, b = list(map(int, input().split()))
    
    if a==0 and b==0:
        break
    else:
        if a < b:
            print(f"{a} {b}")
        else:
            print(f"{b} {a}")
```

##[ITP1_3_D](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/3/ITP1_3_D)
###約数の数

```Python:Python
a, b, c = list(map(int, input().split()))
ans=0
for i in range(a, b+1):
    if c % i == 0:
        ans += 1
print(ans)
```

#トピック#4
##[ITP1_4_A](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/4/ITP1_4_A)
###割り算

```Python:Python
a, b = list(map(int, input().split()))
print(f"{a//b} {a%b} {a/b:.5f}")
```

##[ITP1_4_B](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/4/ITP1_4_B)
###円の面積と円周

```Python:Python
import math as math
r = float(input())
print(f"{r*r*math.pi:.6f} {2*r*math.pi:.6f}")
```

##[ITP1_4_C](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/4/ITP1_4_C)
###計算機

```Python:Python
while True:
    a, b, c = list(map(str, input().split()))
    a = int(a)
    c = int(c)
    
    if b=='?':
        break
    elif b=='+':
        print(f"{a+c}")
    elif b=='-':
        print(f"{a-c}")
    elif b=='*':
        print(f"{a*c}")
    elif b=='/':
        print(f"{a//c}")
```

##[ITP1_4_D](https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/4/ITP1_4_D)
###最小値、最大値、合計値

```Python:Python
n = int(input())
a = list(map(int, input().split()))

Min = 1000000
Max = -1000000
Sum = 0
for i in range(0, n):
    Min = min(Min, a[i])
    Max = max(Max, a[i])
    Sum += a[i]
    
print(f"{Min} {Max} {Sum}")
```