output_description stringlengths 15 956 | submission_id stringlengths 10 10 | status stringclasses 3 values | problem_id stringlengths 6 6 | input_description stringlengths 9 2.55k | attempt stringlengths 1 13.7k | problem_description stringlengths 7 5.24k | samples stringlengths 2 2.72k |
|---|---|---|---|---|---|---|---|
Print the price of the bowl of ramen corresponding to S.
* * * | s965370941 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | 700 + input().count("o") * 100
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s555747227 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print((input().count("o")) * 3 + 700)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s467707077 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(100 * input().count("○"))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s690781215 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | print(700+100*input().count(“o“)) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s668207236 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(1000)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s413691378 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | print(700+100*input().count("o") | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s950247224 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a = imput()
print(a.count("o"))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s971447011 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
print(700+s.count("o)*100) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s403461189 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(700 + int(input().count("o")))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s404873202 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | options = map(int, list(input().rstrip("\n").replace("o", "1").replace("x", "0")))
print(700 + sum(options) * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s400361729 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=str(input())
y=700
x=0
while x!=2
if s[x]=o:
y+=100
else:
y+=0
x+=1
break
print(y) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s343207421 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N, X = input().strip().split()
N = int(N)
X = int(X)
donuts = sorted(int(input()) for i in range(N - 1))
partial_sum = [sum(donuts[:i]) for i in range(N - 1)]
if partial_sum[-1] > X:
print(N - 1 + (X - partial_sum[-1]) // donuts[0])
else:
print(sum(1 for x in partial_sum if x <= X))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s083262277 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a,b,c=input().strip().split(' ')
d=700
if a=='o' :
d+100
elif b=='o' :
d+100
elif c=='o' :
d+100
else d+0
print (d) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s764576060 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N, C = map(int, input().split())
lists = [list(map(lambda x: int(x), input().split())) for i in range(N)]
cal = 0
cals = []
if lists[0][0] < lists[0][1]:
cal = cal - lists[0][0] + lists[0][1]
cals.append(cal)
for i in range(1, N):
cal = cal - (lists[i][0] - lists[i - 1][0]) + lists[i][1]
cals.append(cal)
print(max(cals))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s666589447 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N = input()
s = 0
for i in range(0,len(N)):
if N[i] == "o":
s = s + 1
print(700 + 100 * s)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s766472132 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | def B(N, X, m):
ret = 0
X -= sum(m)
ret += len(m)
ret += int(X / min(m))
return ret
inp = input().split()
inp = [int(i) for i in inp]
print(B(inp[0], inp[1], inp[2:]))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s646292383 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=input()
list=list(s)
a=700
print(list)
for i in range(len(list))
if list[i]=="○":
a=a+700
else:
a=a
print(a) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s937395738 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=input()
ct=0
if(s[0]=="o" or s[1]=="o"or s[2]=="o"):
f=800
elif(s[0]=="o" and s[1]=="o"and s[2]=="o"):
f=1000
elif(elif(s[0]=="o" and s[1]=="o"):
f=900
else:
f=700
print(f) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s102485704 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = list(map(str, input()))
count = 0
for i in range(3):
if S[i] = "o":
count += 1
print(700+count*100) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s720953673 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a, b, c, x, y = list(map(int, input().split()))
res = a * x + b * y
for i in range(1, max(x, y) + 1):
res = min(res, a * max(x - i, 0) + b * max(y - i, 0) + 2 * c * i)
print(res)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s363094093 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = list(input())
price = 700
if S[0] == 'o':
price += 100
if S[1] == 'o':
price += 100
if S[2] == 'o':
price += 100
print(price)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s819307760 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S |
fist = list(map(int, input().split()))
N = fist[0]
X = fist[1]
DList=[]
kosu=0
for i in range(N):
DList.append(int(input()))
X -= sum(DList)
kosu += len(DList)
sD = min(DList)
while X => sD:
X -= sD
kosu += 1
print(kosu) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s438205351 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a,b,c=input()
d=700
if a=='o' :
d+100
elif b=='o' :
d+100
elif c=='o' :
d+100
else d+0
print (d) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s188785762 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
ans = 700
for i in range S:
if i == "o":
ans += 100
if i == "x":
ans += 0
print(ans)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s004001485 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | order = input()
SUM = 700
for X in range(0,2):
if order[X] = o
SUM= int(SUM) + 100
print(SUM) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s716325680 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a = input()
count = 0
for i in range(len(a)):
if a[i] = 'o':
count += 1
print(700 + count * 100) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s517274158 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | S = input(str())
t = S.count("o")
print("{}".format(700 + t * 100))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s800455980 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | menu = input()
x = len([i for i in menu if i == "o"])
plus = 100 * x
print(700 + plus)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s189881007 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
cnt = 0
for i in s:
if i == "o"
cnt += 1
print(cnt * 100 + 700) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s293497337 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
r = 700
for i in range(3):
if s[i] == "o":
700 += 100
print(r)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s084007321 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N = input()
s = 0
for i in range(0,2):
if N[i] == "o":
s = s + 1
print(700+100*int(s))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s673876482 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
total = 700
for i in range(len(s):
if s[i]=="o":
total+=100
print(total) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s355375591 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N, X=map(int, input().split())
A=[int(input(for _ in range(N)))]
rest=X-sum(A)
print(rest//min(A)+N) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s270337256 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
p = 700
for c in s:
p += 100 if c == 'o'
print(p) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s557130637 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | r=700
a=100
t=100
n=100
S=input()
s=int(s)
if a=×:
print(0)
else:
print(s) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s625563761 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S=list(input())
count=0
if s='o':
count+=1
print(count*100+700) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s835843364 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=str(input())
y=700
x=0
while x!=2
if s[x]=o:
y+100
x+=1
print(y) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s551931423 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
cnt = 0
for i in s:
if i == "o":
cnt += 1
print(cnt * 100 + 700)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s463406165 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=str(input())
y=700
x=0
while x!=2
if s[x]=o:
y+100
x+=1
break
print(y) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s741234748 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = list(input())
sum = 700
for s in S:
if s = "o":
sum += 100
print(sum) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s160732180 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
for i in range S:
if i == "o":
ans += 100
if i == "x":
ans += 0
print(ans)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s960899484 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
a = 0
for i in range(3):
if s[i:i+1] != 'x':
a += 100
print(700 + a) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s578822442 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | print(700 + 100 * input().count('o'))print(700 + 100 * input().count('o')) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s550277589 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input().split()
sum = 700
for n in s:
if n == 'o'
sum += 100
print(sum) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s072293644 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S |
S = list(input())
num = 700
for i in S:
if i == "o"
num += 100
print(num) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s933500655 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S=input()
x=700
if S[0]==o:
x+=100
if S[1]=o:
x+=100
if S[2]=o:
x+=100
print(x) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s650457168 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a=input()b=700
if a[0]=="o":
b+=100
if a[1]=="o":
b+=100
if a[2]=="o":
b+=100
print(b) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s240248640 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=str(input())
y=700
x=0
while x!=2
if s[x]=o:
y+=100
x+=1
print(y) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s247862716 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | print(700 + len([a for a in list(input()) if a == "o"]) * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s068242106 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | T = input()
print(700 + T.count("o") * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s607005656 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | print(700 + ((str(input()).count("o")) * 100))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s638153849 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | print(700 + 100 * len([i for i in list(input()) if i == "o"]))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s263006605 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | S = input().count("o")
print(700 + 100 * S)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s653354257 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | print(700 + 100 * len(list(filter(lambda x: x == "o", input()))))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s732999716 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | m= int((input=().count('o'))
print(700+m*100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s250550462 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | m=int((input=().count('o'))
print(str(700+m*100))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s624358701 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(700 + 100 * len([i for i in list(input()) if i == "x"]))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s885976951 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | m= (input=().count('o')
print(str(700+m*100)) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s449744032 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | m= (input().count('o')
print(str(700+m*100))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s060576037 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=input()
p=0
for i in s:
if i=='o':
p++
print(p) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s503293338 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
print(700 + int(s.count('o'))*100) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s907670019 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=input()
if s="ooo":
if s="ooo":
print(1000) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s665678447 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input().split()
print(700 + s.count(o))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s646214924 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
n = s.count("o")
print(100 × n + 700) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s897046451 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | #abc095 a
s=input()
print(700+s.count"o"*100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s748343978 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | m=int((input().count("o"))
print(str(700+m*100)) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s900438556 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = input()
print(700 + 100 * s.count("o")) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s921479068 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s = str(input())
cou = 700
for i in range(3):
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s433579989 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | A = input()
B = print(A.count("o"))
print(700 + int(B) * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s154264417 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | A = input().count("o")
print(700 + A * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s177292532 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | s = input().count("o")
print(700 + s * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s088810748 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(int(700 + input().count("○") * 100))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s405821182 | Wrong Answer | p03369 | Input is given from Standard Input in the following format:
S | print(100 * input().count("o"))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s120813930 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
count = 0
List = [s for s in S]
for i in List:
if i = "o":
count+=1
print(700+100*count) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s980470866 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a, b, c, x, y = map(int, input().split())
ya = min(a + b, 2 * c)
s = min(x, y)
if x > y:
n = x - y
k = a
else:
n = y - x
k = b
print(ya * s + n * min(k, 2 * c))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s783524383 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | N, X = (int(n) for n in input().split())
m_list = [int(input()) for _ in range(N)]
m_list.sort()
rest = X - sum(m_list)
x = 0
while rest - x * m_list[0] > 0:
x += 1
rest = rest - x * m_list[0]
print(x + len(m_list))
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s644539847 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | n, c = map(int, input().split())
x = [tuple(map(int, input().split())) for _ in range(n)]
S_cw = [0]
S_ccw = [0]
S_cw_return = [0]
S_ccw_return = [0]
for i in range(n):
S_cw.append(S_cw[-1] + x[i][1])
S_ccw.append(S_ccw[-1] + x[n - 1 - i][1])
for i in range(n):
S_cw[i + 1] -= x[i][0]
S_ccw[i + 1] -= c - x[n - 1 - i][0]
S_cw_return.append(S_cw[i + 1] - x[i][0])
S_ccw_return.append(S_ccw[i + 1] - (c - x[n - 1 - i][0]))
S_cw_return_max = [0]
S_ccw_return_max = [0]
for i in range(n):
if S_cw_return[i + 1] > S_cw_return_max[-1]:
S_cw_return_max.append(S_cw_return[i + 1])
else:
S_cw_return_max.append(S_cw_return_max[-1])
if S_ccw_return[i + 1] > S_ccw_return_max[-1]:
S_ccw_return_max.append(S_ccw_return[i + 1])
else:
S_ccw_return_max.append(S_ccw_return_max[-1])
ans = 0
for i in range(n + 1):
idx = n - i
ans = max(ans, S_cw[i] + S_ccw_return_max[idx], S_ccw[i] + S_cw_return_max[idx])
print(ans)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s147492004 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | S = input()
for i in range S:
if i == "o":
ans += 100
else:
ans += 0
print(ans) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s325711990 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | a = input()
b = 700
for x in a:
if x == "o":
b += 100
else:
pass
print(b)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s547971500 | Runtime Error | p03369 | Input is given from Standard Input in the following format:
S | s=str(input())
y=700
x=0
while x!=2
if s[x]=o:
y+100
x+=1
print(y) | Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print the price of the bowl of ramen corresponding to S.
* * * | s656865172 | Accepted | p03369 | Input is given from Standard Input in the following format:
S | print(700 + str(input()).count("o") * 100)
| Statement
In "Takahashi-ya", a ramen restaurant, a bowl of ramen costs 700 yen (the
currency of Japan), plus 100 yen for each kind of topping (boiled egg, sliced
pork, green onions).
A customer ordered a bowl of ramen and told which toppings to put on his ramen
to a clerk. The clerk took a memo of the order as a string S. S is three
characters long, and if the first character in S is `o`, it means the ramen
should be topped with boiled egg; if that character is `x`, it means the ramen
should not be topped with boiled egg. Similarly, the second and third
characters in S mean the presence or absence of sliced pork and green onions
on top of the ramen.
Write a program that, when S is given, prints the price of the corresponding
bowl of ramen. | [{"input": "oxo", "output": "900\n \n\nThe price of a ramen topped with two kinds of toppings, boiled egg and green\nonions, is 700 + 100 \\times 2 = 900 yen.\n\n* * *"}, {"input": "ooo", "output": "1000\n \n\nThe price of a ramen topped with all three kinds of toppings is 700 + 100\n\\times 3 = 1000 yen.\n\n* * *"}, {"input": "xxx", "output": "700\n \n\nThe price of a ramen without any toppings is 700 yen."}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s209584862 | Accepted | p03386 | Input is given from Standard Input in the following format:
A B K | from collections import Counter, defaultdict, deque
from heapq import heappop, heappush, heapify
import sys, bisect, math, itertools
sys.setrecursionlimit(10**8)
mod = 10**9 + 7
def inp():
return int(sys.stdin.readline())
def inpl():
return list(map(int, sys.stdin.readline().split()))
def inpln(n):
return list(int(sys.stdin.readline()) for i in range(n))
a, b, k = inpl()
res = []
for i in range(k):
if a + i <= b and not a + i in res:
res.append(a + i)
if b - i >= a and not b - i in res:
res.append(b - i)
res.sort()
print(*res)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s686225870 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,n=map(int,input().split())
C = sorted(set([a:min(a+n,b)])|set([max(a,b-n):b]))
for i in C:
print(i) | Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s959863949 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,n=map(int,input().split())
C = set([a:min(a+n,b)])|set([max(a,b-n):b])
for i in list(C):
print(i) | Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s405326438 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,k=map(int, input().split())
if b-a+1>2k:
for i in range(a,a+k):
print(i)
for i in range(b-k+1,b+1):
print(i)
else:
for i in range(a,b+1):
print(i) | Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s641322255 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,k = map(int,input().split())
n = b - a + 1
if n <= k*2:
for i in range(a,b+1):
print(i)
else:
for i in range(a,k+1):
print(i)
fot j in range(b-k+1,b+1)
print(j)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s586302950 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a, b, k = map(int, input().split())
lis = [x for x in range(a, b+1)]
lis2 = []
if 2*k >= b-a+1:
for i in range(a, b+1)
print(i)
else:
for i in range(a, a + k):
print(i)
for i in range(b - k + 1, b + 1):
print(i)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s477666369 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | #include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ASC(c) sort((c).begin(), (c).end())
#define DESC(c) sort((c).begin(), (c).end(), greater<int>())
#define DUMP(x) cerr << #x << " = " << (x) << endl;
#define DEBUG(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
typedef long long ll;
typedef unsigned long long ull;
struct edge { int u, v; ll w; };
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
int A, B, K;
cin >> A >> B >> K;
for (int i = A; i <= B; i++) {
if (i >= A + K && i <= B - K) continue;
cout << i << endl;
}
}
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s152537072 | Wrong Answer | p03386 | Input is given from Standard Input in the following format:
A B K | from collections import deque
a, b, c = map(int, input().split())
def bfs(a, b, c):
cnt = 0
queue = deque([[a, b, c, cnt]])
while queue:
a, b, c, cnt = queue.popleft()
if a == b and b == c:
return cnt
if a >= 52 or b >= 52 or c >= 52:
return cnt
if b > a and b > c:
queue.append([a + 1, b, c + 1, cnt + 1])
elif a > b and a > b:
queue.append([a, b + 1, c + 1, cnt + 1])
elif c > a and c > b:
queue.append([a + 1, b + 1, c, cnt + 1])
elif a < b or a < c:
queue.append([a + 2, b, c, cnt + 1])
elif b < a or b < c:
queue.append([a, b + 2, c, cnt + 1])
elif c < a or c < b:
queue.append([a, b, c + 2, cnt + 1])
print(bfs(a, b, c))
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s128007756 | Accepted | p03386 | Input is given from Standard Input in the following format:
A B K | a, b, k = map(int, input().split())
N = [int(i) for i in range(a, min(a + k, b + 1))]
M = [int(i) for i in range(max(a, b - k + 1), b + 1)]
print(*sorted(set(M + N)), sep="\n")
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s106840184 | Wrong Answer | p03386 | Input is given from Standard Input in the following format:
A B K | x = input().split()
x = list(map(int, x))
i = 0
while x[0] + i < x[0] + x[2]:
print(str(x[0] + i))
i += 1
i = 0
while x[1] - i > x[1] - x[2]:
print(str(x[1] - i))
i += 1
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s423283624 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | A,B,K = map(int,input().split())
for i in range(A,B+1): #AからB
if i < A+K || B-K < i :
print(i)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s530150916 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | A, B, K = [int(x) for x in input().split()]
X = list(range(A, B+1)))
for i in sorted(set(X[:K]) | set(X[-K:])):
print(i)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s079991096 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a, b, k = map(int, input().split())
l = list[a:b]
mimi = l[: a - k]
maxi = l[b - k :]
print(mini + maxi)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s323678388 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | A, B, K = map(int, input().split())
l = []
for i in range(K):
a = A + i
b = B - i
l.append(a)
l.append(b)
if a >= b:
break
l = list(set(l))
l.sort()
for i in l:
print(i) | Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s007242820 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,k=map(int,input().split())
if b-a+1<=2k:
for i in range(a,b+1):
print(i)
else:
for j in range(k):
print(a+j)
for l in range(k):
print(b-k+1+l)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s892785129 | Accepted | p03386 | Input is given from Standard Input in the following format:
A B K | a = input().split()
for i in range(len(a)):
a[i] = int(a[i])
mina = a[0]
maxa = a[1]
numbers = a[2]
for i in range(mina, mina + numbers):
if i <= maxa:
print(i)
for j in range(maxa - numbers + 1, maxa + 1):
if j > i:
print(j)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s305092001 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | A,B,K = map(int,input().split()
ans = []
for i in range(K):
if A+i <=B:
ans.append(A+i)
if B-i >= A:
ans.append(B-i)
ans = sorted(lis(set(ans)))
print(*ans,sep="\n")
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s046096607 | Wrong Answer | p03386 | Input is given from Standard Input in the following format:
A B K | a = list(map(int, input().split()))
b = []
for i in range(a[2]):
b.append(a[0] + i)
b.append(a[1] - i)
b = sorted(b)
print(b)
| Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Print all the integers that satisfies the condition above in ascending order.
* * * | s261450836 | Runtime Error | p03386 | Input is given from Standard Input in the following format:
A B K | a,b,k=map(int,input().split())
l = range(a, b + 1) if b - a + 1 <= k else sorted(set(range(a, a + k)) | set(range(b - k + 1, b + 1))):
for i in l:
print(i) | Statement
Print all the integers that satisfies the following in ascending order:
* Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers. | [{"input": "3 8 2", "output": "3\n 4\n 7\n 8\n \n\n * 3 is the first smallest integer among the integers between 3 and 8.\n * 4 is the second smallest integer among the integers between 3 and 8.\n * 7 is the second largest integer among the integers between 3 and 8.\n * 8 is the first largest integer among the integers between 3 and 8.\n\n* * *"}, {"input": "4 8 3", "output": "4\n 5\n 6\n 7\n 8\n \n\n* * *"}, {"input": "2 9 100", "output": "2\n 3\n 4\n 5\n 6\n 7\n 8\n 9"}] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.