-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5일차
59 lines (49 loc) · 801 Bytes
/
5일차
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
41
a, b=input().split()
print(int(a)%int(b))
42
a=input()
a=float(a)
print( format(a, ".2f") )
43
f1, f2=input().split()
c=float(f1)/float(f2)
print( format(c, ".3f") )
44
a, b = input().split()
print(int(a)+int(b))
print(int(a)-int(b))
print(int(a)*int(b))
print(int(a)//int(b))
print(int(a)%int(b))
print(format(int(a)/int(b), ".2f") )
45
a, b, c = input().split()
d=int(a)+int(b)+int(c)
e=(int(a)+int(b)+int(c))/3
print(d,format(e, ".2f"))
46
a=input()
n=int(a)
print(n<<1)
47
a, b=input().split()
print(int(a)<<int(b))
48
a, b=input().split()
if int(a) < int(b):
print(True)
else:
print(False)
49
a, b=input().split()
if int(a) == int(b):
print(True)
else:
print(False)
50
a, b=input().split()
if int(b) >= int(a):
print(True)
elif int(b) != int(a):
print(False)