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:
from sys import stdin
N = int(input())
P = sorted([int(p) for p in stdin.read().splitlines()])

print(int(P[-1]/2)+sum(P[:-1]))

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("Christmas Eve Eve Eve")

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("Christmas Eve Eve Eve")

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")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def print_chr(D):
  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:
import sys
intput = sys.stdin.readline()

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:

import sys
INPUT = sys.stdin.readline

def SINGLE_INT(): return int(INPUT())
def MULTIPLE_INT_LIST(): return list(map(int, INPUT().split()))
def MULTIPLE_INT_MAP(): return map(int, INPUT().split())
def SINGLE_STRING(): return INPUT()
def MULTIPLE_STRING(): return INPUT().split()

N, K = MULTIPLE_INT_MAP()
trees = [int(input()) for _ in range(N)]
trees.sort()
ans = float('inf')

# for i in range(0, N-K+1):
#     ans = min(ans, trees[i+K-1] - trees[i])
#     if ans == 0:
#         break

# print(ans)

print(min(trees[i+K-1]-trees[i] for i in range(N-K+1)))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
h = [int(input()) for i in range(N)]
h.sort()
ans=[]
for i in range(len(h)-K+1):
  b=h[K+1-i]-h[i]
  ans.append(b)
print(min(b))

Submission status: Runtime Error

Solution code:
import itertools
N,K=map(int,input().split())
L=[]
for l in range(N):
  L.append(int(input()))
ans=[]
for r in list(itertools.combinations(L,K)):
  ans.append(max(r)-min(r))
print(min(ans))

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')

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
h = [0]*N

for n in range(N):
    h[n] = int(input())
    
h.sort()

tree = h[:K]
height = []
height.append(tree[-1]-tree[0])

for n in range(K,N):
    tree.pop(0)
    tree.append(h[n])
    height.append(tree[-1]-tree[0])  

print(min(height))

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())
x = X
nums = [1]
p_count = [1]
for i in range(N):
    nums.append(2 * nums[-1] + 3)
    p_count.append(2 * p_count[-1] + 1)


