Problem:


Score : 100 points

Problem Statement

In some other world, today is December D-th.

Write a program that prints Christmas if D = 25, Christmas Eve if D = 24, Christmas Eve Eve if D = 23 and Christmas Eve Eve Eve if D = 22.

Constraints

22 \leq D \leq 25

D is an integer.

Input

Input is given from Standard Input in the following format:

D

Output

Print the specified string (case-sensitive).

Sample Input 1

25

Sample Output 1

Christmas

Sample Input 2

22

Sample Output 2

Christmas Eve Eve Eve

Be sure to print spaces between the words.



Sample input:
25


Sample output:
Christmas

Submission status: Runtime Error

Solution code:
pb_list = []
p_count = 0

def pb(n):
    if n == 0:
        pb_list.append('p')
        p_count = p_count + 1
        return
    elif n >= 0:
        pb_list.append('b')
        pb(n - 1)
        pb_list.append('p')
        p_count = p_count + 1
        pb(n - 1)
        pb_list.append('b')
    else:
        return

n, x = input().split(' ')
n = int(n)
x = int(x)
pb(n)

#for i in range(x):
#    if pb_list[i] == 'p':
#        p_count = p_count + 1

print(p_count)

Submission status: Runtime Error

Solution code:
N = int(input())
p_list = [int(i) for i in input().split()] 
sum = 0
for i in range(N):
  if p_list[i] == max(p_list):
    sum += int(p_list[i]/2)
  else:
    sum += p_list[i]
print(sum)

Submission status: Runtime Error

Solution code:
D = int(input())
n_eve = 25 - D
text = "Christmas"
for _ in n_eve:
    text += " Eve"
print(text)

Submission status: Runtime Error

Solution code:
n, k = map(int,(input().split()))
h = []
for i in range(n):
    h.append(int(input()))
h.sort()
min=h[-1]-h[0]
for i in range(n-k+1):
    if h[i+k-1]-h[i] < min:
        min = h[i+k-1]-h[i]
print(min)

Submission status: Runtime Error

Solution code:
n,k = map(int, input().split())
d = sorted([int(input()) for _ in range(n)],reverse=True)
ret = 9999999999
#print(d)
for i in range(n-k+1):
    #print(i,i+k-1)
    ret = min(ret,d[i]-d[i+k-1])
print(ret)

Submission status: Runtime Error

Solution code:
import sys
day = sys.argv[1]
if day == '22':
 print('Christmas Eve Eve Eve')
elif day == '23':
 print('Christmas Eve Eve')
elif day == '24':
 print('Christmas Eve')
elif day == '25':
 print('Christmas')

Submission status: Runtime Error

Solution code:
D = int(input())

if D==22:
    print "Christmas Eve Eve Eve Eve"

if D==23:
    print "Christmas Eve Eve"

if D==24:
    print "Christmas Eve"

if D==25:
    print "Christmas "

Submission status: Runtime Error

Solution code:
D = int(input())

if D==23:
    print "Christmas Eve Eve"

if D==24:
    print "Christmas Eve"

if D==23:
    print "Christmas "

Submission status: Runtime Error

Solution code:
D=int(input())
if D==25:
    print("Christmas")
else if D==24:
    print("Christmas Eve")
else if D==23:
    print("Christmas Eve Eve")
