Skip to content

Commit 04ac780

Browse files
Merge pull request #52 from KoyanagiHitoshi/dev
Dev
2 parents 591b5ed + 461d446 commit 04ac780

File tree

218 files changed

+902
-860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+902
-860
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [v3.31.0](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/releases/tag/v3.31.0) / 2025-02-23
4+
5+
* [#52](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/pull/52) add code
6+
* [#52](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/pull/52) update CHANGELOG.md
7+
38
## [v3.30.0](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/releases/tag/v3.30.0) / 2025-01-26
49

510
* [#51](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/pull/51) add code

code/answer_4-1-10.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
a, b = input().split()
2-
if a == "H" and b == "H":
3-
print("H")
4-
if a == "H" and b == "D":
5-
print("D")
6-
if a == "D" and b == "H":
7-
print("D")
8-
if a == "D" and b == "D":
9-
print("H")
1+
t, a = input().split()
2+
if t == "sick" and a == "sick":
3+
print(1)
4+
if t == "sick" and a == "fine":
5+
print(2)
6+
if t == "fine" and a == "sick":
7+
print(3)
8+
if t == "fine" and a == "fine":
9+
print(4)

code/answer_4-1-100.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
a, b, c, d, e, f = input()
2-
if c == d and e == f:
1+
S, T = input().split()
2+
if S < T:
33
print("Yes")
44
else:
55
print("No")

code/answer_4-1-101.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
a, b, c = input()
2-
if a == c:
3-
print("Yes")
1+
S = input()
2+
if S <= "2019/04/30":
3+
print("Heisei")
44
else:
5-
print("No")
5+
print("TBD")

code/answer_4-1-102.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
AB, AC, BC = input().split()
2-
if (AB == ">" and AC == "<") or (AC == ">" and AB == "<"):
3-
print("A")
4-
elif (AB == "<" and BC == "<") or (BC == ">" and AB == ">"):
5-
print("B")
1+
S, T = input().split()
2+
A, B = map(int, input().split())
3+
U = input()
4+
if S == U:
5+
print(A-1, B)
66
else:
7-
print("C")
7+
print(A, B-1)

code/answer_4-1-103.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
a, b = input().split()
2-
if a == "H" and b == "H":
3-
print("H")
4-
elif a == "H" and b == "D":
5-
print("D")
6-
elif a == "D" and b == "H":
7-
print("D")
1+
a, b, c, d, e, f = input()
2+
if c == d and e == f:
3+
print("Yes")
84
else:
9-
print("H")
5+
print("No")

code/answer_4-1-104.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
S1 = input()
2-
S2 = input()
3-
if (S1 == "#." and S2 == ".#") or (S1 == ".#" and S2 == "#."):
4-
print("No")
5-
else:
1+
a, b, c = input()
2+
if a == c:
63
print("Yes")
4+
else:
5+
print("No")

code/answer_4-1-105.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
c = input()
2-
if c in "aiueo":
3-
print("vowel")
1+
AB, AC, BC = input().split()
2+
if (AB == ">" and AC == "<") or (AC == ">" and AB == "<"):
3+
print("A")
4+
elif (AB == "<" and BC == "<") or (BC == ">" and AB == ">"):
5+
print("B")
46
else:
5-
print("consonant")
7+
print("C")

code/answer_4-1-106.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
X = input()
2-
if X in "753":
3-
print("YES")
1+
a, b = input().split()
2+
if a == "H" and b == "H":
3+
print("H")
4+
elif a == "H" and b == "D":
5+
print("D")
6+
elif a == "D" and b == "H":
7+
print("D")
48
else:
5-
print("NO")
9+
print("H")

code/answer_4-1-107.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
N = input()
2-
if "7" in N:
3-
print("Yes")
4-
else:
1+
S1 = input()
2+
S2 = input()
3+
if (S1 == "#." and S2 == ".#") or (S1 == ".#" and S2 == "#."):
54
print("No")
5+
else:
6+
print("Yes")

0 commit comments

Comments
 (0)