Skip to content

Commit d2104e3

Browse files
Merge pull request #41 from KoyanagiHitoshi/dev
Dev
2 parents b634f65 + 39621b2 commit d2104e3

File tree

216 files changed

+958
-881
lines changed

Some content is hidden

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

216 files changed

+958
-881
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.20.0](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/releases/tag/v3.20.0) / 2024-06-30
4+
5+
* [#41](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/pull/41) add code
6+
* [#41](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/pull/41) update CHANGELOG.md
7+
38
## [v3.19.0](https://github.com/KoyanagiHitoshi/AtCoder-Python-Introduction/releases/tag/v3.19.0) / 2024-05-12
49

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

code/answer_4-1-10.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
Q = int(input())
2-
if Q == 1:
3-
print("ABC")
4-
else:
5-
print("chokudai")
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")

code/answer_4-1-100.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
a = input()
2-
if a in "abcdefghijklmnopqrstuvwxyz":
3-
print("a")
1+
N = input()
2+
if "7" in N:
3+
print("Yes")
44
else:
5-
print("A")
5+
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 = input()
2-
if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
3-
print("A")
1+
N = input()
2+
if "9" in N:
3+
print("Yes")
44
else:
5-
print("a")
5+
print("No")

code/answer_4-1-102.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
N = int(input())
2-
S = input()
3-
if "ab" in S or "ba" in S:
4-
print("Yes")
1+
N = input()
2+
if N in "369":
3+
print("YES")
54
else:
6-
print("No")
5+
print("NO")

code/answer_4-1-103.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
N = int(input())
2-
S = input()
3-
if "o" in S and "x" not in S:
4-
print("Yes")
1+
a = input()
2+
if a in "abcdefghijklmnopqrstuvwxyz":
3+
print("a")
54
else:
6-
print("No")
5+
print("A")

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-
N = int(input())
2-
S = input()
3-
if "MM" in S or "FF" in S:
4-
print("No")
1+
a = input()
2+
if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
3+
print("A")
54
else:
6-
print("Yes")
5+
print("a")

code/answer_4-1-105.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
A, B = input().split()
2-
if "2" in A or "2" in B:
3-
print("No")
4-
else:
1+
N = int(input())
2+
S = input()
3+
if "ab" in S or "ba" in S:
54
print("Yes")
5+
else:
6+
print("No")

code/answer_4-1-106.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
AB = input()
2-
if "2" in AB:
3-
print("No")
4-
else:
1+
N = int(input())
2+
S = input()
3+
if "o" in S and "x" not in S:
54
print("Yes")
5+
else:
6+
print("No")

code/answer_4-1-107.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
N = int(input())
12
S = input()
2-
if S in ["ACE", "BDF", "CEG", "DFA", "EGB", "FAC", "GBD"]:
3-
print("Yes")
4-
else:
3+
if "MM" in S or "FF" in S:
54
print("No")
5+
else:
6+
print("Yes")

0 commit comments

Comments
 (0)