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
|
---|---|---|---|---|---|---|---|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s706907029
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = int(input().replace(" ", ""))
print(["YES", "NO"][s % 4])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s687045870
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r, b, g = map(int, input().split())
print(['NO', 'YES'][(10*b+g)%4 == 0]
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s506097349
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = int("".join(input().split()))
print("No") if s % 4 else print("Yes")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s775061681
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("NO" if int(input())[::2] % 4 else "YES")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s792704608
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
_, a, b = map(int, input().split())
print("YNEOS"[(a * 10 + b) % 4 > 1])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s345555123
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YNEOS"[max(int(input().replace(" ", "")) % 4, 1) :: 2])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s011572449
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YENOS"[int(input()[::2]) % 4 > 0 :: 2])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s362983722
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
a,b,c=list(map(int,input().split()))
print('YES') if a*b*c*%4==0 else print('NO')
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s898149088
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,d=map(int, input().spilit)
if (100r+10g+D)%4=0:
print('YES')
else: print('NO')
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s650095676
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YES" if int(input().replace(" ",""))%4==0 else "NO)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s518374710
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = input()
if(int(s) % 4 ==0)
print("YES")
else
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s606720419
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
i = int("".join(input().split()))
print(i)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s089550060
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
a, b, c = map(int, input().split)
print("YES") if a * b * c % 4 == 0 else print("No")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s363199891
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
N = map(int, input().replace(" ", ""))
print("YES" if N % 4 == 0 else "NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s440543682
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
def calc():
ans = r + g + b
if ans%4 == 0:
return "YES"
else:
return "NO"
r, g, b = input list(map(int, input()))
print(calc)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s440444078
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
cs = [ int(x) for x in input().split() ]
n = cs[0] * 100 + cs[1] * 10 + cs[2]
if n % 4 == 0 :
print("YES")
else :
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s694130031
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
#include<bits/stdc++.h>
#define rep(i, n) for(int (i) = 0; (i) < (n); (i)++)
#define printd(x) printf("%.12f\n", ans);
#define print(x) cout << (x) << endl;
#define Yes() cout << "Yes" << endl;
#define No() cout << "No" << endl;
#define YES() cout << "YES" << endl;
#define NO() cout << "NO" << endl;
#define all(x) (x).begin(),(x).end()
#define printa(x, n) for(ll i = 0; i < n; i++) {cout << (x[i]) << " ";} cout << endl;
template<class T> bool chmin(T& a, const T& b) {if (a > b) {a = b; return 1;} return 0;}
template<class T> bool chmax(T& a, const T& b) {if (a < b) {a = b; return 1;} return 0;}
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
cout <<( (b * 10 + c) % 4 == 0 ? "YES" : "NO")<<endl;
return 0;
}
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s887313411
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
a, b, c = map(int, input().split()), reverse = True
A = 100 * a + 10 * b + c
if A % 4 == 0:
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s594092096
|
Accepted
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print(
"NO"
if sum([int(i) * 10 ** (2 - t) for t, i in enumerate(input().split())]) % 4
else "YES"
)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s086853433
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
rgb = int(input().replace(" ","").)
if rgb % 4 == 0:
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s524917255
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b = map(int,input().split())
if (10*g + b) % 4 = 0:
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s407119158
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b=map(int,input().split())
k = ((10*g) + b)%4
if k == 0 :print('YES')
else:print('NO')
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s079290549
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g b = input().split()
if int((g*10+b)%4==0):
print('YES')
else:
print('No')
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s807268859
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b = map(int, input().split())
if (r*100+g*10+b)%%4 == 0:
print('YES')
else:
print('NO')
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s895354781
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b = map(int,input().split())
if (10*g + b) % 4 = 0:
print("YES")
else:
print("No")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s015080426
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r, g, b = map(str, input().strip()) = l
if 0 == (int(l) % 4):
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s263582757
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b=map(int,input().split())
x = 10*g + b
if x%4 == 0 :
print("YES")
else
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s793668138
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
a, b, c = input.split()
num = a + b + c
num = int(num)
if num % 4 == 0:
print("YES")
else:
print("NO)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s982107930
|
Accepted
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = "".join(input().split())
print("YES" if int(s) % 4 == 0 else "NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s761149701
|
Accepted
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YNEOS"[int(input().replace(" ", "")) % 4 != 0 :: 2])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s703178498
|
Accepted
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = int(input()[::2])
print("NO" if s % 4 else "YES")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s507621858
|
Accepted
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YES" if int(input()[0::2]) % 4 == 0 else "NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s548438267
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
import sys
a = int(sys.argv[1])
an = a % 4 == 0 ? "YES" : "NO"
print(an)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s630298512
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YNEOS"[int("".join(list(input().split()))) % 4 :: 2])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s428904567
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print("YES" if eval(input().replace(" ", "+")) % 4 == 0 else "NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s021043904
|
Wrong Answer
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print(["No", "Yes"][int("".join(list(input().split()))[1:]) % 4 == 0])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s415482383
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r,g,b=map(int,input().split())
if (10*g + b)%4=0:
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s095218688
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
print(["YES", "NO"][int(input().replace(" ", "")) % 4])
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s790288617
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
s = input().split()
int(''.join(s)) % 4 == 0:
print("YES")
else:
print("NO")
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
If the three-digit integer is a multiple of 4, print `YES` (case-sensitive);
otherwise, print `NO`.
* * *
|
s199413142
|
Runtime Error
|
p03693
|
Input is given from Standard Input in the following format:
r g b
|
r, g, b = map(int, input().split())
if r*g*b % 4 ==0:
print("YES")
else:
print("NO)
|
Statement
AtCoDeer has three cards, one red, one green and one blue.
An integer between 1 and 9 (inclusive) is written on each card: r on the red
card, g on the green card and b on the blue card.
We will arrange the cards in the order red, green and blue from left to right,
and read them as a three-digit integer.
Is this integer a multiple of 4?
|
[{"input": "4 3 2", "output": "YES\n \n\n432 is a multiple of 4, and thus `YES` should be printed.\n\n* * *"}, {"input": "2 3 4", "output": "NO\n \n\n234 is not a multiple of 4, and thus `NO` should be printed."}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s645871236
|
Accepted
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
def cmb(n, r, mod):
if r < 0 or r > n:
return 0
r = min(r, n - r)
return g1[n] * g2[r] * g2[n - r] % mod
mod = 10**9 + 7 # 出力の制限
N = 10**4
g1 = [1, 1] # 元テーブル
g2 = [1, 1] # 逆元テーブル
inverse = [0, 1] # 逆元テーブル計算用テーブル
for i in range(2, N + 1):
g1.append((g1[-1] * i) % mod)
inverse.append((-inverse[mod % i] * (mod // i)) % mod)
g2.append((g2[-1] * inverse[-1]) % mod)
n, a, b = map(int, input().split())
ans = min(b, n * a)
print(ans)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s760063599
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
import sys
sys.setrecursionlimit(10**6)
def perm(n, k):
return fact[n] * ifact[n - k] % mod
def dfs(v, p):
global ans
for nv in link[v]:
if nv == p:
continue
dfs(nv, v)
# p = -1の時は根である。根も含めて塗り分け方を考えるので、
# n = K、c = 子の数+根の数で塗り分け方を求める
# 見るのが子の時はその上の頂点とその親が塗られているので、
# n = K-2、c = 子の数となる
if p == -1:
n = K
else:
n = K - 2
if p == -1:
k = len(link[v]) + 1
else:
k = len(link[v]) - 1
ans *= perm(n, k)
ans %= mod
N, K = map(int, input().split())
link = [[] for _ in range(N)]
for i in range(N - 1):
a, b = map(int, input().split())
link[a - 1].append(b - 1)
link[b - 1].append(a - 1)
mod = 10**9 + 7
ans = 1
fact = [0] * (10**5 + 1)
fact[0] = 1
fact[1] = 1
for i in range(2, 10**5 + 1):
fact[i] = fact[i - 1] * i
fact[i] %= mod
ifact = [0] * (10**5 + 1)
for i in range(10**5 + 1):
ifact[i] = pow(fact[i], mod - 2, mod)
ifact[i] %= mod
dfs(0, -1)
print(ans % mod)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s799273600
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
import sys
sys.setrecursionlimit(100000)
N, K = list(map(int, input().split()))
ab = []
for i in range(N - 1):
ab.append(list(map(int, input().split())))
ki = []
for i in range(N):
ki.append(dict())
ki[-1]["eda"] = []
for i in range(N - 1):
ki[ab[i][0] - 1]["eda"].append([ab[i][0] - 1, ab[i][1] - 1])
ki[ab[i][1] - 1]["eda"].append([ab[i][1] - 1, ab[i][0] - 1])
def P(m, n):
if m <= 0 or n <= 0:
return 0
else:
num = 1
for i in range(n):
num *= m - i
return num
def saiki(i, base, ki):
num = 1
eda_num = len(ki[i]["eda"]) - 1
if eda_num == 0:
return num
num *= P(K - 2, eda_num)
for edge in ki[i]["eda"]:
if edge[1] != base:
num *= saiki(edge[1], i, ki)
num = num % 1000000007
# print(num)
return num
total_num = K
if len(ki[0]["eda"]) != 0:
total_num *= P(K - 1, len(ki[0]["eda"]))
for edge in ki[0]["eda"]:
total_num *= saiki(edge[1], 0, ki)
total_num = total_num % 1000000007
if total_num == 0:
break
print(total_num)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s305118178
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
import queue
n, k = map(int, input().split())
edges = []
for _ in range(n - 1):
edges.append(list(map(int, input().split())))
mod = 10**9 + 7
edge_dict = {}
for i in range(1, n + 1):
edge_dict[i] = set()
for edge in edges:
edge_dict[edge[0]].add(edge[1])
edge_dict[edge[1]].add(edge[0])
visited = set()
q = queue.LifoQueue()
q.put(1)
while not q.empty():
node = q.get()
visited.add(node)
print("Visit %d" % node)
for child in edge_dict[node] - visited:
q.put(child)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s066712635
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
_input = [i for i in open(0).read().split("\n") if i]
n, k = [int(i) for i in _input[0].split()]
edge = tuple([tuple([int(p) for p in i.split()]) for i in _input[1:n]])
factorial = [0] * (k + 1)
inverse = [0] * (k + 1)
MOD = 1000000007
# Ref: http://keita-matsushita.hatenablog.com/entry/2016/12/05/175024
def mod_pow1(n, k, mod):
a = 1
while k:
if (k & 1) == 1:
a = (a * n) % mod
n = (n * n) % mod
k >>= 1
return a
# Ref: https://www.smartbowwow.com/2018/10/mod1097.html
def mod_pow2(n, k, mod):
if k == 0:
return 1
if k % 2 == 0:
a = mod_pow2(n, k // 2, mod)
return (a * a) % mod
else:
return (n * mod_pow2(n, k - 1, mod)) % mod
mod_pow = pow
def mod_factorial_inverse(k, mod):
factorial[0] = 1
inverse[0] = 1
# Ref: http://keita-matsushita.hatenablog.com/entry/2016/12/05/184011
for i in range(1, k + 1):
factorial[i] = (i * factorial[i - 1]) % mod # factrial[i]
inverse[i] = mod_pow(factorial[i], mod - 2, mod) # inverse[i]
if not edge:
print(k)
else:
all_edge = tuple([[] for _ in range(n + 1)])
for e in edge:
all_edge[e[0]].append(e[1])
all_edge[e[1]].append(e[0])
if [v for v in all_edge if len(v) >= k]:
print(0)
else:
mod_factorial_inverse(k, MOD)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s338507940
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
code = input()
print(
"Good"
if code[0] != code[1] and code[1] != code[2] and code[2] != code[3]
else "Bad"
)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s245272677
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
A = list(map(int, input().split()))
C = [t * i % 2019 for i in range((A[1])) for t in range((A[1]) + 1)]
D = sorted(C)
print(D[0])
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s399991213
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
inp = list(map(int, input().split()))
print(inp[0] * inp[1] + inp[2])
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s148984537
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
a, b, c = list(map(int, input().split(" ")))
print(max(a * b, c))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s501307670
|
Accepted
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
N, A, B = [int(elem) for elem in input().split()]
print(B if B < A * N else A * N)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s482478125
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
n = input("整数を入力してください:")
while n.isdigit() == False or int(n) < 1 or int(n) > 20:
print("Error")
n = input("整数を入力してください:")
else:
n = int(n)
n = int(n)
a = input("整数を入力してください:")
while a.isdigit() == False or int(a) < 1 or int(a) > 50:
print("Error")
a = input("整数を入力してください:")
else:
a = int(a)
a = int(a)
b = input("整数を入力してください:")
while b.isdigit() == False or int(b) < 1 or int(b) > 50:
print("Error")
b = input("整数を入力してください:")
else:
b = int(b)
b = int(b)
train = n * a
taxi = b
expense = [train, taxi]
print(min(expense))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s456254434
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
N, A, B = map(int, input().split())
ans = []
for i in range(1, N):
ans.append(A * i + B * (N - i))
print(min(ans))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s562217894
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
import math
n, d = input().split()
n = int(n)
d = int(d)
def combinations(n, r):
return math.factorial(n) / (math.factorial(n - r) * math.factorial(r))
x = []
if d == 1:
count = combinations(n, 2)
count = int(count)
else:
for i in range(n):
xa = [int(s) for s in input().split()]
x.append(xa)
a = []
for i in range(n - 1):
for j in range(i + 1, n):
t = []
for k in range(d):
c = (x[i][k] - x[j][k]) * (x[i][k] - x[j][k])
t.append(c)
if k == d - 1:
a.append(sum(t))
answer = list(map(lambda x: pow(x, 1 / 2), a))
count = 0
for l in range(n):
if answer[l].is_integer() == True:
count = count + 1
print(count)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s915732724
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
l, r = map(int, input().split())
L = l % 2019
R = r % 2019
min = 2020
if L > R:
R = R + 2019
for j in range(L + 1, R + 1):
for i in range(L, j):
if min > i * j % 2019:
min = i * j % 2019
print("{}".format(min))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s881403221
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
n = int(input())
x = list(map(int, input().split()))
import numpy as np
y = np.repeat([1, -1] * (n - 1))
y.append([1])
print(y)
for i in range(n):
if i % 2 != 0:
y[i] = -1
x2 = np.array(x).T
for i in range(n):
y2 = np.roll(y, i)
res = np.dot(y2, x2)
print(res)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s330470945
|
Accepted
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
a, d, g = map(int, input().split())
print(min(a * d, g))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s289539513
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
1
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s596488576
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
A, P = map(int, input().split())
print((A * 3 + P) // 2)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s186323541
|
Accepted
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
print((lambda n, a, b: min(n * a, b))(*[int(x) for x in input().split()]))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s809656169
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
n, A, B = map(int, input().split())
print(n * A if n * A > B else B)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s386960258
|
Runtime Error
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
a = list(map(int, input.split()))
print(min(a[0] * a[1], a[2]))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s079787090
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
N, A, B = map(int, input().split())
print(N)
print(A)
print(B)
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s909691576
|
Wrong Answer
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
def main(N, A, B):
if (N * A) > B:
return B
else:
return N * A
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print an integer representing the minimum total travel expense.
* * *
|
s999925043
|
Accepted
|
p02981
|
Input is given from Standard Input in the following format:
N A B
|
num = list(map(int, input().split()))
x = num[0] * num[1]
y = num[2]
nums = [x, y]
print(min(nums))
|
Statement
N of us are going on a trip, by train or taxi.
The train will cost each of us A yen (the currency of Japan).
The taxi will cost us a total of B yen.
How much is our minimum total travel expense?
|
[{"input": "4 2 9", "output": "8\n \n\nThe train will cost us 4 \\times 2 = 8 yen, and the taxi will cost us 9 yen, so\nthe minimum total travel expense is 8 yen.\n\n* * *"}, {"input": "4 2 7", "output": "7\n \n\n* * *"}, {"input": "4 2 8", "output": "8"}]
|
Print the price of the bowl of ramen corresponding to S.
* * *
|
s447955196
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print((7 + 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.
* * *
|
s229502290
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(100 * (7 + 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.
* * *
|
s985642737
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print((input().count("o") + 7) * 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.
* * *
|
s879254667
|
Wrong Answer
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(input().count("o") * 200 + 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.
* * *
|
s991536764
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
s=list(input())
print(700++s.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.
* * *
|
s376446034
|
Wrong Answer
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print("hello")
|
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.
* * *
|
s021131760
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print((input().count(o) + 7) * 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.
* * *
|
s909503008
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
s=list(input())
print(700+s.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.
* * *
|
s616401503
|
Wrong Answer
|
p03369
|
Input is given from Standard Input in the following format:
S
|
l = list(input())
print(700 + l.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.
* * *
|
s497975371
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
a = 700
b, c, d = map(str, input().strip())
number1 = str(b)
number2 = str(c)
number3 = str(d)
if number1 == "o":
a = a + 100
elif number1 == "x":
a
if number2 == "o":
a = a + 100
elif number2 == "x":
a
if number3 == "o":
a = a + 100
elif number3 == "x":
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.
* * *
|
s404491689
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
A = input()
cnt = 700
if A[0] == "o":
cnt += 100
if A[1] == "o":
cnt += 100
if A[2] == "o":
cnt += 100
print(cnt)
|
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.
* * *
|
s963470451
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI():
return list(map(int, stdin.readline().split()))
def LF():
return list(map(float, stdin.readline().split()))
def LI_():
return list(map(lambda x: int(x) - 1, stdin.readline().split()))
def II():
return int(stdin.readline())
def IF():
return float(stdin.readline())
def LS():
return list(map(list, stdin.readline().split()))
def S():
return list(stdin.readline().rstrip())
def IR(n):
return [II() for _ in range(n)]
def LIR(n):
return [LI() for _ in range(n)]
def FR(n):
return [IF() for _ in range(n)]
def LFR(n):
return [LI() for _ in range(n)]
def LIR_(n):
return [LI_() for _ in range(n)]
def SR(n):
return [S() for _ in range(n)]
def LSR(n):
return [LS() for _ in range(n)]
mod = 1000000007
inf = float("INF")
# A
def A():
s = S()
a = s.count("o")
print(700 + a * 100)
return
# B
def B():
return
# C
def C():
return
# D
def D():
return
# E
def E():
return
# F
def F():
return
# G
def G():
return
# H
def H():
return
# Solve
if __name__ == "__main__":
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.
* * *
|
s179220796
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
#!/usr/bin/env python3
import sys
# import time
# import math
# import numpy as np
# import scipy.sparse.csgraph as cs # csgraph_from_dense(ndarray, null_value=inf), bellman_ford(G, return_predecessors=True), dijkstra, floyd_warshall
# import random # random, uniform, randint, randrange, shuffle, sample
# import string # ascii_lowercase, ascii_uppercase, ascii_letters, digits, hexdigits
# import re # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from collections import deque # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict # subclass of dict. defaultdict(facroty)
# from collections import Counter # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from datetime import date, datetime # date.today(), date(year,month,day) => date obj; datetime.now(), datetime(year,month,day,hour,second,microsecond) => datetime obj; subtraction => timedelta obj
# from datetime.datetime import strptime # strptime('2019/01/01 10:05:20', '%Y/%m/%d/ %H:%M:%S') returns datetime obj
# from datetime import timedelta # td.days, td.seconds, td.microseconds, td.total_seconds(). abs function is also available.
# from copy import copy, deepcopy # use deepcopy to copy multi-dimentional matrix without reference
# from functools import reduce # reduce(f, iter[, init])
# from functools import lru_cache # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product, permutations # product(iter, repeat=n), permutations(iter[,r])
# from itertools import combinations, combinations_with_replacement
# from itertools import accumulate # accumulate(iter[, f])
# from operator import itemgetter # itemgetter(1), itemgetter('key')
# from fractions import gcd # for Python 3.4 (previous contest @AtCoder)
def main():
mod = 1000000007 # 10^9+7
inf = float("inf") # sys.float_info.max = 1.79...e+308
# inf = 2 ** 64 - 1 # (for fast JIT compile in PyPy) 1.84...e+19
sys.setrecursionlimit(10**6) # 1000 -> 1000000
def input():
return sys.stdin.readline().rstrip()
def ii():
return int(input())
def mi():
return map(int, input().split())
def mi_0():
return map(lambda x: int(x) - 1, input().split())
def lmi():
return list(map(int, input().split()))
def lmi_0():
return list(map(lambda x: int(x) - 1, input().split()))
def li():
return list(input())
s = input()
print(700 + 100 * s.count("o"))
if __name__ == "__main__":
main()
|
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.
* * *
|
s983130247
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
# vim: fileencoding=utf-8
def main():
s = input()
p = 700
if s[0] == 'o';
p += 100
if s[1] == 'o';
p += 100
if s[2] == 'o';
p += 100
print(p)
if __name__ == '__main__':
main()
|
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.
* * *
|
s402721288
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String S = scan.nextLine();
int v = 700;
for(int i = 0; i < S.length(); i++){
if(S.charAt(i) == 'o'){
v += 100;
}
}
System.out.println(v);
}
}
|
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.
* * *
|
s147843594
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
N, X = list(map(int, input().split()))
M = [int(input()) for i in range(N)]
diff = X - sum(M)
print(N + diff // min(M))
|
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.
* * *
|
s410140749
|
Wrong Answer
|
p03369
|
Input is given from Standard Input in the following format:
S
|
qqq = list(input())
List_R = []
if qqq[0] == "○":
List_R.append(1)
if qqq[1] == "○":
List_R.append(1)
if qqq[2] == "○":
List_R.append(1)
print(700 + len(List_R * 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.
* * *
|
s270131260
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
to = list(input())
counter = 0
if to[0] == "o":
counter += 1
if to[1] == "o":
counter += 1:
if to[2] == "o":
counter += 1:
price = 700 + 100 * int(counter)
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.
* * *
|
s799108430
|
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.
* * *
|
s101784769
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
a=input()
b=list(a)
print(b)
x=700
if b[0]==o:
x=x+100
if b[1]==o:
x=x+100
if b[2]==o:
x=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.
* * *
|
s824525377
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
n = input()
count = 0
for i in n:
if i == "×":
break
else:
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.
* * *
|
s265564937
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
string = input()
strList = [i for i in string]
topping = strList.count("o")
print(700 + 100 * topping)
|
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.
* * *
|
s921440139
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
s=input()
c=0
if(s[0]=='o')c+=700
if(s[1]=='o')c+=100
if(s[2]=='o')c+=100
print(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.
* * *
|
s331672588
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
s = str(input())
for i in range(s):
if i == "○":
count +=
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.
* * *
|
s846486257
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
S = int(input(y))
y = 700 + 100 * o
print(y.count(o) * 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.
* * *
|
s276819231
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(list(input()).count("o") * 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.
* * *
|
s163156868
|
Accepted
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(1000 - 100 * input().count("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.
* * *
|
s832619036
|
Runtime Error
|
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.
* * *
|
s663921145
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(700 + int(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.
* * *
|
s410599336
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(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.
* * *
|
s940827681
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
xxx
|
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.
* * *
|
s682019866
|
Wrong Answer
|
p03369
|
Input is given from Standard Input in the following format:
S
|
#
s = 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.
* * *
|
s032633118
|
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.
* * *
|
s326953456
|
Runtime Error
|
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.
* * *
|
s821581677
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
s=input()
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.
* * *
|
s489521335
|
Runtime Error
|
p03369
|
Input is given from Standard Input in the following format:
S
|
print(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."}]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.