Skip to content

Commit 9322611

Browse files
author
IsHYuhi
committed
ARC013
1 parent ee06fe4 commit 9322611

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

ARC/ARC013/A.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from itertools import permutations
2+
3+
n, m, l = map(int, input().split())
4+
pqr = list(map(int, input().split()))
5+
ans = 0
6+
idx = [i for i in range(3)]
7+
idx = permutations(idx, 3)
8+
9+
for pi, qi, ri in idx:
10+
ans = max((n//pqr[pi])*(m//pqr[qi])*(l//pqr[ri]), ans)
11+
12+
print(ans)

ARC/ARC013/B.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
c = int(input())
2+
nml = [list(map(int, input().split())) for _ in range(c)]
3+
n_min = 1
4+
m_min = 1
5+
l_min = 1
6+
7+
for i in nml:
8+
i.sort()
9+
n_min = max(n_min, i[0])
10+
m_min = max(m_min, i[1])
11+
l_min = max(l_min, i[2])
12+
13+
print(n_min*m_min*l_min)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ AtCoderの問題をpython3で解いたものになります。AC確認は行っ
132132
## [AtCoder Regular Contest](ARC)
133133
| Problem A | Problem B | Problem C | Problem D | Problem E | Problem F |
134134
|:---:|:---:|:---:|:---:|:---:|:---:|
135-
|51/104|8/104|0/104|0/104|0/1|0/1|
135+
|53/104|11/104|0/104|0/104|0/1|0/1|
136136

137137
### ARC001 - ARC103
138138
|コンテスト| A | B | C | D ||コンテスト| A | B | C | D |
@@ -148,8 +148,8 @@ AtCoderの問題をpython3で解いたものになります。AC確認は行っ
148148
|[ARC009](ARC/ARC009)|[✓](ARC/ARC009/A.py)| - | - | - ||[ARC061](ARC/ARC061)|[✓](ARC/ARC061/A.py)| - | - | - |
149149
|[ARC010](ARC/ARC010)|[✓](ARC/ARC010/A.py)| - | - | - ||[ARC062](ARC/ARC062)| - | - | - | - |
150150
|[ARC011](ARC/ARC011)|[✓](ARC/ARC011/A.py)| - | - | - ||[ARC063](ARC/ARC063)|[✓](ARC/ARC063/A.py)| - | - | - |
151-
|[ARC012](ARC/ARC012)|[✓](ARC/ARC012/B.py)|[✓](ARC/ARC012/B.py)| - | - ||[ARC064](ARC/ARC064)| - | - | - | - |
152-
|[ARC013](ARC/ARC013)| - | - | - | - ||[ARC065](ARC/ARC065)| - | - | - | - |
151+
|[ARC012](ARC/ARC012)|[✓](ARC/ARC012/A.py)|[✓](ARC/ARC012/B.py)| - | - ||[ARC064](ARC/ARC064)| - | - | - | - |
152+
|[ARC013](ARC/ARC013)|[✓](ARC/ARC013/A.py)|[✓](ARC/ARC013/B.py)| - | - ||[ARC065](ARC/ARC065)| - | - | - | - |
153153
|[ARC014](ARC/ARC014)| - | - | - | - ||[ARC066](ARC/ARC066)| - | - | - | - |
154154
|[ARC015](ARC/ARC015)| - | - | - | - ||[ARC067](ARC/ARC067)| - | - | - | - |
155155
|[ARC016](ARC/ARC016)| - | - | - | - ||[ARC068](ARC/ARC068)|[✓](ARC/ARC068/A.py)| - | - | - |

0 commit comments

Comments
 (0)