ZhenlongDai/ACPR huggingface dataset:
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
ans=N if N%2==0 else 2*N
print(N)

Failing test case input:
155477

Expected output:
310954


Actual output:
155477


Fixed submission (verdict: Accepted):
N=int(input())
ans=N if N%2==0 else 2*N
print(ans)

Problem: p03307
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
print(2*n)

Failing test case input:
1295498732

Expected output:
1295498732


Actual output:
2590997464


Fixed submission (verdict: Accepted):
n=int(input())
print(n+n%2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print([n,n*2][n%2==0])

Failing test case input:
8325199727

Expected output:
16650399454


Actual output:
8325199727


Fixed submission (verdict: Accepted):
n=int(input())
print([n,n*2][n%2==1])

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n % 2 ==0:
    print(n)
else:
    print(n + 1)

Failing test case input:
2049048611

Expected output:
4098097222


Actual output:
2049048612


Fixed submission (verdict: Accepted):
n = int(input())

if n % 2 ==0:
    print(n)
else:
    print(n * 2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N = int(input())
    if N % 10 == 0:
        print(N)
    else:
        print(2*N)
if __name__ == "__main__":
    main()

Failing test case input:
613474

Expected output:
613474


Actual output:
1226948


Fixed submission (verdict: Accepted):
def main():
    N = int(input())
    if N % 2 == 0:
        print(N)
    else:
        print(2*N)
if __name__ == "__main__":
    main()

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n%2:
  print(2+n)
else:
  print(n)

Failing test case input:
8325199727

Expected output:
16650399454


Actual output:
8325199729


Fixed submission (verdict: Accepted):
n = int(input())

if n%2:
  print(2*n)
else:
  print(n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
result = 0

while True:
    result += n * 2
    if result % n == 0:
        print(result)
        break


Failing test case input:
199002

Expected output:
199002


Actual output:
398004


Fixed submission (verdict: Accepted):
n = int(input())
result = n

while True:
    if (result % n == 0) & (result % 2 == 0):
        print(result)
        break
    result = result * 2

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 2 == 0:
    print(2 * N)
else:
    print(N)

Failing test case input:
1629294

Expected output:
1629294


Actual output:
3258588


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 0:
    print(N)
else:
    print(2 * N)

Problem: p03307
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())

if n % 2:
    print(n)
else:
    print(2*n)

Failing test case input:
342557264

Expected output:
342557264


Actual output:
685114528


Fixed submission (verdict: Accepted):
n = int(input())

if n % 2:
    print(2*n)
else:
    print(n)
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
if a==0:
  print(a)
else:
  print(a*2)


Failing test case input:
1031129102

Expected output:
1031129102


Actual output:
10311291021031129102


Fixed submission (verdict: Accepted):
a=int(input())
b=int(a/2)
if b*2==a:
  print(a)
else:
  print(a*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())
b=a/2
if b*2==a:
  print(a)
else:
  print(a*2)

Failing test case input:
1018479

Expected output:
2036958


Actual output:
1018479


Fixed submission (verdict: Accepted):
a=int(input())
b=int(a/2)
if b*2==a:
  print(a)
else:
  print(a*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n % 2 == 0:
    print(n / 2)
elif n % 2 != 0:
    print(2 * n)

Failing test case input:
215616

Expected output:
215616


Actual output:
107808.0


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
    print(n)
elif n % 2 != 0:
    print(2 * n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
if n&2==0:
  print(n)
else:
  print(2*n)

Failing test case input:
168366

Expected output:
168366


Actual output:
336732


Fixed submission (verdict: Accepted):
n=int(input())
if n%2==0:
  print(n)
else:
  print(2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N if N/N or N/2 else int(N)*2)

Failing test case input:
2049048611

Expected output:
4098097222


Actual output:
2049048611


Fixed submission (verdict: Accepted):
N = int(input())
print(N if N%2==0 and N/N else int(N)*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if not N%2:
    print(2*N)
else:print(N)

Failing test case input:
1031129102

Expected output:
1031129102


Actual output:
2062258204


Fixed submission (verdict: Accepted):
N = int(input())
if N%2:
    print(2*N)
else:print(N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
result = n

while True:
    result = result * 2
    if result % n == 0:
        print(result)
        break


Failing test case input:
119314

Expected output:
119314


Actual output:
238628


Fixed submission (verdict: Accepted):
n = int(input())
result = n

while True:
    if (result % n == 0) & (result % 2 == 0):
        print(result)
        break
    result = result * 2

Problem: p03307
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


a = int(input())

if a % 2 < 1:
        print(2*a)
else:
        print(a)

Failing test case input:
4337315458

Expected output:
4337315458


Actual output:
8674630916


Fixed submission (verdict: Accepted):


a = int(input())

if a % 2 == 1:
        print(2*a)
else:
        print(a)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
if N%2==0:
  print(N)
else:
  print(N+1)

Failing test case input:
155477

Expected output:
310954


Actual output:
155478


Fixed submission (verdict: Accepted):
N=int(input())
if N%2==0:
  print(N)
else:
  print(N*2)
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n % 2 == 0:
    print(n)
else:
    print(n**2)

Failing test case input:
5095773

Expected output:
10191546


Actual output:
25966902467529


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


 
def main():
	N = int(input())
	if N == 0:
		print(0)
	else:
		while N % 2 == 0:
	 		N = N / 2
		print(int(N*2))
 
if __name__ == '__main__':
	main()

Failing test case input:
215616

Expected output:
215616


Actual output:
6738


Fixed submission (verdict: Accepted):


 
def main():
	N = int(input())
	if N % 2 == 0:
		print(int(N))
	else:
		print(int(N*2))
 
if __name__ == '__main__':
	main()

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n % 2 == 0:
    print('n')
else:
    print(n*2)
    

Failing test case input:
15607691432

Expected output:
15607691432


Actual output:
n


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if N%2 == 0:
    ans = N
else:
    ans = 2 * N
    
    
print(N)

Failing test case input:
964913573

Expected output:
1929827146


Actual output:
964913573


Fixed submission (verdict: Accepted):
N = int(input())

if N % 2 == 0:
    ans = N
else:
    ans = 2 * N


print(ans)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print(n if n%2==1 else 2*n)

Failing test case input:
1295498732

Expected output:
1295498732


Actual output:
2590997464


Fixed submission (verdict: Accepted):
n=int(input())
print(n if n%2==0 else 2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if (n%2 == 0):
    print(2)
else:
    print(2*n)

Failing test case input:
119314

Expected output:
119314


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())

if (n%2 == 0):
    print(n)
else:
    print(2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = int(input())

if N % 2 == 2:
    re = N
else:
    re = N * 2

print(re)

Failing test case input:
679012

Expected output:
679012


Actual output:
1358024


Fixed submission (verdict: Accepted):

N = int(input())

if N % 2 == 0:
    re = N
else:
    re = N * 2

print(re)

Problem: p03307
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):


a = int(input())

if a / 2 < 1:
        print(2*a)
else:
        print(a)

Failing test case input:
155477

Expected output:
310954


Actual output:
155477


Fixed submission (verdict: Accepted):


a = int(input())

if a % 2 == 1:
        print(2*a)
else:
        print(a)
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
i = 0
while True:
  if n*i % 2 == 0:
    print(n*i)
    break
  i += 1

Failing test case input:
155477

Expected output:
310954


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
i = 1
while True:
    if n*i % 2 == 0:
        print(n*i)
        break
    i += 1

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(n) if n%2 else print(n*2)

Failing test case input:
1494912

Expected output:
1494912


Actual output:
2989824


Fixed submission (verdict: Accepted):
n = int(input())
print(n*2) if n%2 else print(n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
print(a * 2 if int(a) % 2 == 1 else a)

Failing test case input:
219

Expected output:
438


Actual output:
219219


Fixed submission (verdict: Accepted):
a = int(input())
print(a * 2 if a % 2 == 1 else a)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())

if N%2==0:
  print('N')
else:
  print(2*N)

Failing test case input:
168366

Expected output:
168366


Actual output:
N


Fixed submission (verdict: Accepted):
n=int(input())

if n%2==0:
  print(n)
else:
  print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N / 2 == 0:
    print(N)
else:
    print(2*N)

Failing test case input:
199002

Expected output:
199002


Actual output:
398004


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 0:
    print(N)
else:
    print(2*N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import sys



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N =int(readline())
print(2*N)

Failing test case input:
342557264

Expected output:
342557264


Actual output:
685114528


Fixed submission (verdict: Accepted):


import sys



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
print(2 * N if N % 2 == 1 else N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input().strip())

if n%2 ==0:
  print(2)
else:
  print (n*2)


Failing test case input:
119314

Expected output:
119314


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input().strip())

if n%2 ==0:
  print(n)
else:
  print (n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
d=int(input())
if d%2==0:
    print(d)
print(2*d)

Failing test case input:
305467194

Expected output:
305467194


Actual output:
305467194
610934388


Fixed submission (verdict: Accepted):
d=int(input())
if d%2==0:
    print(d)
else:
    print(2*d)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = int(input()) 
if x % 2 != 0 or x == 1:
  print(x*2)
else:
  print(x/2*2)
  


Failing test case input:
15607691432

Expected output:
15607691432


Actual output:
15607691432.0


Fixed submission (verdict: Accepted):
import math
x = int(input()) 
if x % 2 != 0 or x == 1:
  print(x*2)
else:
  print(math.floor(x/2*2))
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n % 2 == 0:
    print(2)
else:
    print(n*2)


Failing test case input:
1433974404

Expected output:
1433974404


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())

if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N%2 == 0:
  print(N)
else:
  print(N+1)

Failing test case input:
964913573

Expected output:
1929827146


Actual output:
964913574


Fixed submission (verdict: Accepted):
N = int(input())
if N%2 == 0:
  print(N)
else:
  print(2*N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
while N%2==0:
    N = N/2
print(int(N*2))

Failing test case input:
419774028

Expected output:
419774028


Actual output:
209887014


Fixed submission (verdict: Accepted):
N = int(input())
if N%2==0:
    print(N)
else:
    print(N*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import sys



def solve(lines):
    N = int(lines.pop(0))
    if N % 2 == 0:
        print(N)
    else:
        print(N*2)














lines = [x.strip() for x in sys.stdin.readlines()]


Failing test case input:
168366

Expected output:
168366


Actual output:

Fixed submission (verdict: Accepted):

import sys



def solve(lines):
    N = int(lines.pop(0))
    if N % 2 == 0:
        print(N)
    else:
        print(N*2)














lines = [x.strip() for x in sys.stdin.readlines()]




solve(lines)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input(9))
if n % 2 == 0:
    print(n)
else:
    print(n*2)

Failing test case input:
1537692078

Expected output:
1537692078


Actual output:
91537692078


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
print(N if N % 2 else 2 * N)

Failing test case input:
1018479

Expected output:
2036958


Actual output:
1018479


Fixed submission (verdict: Accepted):
N = int(input())
print(N if N % 2 == 0 else 2 * N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n % 2:
    print(n)
else:
    print(2*n)

Failing test case input:
2049048611

Expected output:
4098097222


Actual output:
2049048611


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2==0:
    print(n)
else:
    print(2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

if (N % 2 == 0) :
	print(2)
else :
	print(2*N)


Failing test case input:
15607691432

Expected output:
15607691432


Actual output:
2


Fixed submission (verdict: Accepted):
N = int(input())

if (N % 2 == 0) :
	print(N)
else :
	print(2*N)
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n%2==2:
    print(n)
else:
    print(n*2)

Failing test case input:
1629294

Expected output:
1629294


Actual output:
3258588


Fixed submission (verdict: Accepted):
n = int(input())
if n%2==0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
result = n

while True:
    if result % n == 0:
        print(result)
        break
    result = result * 2


Failing test case input:
964913573

Expected output:
1929827146


Actual output:
964913573


Fixed submission (verdict: Accepted):
n = int(input())
result = n

while True:
    if (result % n == 0) & (result % 2 == 0):
        print(result)
        break
    result = result * 2

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
print(n+(n*n%2 == 0))

Failing test case input:
2898143

Expected output:
5796286


Actual output:
2898143


Fixed submission (verdict: Accepted):
n = int(input())
print(2*n-((n%2 == 0)*n))

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if (n%2 == 0):
    print(2)
else: 
    print(n*2)

Failing test case input:
613474

Expected output:
613474


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())

if (n%2 == 0):
    print(n)
else:
    print(2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
if n%2:
  print(n)
else:
  print(n*2)

Failing test case input:
-21

Expected output:
-42


Actual output:
-21


Fixed submission (verdict: Accepted):
n=int(input())
if n%2:
  print(n*2)
else:
  print(n)

Problem: p03307
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())

if N % 2== 0:
    print(N * 2)
else:
    print(N)

Failing test case input:
199002

Expected output:
199002


Actual output:
398004


Fixed submission (verdict: Accepted):
N = int(input())

if N % 2:
    print(N * 2)
else:
    print(N)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input());print(a+(a%2>0))

Failing test case input:
2165708527

Expected output:
4331417054


Actual output:
2165708528


Fixed submission (verdict: Accepted):
a=int(input());print(a+(a%2>0)*a)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

print(N + N % 2)

Failing test case input:
8325199727

Expected output:
16650399454


Actual output:
8325199728


Fixed submission (verdict: Accepted):
N = int(input())

print(N * 2 ** (N % 2))

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())

if n%2==0:
  print('n')
else:
  print(n*2)

Failing test case input:
3051104154

Expected output:
3051104154


Actual output:
n


Fixed submission (verdict: Accepted):
n=int(input())

if n%2==0:
  print(n)
else:
  print(n*2)
Problem: p03307
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

def main():
    n = int(input())
    if n % 2:
        print(n)
    else:
        print(2 * n)
        

if __name__ == "__main__":
    main()


Failing test case input:
15607691432

Expected output:
15607691432


Actual output:
31215382864


Fixed submission (verdict: Accepted):

def main():
    n = int(input())
    if n % 2 == 0:
        print(n)
    else:
        print(2 * n)
        

if __name__ == "__main__":
    main()

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n % 2 == 0:
    print(n*2)
else:
    print(n)


Failing test case input:
2384804058

Expected output:
2384804058


Actual output:
4769608116


Fixed submission (verdict: Accepted):
n = int(input())

if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())

if n<2:
    print(1)
elif n%2==0:
    print(max(2,n))
else:
    print(2*n)

Failing test case input:
-21

Expected output:
-42


Actual output:
1


Fixed submission (verdict: Accepted):
n=int(input())

if n==1:
    print(2)
elif n%2==0:
    print(n)
else:
    print(2*n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))

if int(a[0]) %2 == 0:
    print(a)
else:
    print(a*2)


Failing test case input:
5095773

Expected output:
10191546


Actual output:
[5095773, 5095773]


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
b = int(a[0])
if b %2 == 0:
    print(b)
else:
    print(b*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
if(n==2):
    print(2)
else:
        print(n*2)

Failing test case input:
119314

Expected output:
119314


Actual output:
238628


Fixed submission (verdict: Accepted):
n=int(input())
if(n%2==0):
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if(n/2 == 0):
	print(n)
else:
	print(n*2)

Failing test case input:
119314

Expected output:
119314


Actual output:
238628


Fixed submission (verdict: Accepted):
n = int(input())
if(n%2 == 0):
	print(n)
else:
	print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())

if n%2==0:
  print(n)
else:
  print(n/2)

Failing test case input:
964913573

Expected output:
1929827146


Actual output:
482456786.5


Fixed submission (verdict: Accepted):
n=int(input())
 
if n%2==0:
  print(n)
else:
  print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print(N if N % 2 else N*2)

Failing test case input:
2898143

Expected output:
5796286


Actual output:
2898143


Fixed submission (verdict: Accepted):
N = int(input())
print(N if N % 2==0 else N*2)
Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n%2 == 0:
    print(int(n/2))
else:
    print(int(n*2))

Failing test case input:
1295498732

Expected output:
1295498732


Actual output:
647749366


Fixed submission (verdict: Accepted):
n = int(input())
if n%2 == 0:
    print(int(n))
else:
    print(int(n*2))

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
while n % 2 == 0:
    n /= 2

print(n * 2)

Failing test case input:
183857778

Expected output:
183857778


Actual output:
183857778.0


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
    print(n)
else:
    print(n*2)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n % 2 == 0:
	print(n)
else:
	print(n + 1)

Failing test case input:
155477

Expected output:
310954


Actual output:
155478


Fixed submission (verdict: Accepted):
n = int(input())
if n % 2 == 0:
	print(n)
else:
	print(2 * n)

Problem: p03307
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


 
def main():
	N = int(input())
	while N % 2 == 0:
		N = N / 2
	print(N*2)
 
if __name__ == '__main__':
	main()

Failing test case input:
1295498732

Expected output:
1295498732


Actual output:
647749366.0


Fixed submission (verdict: Accepted):


 
def main():
	N = int(input())
	if N % 2 == 0:
		print(int(N))
	else:
		print(int(N*2))
 
if __name__ == '__main__':
	main()

Problem: p03307
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if int(n)%2==0:
  print(n)
else:
  print(n*2)
  

Failing test case input:
219

Expected output:
438


Actual output:
219219


Fixed submission (verdict: Accepted):
n=input()
if int(n)%2==0:
  print(n)
else:
  print(int(n)*2)
Problem: p02270
Buggy submission (Python3, verdict: Wrong Answer):
from math import ceil
s = input().split(" ")
n = int(s[0])
k = int(s[1])
w = []
total = 0
for i in range(n):
    a = int(input())
    w.append(a)
    total += a
mx = ceil(total / k)
while True:
    t = []
    t.append(w[0])
    for i in range(1,len(w)):
        if t[len(t)-1] + w[i] <= mx:
            t[len(t)-1] += w[i]
        else:
            t.append(w[i])
            if len(t) > k:
                break
    if len(t) > k:
        mx += 1
    else:
        break
print(mx)

Failing test case input:
4 4
-1
3
2
6
5

Expected output:
6


Actual output:
3


Fixed submission (verdict: Accepted):
def check(P,w,n):
    i = 0
    for j in range(k):
        s = 0
        while s + w[i] <= P:
            s += w[i]
            i += 1
            if i == n:
                return n
    return i

s = input().split(" ")
n = int(s[0])
k = int(s[1])
w = []
for i in range(n):
    a = int(input())
    w.append(a)

left = 0
right = 100000 * 10000
while right - left > 1:
    mid = int((right + left) / 2)
    v = check(mid,w,n)
    if v >= n:
        right = mid
    else:
        left = mid
print(right)

Problem: p02270
Buggy submission (Python3, verdict: Wrong Answer):
def cnt_car(w, p):
    car = 0
    wi = 0
    for i in w:
        if (wi + i) <= p:
            wi += i
        else:
            car += 1
            wi = i
    return car

n, k = map(int, input().split())
w = [int(input()) for i in range(n)]
p = max(w)
while True:
    if cnt_car(w, p) <= k:
        print(p)
        break
    else:
        p += 1


Failing test case input:
5 2
6
1
8
3
5

Expected output:
15


Actual output:
8


Fixed submission (verdict: Accepted):
def cnt_car(w, p):
    car = 1
    wi = 0
    for i in w:
        if (wi + i) <= p:
            wi += i
        else:
            car += 1
            wi = i
    return car

n, k = map(int, input().split())
w = [int(input()) for i in range(n)]
p = max(max(w), sum(w) 
while True:
    if cnt_car(w, p) <= k:
        print(p)
        break
    else:
        
        if cnt_car(w, p + 100) > k:
            p += 100
        else:
            p += 1
Problem: p02270
Buggy submission (Python3, verdict: Wrong Answer):


def check(P):
    i = 0
    for j in range(k):
        s = 0
        while s + w[i] <= P:
            s += w[i]
            i += 1
            if i == n:
                return n
    return i


def solve():
    left = 0
    right = sum(w) + 1 
    while right - left > 1:
        mid = (left + right) / 2
        v = check(mid)  
        if v >= n:
            right = mid
        else:
            left = mid
        print(left, right)

    return right

if __name__ == "__main__":
    n, k = map(int, input().split())
    w = [int(input()) for i in range(n)]
    print(int(solve()))

Failing test case input:
3 3
7
1
9
7
5

Expected output:
9


Actual output:
0 9.0
4.5 9.0
6.75 9.0
7.875 9.0
8.4375 9.0
9


Fixed submission (verdict: Accepted):


def check(P):
    i = 0
    for j in range(k):
        s = 0
        while s + w[i] <= P:
            s += w[i]
            i += 1
            if i == n:
                return n
    return i


def solve():
    left = 0
    right = sum(w) + 1 
    while right - left > 1:
        mid = (left + right) / 2
        v = check(mid)  
        if v >= n:
            right = mid
        else:
            left = mid
            
    return right

if __name__ == "__main__":
    n, k = map(int, input().split())
    w = [int(input()) for i in range(n)]
    print(int(solve()))

Problem: p02270
Buggy submission (Python3, verdict: Wrong Answer):


def check(P):
    i = 0
    for j in range(k):
        s = 0
        while s + w[i] <= P:
            s += w[i]
            i += 1
            if i == n:
                return n
    return i


def solve():
    left = 0
    right = max(w) + 1  
    while right - left > 1:
        mid = (left + right) / 2
        v = check(mid)  
        if v >= n:
            right = mid
        else:
            left = mid

    return right

if __name__ == "__main__":
    n, k = map(int, input().split())
    w = [int(input()) for i in range(n)]
    print(int(solve()))

Failing test case input:
3 1
6
2
8
5
4

Expected output:
16


Actual output:
9


Fixed submission (verdict: Accepted):


def check(P):
    i = 0
    for j in range(k):
        s = 0
        while s + w[i] <= P:
            s += w[i]
            i += 1
            if i == n:
                return n
    return i


def solve():
    left = 0
    right = sum(w) + 1 
    while right - left > 1:
        mid = (left + right) / 2
        v = check(mid)  
        if v >= n:
            right = mid
        else:
            left = mid
            
    return right

if __name__ == "__main__":
    n, k = map(int, input().split())
    w = [int(input()) for i in range(n)]
    print(int(solve()))
Problem: p03618
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
N = len(S)
ans = N * (N - 1) 
a = []
for c in [chr(i) for i in range(97, 97+26)]:
    a.append(S.count(c))
ans -= sum(a)
print(ans)

Failing test case input:
wxzxxxxxwy

Expected output:
30


Actual output:
80


Fixed submission (verdict: Accepted):
S = input()
N = len(S)
ans = N * (N - 1) 
a = []
cnt = 0
for c in [chr(i) for i in range(97, 97+26)]:
    cnt = S.count(c)
    a.append(cnt * (cnt - 1) 
ans -= sum(a)
print(ans)

Problem: p03618
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
     s = list(input())
     count = (len(s)*len(s)-1)/2+1
     dic = {}
     for i in range(len(s)):
         try:
             dic[s[i]].append(i)
         except Exception:
             dic[s[i]] = [i]

     for j in dic.values():
         count-=(len(j)*len(j)-1)/2+1
     print(count)


if __name__=="__main__":
    main()

Failing test case input:
yxxxxxxxxx

Expected output:
10


Actual output:
8.5


Fixed submission (verdict: Accepted):
def main():
     s = list(input())
     count = int((len(s)*(len(s)-1))/2+1)
     dic = {}
     for i in range(len(s)):
         try:
             dic[s[i]].append(i)
         except Exception:
             dic[s[i]] = [i]

     for j in dic.values():
         count-=int((len(j)*(len(j)-1))/2)
     print(count)


if __name__=="__main__":
    main()

Problem: p03618
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
n = len(s)
dp = [0]*26

for i in s:
  dp[ord(i) - ord('a')]+=1

ans = 0

for j in dp:
  ans += (j * (n-j))
print(ans+1)

Failing test case input:
abrqabdaacb

Expected output:
47


Actual output:
93


Fixed submission (verdict: Accepted):
s = input()
n = len(s)
dp = [0]*26

for i in s:
  dp[ord(i) - ord('a')]+=1

ans = 0

for j in dp:
  ans += (j * (n-j))
print(ans

Problem: p03618
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))
def plis(a): return " ".join(list(map(str, a)))

alf = list("abcdefghijklmnopqrstuvwxyz")
A = rls()
n = len(A)
ans = n*(n-1)/2 + 1
for i in alf:
    count = 0
    for j in A:
        if(i == j):
            count += 1
    ans -= count*(count-1)/2

print(ans)


Failing test case input:
xxwxxxxxxx

Expected output:
10


Actual output:
10.0


Fixed submission (verdict: Accepted):
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def rls(): return list(input())
def pli(a): return "".join(list(map(str, a)))
def plis(a): return " ".join(list(map(str, a)))

alf = list("abcdefghijklmnopqrstuvwxyz")
A = rls()
n = len(A)
ans = n*(n-1)/2 + 1
for i in alf:
    count = 0
    for j in A:
        if(i == j):
            count += 1
    ans -= count*(count-1)/2

print(int(ans))
Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = list(input())
alp = list("abcdefghijklmnopqrstuvwxyz")
ans = 0

for i in alp:
    if w.count(i) % 2 != 0 :
        ans += 1

if ans == 0:
    print("YES")
else:
    print("NO")

Failing test case input:
`b_dc`da

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
w = list(input())
alp = list("abcdefghijklmnopqrstuvwxyz")
ans = 0

for i in alp:
    if w.count(i) % 2 != 0 :
        ans += 1

if ans == 0:
    print("Yes")
else:
    print("No")

Problem: p04012
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def resolve():
	w = input()
	uniq = []
	cnt = 0
	for i in w:
		if i not in uniq:
			uniq.append(i)
	for i in uniq:
		cnt += w.count(i)
	if cnt % 2 == 0:
		print("Yes")
	else:
		print("No")
resolve()

Failing test case input:
__bdcca`

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def resolve():
	w = input()
	uniq = []
	cnt = []
	for i in w:
		if i not in uniq:
			uniq.append(i)
	for i in uniq:
		cnt.append(w.count(i))
	ans = "Yes"
	for i in cnt:
		if i % 2 != 0:
			ans = "No"
			break
	print(ans)
resolve()

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = input()
lis = []
for a in set(w):
  b = w.count(a)
  if b % 2 == 1:
    print("No")
    break
  else:
    lis.append(b)
if len(lis) == set(w):
  print("Yes")


Failing test case input:
ab`cc`ba

Expected output:
Yes


Actual output:

Fixed submission (verdict: Accepted):
w = input()
lis = []
for a in set(w):
  b = w.count(a)
  if b % 2 == 1:
    print("No")
    break
  else:
    lis.append(b)
if len(lis) == len(set(w)):
  print("Yes")

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = input()                    
l = list(w)                    
l.sort()                       
ans = "Yes"                    
if len(l)%2 != 0:
    print("No")
for i in range(int(len(l)/2)): 
    if l[2*i] != l[2*i+1]:     
        ans = "No"             
        break                  
print(ans)                     


Failing test case input:
irshi

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
w = input()                    
l = list(w)                    
l.sort()                       
ans = "Yes"                    
if len(l)%2 != 0:
    print("No")
    exit()
for i in range(int(len(l)/2)): 
    if l[2*i] != l[2*i+1]:     
        ans = "No"             
        break                  
print(ans)
Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
w=str(input())
li=Counter(w)
for i in range(len(w)):
    word=w[i]
    if i==len(w)-1:
        if li[word] % 2 == 0:
            print('YES')
            break
        else:
            print('NO')
            break
    if li[word]%2==0:
        continue
    else:
        print('NO')
        break

Failing test case input:
igssh

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from collections import Counter
w=str(input())
li=Counter(w)
for i in range(len(w)):
    word=w[i]
    if i==len(w)-1:
        if li[word] % 2 == 0:
            print('Yes')
            break
        else:
            print('No')
            break
    if li[word]%2==0:
        continue
    else:
        print('No')
        break

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
w=str(input())
li=Counter(w)
for i in range(len(w)):
    word=w[i]
    if i==len(w)-1:
        if li[word] % 2 == 0:
            print('YES')
            break
        else:
            print('NO')
            break
    if li[word]%2==0:
        continue
    else:
        print('NO')
        break


Failing test case input:
tikjr

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from collections import Counter
w=str(input())
li=Counter(w)
for i in range(len(w)):
    word=w[i]
    if i==len(w)-1:
        if li[word] % 2 == 0:
            print('Yes')
            break
        else:
            print('No')
            break
    if li[word]%2==0:
        continue
    else:
        print('No')
        break

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


from collections import defaultdict

a = input()

b = defaultdict(int)


for c in a:
    b[c] += 1

a = []

for c in b.values():
    a.append(c % 2)

ans = 'Yes' if len(set(a)) == 1 else 'No'


print(ans)


Failing test case input:
ijsrk

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):


from collections import defaultdict

a = input()

b = defaultdict(int)


for c in a:
    b[c] += 1

d = []

for c in b.values():
    d.append(c % 2)

e = set(d)

ans = 'No' if 1 in e else 'Yes'

print(ans)

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w=input()
w_list=list(w)
w_unique=list(set(w_list))
c=0
for x in w_unique:
    if w_list.count(x)%2==0:
        c=c
    else:
        c+=1
        
if c==0:
    print('YES')
    
else:
    print("NO")
    

        

Failing test case input:
a__cd`ad

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
w=input()
w_list=list(w)
w_unique=list(set(w_list))
c=0
for x in w_unique:
    if w_list.count(x)%2==0:
        c=c
    else:
        c+=1
        
if c==0:
    print('Yes')
    
else:
    print("No")
Problem: p04012
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

n=input()
a=[]
for i in range(len(n)):
     a.append(n[i])
sum_=0
for i2 in range(len(a)):
    sum_=sum_+a.count(a[i2])%2

if sum_ == 0:
    print("YES")
else:
    print("NO")

Failing test case input:
krkui

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

n=input()
a=[]
for i in range(len(n)):
     a.append(n[i])
sum_=0
for i2 in range(len(a)):
    sum_=sum_+a.count(a[i2])%2

if sum_ == 0:
    print("Yes")
else:
    print("No")

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

num=Counter(input())

for X in num.values():
    if X%2!=0:
        ans="NO"
        break
else:
    ans="YES"  
print(ans)

Failing test case input:
`ac_db^c

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from collections import Counter
w = Counter(input())
ans = "Yes"
for i in w.values():
    if i % 2 != 0:
        ans = "No"
print(ans)

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w=list(input())
s=list(set(w))
k=len(s)
b=0
for i in range(k):
   if w.count(s[b])%2==0:
      print("No")
   else:
      b+=1
print("Yes")

      



Failing test case input:
hgsti

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w=list(input())
s=list(set(w))
k=len(s)
b=0
for i in range(k):
   if w.count(s[b])%2!=0:
      print("No")
      break
   else:
      b+=1
if b==k:
    print("Yes")

Problem: p04012
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
w = input()
w_dict = {}
for char in w:
    if char in w_dict:
        w_dict[char] += 1
    else:
        w_dict[char] = 1

if all(elem%2 == 0 for elem in w_dict.values()):
    print('YES')
else:
    print('NO')

Failing test case input:
rjkit

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
w = input()
w_dict = {}
for char in w:
    if char in w_dict:
        w_dict[char] += 1
    else:
        w_dict[char] = 1

if all(elem%2 == 0 for elem in w_dict.values()):
    print('Yes')
else:
    print('No')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = input()
cdict = {}
for c in w:
  if c in cdict:
    cdict[c] += 1
  else:
    cdict[c] = 0
    
if all(cdict[c]%2==0 for c in cdict):
  print('Yes')
else:
  print('No')

Failing test case input:
hfsti

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w = input()
cdict = {}
for c in w:
  if c in cdict:
    cdict[c] += 1
  else:
    cdict[c] = 1
    
if all(cdict[c]%2==0 for c in cdict):
  print('Yes')
else:
  print('No')
Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections

w = input()
count_dict = collections.Counter(w)
for k, v in count_dict.items():
    if v % 2 != 0:
        print('No')
        break
    print('yes')


Failing test case input:
ihsri

Expected output:
No


Actual output:
yes
No


Fixed submission (verdict: Accepted):
import collections

w = input()
flg = 0
count_dict = collections.Counter(w)
for k, v in count_dict.items():
    if v % 2 != 0:
        flg = 1
        break
if flg == 1:
    print('No')
else:
    print('Yes')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = list(input())
moji = set()
ans = 'Yes'
for i in range(len(w)):
    moji.add(w[i])
for i in moji:
    if (w.count(moji) % 2)!= 0:
        ans = 'No'
print(ans)

Failing test case input:
rjshj

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
w = list(input())
moji = set()
ans = 'Yes'
for i in range(len(w)):
    moji.add(w[i])

for i in moji:
    if (w.count(i) % 2)!= 0:
        ans = 'No'

print(ans)

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = input()
a = "abcdefghijklmnopqrstuvwxyz"
w_list = list(a)
hoge = 0
for word in w_list:
  s = w.count(word)
  if s%2 != 0:
    print('No')
    hoge += 1
if hoge == 0:
  print('Yes')

Failing test case input:
ijsjr

Expected output:
No


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
w = input()
a = "abcdefghijklmnopqrstuvwxyz"
w_list = list(a)
hoge = 0
for word in w_list:
  s = w.count(word)
  if s%2 != 0:
    print('No')
    hoge += 1
    break
if hoge == 0:
  print('Yes')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import collections

w = input()

a = list(collections.Counter(w).values())
b = [a[i] for i in range(len(a)) if int(a[i]) % 2 == 0]

print(a,b)
if len(a) == len(b):
    print("Yes")
else:
    print("No")



Failing test case input:
a`_cd_ad

Expected output:
No


Actual output:
[2, 1, 2, 1, 2] [2, 2, 2]
No


Fixed submission (verdict: Accepted):


import collections

w = input()

a = list(collections.Counter(w).values())
b = [a[i] for i in range(len(a)) if int(a[i]) % 2 == 0]


if len(a) == len(b):
    print("Yes")
else:
    print("No")

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w=input()
odd=[i for i in set(w) if w.count(i)%2]
print('NO' if odd else 'YES')

Failing test case input:
jrsjj

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
w=input()
odd=[i for i in set(w) if w.count(i)%2]
print('No' if odd else 'Yes')
Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
text=input()
dic={}
for i in range(len(text)):
    if text[i] not in dic:
        dic[text[i]]=1
    else:
        dic[text[i]]=+1     
for i in dic.values():
    if not i%2==0:
        print('No')
        exit()
        
print('Yes')

Failing test case input:
ab`cc`ba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
text=input()
dic={}
for i in range(len(text)):
    if text[i] not in dic:
        dic[text[i]]=1
    else:
        dic[text[i]]+=1     
for i in dic.values():
    if i%2!=0:
        print('No')
        exit()
        
print('Yes')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


w=input()
count=0
ans='Yes'
for i in range(len(w)):
    t=w[i]
    for e in range(len(w)):
        t==w[e]
        count=count+1
        if count%2==1:
            ans='No'
            break
        else:
            ans='Yes'

print(ans)

Failing test case input:
ab`cc`ba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


w=input()
count=0
ans='Yes'
t=''
for i in range(len(w)):
    count=0
    t=w[i]
    for e in range(len(w)):
        if t==w[e]:
            count=count+1
    if count%2==1:
        ans='No'
        break
    else:
        ans='Yes'

print(ans)

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

s = input()

c = Counter(list(s))

for word , cnt in c.most_common():
	if cnt % 2 !=0:
		print('NO')
		exit()
print('YES')


Failing test case input:
jrsjj

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from collections import Counter

s = input()

c = Counter(list(s))

for word , cnt in c.most_common():
	if cnt % 2 !=0:
		print('No')
		exit()
print('Yes')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = input()
if all([w.count(s) % 2 == 0 for s in set(w)]):
    print("YES")
else:
    print("No")

Failing test case input:
abaccaba

Expected output:
Yes

Actual output:
YES


Fixed submission (verdict: Accepted):
w = input()
if all([w.count(s) % 2 == 0 for s in set(w)]):
    print("Yes")
else:
    print("No")

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
t = list(s)
t.sort()
a = []
b = 1
for i in range(len(t)):
    if i >= 1:
        if t[i] == t[i-1]:
            b = b + 1
        else:
            a.append(b)
            b = 1
a.append(b)
for i in range(len(a)):
    if a[i] % 2 != 0:
        print("NO")
        break
    else:
        if i == len(a) - 1:
            print("YES")   

Failing test case input:
d^bc_ca`

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = str(input())
t = list(s)
t.sort()
a = []
b = 1
for i in range(len(t)):
    if i >= 1:
        if t[i] == t[i-1]:
            b = b + 1
        else:
            a.append(b)
            b = 1
a.append(b)
for i in range(len(a)):
    if a[i] % 2 != 0:
        print("No")
        break
    else:
        if i == len(a) - 1:
            print("Yes")
Problem: p04012
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = sorted(list(input()))

for i in range(97, 97 + 26):
  print(s.count(chr(i)))
  if s.count(chr(i)) %2 != 0:
    print('NO')
    exit()

print('YES')


Failing test case input:
`accdb__

Expected output:
No


Actual output:
1
NO


Fixed submission (verdict: Accepted):
s = sorted(list(input()))

for i in range(97, 97 + 26):
  if s.count(chr(i)) %2 != 0:
    print('No')
    exit()

print('Yes')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

SS = list(set(S))
num = []
for i in range(len(SS)):
    num.append(S.count(SS[i]))
num
if all(n%2 for n in num)%2 == 0:
    print('Yes')
else:
    print('No')


Failing test case input:
jrrji

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()

SS = list(set(S))
num = []
for i in range(len(SS)):
    num.append(S.count(SS[i]))
if all(n%2==0 for n in num):
    print('Yes')
else:
    print('No')

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
 
num=Counter(input())
ans="YES"  
for X in num.values():
    if X%2!=0:
        ans="NO"
   
print(ans)

Failing test case input:
`^c`daad

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from collections import Counter
w = Counter(input())
ans = "Yes"
for i in w.values():
    if i % 2 != 0:
        ans = "No"
print(ans)

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
w = str(input())
ar = []
a = 0

for j in range(97, 123):
    b = w.count(chr(j))
    if b %2 == 1:
        print("No")
        break

    elif b == 0:
        print("", end="")

    else:
        a += 1

if 1 <= a:
    print("Yes")


Failing test case input:
krsjj

Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
w = str(input())
ar = []
a = 0

for j in range(97, 123):
    b = w.count(chr(j))
    if b %2 == 1:
        print("No")
        a = 0
        break

    else:
        a = 1
if a == 1:
    print("Yes")

Problem: p04012
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
n = [0] * 26
for i in s:
    n[ord(i) - 97] += 1

if 1 in [x % 2 for x in n]:
    print('NO')
else:
    print("YES")


Failing test case input:
ihsrh

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
n = [0] * 26
for i in s:
    n[ord(i) - 97] += 1

if 1 in [x % 2 for x in n]:
    print('No')
else:
    print("Yes")

Problem: p04012
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
w = input()
c = Counter(w)

s = "No"
while(True):
  for t in c.most_common():
    if (t[1]%2) == 0:
      s = "Yes"
    else:
      break
  break
print(s)

Failing test case input:
__bdc`ac

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
from collections import Counter
w = input()
c = Counter(w)

s = "Yes"
while(s == "Yes"):
  for t in c.most_common():
    if (t[1]%2) != 0:
      s = "No"
  break
print(s)