TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N,M=map(int,input().split())
numbers=[' ',]*N
kotae=0
for a in range(M):
    suuji=[]
    s,c=input().split()
    if numbers[int(s)-1]==' ':
        numbers[int(s)-1]=c
    else:
        if numbers[int(s)-1]==c:
            continue
        else:
            print('-1')
            kotae+=1
            break

for a in range(3):
    if numbers[a]==' ':
        numbers[a]=0
if numbers[0]==0:
    del numbers[0]
    if numbers[0]==0:
        del numbers[0]
        if numbers[0]==0:
            del numbers[0]
if kotae==0:
    if len(numbers)!=N:
        print('-1')
    else:
       moji=''
       for a in numbers:
           moji+=str(a)
       print(int(moji))


N=int(input())

print(-(-N//2))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = input()
return (n // 2) + (n % 2) 

n = int(input())
ans = (n // 2) + (n % 2)
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
print((int(input()+1)//2))

print((int(input())+1)//2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
inport math
n=int(input())
print(math.ceil(n/2))

import math
n=int(input())
print(math.ceil(n/2))


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())

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

N = int(input())
result=0

if N%2==0:
  result = N/2
else:
  result = (N+1)/2
 
print(result)


n = int(input())

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import sys
 
N,M = map(int,input().split())
s = []
c = []
if M >= 1:
    for i in range (M):
        s,c = map(int,input().split())
        s.append(s)
        c.append(c)
    
    for i in range(M):
        if s[i] == 1 and c[i] == 0:
            print("-1")
            sys.exit()
a = zip(s, c)
a.sort()
s, c = zip(*a)
s = list(s)
c = list(c)
    if M >= 2:
        for i in range(1,M):
            if s[i - 1] == s[i] and c[i - 1] != c[i]:
                print("-1")
                sys.exit()
        if s[M - 1] == s[M] and c[M - 1] != c[M]:
            print("-1")
            sys.exit()
    for i in range(M):
        cc = [0] * N
        cc[s[i] - 1] = c[i]
    for i in range(min(s[i])):
        cc[i] = 1
    print(cc)
if M == 0:
    cc = [0] * N
    cc[0] = 1
    print(cc)

N = int(input())

if N % 2 == 0:
    print("{}".format(int(N / 2)))
else:
    print("{}".format(int((N + 1) / 2)))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):

def main():
    n = int(input())
    if n % 2 = 1:
        print(n // 2 + 1)
    else:
        print(n / 2)


if __name__ == "__main__":
    main()



def main():
    n = int(input())
    if n % 2 == 1:
        print(n // 2 + 1)
    else:
        print(n // 2)


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import numpy as np

N = int(input())

print(np.ceil(N / 2))

import numpy as np

N = int(input())

print(int(np.ceil(N / 2)))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

print int(n//2) + n % 2

n = int(input())

print(int(n//2) + n % 2)


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

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


n = int(input())

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

n = int(input())

if n % 2 == 0:
  a = n / 2
  print(int(a))
  
else:
  b = n / 2 + 1
  print(int(b))
  


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a=int(input())
if a%2==0:
  print(a/2)
else:
  print((a+1)/2)

a=int(input())
if a%2==0:
  print(int(a/2))
else:
  print(int((a+1)/2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n,m=map(int,input().split())
keep=0
aa=["#"]*n
for i in range(m):
  s,c=map(str,input().split())
  s=int(s)
  if n>=2 and s==1 and c=="0":
    keep=1
    print(-1)
    break
  if aa[s-1]=="#":
    aa[s-1]=c
  elif aa[s-1] !=c:
    keep=1
    print(-1)
    break
if keep==0:
  moji=""
  if aa[0]=="#" and n>=2:
    moji+="1"
  elif n==1 and aa[0]=="#":
    moji+="0"
  else:
    moji+=aa[0]
  for i in range(1,n):
    if aa[i]=="#":
      moji+="0"
    else:
      moji+=aa[i]
  print(moji)

s=input()
if s%2==0:
  print(s//2)
else:
  print(s//2+1)

s=int(input())
if s%2==0:
  print(s//2)
else:
  print(s//2+1)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
x = int(input())
if x % 2 == 1:
  print(x / 2 + 1)
elif x % 2 == 0:
  print(x / 2)


a=int(input())
if (a % 2) == 0:
  print(a / 2)
elif (a % 2) == 1:
  print((a / 2) + 1)

a=int(input())
if a % 2 == 0:
  print(a // 2)
else:
  print((a // 2) + 1)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):

num = int(input())
if num % 2 == 0:	
     print(n/2)
else:
     print(n/2+1)

num = int(input())
if num % 2 == 0:	
    print(int(num/2))
else:
    print(int(num/2+1))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=int(input())
if n%2==0:
  print(n/2)
else:
  print((n+1)/2)

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
card = []

for _ in range(3):
    card.append(list(map(int, input().split())))

n = int(input())

b = []

for _ in range(n):
    b.append(int(input()))

for i in range(3):
    if card[i][0] in b and card[i][1] in b and card[i][2] in b:
        print('Yes')
        exit()
for i in range(3):
    if card[0][i] in b and card[1][i] in b and card[2][i] in b:
        print('Yes')
        exit()
if card[0][0] and card[1][1] and card[2][2]:
    print('Yes')
    exit()
if card[0][2] and card[1][1] and card[2][0]:
    print('Yes')
    exit()


print('No')

import math

n = int(input())

n = math.ceil(n/2)

print(n)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a=input()
s=a%2
if a==1:
    print(a/2+1)
else:
    print(a/2)

import math

a=int(input())
s=a/2
print(math.ceil(s))


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())
if n%2 == 0:
  print(n%2)
else:
  print(n%2 + 1)

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


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = input()
if N % 2 == 0:
  print(N/2)
else:
  print(N//2 ＋1）
        

N = input()
N = int(N)
if N%2==0:
  a = N//2
  print(a)
else:
  b = N//2 +1
  print(b)
        

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
def main():
    N = int(input())
    print(N % 2) if N % 2 == 0 else print(N % 2 + 1)


if __name__ == '__main__':
    main()


def main():
    N = int(input())
    print(N // 2) if N % 2 == 0 else print(N // 2 + 1)


if __name__ == '__main__':
    main()


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input().split())
a = n // 2 + n % 2
print(a)

n = int(input())
a = n // 2 + n % 2
print(a)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = input()

if N%2 ==0:
  ans = N%2
  print(ans)
  
else :
  ans = N%2 + 0.5
  print(int(ans))

N = int(input())

if N%2 ==0:
  ans = N%2
  print(ans)
  
else :
  ans = N%2 + 0.5
  print(int(ans))


N = int(input())

if N%2 ==0:
  ans = N/2
  print(int(ans))
  
else :
  ans = N/2 + 0.5
  print(int(ans))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
if N % 2 == 0:
  print(N/2)
  
if N % 2 != 0:
  print((N//2)+1)

N = N / 2

if N % 2 == 0:
  print(N)
  
if N % 2 != 0:
  print(N+1)
  


N = N // 2
 
if N % 2 == 0:
  print(N)
  
if N % 2 != 0:
  print(N+1)

N = int(input())
 
if N % 2 == 0:
  print(N//2)
  
if N % 2 != 0:
  print((N//2)+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = input()
if n != int or n < 0 or n > 100:
    pass
else:
    x = n / 2
    r = n % 2
    if r != 0 :
        print(int(x+0.5))
    else:
        print(x)

n = int(input())
if n != int or n < 0 or n > 100:
    pass
else:
    x = n / 2
    r = n % 2
    if r != 0 :
        print(x+r)
    else:
        print(x)

        

n = int(input())
if n != int and (n < 0 or n > 100):
    pass
else:
    x = n / 2
    r = n % 2
    if r != 0 :
        print(x+r)
    else:
        print(x)

import math

n = int(input())
print(math.ceil(n/2))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math
N= n_in()
print(math.ceil(N/2))


def s_in():
    return input()

def n_in():
    return int(input())

def l_in():
    return list(map(int, input().split()))

class Interval():
    def __init__(self, li):
        self.li = li
        self.n = len(li)
        self.sum_li = [li[0]]
        for i in range(1, self.n):
            self.sum_li.append(self.sum_li[i-1] + li[i])

    def sum(self, a, b=None):
        if b is None:
            return self.sum(0, a)

        res = self.sum_li[min(self.n-1, b-1)]
        if a > 0:
            res -= self.sum_li[a-1]
        return res

import math
N= n_in()
print(math.ceil(N/2))


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a = [1,2,3,4,5] + [5]*0
print(a)
exit()

n,m = map(int,input().split())
s = []
c = []
for i in range(m):
  S,C =  map(int,input().split())
  s.append(S)
  c.append(C)
  
num = [1] + [0]*(n-1)
ans = ''
 
for i in range(m):
  if n!=1 and s[i] == 1 and c[i] == 0:
    print(-1)
    exit()
  elif len(set(s)) < len(set(c)):
    print(-1)
    exit()
    
for i in range(m):
  num[s[i]-1] = c[i]
  
for i in range(n):
  ans += str(num[i])
  
print(ans)

n,m = map(int,input().split())
s = []
c = []
if m == 0:
  if n==1:
    print(0)
    exit()
  elif n==2:
    print(10)
    exit()
  else:
    print(100)
    exit()


for i in range(m):
  S,C =  map(int,input().split())
  s.append(S)
  c.append(C)
  
num = [1] + [0]*(n-1)
ans = ''
 
for i in range(m):
  if n != 1 and s[i] == 1 and c[i] == 0:
    print(-1)
    exit()
  elif n == 1 and s[i] == 1 and c[i] == 0:
    print(-1)
    exit()
for i in range(m-1):
  for j in range(i+1,m):
    if s[i] == s[j] and c[i] != c[j]:
      print(-1)
      exit()
      
for i in range(m):
  num[s[i]-1] = c[i]
  
for i in range(n):
  ans += str(num[i])
  
print(ans)

n = int(input())
print(n//2 + 1 if n%2 != 0 else n//2)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
pritn((N+1)//2)

N = int(input())
if N % 2 == 0:
  print(N//2)
else:
  print(N//2 + 1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
p = int(input())

print(p+1 // 2)


p = int(input())

print((p+1) // 2)


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())

if N == 1:
  print(1)
elif N == 2:
  print(1)
else:
  if N % 2 == 1:
    print ((N / 2) + 1)
  else:
    print (N / 2)

N=int(input())
 
if N == 1:
  print(1)
elif N == 2:
  print(1)
else:
  if N % 2 == 1:
    print (int(N / 2) + 1)
  else:
    print (int(N / 2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math
n=int(input())
print(math.ceil(n))

import math
n=int(input())
print(math.ceil(n/2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())

print(round(N/2))


N = int(input())

if N%2==0:
    print(int(N/2))
else:
    print(N//2+1)


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
print(N / 2 + N % 2)

N = int(input())
print(int(N / 2 + N % 2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())
#xs = [int(x) for x in input().split()]




print(N//2)

N=int(input())
print(N+1//2)

N=int(input())
print((N+1)//2)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())
ans=ceil(N/2)
print(ans)

import math
N=int(input())
ans=math.ceil(N/2)
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = input()
jud == N % 2
if jud == 1:
    ans = N // 2 + 1
else:
    ans == N / 2
print(ans)

N = input()
jud = N % 2
if jud == 1:
    ans = N // 2 + 1
else:
    ans == N / 2
print(ans)

N = input()
ans = N // 2
print(ans)

N = input()
M = int(N)
ans = (M + 1) / 2
print(ans)

N = input()
ans = (N + 1) / 2
print(ans)

N = input()
ans = (N + 1) // 2
print(ans)

N = input()
M = int(N)
jud = M % 2
if jud == 1:
    ans = M // 2 + 1
else:
    ans = M // 2
print(ans)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())
if n % 2 == 0:
    print(n/2)
else:
    print((n+1)/2)

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a = input().split()
n = int(a[0])
m = int(a[1])

d = {}
ret = True
for i in range(m):
  a = input().split()
  s = int(a[0])
  c = int(a[1])
  if (d.get(s,-1) != -1) & (d.get(s,-1) != c):
    ret = False
  if (s == 1) & (c == 0):
    ret = False
  if s > n:
    ret = False
  d[s] = c

p = ""    
for i in range(1,n+1):
  if d.get(i,-1) == -1:
    if (i == 1) & (n >1):
      p += "1"
    else:
      p += "0"
  else:
    p += str(d[i])
if ret:
  print(p)
else:
  print("-1")

a = int(input())
print((a + 1)//2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

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

n = int(input())
print(n // 2 if n % 2 == 0 else n // 2 + 1)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(raw_input())

print(N // 2 + N % 2)

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LS()
    return l
  
n = I()

print(n // 2 + n % 2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

print(int(n/2))


n = int(input())

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=map(int, input().split())
if N % 2 == 1:
   print((N+1)/2)
else:
    print(N/2)



#coding: utf-8
N = map(int, input().split())
if N % 2 == 1:
   print((N+1)/2)
else:
    print(N/2)




N = int(input())
if N % 2 == 1:
   print((N+1)/2)
else:
    print(N/2)



N = int(input())
if N % 2 == 1:
   print((N+1)/2)
else:
    print(N/2)



N = int(input())
if N % 2 == 1:
    print(int((N+1)/2))
else:
    print(int(N/2))



Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

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

print(ans)ß

n = int(input())

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

print(ans)


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math
n = input()
print(math.ceil(n/2))

import math
n = int(input())
print(math.ceil(n/2))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())
if N%2==1:
	print(N/2+1)
else:
  print(N/2)

N,M=map(int,input().split())
s=[0]*M
c=[0]*M
ans=[0]*N
s_1i=[]
s_2i=[]
s_3i=[]
for i in range(M):
    s[i],c[i]=map(int,input().split())
flg=0
for i in range(M):
    if s[i]==1 and c[i]==0:
        flg+=1
for i in range(M):
    if s[i]==1:
        s_1i.append(c[i])
    elif s[i]==2:
        s_2i.append(c[i])
    elif s[i]==3:
        s_3i.append(c[i])
if len(s_1i)>=2:
    if s_1i.count(s_1i[0])!=len(s_1i):
        flg+=1
if len(s_2i)>=2:
    if s_2i.count(s_2i[0])!=len(s_2i):
        flg+=1
if len(s_3i)>=2:
    if s_3i.count(s_3i[0])!=len(s_3i):
        flg+=1
if flg>=1:
    print("-1")
else:
    if (1 not in s) and (N!=1):
        ans[0]=1
    for i in range(M):
        ans[s[i]-1]=c[i]
    for i inrange(N):
        print(ans[i],end="")

N=int(input())
print(N/2+1)

N=int(input())
if N%2==1:
    print(int(N/2)+1)
else:
    print(int(N/2))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=input()
print(N//2+N%2)

N=int(input())
print(N//2+N%2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
x = int(input())

print(n+1//2)

x = int(input())

print((x+1)//2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import sys

input = sys.stdin.readline


def main():
    n, m = map(int, input().split())
    if m == 0:
        print(10 ** (n - 1))
        return

    numbers = [-1 for _ in range(n)]
    ret = ''
    for _ in range(m):
        s, c = map(int, input().split())
        if s == 1 and c == 0:
            ret = -1

        if numbers[s - 1] == -1:
            numbers[s - 1] = c
        elif numbers[s - 1] != c:
            ret = -1

    if ret == -1:
        print(ret)
        return

    for i in range(len(numbers)):
        if numbers[i] == -1:
            if i == 0:
                numbers[i] = 1
            else:
                numbers[i] = 0
        if numbers[i] < 0 or numbers[i] > 9:
            ret = -1
            break
        ret += str(numbers[i])

    print(int(ret))


if __name__ == '__main__':
    main()


import math
import sys

input = sys.stdin.readline


def main():
    n = int(input())
    print(math.ceil(n / 2))


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
def math(N):
 if N%2==0:
  return N//2
 else:
  return (N+1)//2

N=int(input())
if N%2==0:
 print(N/2)
else:
 print ((N+1)/2)

N=int(input())
if N%2==0:
 print(N//2)
else:
 print ((N+1)//2)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):

N, M = map(int, input().split())
SC = set(sorted([tuple(map(int, input().split())) for _ in range(M)]))

ans = [-1] * N
for s, c in SC:
    if ans[s-1] == -1:
        ans[s-1] = c
if N >= 2:
    if ans[0] == -1 or ans[0] == 0:
        print(-1)
        exit()
kotae = ''
for a in ans:
    if a == -1:
        kotae += '0'
    else:
        kotae += str(a)
print(kotae)

import math
N = int(input())
print(math.floor(N/2))

import math
N = int(input())
print(math.ceil(N/2))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=input()
print(int(n)//2)

import math
n=int(input())
print(math.ceil(n/2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
a=N/2
b=N%2
if b == 0:
  print(a)
elif b == 1:
  print(a+0.5)
else:
  print("error")
  

import math
N = int(input())
a=N/2
b=N%2
if b == 0:
  print(math.floor(a))
elif b == 1:
  print(math.floor(a+0.5))
else:
  print("error")
  

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=input()

if N%2==0:
    print(int(N/2))
else :
    print(int(N/2)+1)

N=int(input())

if N%2==0:
    print(int(N/2))
else :
    print(int(N/2)+1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a = int(input())
print(round(a/2))

a = int(input())
print((a + 1) // 2)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N,M = map(int, input().split())
sc = [list(map(int, input().split())) for i in range(M)]
num = [0,0,0]
for i in range(M):
    if N == 3 and sc[i][0] == 1 and sc[i][1] == 0 or N == 2 and sc[i][0] == 2 and sc[i][1] == 0: 
        print("-1")
        exit()
    else:
        for j in range(M-1):
            if sc[i][0] == sc[j+1][0]:
                if sc[i][1] != sc[j+1][1]:
                    print("-1")
                    exit()
                else:
                    #if sc[i][1] not in num:
                    num[sc[i][0]-1] = sc[i][1]
            else:
                num[sc[i][0]-1] = sc[i][1]
NUM = num[0] * 100 + num[1] * 10 + num[2]
print(NUM)


s = int(input())
if s%2 == 0:
    print(int(s/2))
else:
    print(int(s/2+1))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math
print(math.ceil(int(input())))


import math
print(math.ceil(int(input()/2)))

import math
print(math.ceil(int(input())/2))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math

print(math.floor(N / 2) + 1 if N % 2 else math.floor(N / 2))

import math

def func(N):
    ans = math.floor(N / 2) + 1 if N % 2 else math.floor(N / 2)
    return ans
  
  
N = int(input())

print(func(N))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())
if N%2==0:
	print(N/2)
else:
	print((N+1)/2)

N=int(input())
if N%2==0:
	print(N/2)
else:
	print(N+1/2)

N=int(input())
if N%2==0:
	print(int(N/2))
else:
	print(int((N+1)/2))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = -(- int(input()) // 2)


print(-(- int(input()) // 2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n, m = map(int, input().split())
l = [list(map(int, input().split())) for i in range(m)]
ans = [9283749384736]*n

if m == 0:
    print(-1)
    exit()


for i in l:
    if i[0] == 1 and i[1] == 0:
        continue
    if ans[i[0]-1] >= i[1]:
        ans[i[0]-1] = i[1]

for i in range(n):
    if ans[i] == 9283749384736:
        ans[i] = 0

s = int("".join(list(map(str, ans))))
if len(str(s)) == n:
    print(s)
else:
    print(-1)



n = int(input())
ans = 0
a = 0
for i in range(1, n+1):
    if ans % 2 == 0:
        a += 1
    ans += 1

print(a)


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n = int(input())

print(int(round(n/2)))


n = int(input())

print(round(n/2))


n = int(input()) / 2 + 0.01

print(int(round(n)))


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
a = int(input())
print((a+1)/2)

a = int(input())
print(a/2 if a % 2 == 0 else a/2+1)

a = iint(input())
print(a/2 if a % 2 == 1 else a//2+1)

a = int(input())
print((a+1)//2)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
A=[[int(x) for x in input().split()]for i in range(3)]
n=int(input())
b=list(map(int,input().split()))
for i in range(3):
    if A[i][0] in b and A[i][1] in b and A[i][2] in b:
        print('Yes')
        exit()
    elif A[0][i] in b and A[1][i] in b and A[2][i] in b:
        print('Yes')
        exit()
if A[0][0] in b and A[1][1] in b and A[2][2] in b:
    print('Yes')
    exit()
if A[2][0] in b and A[1][1] in b and A[0][2] in b:
    print('Yes')
    exit()
print('No')

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

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
#N,K=(int(x) for x in input().split())
N=int(input())
#A=list(map(int, input().split()))

if N % 2==0:
    a=N/2
else:
    a=(N+1)/2
print(a)

#N,K=(int(x) for x in input().split())
N=int(input())
#A=list(map(int, input().split()))

if N % 2==0:
    a=N/2
else:
    a=(N+1)/2
print(round(a))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
num =int(input())
ans = num//2
ans +=min(num%2,0)
print(ans)

num =int(input())
ans = num//2
ans +=max(num%2,0)
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=int(input())
if n%2==0:
  print(n/2)
else:
  print((n+1)/2)

import math
print(math.ceil(int(input()/2)))

n=int(input())
if n%2==0:
  print (n/2)
else:
  a=(n//2+1)
  print a


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


import math
n=int(input())
print(math.ceil(n/2))

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import sys

sys.setrecursionlimit(10**7)

def dfs(x):
    if seen[x-1]==0:
        uni[cnt].append(x)
        seen[x-1]=1
        for i in fri[x-1]:
            dfs(i)
    

n,m,k=map(int,input().split())

fri=[[] for i in range(n)]
blk=[[] for i in range(n)]

for i in range(m):
    a,b=map(int,input().split())
    fri[a-1].append(b)
    fri[b-1].append(a)

for i in range(k):
    c,d=map(int,input().split())
    blk[c-1].append(d)
    blk[d-1].append(c)


seen=[0 for i in range(n)]

uni=[]
cnt=0
for i in range(1,n+1):
    if seen[i-1]==0:
        uni.append([])
        dfs(i)
        cnt+=1

seq=[0 for i in range(n)]

for unii in uni:
    for j in unii:
        cj=len(unii)-len(fri[j-1])-len(set(unii)&set(blk[j-1]))-1
        seq[j-1]=cj

print(*seq)


n=int(input())
print((n+1)//2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
doc = int(input(''))
if doc % 2 == 0 :
          print ( doc / 2 )
else :
    print (doc / 2 + 0.5 )


doc = int(input(''))
if doc % 2 == 0 :
          print (int( doc / 2 ))
else :
    print (int(doc / 2 + 0.5 ))


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
import math
a=int(input())
print(math.ceil(a//2))


import math
N=map(int,input().split())
a=N/2
print(math.ceil(a))


import math
N=int(input())
a=N//2
print(math.ceil(a))

import math
a=int,input()
print(math.ceil(a//2))


import math
a=int,input()
print(math.ceil(a/2))

import math
N=int(input())
a=N/2
print(math.ceil(a))


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
prnit(N//2 + N%2)

N = int(input())
print(N//2 + N%2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=input()
print(round(n/2))

n=int(input())
print(round(n/2))

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = input()
col = N / 2
if col == 0:
  print(col)
else:
  col += 1
  print(col)

import math
N = int(input())
col = math.floor(N / 2)
judge = N % 2
if judge ==0:
  print(col)
else:
  col += 1
  print(col)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=int(input())
S=N%2
if S==0:
  print(N//2)
else:
  print(N//2)+1

N=int(input())
S=N%2
if S==0:
  print(N//2)
else:
  print(N//2+1)


Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
print(int(N/2))

import math
N = int(input())
print(math.ceil(N/2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
N = int(input())
i = 0
j = 0
k = 0

while N > 0:
  dice = int(input())
  while i < 3:
    if A[i] == int(dice):
      A[i] = "z"
      i = i + 1
  while j < 3:
    if B[j] == dice:
      B[j] = "z"
      j = j + 1
  while k < 3:
    if C[k] == dice:
      C[k] = "z"
      k = k + 1
  N = N - 1
      
if A[0] == A[1] == A[2] == "z" or B[0] == B[1] == B[2] == "z" or C[0] == C[1] == C[2] == "z" or A[0] == B[0] == C[0] == "z" or A[1] == B[1] == C[1] == "z" or A[2] == B[2] == C[2] == "z" or A[0] == B[1] == C[2] == "z" or A[2] == B[1] == C[0] == "z":
  print("Yes")
else:
  print("No")

N = int(input())
if N / 2 == N // 2:
  print(int(N / 2))
else:
  print(int(N // 2 + 1))

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N=input()

math.ceil(N)

N=int(input())
import math
ans=math.ceil(N/2)
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
if N%2 == 0:
  print(int(N/2))
else:
  print(int(round(N/2)))

if N%2 == 0:
  print(N/2)
else:
  print(ceil(N/2))

N=101
if N%2 == 0:
  print(int(N/2))
else:
  print(int(round(N/2))

if N%2 == 0:
  print(int(N/2))
else:
  print(int((N+1)/2))

N=input()
if N%2 == 0:
  print(int(N/2))
else:
  print(int(((N+1)/2)))

N=101
if N%2 == 0:
  print(int(N/2))
else:
  print(int(round(N/2)+1))

if N%2 == 0:
  print(N/2)
else:
  print(math.ceil(N/2))

N = int(input())
if N % 2 == 0:
  n = N/2
else:
  n = (N+1)/2
print(n)

A,B,C = map(int,input().split(' '))
num = 0
if A == B == C:
    print(-1)
elif A % 2 == 0 and B % 2 == 0 and C % 2 == 0:
    while A % 2 == 0 and B % 2 == 0 and C % 2 == 0:
        A_c = A
        B_c = B
        C_c = C
        A = B_c /2 + C_c / 2
        B = A_c / 2 + C_c /2
        C = A_c /2 + B_c / 2
        num += 1
    print(num)
else:
    print(0)

if N%2 == 0:
  print(int(N/2))
else:
  print(int(round(N/2)))

if N%2 == 0:
  print(int(N/2))
else:
  print(int(N+1/2))

N = int(input())
if N % 2 == 0:
  n = N / 2
else:
  n = int((N+1) / 2)
print(int(n))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=int(input())
if n%2:
  print(int(n/2)+1)
else:
  print(int(n/2)

n=int(input())
if n%2:
	print(int(n/2)+1)
else:	
	print(int(n/2))



Verdicts: Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())

print((N+1)/2)

N = int(input())

print((N+1)//2)


Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
print(-(-int(input()))//2)

print(-(-int(input())//2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())
if N%2==0:
  print(N/2)
if N==1:
  print("1")
if N==3:
  print("2")
else:
  print(N/2+1)

N = int(input())
if N%2==0:
  print(N/2)
if N==1:
  print("1")
if N==3:
  print("2")
if else:
  print(N/2+1)

N = int(input())
if N%2==0:
  print(N/2)
if N==1:
  print("1")
if N==3:
  print("2")
if N%2==1:
  print(N/2+1)

N = int(input())
if N%2==0:
	print(int(N/2))
else:
	print(int((N+1)/2))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = input()
if N % 2 == 1:
	n = N + 1
else:
	n = N
print(n / 2)

N = input()
if N % 2 == 1:
	n = N + 1
else:
	n = N
print(int(n / 2))

import numpy as np
from scipy.sparse.csgraph import shortest_path
N, M, K = tuple(map(int, input().split()))
friends = [list(map(int, input().split())) for _ in range(M)]
blocks = [list(map(int, input().split())) for _ in range(K)]

friend_matrix = np.zeros((N, N))

for friend in friends:
	friend_matrix[friend[0]-1, friend[1]-1] = 1
	friend_matrix[friend[1]-1, friend[0]-1] = 1

# matrix for direct friendship between 2
# print('friend_matrix')
# print(friend_matrix)

# matrix for friendship distance
friend_distance = shortest_path(friend_matrix)
# print('friend_distance')
# print(friend_distance)

def is_friend_candidate(a, b):
	if a == b:
		return False
	for block in blocks:
		if block == [a, b] or block == [b, a]:
			return False
	for friend in friends:
		if friend == [a, b] or friend == [b, a]:
			return False
	if friend_distance[a-1, b-1] == np.inf:
		return False
	return True

candidate_matrix = np.zeros((N, N))
for i in range(N):
	for other in range(N):
		if candidate_matrix[i, other] == 1:
			continue
		if is_friend_candidate(i+1, other+1):
			candidate_matrix[i, other] = 1
			candidate_matrix[other, i] = 1

# matrix for friendship candidate
# print('candidate_matrix')
# print(candidate_matrix)

# atcoder numpy is outdated
# print(np.__version__)
# candidate_counts = np.count_nonzero(candidate_matrix == 1, axis=0)
candidate_counts = []
for row in candidate_matrix:
	candidate_counts.append(np.count_nonzero(row == 1))

# print('candidate_counts')
# print(candidate_counts)
print(' '.join(map(str, candidate_counts)))
	


N = 3
if N % 2 == 1:
	n = N + 1
else:
	n = N
print(int(n / 2))

N = int(input())
if N % 2 == 1:
	n = N + 1
else:
	n = N
print(int(n / 2))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))

A = A1 + A2 + A3
N = int(input())

index = []
for i in range(N):
    inp = int(input())
    if inp in A:
        index.append(A.index(inp))

if (0 in index and 3 in index and 6 in index) or \
   (1 in index and 4 in index and 7 in index) or \
   (2 in index and 5 in index and 8 in index) or \
   (0 in index and 4 in index and 8 in index) or \
   (2 in index and 4 in index and 6 in index) or \
   (0 in index and 1 in index and 2 in index) or \
   (3 in index and 4 in index and 5 in index) or \
   (6 in index and 7 in index and 8 in index):
    print("Yes")
else:
    print("No")

A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))

A = A1 + A2 + A3
N = int(input())

index = []
for i in range(N):
    index.append(A.index(int(input())))

if (0 in index and 3 in index and 6 in index) or \
   (1 in index and 4 in index and 7 in index) or \
   (2 in index and 5 in index and 8 in index) or \
   (0 in index and 4 in index and 8 in index) or \
   (2 in index and 4 in index and 6 in index) or \
   (0 in index and 1 in index and 2 in index) or \
   (3 in index and 4 in index and 5 in index) or \
   (6 in index and 7 in index and 8 in index):
    print("Yes")
else:
    print("No")

N = int(input())

print( (N + 1) // 2)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
N = int(input())

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

N = int(input())

if N % 2 == 0:
  print(int(N/2))
else:
  print(int(N/2+1))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi wants to print a document with N pages double-sided, where two pages of data can be printed on one sheet of paper.  At least how many sheets of paper does he need?

Submission attempts (in order):
n=int(input())

print(n//2)

n=int(input())

print((n+1)//2)

Verdicts: Wrong Answer

Accepted