s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s799547878 | p00387 | u842461513 | 1591345353 | Python | Python3 | py | Accepted | 20 | 5588 | 266 | #標準入力
a,b = map(int,input().split())
#ドレスの数とパーティーの数が同じであればbをaで割った商を出力する
if b % a == 0:print(b // a)
#でなければbをaで割った商に1を足した値を出力する
else:print(b // a + 1)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,445 |
s427531112 | p00387 | u240091169 | 1591154012 | Python | Python3 | py | Accepted | 20 | 5588 | 96 | A, B = map(int, input().split())
if B % A == 0 :
print(B // A)
else :
print(B // A + 1)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,446 |
s975849177 | p00387 | u153447291 | 1574078231 | Python | Python3 | py | Accepted | 20 | 5656 | 65 | import math
a,b = map(int,input().split())
print(math.ceil(b/a))
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,447 |
s518296815 | p00387 | u726971073 | 1572941550 | Python | Python3 | py | Accepted | 20 | 5580 | 51 | a, b = map(int, input().split())
print((b+a-1)//a)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,448 |
s642966110 | p00387 | u260980560 | 1562080526 | Python | Python3 | py | Accepted | 20 | 5580 | 51 | A, B = map(int, input().split())
print((B+A-1)//A)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,449 |
s287004067 | p00387 | u616775713 | 1561177059 | Python | Python3 | py | Accepted | 20 | 5588 | 67 | n,m = list(map(int,input().split()))
print(max(m//n+(m%n != 0),1))
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,450 |
s228381169 | p00387 | u043254318 | 1559839152 | Python | Python3 | py | Accepted | 20 | 5604 | 120 |
A,B = [int(i) for i in input().split()]
ans = 0
if B % A == 0:
ans = B // A
else:
ans = B // A + 1
print(ans)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,451 |
s686753086 | p00387 | u006424459 | 1555136315 | Python | Python3 | py | Accepted | 20 | 5596 | 106 | l=input().split()
A=int(l[0])
B=int(l[1])
kimawasi=B//A
if B%A>0:
kimawasi=kimawasi+1
print(kimawasi)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,452 |
s308101340 | p00387 | u813675766 | 1548985709 | Python | Python3 | py | Accepted | 20 | 5580 | 47 | a,b=map(int,input().split())
print((b+a-1)//a)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,453 |
s416402934 | p00387 | u717526540 | 1544596049 | Python | Python3 | py | Accepted | 20 | 5596 | 142 | a, b = map(int, input().split())
if a >= b:
print(1)
else:
if b % a == 0:
print(b // a)
else:
print(b // a + 1)
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,454 |
s315001932 | p00387 | u352394527 | 1543738216 | Python | Python3 | py | Accepted | 20 | 5580 | 61 | a, b = map(int, input().split())
print(b // a + bool(b % a))
| p00387 | <h1>Party Dress</h1>
<p>
Yae joins a journey plan, in which parties will be held several times during the itinerary. She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she ha... | 3 5
| 2
| 19,455 |
s770208281 | p00388 | u231562319 | 1546120179 | Python | Python3 | py | Accepted | 30 | 5596 | 111 | h,a,b = map(int,input().split())
ans = 0
for i in range(a,b+1):
if h%i == 0:
ans += 1
print(ans)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,456 |
s270626563 | p00388 | u435226340 | 1546173963 | Python | Python3 | py | Accepted | 30 | 5596 | 106 | H, A, B = map(int, input().split())
cnt = 0;
for i in range(A, B+1):
cnt += (H % i == 0 )
print(cnt)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,457 |
s214765857 | p00388 | u814278309 | 1559131956 | Python | Python3 | py | Accepted | 30 | 5596 | 90 | H,a,b=map(int,input().split())
c=0
for i in range(a,b+1):
if H%i==0 :
c+=1
print(c)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,458 |
s847274151 | p00388 | u593595530 | 1597668121 | Python | Python3 | py | Accepted | 20 | 5596 | 118 | h, a, b = map(int, input().split())
num = 0
for i in range(a, b+1):
if h % i == 0:
num += 1
print(num)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,459 |
s614994921 | p00388 | u320921262 | 1597559471 | Python | Python3 | py | Accepted | 30 | 5596 | 105 | H,A,B = map(int,input().split())
a = 0
for i in range(A,B+1):
if H % i == 0:
a += 1
print(a)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,460 |
s523140929 | p00388 | u630948380 | 1596505157 | Python | Python3 | py | Accepted | 30 | 5596 | 105 | H,A,B=map(int,input().split())
c=0
for i in range(A,B+1):
if H%i==0:
c+=1
print(c)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,461 |
s941174941 | p00388 | u290304811 | 1596190574 | Python | Python3 | py | Accepted | 20 | 5604 | 83 |
h,a,b = map(int,input().split())
print(len([i for i in range(a,b+1) if h%i==0]))
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,462 |
s055083153 | p00388 | u596129030 | 1596082322 | Python | Python3 | py | Accepted | 30 | 5596 | 101 | h,a,b=map(int,input().split())
c=0
for i in range(a,b+1):
if h%i==0:
c=c+1
print(c)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,463 |
s211050479 | p00388 | u838993229 | 1595849532 | Python | Python3 | py | Accepted | 20 | 9408 | 117 | H,A,B = map(int,input().split())
a = list(range(A,B+1))
x = 0
for i in a:
if H % i == 0:
x += 1
print(x)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,464 |
s083559758 | p00388 | u511292942 | 1595816935 | Python | Python3 | py | Accepted | 30 | 5596 | 117 | h, a, b = map(int, input().split())
ans = 0
for i in range(a, b+1) :
if h % i == 0 :
ans += 1
print(ans)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,465 |
s582817490 | p00388 | u240091169 | 1591153580 | Python | Python3 | py | Accepted | 30 | 5596 | 117 | H, A, B = map(int, input().split())
ans = 0
for i in range(A, B+1) :
if H % i == 0 :
ans += 1
print(ans)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,466 |
s590290055 | p00388 | u842461513 | 1590918843 | Python | Python3 | py | Accepted | 40 | 5596 | 248 | #標準入力とカウンタ変数の初期化
a,b,c = map(int,input().split())
kei = 0
#割り切れるならカウンタ変数を更新する
for i in range(b,c + 1):
if a % i == 0:kei += 1
#カウンタ変数を出力する
print(kei)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,467 |
s184129784 | p00388 | u726971073 | 1572941834 | Python | Python3 | py | Accepted | 30 | 6272 | 80 | h, a, b = map(int, input().split())
print(sum([h%i==0 for i in range(a, b+1)]))
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,468 |
s933109027 | p00388 | u260980560 | 1562080623 | Python | Python3 | py | Accepted | 40 | 5596 | 116 | H, A, B = map(int, input().split())
ans = 0
for k in range(A, B+1):
if H % k == 0:
ans += 1
print(ans)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,469 |
s342543012 | p00388 | u043254318 | 1558546742 | Python | Python3 | py | Accepted | 40 | 5604 | 131 | H,A,B = [int(i) for i in input().split()]
cnt = 0
for i in range(A,B+1):
if (H // i)*i == H:
cnt = cnt + 1
print(cnt)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,470 |
s643258026 | p00388 | u006424459 | 1555173384 | Python | Python3 | py | Accepted | 40 | 5596 | 98 | H,A,B=map(int,input().split())
i=0
while A<=B:
if H%A==0:
i=i+1
A=A+1
print(i)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,471 |
s089897937 | p00388 | u813675766 | 1548986008 | Python | Python3 | py | Accepted | 60 | 6276 | 92 | h, a, b = map(int, input().split())
print([(h%(a+c)==0) for c in range(b-a+1)].count(True))
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,472 |
s674404720 | p00388 | u717526540 | 1544596143 | Python | Python3 | py | Accepted | 30 | 5596 | 118 | h, a, b = map(int, input().split())
cnt = 0
for i in range(a, b+1):
if h % i == 0:
cnt += 1
print(cnt)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,473 |
s028479131 | p00388 | u352394527 | 1543738403 | Python | Python3 | py | Accepted | 20 | 5596 | 111 | h, a, b = map(int, input().split())
ans = 0
for i in range(a, b + 1):
if h % i == 0:
ans += 1
print(ans)
| p00388 | <h1>Design of a Mansion</h1>
<p>
Our master carpenter is designing a condominium called Bange Hills Mansion. The condominium is constructed by stacking up floors of the same height. The height of each floor is designed so that the total height of the stacked floors coincides with the predetermined height of the condo... | 100 2 4
| 2
| 19,474 |
s196735267 | p00389 | u231562319 | 1546170315 | Python | Python3 | py | Accepted | 60 | 5600 | 193 | n,k = map(int,input().split())
ans = 0
d,s = 1,0
while True:
# s/d <= k
# s <= d*k
while d*k < s:
d += 1
if s+d > n:
break
s += d
ans += 1
print(ans)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,475 |
s957440252 | p00389 | u435226340 | 1546174153 | Python | Python3 | py | Accepted | 50 | 5596 | 130 | N,K = map(int, input().split())
t = n = a = 1
while True:
n = (K+a-1)//K
a += n;
if N < a: break
t += 1
print(t)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,476 |
s801013458 | p00389 | u726971073 | 1572945339 | Python | Python3 | py | Accepted | 60 | 5596 | 127 | n, k = map(int, input().split())
ans = 1
w = 1
while n-w>0:
blw = (w+k-1)//k
w += blw
if n-w>=0: ans+=1
print(ans)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,477 |
s784381242 | p00389 | u260980560 | 1562080826 | Python | Python3 | py | Accepted | 60 | 5596 | 155 | N, K = map(int, input().split())
ans = 1
s = 1
N -= 1
while 1:
m = (s+K-1) // K
if N < m:
break
s += m; N -= m
ans += 1
print(ans)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,478 |
s598589277 | p00389 | u043254318 | 1559838053 | Python | Python3 | py | Accepted | 70 | 5604 | 268 |
N,K = [int(i) for i in input().split()]
weight = 1
ans = 1
N -= 1
while N > 0:
d = 0
if weight % K == 0:
d = weight // K
else:
d = weight // K + 1
N -= d
weight += d
if N >= 0:
ans += 1
print(ans)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,479 |
s672042288 | p00389 | u805699996 | 1552289500 | Python | Python3 | py | Accepted | 60 | 5596 | 202 | n,k = map(int, input().split())
res = 0
row = 1
w = 0
while n >= row :
if row*k >= w :
res += 1
w += row
n -= row
elif n >= row+1 : row += 1
else : break
print(res)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,480 |
s183161554 | p00389 | u813675766 | 1548986548 | Python | Python3 | py | Accepted | 70 | 5664 | 179 | import math
n, k = map(int, input().split())
ret = 1
acc = 1
while True:
want = math.ceil(acc / k)
if(want+acc > n):
break
acc += want
ret += 1
print(ret)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,481 |
s358461558 | p00389 | u759934006 | 1547913921 | Python | Python3 | py | Accepted | 70 | 5604 | 212 | N, K = (int(x) for x in input().split())
t = 1
r = N - 1
s = 1
while True:
b = s // K + 1 if s % K else s // K
if r >= b:
r -= b
s += b
t += 1
else:
break
print(t)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,482 |
s255997854 | p00389 | u352394527 | 1543738800 | Python | Python3 | py | Accepted | 80 | 5596 | 219 | n, k = map(int, input().split())
weight = 1
rest = n - 1
layers = 1
while True:
add = weight // k + bool(weight % k)
if add <= rest:
rest -= add
weight += add
layers += 1
else:
break
print(layers)
| p00389 | <h1>Pilling Blocks</h1>
<p>
We make a tower by stacking up blocks. The tower consists of several stages and each stage is constructed by connecting blocks horizontally. Each block is of the same weight and is tough enough to withstand the weight equivalent to up to $K$ blocks without crushing.
</p>
<p>
We have to ... | 4 2
| 3
| 19,483 |
s543300617 | p00390 | u231562319 | 1546120651 | Python | Python3 | py | Accepted | 20 | 5600 | 217 | n = int(input())
a = list(map(int,input().split()))
w = list(map(int,input().split()))
INF = 10**9
x = [INF]*2
for i in range(n):
x[a[i]] = min(x[a[i]], w[i])
ans = sum(x)
if ans >= INF:
ans = 0
print(ans)
| p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,484 |
s068435505 | p00390 | u726971073 | 1572944966 | Python | Python3 | py | Accepted | 20 | 5604 | 372 | n = int(input())
aw = [[0,0] for i in range(n)]
for i, a in enumerate(map(int, input().split())): aw[i][0] = a
for i, w in enumerate(map(int, input().split())): aw[i][1] = w
migimin = 1001
hidarimin = 1001
for a,w in aw:
if a: hidarimin = min(hidarimin, w)
else: migimin = min(migimin, w)
if hidarimin>1000 or mi... | p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,485 |
s878678364 | p00390 | u260980560 | 1562081064 | Python | Python3 | py | Accepted | 20 | 5596 | 252 | N = int(input())
*A, = map(int, input().split())
*W, = map(int, input().split())
INF = 10**9
l = r = INF
for a, w in zip(A, W):
if a:
r = min(w, r)
else:
l = min(w, l)
if l == INF or r == INF:
print(0)
else:
print(l+r)
| p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,486 |
s782862388 | p00390 | u043254318 | 1559838772 | Python | Python3 | py | Accepted | 20 | 5604 | 350 |
N = int(input())
a = [int(i) for i in input().split()]
w = [int(i) for i in input().split()]
rightMin = 1001
leftMin = 1001
for i in range(N):
if a[i] == 0:
rightMin = min(rightMin, w[i])
else:
leftMin = min(leftMin, w[i])
if rightMin == 1001 or leftMin == 1001:
print(0)
else:
print(... | p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,487 |
s145189625 | p00390 | u813675766 | 1548986964 | Python | Python3 | py | Accepted | 20 | 5604 | 291 | n = int(input())
a = [int(_) for _ in input().split()]
w = [int(_) for _ in input().split()]
if sum(a) == n or sum(a) == 0:
print(0)
quit()
lia = []
lib = []
for i in range(n):
if a[i] == 0:
lia.append(w[i])
else:
lib.append(w[i])
print(min(lia)+min(lib))
| p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,488 |
s589822022 | p00390 | u759934006 | 1547823493 | Python | Python3 | py | Accepted | 20 | 5604 | 229 | N = input()
a = [int(x) for x in input().split()]
w = [int(x) for x in input().split()]
R = [w for a, w in zip(a, w) if a == 0]
L = [w for a, w in zip(a, w) if a == 1]
if R and L:
print(min(R) + min(L))
else:
print(0)
| p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,489 |
s717810057 | p00390 | u352394527 | 1543739264 | Python | Python3 | py | Accepted | 20 | 5604 | 262 | n = int(input())
alst = list(map(int, input().split()))
wlst = list(map(int, input().split()))
right = [w for a, w in zip(alst, wlst) if a == 0]
left = [w for a, w in zip(alst, wlst) if a == 1]
if right and left:
print(min(right) + min(left))
else:
print(0)
| p00390 | <h1>Round Table of Sages</h1>
<p>
$N$ sages are sitting around a round table with $N$ seats. Each sage holds chopsticks with his dominant hand to eat his dinner. The following happens in this situation.
</p>
<ul>
<li>If sage $i$ is right-handed and a left-handed sage sits on his right, a level of frustration $w_i$ o... | 5
1 0 0 1 0
2 3 5 1 2
| 3
| 19,490 |
s229656625 | p00399 | u729823147 | 1596266450 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | a,b,c,d=map(int,input().split())
print(a+b+c+d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,491 |
s268786122 | p00399 | u643696233 | 1596115333 | Python | Python3 | py | Accepted | 20 | 5580 | 53 | r, b, w, g = map(int,input().split())
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,492 |
s817035543 | p00399 | u219344987 | 1595060925 | Python | Python3 | py | Accepted | 20 | 5576 | 45 | ls = map(int,input().split())
print(sum(ls))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,493 |
s441758041 | p00399 | u840834747 | 1594879148 | Python | Python3 | py | Accepted | 20 | 5588 | 90 | l = input().split()
R=int(l[0])
B=int(l[1])
W=int(l[2])
G=int(l[3])
print(R + B + W + G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,494 |
s023331586 | p00399 | u077582668 | 1594876519 | Python | Python3 | py | Accepted | 20 | 5588 | 107 | # coding: utf-8
# Your code here!
(a,b,c,d) = map(int,input().split())
sum = a + b + c + d
print(sum)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,495 |
s825647583 | p00399 | u726606612 | 1594088083 | Python | Python3 | py | Accepted | 20 | 5592 | 90 | def inu(r,b,w,g):
return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,496 |
s318286700 | p00399 | u537939262 | 1594082225 | Python | Python3 | py | Accepted | 20 | 5592 | 91 | def inu(r,b,w,g):
return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,497 |
s492031609 | p00399 | u360695385 | 1594082219 | Python | Python3 | py | Accepted | 20 | 5592 | 91 | def inu(r,b,w,g):
return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,498 |
s287088177 | p00399 | u477744960 | 1594082183 | Python | Python3 | py | Accepted | 20 | 5592 | 89 | def inu(r,b,w,g):
return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,499 |
s583164570 | p00399 | u854650608 | 1594082159 | Python | Python3 | py | Accepted | 20 | 5596 | 102 | R,B,W,G=map(int,input().split())
def inu(R,B,W,G):
INU=R+B+W+G
return INU
print(inu(R,B,W,G))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,500 |
s739162751 | p00399 | u038846446 | 1593706099 | Python | Python3 | py | Accepted | 20 | 5584 | 65 | a,b,c,d = list(map(int, input().strip().split()))
print(a+b+c+d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,501 |
s087052331 | p00399 | u548184870 | 1592807219 | Python | Python3 | py | Accepted | 20 | 5572 | 37 | print(sum(map(int,input().split())))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,502 |
s910753894 | p00399 | u872688456 | 1592554055 | Python | Python3 | py | Accepted | 20 | 5584 | 57 | r,b,w,g=map(int,input().split())
r+b+w+g
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,503 |
s799341722 | p00399 | u251016044 | 1592553604 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,504 |
s851932994 | p00399 | u238315951 | 1592553533 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,505 |
s589482625 | p00399 | u860145523 | 1592552281 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,506 |
s871624451 | p00399 | u534660588 | 1592552038 | Python | Python3 | py | Accepted | 20 | 5580 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,507 |
s968830928 | p00399 | u580596673 | 1592551890 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | a,b,c,d=map(int,input().split())
print(a+b+c+d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,508 |
s666128994 | p00399 | u383477631 | 1592551870 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,509 |
s363400504 | p00399 | u265214308 | 1592551706 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,510 |
s641973054 | p00399 | u123110230 | 1592551643 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | R,B,W,G=map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,511 |
s993477378 | p00399 | u096166741 | 1592551636 | Python | Python3 | py | Accepted | 20 | 5580 | 48 | a,b,c,d=map(int,input().split())
print(a+b+c+d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,512 |
s730488399 | p00399 | u849026497 | 1592227545 | Python | Python3 | py | Accepted | 20 | 5592 | 56 | a = list(int(x) for x in input().split())
print(sum(a))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,513 |
s557866206 | p00399 | u930644970 | 1591855337 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | r,b,g,w=map(int,input().split())
print(r+b+g+w)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,514 |
s884132630 | p00399 | u511467689 | 1591723220 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | a,b,c,d=map(int,input().split())
print(a+b+c+d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,515 |
s037219530 | p00399 | u016268270 | 1590833926 | Python | Python3 | py | Accepted | 20 | 5576 | 59 | shiba = list(map(int, input().split()))
print(sum(shiba))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,516 |
s219161575 | p00399 | u056829778 | 1589785227 | Python | Python3 | py | Accepted | 20 | 5584 | 58 | r,b,w,g = list(map(int, input().split()))
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,517 |
s861369452 | p00399 | u512192552 | 1589557530 | Python | Python3 | py | Accepted | 20 | 5592 | 90 | # coding: utf-8
# Your code here!
R,B,W,G=map(int,input().split())
print(sum((R,B,W,G)))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,518 |
s534869316 | p00399 | u240091169 | 1589449898 | Python | Python3 | py | Accepted | 20 | 5584 | 54 | R, B, W, G = map(int, input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,519 |
s443870633 | p00399 | u842461513 | 1588905043 | Python | Python3 | py | Accepted | 20 | 5580 | 93 | #リストに格納して合計して出力する
print(sum(list(map(int,input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,520 |
s287283329 | p00399 | u632594605 | 1588716461 | Python | Python3 | py | Accepted | 20 | 5584 | 54 | r, b, w, g = map(int, input().split())
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,521 |
s762352732 | p00399 | u374037476 | 1588073462 | Python | Python3 | py | Accepted | 20 | 5584 | 50 | R,B,W,G = map(int,input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,522 |
s622768416 | p00399 | u946454151 | 1588059583 | Python | Python3 | py | Accepted | 20 | 5576 | 37 | print(sum(map(int,input().split())))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,523 |
s068694608 | p00399 | u548663215 | 1587968352 | Python | Python3 | py | Accepted | 20 | 5584 | 60 | r, b, w, g = map(int, input().split())
print(r + b + w + g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,524 |
s461265064 | p00399 | u043254318 | 1587881137 | Python | Python3 | py | Accepted | 20 | 5604 | 99 |
n = [int(i) for i in input().split()]
S = 0
for i in range(len(n)):
S = S + n[i]
print(S)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,525 |
s693920891 | p00399 | u630911389 | 1586015727 | Python | Python3 | py | Accepted | 20 | 5596 | 70 | a,b,c,d = list(int(x) for x in input().split())
print(a + b + c + d)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,526 |
s786464055 | p00399 | u329630166 | 1584869826 | Python | Python3 | py | Accepted | 20 | 5576 | 51 | lst=list(map(int,input().split()))
print(sum(lst))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,527 |
s708637022 | p00399 | u548252256 | 1584626052 | Python | Python3 | py | Accepted | 20 | 5580 | 75 | if __name__ == '__main__':
A = map(int,input().split())
print(sum(A))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,528 |
s794213631 | p00399 | u079734924 | 1583957733 | Python | Python3 | py | Accepted | 20 | 5580 | 44 | print(sum(list(map(int, input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,529 |
s218118728 | p00399 | u511231264 | 1583641849 | Python | Python3 | py | Accepted | 20 | 5580 | 61 | r, b, w, g = map(int, input().split())
print(r + b + w + g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,530 |
s292018638 | p00399 | u032669296 | 1582698212 | Python | Python3 | py | Accepted | 20 | 5580 | 45 | print(sum(list(map(int, input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,531 |
s360842055 | p00399 | u940701544 | 1582542941 | Python | Python3 | py | Accepted | 20 | 5584 | 50 | r,b,w,g = map(int,input().split())
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,532 |
s765261610 | p00399 | u735982148 | 1582201158 | Python | Python3 | py | Accepted | 20 | 5584 | 53 | R, B, W,G = map(int, input().split())
print(R+B+W+G)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,533 |
s995980920 | p00399 | u524424533 | 1581480563 | Python | Python3 | py | Accepted | 20 | 5572 | 49 | K = list(map(int,input().split()))
print(sum(K))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,534 |
s869888033 | p00399 | u209037521 | 1580728278 | Python | Python3 | py | Accepted | 30 | 5580 | 44 | print(sum(list(map(int, input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,535 |
s477214296 | p00399 | u953620631 | 1580301443 | Python | Python3 | py | Accepted | 20 | 5596 | 46 | print(sum([int(i) for i in input().split()]))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,536 |
s462099407 | p00399 | u990721773 | 1580301303 | Python | Python3 | py | Accepted | 20 | 5584 | 82 | x = input()
list = x.split()
sum = 0
for i in list:
sum += int(i)
print(sum)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,537 |
s127795565 | p00399 | u934460477 | 1579998949 | Python | Python3 | py | Accepted | 20 | 5584 | 48 | r,b,w,g=map(int,input().split())
print(r+b+w+g)
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,538 |
s933430074 | p00399 | u759934006 | 1579967760 | Python | Python3 | py | Accepted | 20 | 5576 | 38 | print(sum(map(int, input().split())))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,539 |
s697472968 | p00399 | u773266448 | 1579923149 | Python | Python3 | py | Accepted | 20 | 5592 | 52 | a = [int(s) for s in input().split()]
print(sum(a))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,540 |
s975448457 | p00399 | u644946737 | 1579780920 | Python | Python3 | py | Accepted | 20 | 5572 | 37 | print(sum(map(int,input().split())))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,541 |
s721773388 | p00399 | u855694108 | 1577800415 | Python | Python3 | py | Accepted | 20 | 5580 | 43 | print(sum(list(map(int,input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,542 |
s292106910 | p00399 | u153447291 | 1577798711 | Python | Python3 | py | Accepted | 20 | 5580 | 43 | print(sum(list(map(int,input().split()))))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,543 |
s760915225 | p00399 | u586920078 | 1577598989 | Python | Python3 | py | Accepted | 20 | 5592 | 68 | A = [int(x) for x in input().split()]
print(sum(A))
| p00399 | <h1>柴犬の数</h1>
<p>
イヅア公園には、夕方になると柴犬と散歩する人たちがたくさん来ます。柴犬には毛の色によって赤柴、黒柴、白柴、胡麻柴という種類があります。柴犬がたくさんいるとうれしいトモエちゃんは、それぞれの毛色の柴犬が何頭いるかがんばって数えましたが、まだ足し算ができないので柴犬が全部で何頭いるかわかりません。
</p>
<p>
それぞれの毛色の柴犬の数が与えられたときに、柴犬の総数を計算するプログラムを作成せよ。
</p>
<h2>入力</h2>
<p>
入力は以下の形式で与えられる。
</p>
<pre>
$R$ $B$ $W$ $G$
</pre>
<p>
1行に赤柴の数$R$ ($1 ... | 4 2 1 1
| 8
| 19,544 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.