s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s123602746 | p04011 | u030110634 | 1472756075 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 82 | N,K,X,Y = [int(input()) for _ in range(4)]
print(N*X if N-K < 0 else K*X+(N-K)*Y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,571 |
s968969271 | p04011 | u886545507 | 1472736357 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 141 | #ABC044A
n=int(raw_input())
k=int(raw_input())
x=int(raw_input())
y=int(raw_input())
if n<=k:
res=x*n
elif n>k:
res=x*k+(n-k)*y
print res
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,572 |
s489904965 | p04011 | u123849480 | 1472685423 | Python | Python (3.4.3) | py | Accepted | 40 | 3064 | 126 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
if n > k:
print(x*k + y*(n - k))
else:
print(x*n) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,573 |
s730343601 | p04011 | u991506065 | 1472676715 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 175 | if __name__ == '__main__':
N = input()
K = input()
X = input()
Y = input()
if(N <= K):
print (N * X)
else :
print (K * X) + ((N-K) * Y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,574 |
s852953973 | p04011 | u411544692 | 1472616085 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 131 | N = input()
K = input()
X = input()
Y = input()
ix = min(K, N)
iy = max(0, N-K)
payment = ix * X + iy * Y
print payment#, ix, iy
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,575 |
s036218595 | p04011 | u226155577 | 1472612252 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 77 | n = input()
k = input()
print input()*n if n<=k else input()*k+input()*(n-k)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,576 |
s416104640 | p04011 | u742897895 | 1472608636 | Python | Python (3.4.3) | py | Accepted | 41 | 3064 | 167 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
ans = 0
for i in range(n):
if i >= k:
ans += y
else:
ans += x
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,577 |
s003150716 | p04011 | u474821089 | 1472580135 | Python | Python (3.4.3) | py | Accepted | 42 | 3064 | 132 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(K * X + ((N-K) * Y))
else:
print(N * X) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,578 |
s180368657 | p04011 | u163073599 | 1472570029 | Python | Python (3.4.3) | py | Accepted | 40 | 3064 | 95 | n,k,x,y = [int(input()) for _ in range(4)]
print(str(sum([x if z<k else y for z in range(n)]))) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,579 |
s757046726 | p04011 | u591287669 | 1472564758 | Python | Python (3.4.3) | py | Accepted | 40 | 3064 | 91 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
print(min(n,k)*x+max(n-k,0)*y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,580 |
s415574733 | p04011 | u461954362 | 1472559367 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 194 | #!/usr/bin/env python
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N >= K:
total = X * K
else:
total = X * N
N -= K
if N > 0:
total += N * Y
print(total)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,581 |
s053832539 | p04011 | u088454437 | 1472534238 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 172 | k = int(raw_input())
n = int(raw_input())
x = int(raw_input())
y = int(raw_input())
total = 0
if k <= n:
total = x * k
else:
total = (k - n) * y + n * x
print total | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,582 |
s757877029 | p04011 | u453847760 | 1472492995 | Python | Python (2.7.6) | py | Accepted | 46 | 3292 | 521 | from Queue import * # Queue, LifoQueue, PriorityQueue
from bisect import * #bisect, insort
from collections import * #deque, Counter,OrderedDict,defaultdict
#set([])
import math
import copy
import itertools
import string
import sys
myread = lambda : map(int,raw_input().split())
def solver():
N = int(raw_input())
... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,583 |
s172611776 | p04011 | u830390742 | 1472478272 | Python | Python (2.7.6) | py | Accepted | 28 | 2568 | 78 | n, k, x, y = [input() for _ in range(4)]
print x * min(n, k) + y * max(n-k, 0) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,584 |
s237360727 | p04011 | u579875569 | 1472472907 | Python | Python (3.4.3) | py | Accepted | 41 | 3064 | 119 | #/usr/bin/python3
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
print(X*min(N,K)+Y*max(0,N-K))
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,585 |
s791814573 | p04011 | u010733367 | 1472459281 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 119 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = min(K, N) * X + max(N - K, 0) * Y
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,586 |
s615781699 | p04011 | u024612773 | 1472451877 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 96 | n,k,x,y=[int(input()),int(input()),int(input()),int(input())]
print(min(n,k)*x + (n-min(n,k))*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,587 |
s527328825 | p04011 | u352021237 | 1472442265 | Python | PyPy2 (5.6.0) | py | Accepted | 62 | 8816 | 105 | n=int(raw_input())
k=int(raw_input())
x=int(raw_input())
y=int(raw_input())
print x*min(n,k)+y*max(0,n-k) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,588 |
s398071007 | p04011 | u124139453 | 1472439573 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 100 | n = input()
k = input()
x = input()
y = input()
if k >= n:
print n*x
else:
print k*x+(n-k)*y | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,589 |
s140021087 | p04011 | u385672078 | 1472437056 | Python | Python (3.4.3) | py | Accepted | 36 | 3064 | 152 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
res = 0
if n <= k:
res = x * n
else:
res = x * k + y * (n - k)
print(res)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,590 |
s793761268 | p04011 | u495677768 | 1472436398 | Python | Python (3.4.3) | py | Accepted | 40 | 3316 | 383 | '''
Created on 2016/08/28
@author: diyosko7
'''
if __name__ == '__main__':
n = 4
input_lines = [int(input()) for i in range(n)]
N = int(input_lines[0])
K = int(input_lines[1])
X = int(input_lines[2])
Y = int(input_lines[3])
SUM = 0
for i in range(0,N):
if i < K:
... | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,591 |
s303362211 | p04011 | u429995021 | 1472435353 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 116 | N = input()
K = input()
X = input()
Y = input()
if N > K:
res = K*X + (N-K)*Y
else:
res = N*X
print(res)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,592 |
s576199371 | p04011 | u077080573 | 1472435149 | Python | Python (3.4.3) | py | Accepted | 41 | 3064 | 170 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans=0
for i in range(1,N+1):
if i <= K:
ans += X
else:
ans += Y
print(ans)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,593 |
s377016813 | p04011 | u107077660 | 1472434803 | Python | Python (3.4.3) | py | Accepted | 37 | 3064 | 128 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
a = X * K + Y * (N - K)
else:
a = X * N
print(a) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,594 |
s298462866 | p04011 | u135616177 | 1472434670 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 130 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
print(X * K + Y * (N-K))
else:
print(X * N)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,595 |
s009344557 | p04011 | u442810826 | 1472434088 | Python | Python (2.7.6) | py | Accepted | 26 | 2568 | 157 | N=int(raw_input())
K=int(raw_input())
X=int(raw_input())
Y=int(raw_input())
price = 0
if N>K:
price = X*K + Y*(N-K)
else:
price = X*N
print price
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,596 |
s810943355 | p04011 | u864930592 | 1472433974 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 166 | # coding: utf-8
n = 0
k = 0
x = 0
y = 0
t = 0
n = input()
k = input()
x = input()
y = input()
if n <= k:
print(n*x);
else:
t = n - k
print((t*y) + (k*x)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,597 |
s536558430 | p04011 | u161703388 | 1472433849 | Python | Python (3.4.3) | py | Accepted | 38 | 3064 | 190 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N > K:
X_Day = K
Y_Day = N - K
else:
X_Day = N
Y_Day = 0
Price = X * X_Day + Y * Y_Day
print(Price)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,598 |
s961682979 | p04011 | u046672878 | 1472433683 | Python | Python (3.4.3) | py | Accepted | 41 | 3188 | 176 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
price = 0
for i in range(n):
if i < k :
price += x
else :
price += y
print(price) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,599 |
s841295009 | p04011 | u562283476 | 1472433657 | Python | Python (3.4.3) | py | Accepted | 38 | 3188 | 139 | l = []
for i in range(4):
l.append(int(input()))
if l[0]-l[1] < 0:
print(l[0] * l[2])
else:
print(l[1]*l[2] + (l[0]-l[1])*l[3]) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,600 |
s859216081 | p04011 | u177721681 | 1472433595 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 243 | import sys
N = int(sys.stdin.readline())
K = int(sys.stdin.readline())
X = int(sys.stdin.readline())
Y = int(sys.stdin.readline())
#X* K + Y * (N-K)
# if N > K
#X * K
# if N < K
if N > K :
print X* K + Y *(N-K)
else:
print X*N | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,601 |
s881267033 | p04011 | u177721681 | 1472433594 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 243 | import sys
N = int(sys.stdin.readline())
K = int(sys.stdin.readline())
X = int(sys.stdin.readline())
Y = int(sys.stdin.readline())
#X* K + Y * (N-K)
# if N > K
#X * K
# if N < K
if N > K :
print X* K + Y *(N-K)
else:
print X*N | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,602 |
s594328383 | p04011 | u846552659 | 1472433505 | Python | Python (3.4.3) | py | Accepted | 43 | 3064 | 217 | # -*- coding: utf-8 -*-
N = int(input())
K = int(input())
X = int(input())
Y = int(input())
answer = 0
counter = 1
while counter <= N:
if(counter <= K):
answer += X
else:
answer += Y
counter += 1
print (answer) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,603 |
s986350669 | p04011 | u776270419 | 1472433479 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 88 | n, k, x, y = [int(input()) for i in range(4)]
print(min(k, n) * x + max(n - k, 0) * y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,604 |
s286739846 | p04011 | u712335892 | 1472433475 | Python | Python (3.4.3) | py | Accepted | 42 | 3064 | 144 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
if N < K:
ans = (N * X)
else:
ans = (K * X) + ((N-K) * Y)
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,605 |
s363159080 | p04011 | u966695411 | 1472433421 | Python | Python (3.4.3) | py | Accepted | 40 | 3064 | 163 | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
for i in range(N):
if i < K:
ans += X
else:
ans += Y
print(ans) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,606 |
s232322385 | p04011 | u552668967 | 1472433128 | Python | Python (2.7.6) | py | Accepted | 25 | 2568 | 248 | # Enter your code here. Read input from STDIN. Print output to STDOUT
from sys import stdin
n = int(stdin.readline())
k = int(stdin.readline())
x = int(stdin.readline())
y = int(stdin.readline())
if n<=k:
print n*x
else:
print k*x + (n-k)*y | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,607 |
s935121388 | p04011 | u941268675 | 1472433014 | Python | Python (2.7.6) | py | Accepted | 27 | 2568 | 87 | n = input()
k = input()
x = input()
y = input()
print n*x if n <= k else x*k + y*(n-k) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,608 |
s998684773 | p04011 | u257374434 | 1472432885 | Python | Python (3.4.3) | py | Accepted | 40 | 3188 | 121 | N= int(input())
K= int(input())
X= int(input())
Y= int(input())
if N <= K:
print(N*X)
else:
print(K*X+(N-K)*Y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,609 |
s772590209 | p04011 | u824147251 | 1472432856 | Python | Python (3.4.3) | py | Accepted | 42 | 3188 | 107 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
print(n*x if n <= k else k*x + (n-k)*y) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,610 |
s879784602 | p04011 | u393971002 | 1472432801 | Python | Python (3.4.3) | py | Accepted | 39 | 3188 | 169 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
cost = 0
if n >= k:
cost += k * x
cost += (n - k) * y
else:
cost += n * x
print(cost)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,611 |
s830459717 | p04011 | u786082266 | 1472432723 | Python | Python (2.7.6) | py | Accepted | 26 | 2572 | 104 | a = input()
b = input()
c = input()
d = input()
if a > b:
print c * b + d * (a - b)
else:
print c * a | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,612 |
s621354623 | p04011 | u732844340 | 1472432654 | Python | Python (3.4.3) | py | Accepted | 42 | 3316 | 169 | n = int(input())
k = int(input())
x = int(input())
y = int(input())
sum = 0
for i in range(1,n+1):
if i > k:
sum += y
else:
sum += x
print(sum) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,613 |
s331085832 | p04011 | u123756661 | 1472432646 | Python | Python (2.7.6) | py | Accepted | 26 | 2568 | 109 | n=int(raw_input())
k=int(raw_input())
x=int(raw_input())
y=int(raw_input())
print x*(min(k,n))+y*(max(n-k,0)) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,614 |
s305888567 | p04011 | u821262411 | 1472432645 | Python | Python (3.4.3) | py | Accepted | 45 | 3188 | 115 | n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<= k:
print(x*n)
else:
print(x*k+(n-k)*y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,615 |
s730213796 | p04011 | u277373937 | 1472432643 | Python | Python (2.7.6) | py | Accepted | 27 | 2700 | 146 | N = int(raw_input())
K = int(raw_input())
X = int(raw_input())
Y = int(raw_input())
if N <= K:
print X * N
else:
print X * K + Y * (N - K) | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,616 |
s485261796 | p04011 | u496694349 | 1472432635 | Python | Python (3.4.3) | py | Accepted | 39 | 3188 | 222 | from sys import stdin
n = int(stdin.readline())
k = int(stdin.readline())
x = int(stdin.readline())
y = int(stdin.readline())
first = min(n, k)
second = n - k
if second < 0:
second = 0
print(x * first + y * second)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,617 |
s722148167 | p04011 | u758661720 | 1472432592 | Python | Python (2.7.6) | py | Accepted | 30 | 2948 | 127 | n = input()
k = input()
x = input()
y = input()
sum = 0
for i in range(n):
if(i<k): sum += x
else: sum += y
print sum | p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,618 |
s258617344 | p04011 | u392220578 | 1472432515 | Python | Python (3.4.3) | py | Accepted | 39 | 3064 | 93 | n, k, x, y = [int(input()) for _ in range(4)]
print(n * x if n < k else k * x + (n - k) * y)
| p04011 | <span class="lang-en">
<p>Score : <var>100</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>There is a hotel with the following accommodation fee:</p>
<ul>
<li><var>X</var> yen (the currency of Japan) per night, for the first <var>K</var> nights</li>
<li><var>Y</var> yen per night, for the <va... | 5
3
10000
9000
| 48000
| 1,197,619 |
s027039579 | p04012 | u972591645 | 1601510625 | Python | Python (3.8.2) | py | Accepted | 28 | 9408 | 147 | from collections import Counter
w = input()
c = Counter(w)
for i in c.values():
if i % 2 != 0:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,620 |
s449479248 | p04012 | u209275335 | 1601446464 | Python | Python (3.8.2) | py | Accepted | 25 | 9108 | 164 | li = [0]*26
w = input()
for i in range(len(w)):
li[ord(w[i])-97] += 1
for i in range(26):
if li[i] % 2 == 1:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,621 |
s576321342 | p04012 | u244434589 | 1601428957 | Python | Python (3.8.2) | py | Accepted | 27 | 8924 | 140 | w = input()
l = [chr(ord("a")+i) for i in range(26)]
for i in l:
if w.count(i) % 2 != 0:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,622 |
s923679911 | p04012 | u047197186 | 1601427794 | Python | Python (3.8.2) | py | Accepted | 29 | 9152 | 145 | w = input()
import collections as c
counts = c.Counter(w)
if all(elem % 2 == 0 for elem in counts.values()):
print('Yes')
else:
print('No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,623 |
s192139356 | p04012 | u453630968 | 1601221590 | Python | Python (3.8.2) | py | Accepted | 26 | 9316 | 145 | import collections
s = input()
l = collections.Counter(s)
for i in l.values():
if i % 2 != 0:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,624 |
s932233115 | p04012 | u476068053 | 1601176833 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61904 | 367 | def main():
w = input()
d = dict()
for i in range(len(w)):
if (w[i] in d):
d[w[i]] += 1
else:
d[w[i]] = 1
correct = 0
for v in d.values():
if v % 2 == 0:
correct += 1
if correct == len(d):
print("Yes")
else:
print... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,625 |
s811241483 | p04012 | u521323621 | 1601172825 | Python | Python (3.8.2) | py | Accepted | 27 | 8852 | 181 | w = input()
ans = True
for i in w:
cnt = 0
for j in w:
if i == j:
cnt += 1
if cnt % 2 != 0:
ans = False
break
if ans:
print("Yes")
else:
print("No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,626 |
s145143219 | p04012 | u556358547 | 1601170876 | Python | PyPy3 (7.3.0) | py | Accepted | 65 | 61932 | 713 | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(w: str):
base = ord('a')
b = [0] * 26
for s in w:
b[ord(s)- base] += 1
for i in b:
if i % 2 != 0:
print(NO)
return
print(YES)
return
# Generated by 1.1.7.1 ht... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,627 |
s022237514 | p04012 | u197273335 | 1601101547 | Python | Python (3.8.2) | py | Accepted | 25 | 9088 | 198 | W = input()
s = list(set(W))
l = len(s)
for i in range(l):
for a in s[i]:
if W.count(a)%2 == 1:
print("No")
exit()
else:
break
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,628 |
s398149427 | p04012 | u834832056 | 1601069667 | Python | Python (3.8.2) | py | Accepted | 33 | 9740 | 219 | import string
w = list(map(str, input()))
ans = ""
alp = list(map(str, string.ascii_lowercase))
for char in alp:
if w.count(char) % 2 == 0:
ans = "Yes"
else:
ans = "No"
break
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,629 |
s199740612 | p04012 | u113107956 | 1600998189 | Python | Python (3.8.2) | py | Accepted | 24 | 9036 | 203 | w=input()
l=[0 for _ in range(26)]
Flag=True
for i in w:
num=ord(i)-97
#print(num)
l[num]+=1
for i in l:
if i%2==1:
Flag=False
if Flag:
print('Yes')
else:
print('No')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,630 |
s878982229 | p04012 | u161778051 | 1600966771 | Python | Python (3.8.2) | py | Accepted | 27 | 8964 | 207 | w = input()
char_map = { c: 0 for c in w }
for c in w:
char_map[c] += 1
flag = True
for val in char_map.values():
if val % 2 != 0:
flag = False
break
print('Yes' if flag else 'No')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,631 |
s477588195 | p04012 | u708211626 | 1600944339 | Python | Python (3.8.2) | py | Accepted | 21 | 9080 | 105 | a=input();b=set(a)
for i in b:
if a.count(i) % 2 != 0:
print('No')
exit()
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,632 |
s628230043 | p04012 | u085334230 | 1600919309 | Python | Python (3.8.2) | py | Accepted | 27 | 9072 | 184 | w = input()
f = True
for i in w:
c = 0
for k in w:
if i == k:
c += 1
if c % 2 != 0:
f = False
if not f:
print("No")
else:
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,633 |
s808304413 | p04012 | u833416137 | 1600895103 | Python | PyPy3 (7.3.0) | py | Accepted | 73 | 61776 | 168 | w = input()
count = [0] * 27
for i in range(len(w)):
count[ord(w[i])-97] += 1
for i in range(len(count)):
if count[i] % 2 != 0:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,634 |
s975098556 | p04012 | u465652095 | 1600889457 | Python | Python (3.8.2) | py | Accepted | 33 | 9288 | 167 | import collections
w = list(input())
c = collections.Counter(w)
tmp = list(c.values())
for i in tmp:
if i % 2 == 1:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,635 |
s408706851 | p04012 | u113835532 | 1600828459 | Python | Python (3.8.2) | py | Accepted | 32 | 9400 | 277 | from collections import Counter
def answer(w: str) -> str:
counts = Counter(w).values()
for count in counts:
if count % 2 == 1:
return 'No'
return 'Yes'
def main():
w = input()
print(answer(w))
if __name__ == '__main__':
main()
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,636 |
s083419089 | p04012 | u097700948 | 1600795328 | Python | Python (3.8.2) | py | Accepted | 26 | 8908 | 181 | W = input()
ans = 'Yes'
if len(W)%2 == 0:
W_ele = set([w for w in W])
for w in W_ele:
if W.count(w) % 2 == 1:
ans = 'No'
else:
ans = 'No'
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,637 |
s499504747 | p04012 | u910632349 | 1600783223 | Python | Python (3.8.2) | py | Accepted | 27 | 9096 | 168 | w=input()
di={}
for i in w:
if i in di:
di[i]+=1
else:
di[i]=1
for i in di.values():
if i&1:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,638 |
s606618792 | p04012 | u045505231 | 1600762123 | Python | Python (3.8.2) | py | Accepted | 30 | 9120 | 270 | import math
from datetime import date
def main():
s = input()
a = [0 for i in range(26)]
for c in s:
a[ord(c) - ord('a')] += 1
ok = 'True'
for i in range(26):
if a[i] % 2 == 1:
ok = 'False'
if ok == 'True':
print("Yes")
else:
print("No")
main()
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,639 |
s568394926 | p04012 | u000513658 | 1600740468 | Python | Python (3.8.2) | py | Accepted | 28 | 9292 | 193 | from collections import Counter
w = input()
w = Counter(w)
result = 'Yes'
for v in w.values():
if v % 2 == 0:
continue
else:
result = 'No'
break
print(result) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,640 |
s963954900 | p04012 | u367397360 | 1600730436 | Python | Python (3.8.2) | py | Accepted | 28 | 9040 | 171 | w = input()
x = set(w)
y = []
for i in x:
y.append(w.count(i))
for j in y:
if j%2 == 0:
continue
else:
print("No")
exit()
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,641 |
s831945303 | p04012 | u825685913 | 1600702933 | Python | Python (3.8.2) | py | Accepted | 27 | 8972 | 140 | w = input()
while len(w) > 0:
a = w[0]
if w.count(a)%2 != 0:
print("No")
exit()
w = w.replace(a,"")
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,642 |
s004737379 | p04012 | u348216768 | 1600609566 | Python | Python (3.8.2) | py | Accepted | 28 | 9044 | 176 | import sys
w=input()
count={}
for i in w:
count.setdefault(i,0)
count[i]+=1
for j in count.values():
if j%2!=0:
print('No')
sys.exit()
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,643 |
s897863143 | p04012 | u805011545 | 1600574625 | Python | Python (3.8.2) | py | Accepted | 29 | 9348 | 183 | import collections
w = list(input())
wc = collections.Counter(w)
num = 0
for i, x in enumerate(wc):
if(wc[x]%2==0):
num += 1
if(num==len(wc)):
print('Yes')
else:
print('No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,644 |
s215600703 | p04012 | u749491107 | 1600552797 | Python | Python (3.8.2) | py | Accepted | 26 | 9008 | 256 | w = input()
a = 0
for i in range(97, 124):
cnt = 0
for j in w:
if j == chr(i):
cnt += 1
if cnt%2 != 0:
print("No")
break
else:
a += 1
if a == 27:
print("Yes")
break | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,645 |
s369617592 | p04012 | u546853743 | 1600531096 | Python | Python (3.8.2) | py | Accepted | 27 | 9096 | 134 | w=input()
a=list('abcdefghijklmnopqrstuvwxyz')
for A in a:
if w.count(A) % 2 == 1:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,646 |
s917797431 | p04012 | u572032237 | 1600506142 | Python | Python (3.8.2) | py | Accepted | 28 | 9044 | 306 | w = input()
ans = 'Yes'
if len(w) % 2 == 1:
ans = 'No'
else:
s = sorted(w)
count = 1
for i in range(1, len(s)):
if s[i] == s[i - 1]:
count += 1
else:
if count % 2 == 1:
ans = 'No'
break
count = 1
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,647 |
s036528976 | p04012 | u698868214 | 1600486316 | Python | Python (3.8.2) | py | Accepted | 26 | 9044 | 159 | w = input()
alpha = "abcdefghijklmnopqrstuvwxyz"
check = True
for a in alpha:
if w.count(a) % 2 == 1:
check = False
print("Yes" if check else "No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,648 |
s857868845 | p04012 | u555587832 | 1600457580 | Python | Python (3.8.2) | py | Accepted | 32 | 9168 | 175 | import collections
w = list(str(input()))
l = collections.Counter(w)
s = set(w)
for i in s:
if int(l[i])%2 != 0:
print('No')
break
else:
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,649 |
s674498456 | p04012 | u347397127 | 1600411806 | Python | PyPy3 (7.3.0) | py | Accepted | 60 | 61864 | 93 | S=input()
for s in S:
if S.count(s) %2 == 1:
print("No")
break
else:
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,650 |
s913724953 | p04012 | u391589398 | 1600396032 | Python | Python (3.8.2) | py | Accepted | 31 | 9172 | 156 | w = input()
from collections import Counter
wc = Counter(w)
for c in wc.values():
if c%2 == 1:
print('No')
break
else:
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,651 |
s605657271 | p04012 | u344959959 | 1600370729 | Python | Python (3.8.2) | py | Accepted | 28 | 9032 | 184 | a = input()
dic = {}
for i in a:
if i in dic:
dic[i] += 1
else:
dic[i] = 1
for i in dic:
if dic[i] % 2 != 0:
print("No")
exit()
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,652 |
s087438666 | p04012 | u125269142 | 1600314832 | Python | Python (3.8.2) | py | Accepted | 31 | 8944 | 161 | w = input()
w_list = [a for a in w]
w_set = set(w_list)
ans = 'Yes'
for i in w_set:
if w_list.count(i)%2 != 0:
ans = 'No'
break
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,653 |
s307804905 | p04012 | u794521826 | 1600225301 | Python | Python (3.8.2) | py | Accepted | 33 | 9028 | 203 | w = input()
dic = {}
for c in w:
if c not in dic:
dic[c] = 1
else:
dic[c] += 1
for key in dic:
if dic[key] % 2 != 0:
print("No")
exit()
print("Yes")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,654 |
s256421863 | p04012 | u014139588 | 1600207210 | Python | Python (3.8.2) | py | Accepted | 27 | 9152 | 400 | w = input()
wl = []
for i in range(len(w)):
wl.append(w[i])
wl.sort()
a = 1
judge = 1
if len(w)%2 == 0:
for n in range(len(w)-1):
if wl[a+n] == wl[a+n-1]:
judge += 1
else:
if judge%2 != 0:
print("No")
exit()
else:
judge = 1
if n == len(w)-2:
if judge%... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,655 |
s116468336 | p04012 | u612975321 | 1600188282 | Python | Python (3.8.2) | py | Accepted | 28 | 8980 | 194 | s = input()
d = {}
for i in range(len(s)):
if s[i] in d:
d[s[i]] += 1
else:
d[s[i]] = 1
for v in d.values():
if v % 2:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,656 |
s210905524 | p04012 | u317508154 | 1600153263 | Python | Python (3.8.2) | py | Accepted | 25 | 8968 | 240 | data = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
w = input()
for i in range(26):
if w.count(data[i]) % 2 != 0:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,657 |
s337911291 | p04012 | u318427318 | 1600128414 | Python | Python (3.8.2) | py | Accepted | 30 | 9004 | 493 | #-*-coding:utf-8-*-
import sys
input=sys.stdin.readline
def main():
S = input().rstrip()
s_dict={}
for s in S:
if s not in s_dict:
tmp={s:1}
s_dict.update(tmp)
else:
count=s_dict[s]
count+=1
s_dict[s]=count
for i,v in s_d... | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,658 |
s099324680 | p04012 | u395672550 | 1600021566 | Python | Python (3.8.2) | py | Accepted | 25 | 9028 | 196 | w = str(input())
L = []
for i in w:
L.append(i)
if len(L) % 2 == 1:
print('No')
exit()
L.sort()
for j in range(0,len(L),2):
if L[j] != L[j + 1]:
print('No')
exit()
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,659 |
s463973961 | p04012 | u771167374 | 1599982602 | Python | Python (3.8.2) | py | Accepted | 24 | 9024 | 114 | w = input()
for i in range(len(w)):
if w.count(w[i]) % 2 == 1:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,660 |
s063994225 | p04012 | u365156087 | 1599949357 | Python | Python (3.8.2) | py | Accepted | 31 | 9252 | 151 | import collections
S = list(input())
D = collections.Counter(S)
ans = 'Yes'
for v in D.values():
if v % 2 != 0:
ans = 'No'
break
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,661 |
s506925694 | p04012 | u022215787 | 1599924275 | Python | Python (3.8.2) | py | Accepted | 25 | 9076 | 207 | w = input()
d = {}
for i in list(w):
if i not in d.keys():
d[i] = 1
else:
d[i] += 1
ans = 'Yes'
for _, v in d.items():
if v%2 != 0:
ans = 'No'
break
print(ans)
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,662 |
s308147699 | p04012 | u666550725 | 1599882539 | Python | PyPy3 (7.3.0) | py | Accepted | 63 | 61860 | 138 | w = input()
X = [0 for i in range(26)]
for i in range(len(w)):
X[ord(w[i]) - 97] ^= 1
if sum(X) == 0:
print("Yes")
else:
print("No") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,663 |
s806258032 | p04012 | u242580186 | 1599874120 | Python | Python (3.8.2) | py | Accepted | 31 | 9348 | 170 | import collections
w = list(input())
cnt = collections.Counter(w)
ans = "Yes"
for v in cnt.values():
if v%2!=0:
ans = "No"
break
print(ans)
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,664 |
s406991417 | p04012 | u703823201 | 1599855937 | Python | Python (3.8.2) | py | Accepted | 30 | 9248 | 169 | import collections
w = list(input())
cnt = collections.Counter(w)
ans = "Yes"
for v in cnt.values():
if v%2!=0:
ans = "No"
break
print(ans) | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,665 |
s806572476 | p04012 | u630211216 | 1599830602 | Python | Python (3.8.2) | py | Accepted | 27 | 9092 | 155 | w=input()
S="abcdefghijklmnopqrstuvwxyz"
flag=True
for c in S:
if w.count(c)%2==1:
flag=False
if flag:
print("Yes")
else:
print("No")
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,666 |
s320727454 | p04012 | u759109971 | 1599753682 | Python | Python (3.8.2) | py | Accepted | 28 | 9132 | 314 | w = str(input())
data1 = []
for i in range(len(w)):
data1.append(w[i])
data2 = []
for i in range(len(w)):
if not w[i] in data2:
data2.append(w[i])
error = 0
for x in data2:
if data1.count(x) % 2 != 0:
error += 1
break
if error == 0:
print('Yes')
else:
print('No') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,667 |
s134325544 | p04012 | u821251381 | 1599714473 | Python | Python (3.8.2) | py | Accepted | 28 | 8972 | 124 | S = input()
P = set()
for s in S:
if s not in P and S.count(s)%2 != 0:
print("No")
exit()
P.add(s)
print("Yes") | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,668 |
s730298725 | p04012 | u794544096 | 1599708496 | Python | PyPy3 (7.3.0) | py | Accepted | 69 | 61776 | 141 | w = input()
s = list(set(w))
for i in range(len(s)):
if w.count(s[i]) % 2 != 0:
print('No')
exit()
print('Yes') | p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,669 |
s307642694 | p04012 | u883621917 | 1599703192 | Python | PyPy3 (7.3.0) | py | Accepted | 74 | 64900 | 233 | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
w = input().strip()
from collections import Counter
c = Counter(w)
for v in c.values():
if v % 2 == 1:
print('No')
sys.exit(0)
print('Yes')
| p04012 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Let <var>w</var> be a string consisting of lowercase letters.
We will call <var>w</var> <em>beautiful</em> if the following condition is satisfied:</p>
<ul>
<li>Each lowercase letter of the English alph... | abaccaba
| Yes
| 1,197,670 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.