def solve_p(N, X):
    if X <= 1:
        return 0
    elif N == 0:
        return 1
    else:
        if X == (nums[N]) // 2:
            return (p_count[N]+1) // 2
        elif X < nums[N] // 2:
            return solve_p(N - 1, X - 1)
        else:
            return p_count[N-1]+1+solve_p(N-1, X-(nums[N]+1)//2)


print(solve_p(N, X))
"""
ans = 0
for i, n in enumerate(nums[:-1]):
    if X == n:
        ans += p_count[i]
        break
    elif X > n // 2:
        X -= p_count[i]//2
        ans += p_count[i] // 2
    elif X == n // 2:
        ans += (p_count[i] + 1) // 2
        break
# print(ans)

burger = ["P"]
for i in range(N):
    burger.append(("B"+burger[i]+"P"+burger[i]+"B"))
print(burger)  # [N + 1])

print(burger[N])

print(burger[N][:x].count("P"))
"""

Submission status: Runtime Error

Solution code:
D = int(input())
print("Cristmas "+" ".joined(["eve" for i in range(25-D)]))

Submission status: Runtime Error

Solution code:
n = int(input())
p = list(range(n))

for i in range(n):
	p[i] = int(input())
p[p.index(max(p))] //= 2
ans = sum(p)
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
print(Christmas, end = " ")
while n < 25:
  print(Eve, end = " ")
  n += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,*p=map(int,open(0).read().split())
print(int(sum(p)-max(p)/2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D=input()
if D="22":
  print("Christmas Eve Eve Eve")
elif D="23":
  print(Christmas Eve Eve")
elif D="24":
  print("Christmas Eve")
else:
  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')
else:
    print('Christmas Eve Eve Eve')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D = int(input())
a_dict={22:Christmas Eve Eve Eve,23:Christmas Eve Eve,24:Christmas Eve,25:Christmas}
print(a_dict[D])

Submission status: Runtime Error

Solution code:
def bread_cnt(lev):
    return 2 ** (lev + 1) - 2


def patty_cnt(lev):
    return 2 ** (lev + 1) - 1


def burger_cnt(lev):
    return 2 ** (lev + 2) - 3


def solve(n, x):
    return _solve(n, x, 0)


def _solve(n, x, p):
    total_s = burger_cnt(n)
    mid = (total_s + 1) // 2

    if x == 1:
        return p + (1 if n == 0 else 0)
    elif 1 < x <= mid:
        reach_mid = 1 if x == mid else 0
        return _solve(n - 1, x - 1 - reach_mid, p + reach_mid)
    elif mid < x < total_s:
        return _solve(n - 1, x - 2 - burger_cnt(n - 1), p + 1 + patty_cnt(n - 1))
    elif x == total_s:
        return p + patty_cnt(n)


n, x = map(int, input().split(' '))
print(solve(n, x))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D = int(input())

num = 25 - D
s = "Christmas"

for i in num:
    s += " Eve"

print(s)

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 d==22:
    print('Christmas Eve Eve Eve')

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 d==22:
    print('Christmas Eve Eve Eve ')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D = int(imput())
if D = 25:
  print('Christmas')
elif D =24:
  print('Christmas Eve')
elif D = 23:
  print('Christmas Eve Eve')
else:
  print('Christmas Eve Eve Eve')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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")

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:
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:
d = int(input())

if d == 25:
    pritn("Christmas")
elif d == 24:
    print("hristmas Eve")
elif d == 23:
    print("Christmas Eve Eve")
else:
    print("Christmas Eve Eve Eve")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D=int(input())
ifD=="25":hristmas:
    day="Christmas"
elif D==24:
  DAY="Christmas Eve"
else :
 　error
print(day)

Submission status: Runtime Error

Solution code:
D=int(input())
if D==25:
      DAY="Cristmas"
elif D==24:
      DAY="Christmas Eve"
elif D==23:
      DAY="Christmas Eve Eve"
else:
  DAY₌”Christmas Eve Eve Eve”

Submission status: Runtime Error

Solution code:
import sys
 
D = int(input())
if D == 22:
  output("Christmas Eve Eve Eve")
if D == 23:
  output("Christmas Eve Eve")
if D == 24:
  output("Christmas Eve")
if D == 25:
  output("Christmas")

Submission status: Runtime Error

Solution code:
import sys

D = int(input())
if D = 22:
  output("Christmas Eve Eve Eve")
if D = 23:
  output("Christmas Eve Eve")
if D = 24:
  output("Christmas Eve")
if D = 25:
  output("Christmas")

Submission status: Runtime Error

Solution code:
D = int(input())

if D = 25;
  print("Christmas")
elif D = 24;
  print("Chirstmas Eve")
elif D = 23;
  print("Christmas Eve Eve")
else;
  print("Christmas Eve Eve Eve")

Submission status: Runtime Error

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

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")

Submission status: Runtime Error

Solution code:
import math
n,k = map(int,input().split())
hList = [int(input()) for a in range(n)]
hList.sort()
mn = 10**10
for a in range(n - k + 1):
    mn=min([mn,hList[a+k-1]-hList[a]])
print(mn)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l = [1]
p = [1]
N, X = map(int, input().split())
for i in range(N):
    l.append(l[i] * 2 + 3)
    p.append(p[i] * 2 + 1)


def calc(n, x):
    if l[n] <= x:
        return p[n]
    if x == 0 or x == 1:
        return 0
    if x <= l[n] // 2:
        return calc(n - 1, x - 1)
    elif x == l[n] // 2 + 1:
        return p[n - 1] + 1
    else:
        return p[n - 1] + 1 + calc(n - 1, x - (l[n - 1] + 2))


print(calc(N, X))

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:
cri = {"25":"Christmas",
	"24":"Christmas Eve",
	"23":"Christmas Eve Eve",
	"22":"Christmas Eve Eve Eve"}
print(cri[nput()])

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:
D = int(input())

if D==25:
    print('Christmas')
elif D==24:
    print('Christmas Eve')
elif D==23:
    print('Christmas Eve Eve')
ellif D==22:
    print('Christmas Eve Eve Eve')

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')
ellif D==22:
    print('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
if D==25:
    print('Christmas')
elif D==24:
    print('Christmas Eve')
elif D==23:
    print('Christmas Eve Eve')
else:
    print('Christmas Eve Eve Eve')

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:
      print("Christmas Eve Eve Eve")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
d = input()

print("Christmas")
if d = 24:
	print(" Eve")
elif d = 23:
	print(" Eve Eve")
elif d = 22:
	print(" Eve Eve Eve")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
h = [int(input()) for i in range(N)]

h.sort()

min_h = 1000000000

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

print(min_h)

Submission status: Runtime Error

Solution code:
k=int(input())
if k=25:
  print("Christmas")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D = 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:
D = int(input())

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

Submission status: Runtime Error

Solution code:
def f(level,x):
    if level==0: return x

    if x in [1,0]:
        return 0
    elif x==b[level][0]:
        return b[level][1]
    elif 2<=x<b[level-1][0]+2:
        return f(level-1,x-1)
    elif x==b[level-1][0]+2:
        return b[level-1][1]+1
    elif b[level-1][0]+2<x<b[level][0]:
        return b[level-1][1]+1+f( level-1, x-(b[level-1][0]+2))

N,X=map(int,input().split())
b=[[1,1] for i in range(N+1)]
for i in range(1,N+1):
    b[i][0]=b[i-1][0]*2+3
    b[i][1]=b[i-1][1]*2+1

print(f(N,X))

Submission status: Runtime Error

Solution code:
data = ["Christmas Eve Eve Eve", "Christmas Eve Eve", "Christmas Eve", "Christmas"]

print(data(int(input())-22))

Submission status: Runtime Error

Solution code:
if D=22
print ("Christmas 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:
N,K = [int(i) for i in input().split()]
H = sorted([int(input()) for i in range(N)])
ans = H[K - 1] - H[0]
for i in range(N - K + 1):
    t = H[K + i - 1] - H[i]
    if ans > t:
        ans = t
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
print(Christmas + " Eve" * (25-n))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
D = int(input())

if D = 25:
  print(Chrismas)
elif D = 24:
  print(Chrismas Eve)
elif D = 23:
  print(Chrismas Eve Eve)
elif D = 22:
  print(Chrismas Eve Eve Eve)

Submission status: Runtime Error

Solution code:
import scipy as sp

N, K = list(map(int, input().split()))

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

tree.sort()

print(min(tree[N-K+i] - tree[i] for i in range(N-K+1)))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def putty(n):
    if (n == 0):
        return [1]
    return [0]+putty(n-1)+[1]+putty(n-1)+[0]

n, x = map(int, input().split())
a = putty(n)
a = a[:x]
print(sum(a))

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:
    print("Christmas Eve Eve Eve")

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
price = []

for i in range(N):
    price.append(int(input()))
    
price = np.array(price)
max_index = np.argmax(price)

print(int(np.sum(price) - price[max_index] / 2))

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
price = []

for i in range(N):
    price.append(int(input()))

price = np.array(price)
max_index = np.argmax(price)

print(int(np.sum(price) - price[max_index] / 2))

Submission status: Runtime Error

Solution code:
q={22:"Christmas Eve Eve Eve",23:"Christmas Eve Eve",24:"Christmas Eve",25:"Christmas"}
print(q[int(input())]

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 d == 22:
	print('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
input = int(input)
if(input == 22):
  print("Christmas Eve Eve Eve")
elif(input == 23):
  print("Christmas Eve Eve")
elif(input == 24):
  print("Christmas Eve")
elif(input == 25):
  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:
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,k=map(int,input().split())
h=[int(input()) for _ in range(n)]
h.sort()
ans=0

for i in range(n-k+1):
  if ans>h[i+k-1]-h[i]:
    ans=h[i+k-1]-h[i]
    
print(ans)

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:
D=int(input())
if D == 25:
    print('Christmas')
elif D == 24:
    print('Christmas Eve')
elif D == 23:
    print('Christmas Eve Eve')
elif D == 22:
    pribt('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())

def rep(N,X):
    if N == 1:
        if X == 1 or X == 5:
            return(0)
        else:
            return(X-1)
    else:
        n = 2**(N+2)-3
        a = n//2-(X-1)
        p = 2**N-1
        if a < -1:
            return(rep(N-1, abs(a)) + p + 1)
        elif a == -1 or a == 0 or a == 1:
            return(p + 1)
        else:
            return(rep(N-1, X-1))
print(rep(N,X))

Submission status: Runtime Error

Solution code:
N,K=map(int,input().split(" "))
H=[int(input()) for _ in range(N)]
H.sort()
tmax=10**9
for a in range(N-K+1):
    h1,h2=H[a],H[a+K]
    tmax=min(tmax,abs(h1-h2))
    if(tmax==0):
        break
print(tmax)

Submission status: Runtime Error

Solution code:
_,*a=map(int,open(0).readlines());print(sum(a)-max(a)//2)

Submission status: Runtime Error

Solution code:
N,K = map(int, input().split())
trees = [int(input()) for _ in range(N)]

trees.sort()

print(min([max_h-min_h for min_h,max_h in zip(trees,trees[K-1:])]))

Submission status: Runtime Error

Solution code:
    a = int(input())
    list = [22,23,24,25]
    message = ['Christmas Eve Eve Eve','Christmas Eve Eve', 'Christmas Eve', 'Christmas']
    index = list.index(a)
    print(message[index])

Submission status: Runtime Error

Solution code:
a = int(input())
list = [22,23,24,25]
message = ['Christmas Eve Eve Eve','Christmas Eve Eve', 'Christmas Eve', 'Christmas']
index = list.index(a)
print(message[a])

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
using namespace std;

int main() {
  int D;
  cin >> D;
  if (D == 25) { 
    cout << "Christmas" <<endl;
  }
  else if (D == 24) {
    cout << "Christmas Eve" << endl;
  }
  else if (D == 23) {
    cout << "Christmas Eve Eve" << endl;
  }
  else if (D == 22) {
    cout << "Christmas Eve Eve Eve" << endl;
  }
}

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
h = list()
ans = list()

for i in range(n):
    h.append(int(input()))
h.sort()

for i in range(n-k+1):
    ans.append(h[i+k-1] - h[i])

print(min(ans))

Submission status: Runtime Error

Solution code:
from functools import reduce
from operator import add
n = int(input())

p = []

for i in range(n):
    p.append(int(input()))

sp = sorted(p, reverse=True)

sp[0] = int(sp[0] / 2)

print(reduce(add, sp))

Submission status: Runtime Error

Solution code:
d = int(input())

if d = 22:
    print("Christmas Eve Eve Eve")
elif d = 23:
    print("Christmas Eve Eve")
elif d = 24:
    print("Christmas Eve")
else:
    print("Christmas")

Submission status: Runtime Error

Solution code:
N = int(input())
h = list(map(int, input().split()))
h.append(0)
count=0
while 1:
  flag=0
  for i in range(N):
    if h[i]>0:
      h[i] -= 1
      flag = 1
      if h[i+1]==0:
        count+=1
      else:
        pass
  if flag==0:
    break
print(count)

Submission status: Runtime Error

Solution code:
def main():
    N, K = map(int, input().split())
    h = [int(input()) for count in range(N)]
    h.sort()
    min_value = min(h[i + K - 1] - h[i] for i in range(N - K + 1))
    print(min_value)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
#include<stdio.h>
int main(){
	int D;
	scanf("%d",&D);
	if (D==25){
		puts("Christmas");
	}
	else if (D == 24){
		puts("Christmas Eve");
	}
	else if(D==23){
		puts("Christmas Eve Eve");
	}
	else if(D ==22){
		puts("Christmas Eve Eve Eve");
	}
}

Submission status: Runtime Error

Solution code:
D = int(input())
C = "Chiristmas"
if 22 <= D <= 25:
  for i in range(D, 25):
    C += " Eve"
	print(C)

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())
a,p=[1],[1] 
for i in range(N):
    a.append(a[i] * 2 + 3)
    p.append(p[i] * 2 + 1)
deff(N,X): #X<=0やX>a_Nを許容し解説本文から簡略化 
    if N == 0:
        return 0 if X <= 0 else 1
    elif X <= 1 + a[N-1]:
        return f(N-1, X-1)
    else:
        return p[N-1] + 1 + f(N-1, X-2-a[N-1])
print(f(N, X))

Submission status: Runtime Error

Solution code:
("Christmas " + (25 - (int(input())) * "Eve ")).strip()

Submission status: Runtime Error

Solution code:
D=int(input())
str="Christmas"
while D<25:
  	str+=" EVE"
    D+=1
print(str)

Submission status: Runtime Error

Solution code:
'Christmas' + (25 - D) * ' Eve'

Submission status: Runtime Error

Solution code:
print(D)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(input()) for i in range(n)]
a = sorted(a)
print((max(a) // 2) + sum(a) -max(a))

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('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
input = (int)input()

if input == 22:
  print("Christmas Eve Eve Eve")
else if input == 23:
  print("Christmas Eve Eve")
else if input == 24:
  print("Christmas Eve")
else if input == 25:
  print("Christmas")
else:
  print(null)

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, K = map(int, input().split())
h_list = []
for _ in range(N):
    h_list.append(int(input()))
h_list.sort()

err_list = [h_list[i+K-1] - h_list[i] for i in range(N-K+1)]
print(min(err_list))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
start = list(map(int, input().split()))
n,k = start[0], start[1]

lst = [int(input()) for i in range(n)]

lst.sort()
lst.reverse()

diff_lst = list()
for i in range(n-k+1):
    diff_lst.append(lst[i] - lst[i+k-1])
print(min(diff_lst))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
print("Christmas",["Eve "] * 25 - N)

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')

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 d = 22:
  print('Christmas Eve Eve Eve')

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 d = 22:
  print('Christmas Eve Eve Eve')

Submission status: Runtime Error

Solution code:
print("Christmas"+sum([" Eve" for _ in range(25-input())]))

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
lst = []
for _ in range(N):
    lst.append(int(input()))
lst = sorted(lst)
ret = 100000000000
 
for idx, x in enumerate(lst[:-K+1], 0):
    tmp = lst[idx + K-1] - x
    if tmp < ret:
        ret = tmp
print(ret)

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:
D = input
msg = 'Christmas'
ev = ' Eve'
dic = {'22':msg+ev*3, '23':msg+ev*2, '24':msg+ev, '25':msg}
print(dic[str(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")

Submission status: Runtime Error

Solution code:
d = int(input())
string = 'Christmas'
for i range(25 - d):
  string += ' Eve'
print(string)

Submission status: Runtime Error

Solution code:
print("22から25までの数値を入力して下さい")
D = int(input())

if D == 22:
    print("Christmas Eve Eve Eve")
    break
elif D == 23:
    print("Christmas Eve Eve")
    break
elif D == 24:
    print("Christmas Eve")
    break
elif D == 25:
    print("Christmas")
    break
else:
    print("22から25までの数値を入力して下さい")
    D = int(input())

Submission status: Runtime Error

Solution code:
def christmasday():
    print("22から25までの数値を入力して下さい")
    number = int(input())

    if number == 22:
        print("Christmas Eve Eve Eve")
        break
    elif number == 23:
        print("Christmas Eve Eve")
        break
    elif number == 24:
        print("Christmas Eve")
        break
    elif number == 25:
        print("Christmas")
        break
    else:
        print("22から25までの数値を入力して下さい")
        number = int(input())
christmasday()

Submission status: Runtime Error

Solution code:
import math

i = input()

c = abs(i - 25)

s = "Christmas"

for _ in range(c)
	s += " Eve"

print(s)

Submission status: Runtime Error

Solution code:
#coding:utf-8
n,k=map(int, input().split())
h=[int(input()) for i in range(n)]
h.sort()
print(min(h[i+k-1] - h[i] for i in range(n-k+1)))

Submission status: Runtime Error

Solution code:
#coding:utf-8
n,k=map(int,input().split())
h=[int(input()) for i in range(n)]
h.sort()
print(min(h[i+k-1]-h[i] for i in range(n-k+1)))

Submission status: Runtime Error

Solution code:
#coding:utf-8
n,k=map(int(input().split()))
h=[int(input()) for i in range(n)]
h.sort()
print(min(h[i+k-1]-h[i] for i in range(n-k+1)))

Submission status: Runtime Error

Solution code:
D = int(input())
print(f"Christmas {Eve*(25-D)}")

Submission status: Runtime Error

Solution code:
N,K=(int(i) for i in input().split())
hlist=[int(input()) for l in range(N)]
hlist.sort()
for j in range(N-K+2):
    dif=[hlist[j+k]-hlist[j]]
print(min(dif))

Submission status: Runtime Error

Solution code:
N=int(input())
price=[int(input()) for i in range(N)]
price.sort(reverse=True)
price[0]=price[0]//2
sum(price)

Submission status: Runtime Error

Solution code:
N=int(input())
price=[]
for i in range(N):
    price.append(int(input()))
price.sort(reverse=True)
price[0]=price[0]//2
sum(price)

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())
a,p=[1],[1] for i in range(N):
  a.append(a[i] * 2 + 3)
  p.append(p[i] * 2 + 1)
def f(N,X): #X<=0やX>a_Nを許容し解説本文から簡略化
  if N == 0:
    return 0 if X <= 0 else 1
  elif X <= 1 + a[N-1]:
    return f(N-1, X-1)
  else:
    return p[N-1] + 1 + f(N-1, X-2-a[N-1])
print(f(N, X))

Submission status: Runtime Error

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