else if D==22:
    print("Christmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
import numpy as np
N,K = map(int,input().split(' '))
h = []
for i in [0]*N:
	h.append(int(input()))


def sort(l):
	m = sum(l)/len(l)
	a = [x for x in l if x < m]
	b = [x for x in l if m <= x]
	if a == []:
		return b
	if b == []:
		return a
	return sort(a)+sort(b)

h = np.array(h)
sh = np.sort(h)
#sh = sort(h)
ans = max(h)
for i in range(0,N-K+1):
	s = (sh[i+K-1] - sh[i])
	if s < ans:
		ans = s
print(ans)

Submission status: Runtime Error

Solution code:

if D==23:
    print "Christmas Eve Eve"

if D==24:
    print "Christmas Eve"

if D==23:
    print "Christmas "

Submission status: Runtime Error

Solution code:
import sys 

day = sys.argv[1]
if day == '22'

 print('Christmas Eve Eve Eve')
elif day == '23'
 print('Christmas Eve Eve')
elif day == '24'
 print('Christmas Eve')
elif day == '25'
 print('Christmas')

Submission status: Runtime Error

Solution code:
N , K = (int(i) for i in input().split())

h = [0] * N
for i in range(N):
    h[i] = int(input())

h.sort()

min = 1000000000

for i in range(N - K + 1):
    if min > h[i + K - 1] - h[i]:
        min = h[i + K - 1] - h[i]

print(min)

Submission status: Runtime Error

Solution code:
input_number  = input()

diff = 25-input_number
list=[]
for i in range(diff):
    list.append("Eve")

eveline = " ".join(list)
result="Christmas "+eveline
print(result)

Submission status: Runtime Error

Solution code:
N = input()

if(N = 25) : 
	print("Christmas")
if(N = 24) : 
	print("Christmas Eve")
if(N = 23) : 
	print("Christmas Eve Eve")
if(N = 22) : 
	print("Christmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
#coding:utf-8

N = input()

p = []
max_val = -1
for i in range(N):
    p_i = input()
    p.append(p_i)
    max_val = max(max_val, p_i)

sum = 0
flag = 0
for p_i in p:
    if p_i == max_val and flag==0:
        sum += p_i * 0.5
        flag = 1
    else:
        sum += p_i
print(int(sum))

Submission status: Runtime Error

Solution code:
# coding:utf-8

N = int(input())
an = [int(input()) for i in range(N)]

an.sort()
an.reverse()

print(an)

sum = 0
for i, ai in enumerate(an):
    if i == 0:
        sum += ai/2
    else:
        sum += ai

print(int(sum))

Submission status: Runtime Error

Solution code:
from sys import stdin
d=int(stdin.readline().rstrip())
extent=" Eve"*(25-d)
print(f"Christmas{extent}")

Submission status: Runtime Error

Solution code:

if D==23:
    print('Christmas Eve Eve')

if D==24:
    print('Christmas Eve')

if D==23:
    print('Christmas ')

Submission status: Runtime Error

Solution code:
ans = D-25
list=[]
for i in range(ans):
  list.append("Eve")
 
answer = "Christmas {}".format(list)
print(answer)

Submission status: Runtime Error

Solution code:
if D=23:
    print('Christmas Eve Eve')

if D=24:
    print('Christmas Eve')

if D=23:
    print('Christmas ')

Submission status: Runtime Error

Solution code:
d = int(input())
if d=25:
    print('Christmas')
elif d= 24:
    print('Christmas Eve')
elif d = 23:
    print('Christmas Eve Eve')
elif d = 22:
    print('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
N = input()
p = []
for i in range(N):
    p.append(input())

print(sum(p)-max(p)//2)

Submission status: Runtime Error

Solution code:
n = int(input())
p = []
for _ in range(n):
  p.append(int(input()))
count = 0
for i in p:
  count += i
print(int(count-max(p)/2))

Submission status: Runtime Error

Solution code:
n=int(input())
if n==25:
    print(Christmas)
if n==24:
    print(Christmas Eve)
if n==23:
    print(Christmas Eve Eve)
if n==22:
    print(Christmas Eve Eve Eve)

Submission status: Runtime Error

Solution code:
N = int(input())
p = []
for i in range(N):
    p.append(int(input()))

ans = sum(p) - max(p)/2

print(int(ans))

Submission status: Runtime Error

Solution code:
d=input()
d=-(d-25)
c="Chrismas"
e="Eve"
for i in range(0,4):
    if d==i:
        print(c,end="")
        if i>0:
            for j in range(i-1):
                print(" "+e)
        print()

Submission status: Runtime Error

Solution code:
n=int(input())
if n=25:
    print(Christmas)
if n=24:
    print(Christmas Eve)
if n=23:
    print(Christmas Eve Eve)
if n=22:
    print(Christmas Eve Eve Eve)

Submission status: Runtime Error

Solution code:
d = int(input())
c = 'Christmas'
e = 'Eve'
a = 25-d
if a>=1:
  b=' '
print(c+(b+e)*a)

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(n):
    x = int(input())
    l.append(x)
l.sort()
l = l[::-1]
ans = 0 
ans += l[0]//2
for i in range(1,n):
    ans+=l[i]
print(ans)

Submission status: Runtime Error

Solution code:
print(f"Christmas {' '.join(['Eve'] * (25 - int(input())))}".strip())

Submission status: Runtime Error

Solution code:
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<math.h>
#include<stdlib.h>

int main(void){
    int D;
    scanf("%d", &D);

    int offset = 25 - D;
    printf("Christmas");

    for (int i=0; i<offset; i++) {
        printf(" Eve");
    }

    printf("\n");
    return 0;
}

Submission status: Runtime Error

Solution code:
D = int(input())
 
if D ==25;
  print("Christmas)"
else if D ==24;
  print("Christmas Eve")
else if D ==23;
  print("Christmas Eve Eve")
else if D ==22;
  print("Crhistmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
n=int(input())
if n==25:
  print('Christmas') 
elif n==24:
  print('Christmas Eve')
elif n==23:
  print('Christmas Eve Eve') 
elif n==22;
  print('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
ans = "Christmas"
for i in range(25-D):
    ans += " Eve"
print(ans)

Submission status: Runtime Error

Solution code:

Copy
D = int(input())
 
if D ==25;
  print("Christmas")
if D ==24;
  print("Christmas Eve")
if D ==23;
  print("Christmas Eve Eve")
if D ==22;
  print("Crhistmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
print(Christmas Eve *(25-int(input())

Submission status: Runtime Error

Solution code:
D = int(input())

if D ==25;
  print("Christmas)"
if D ==24;
  print("Christmas Eve")
if D ==23;
  print("Christmas Eve Eve")
if D ==22;
  print("Crhistmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
if input()=="22":
  print("Christmas Eve Eve Eve")
if input()=="23":
  print("Christmas Eve Eve")
if input()=="24":
  print("Christmas Eve")
if input()=="25":
  print("Christmas")

Submission status: Runtime Error

Solution code:
N = int(input())

if N = 25:
    ans = 'Christmas'

elif N = 24:
    ans = 'Christmas Eve'

elif N = 23:
    ans = 'Christmas Eve Eve'

else:
    ans = 'Christmas Eve Eve Eve'

print(ans)

Submission status: Runtime Error

Solution code:
a = int(input())
d = {
    25 : 'Christmas',
    24 : 'Christmas Eve Eve',
    23 : 'Christmas Eve Eve Eve'
}
print(d[a])

Submission status: Runtime Error

Solution code:
n=int(input())
if(n==25):
  print("Christmas")
elif(n=24):
  print("Christmas Eve")
elif(n=23):
  print("Christmas Eve Eve")
elif(n==22):
  print("Christmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
D = int(input)
print('Christmas' + ' Eve' * (25 - D))

Submission status: Runtime Error

Solution code:
d = int(input())
if d == 25:
	print("Christmas")
elif d == 24:
	print("Christmas Eve")
elif d == 23:
	print("Christmas Eve Eve"):
else:
	print("Christmas Eve Eve Eve")