problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02757 | n, P = map(int, input().split())
S = input()
ans = 0
#----------------------------------------------
# 1.
# int(S[a:b]) * 10 ** (n - b) == (int(S[a: n]) - int(S[b: n])) で表される
# 例
# S = 1234
# a = 1, b = 3 のとき
# 23 = (234 - 4) // 10 ** (4 - 3)
# = 230 // 10
# = 23
#
# 2.
# Pは素数のため P = 2, 5 のとき以外は 10の約数でない
# A * ... | n, P = map(int, input().split())
S = input()
ans = 0
#----------------------------------------------
# 1.
# int(S[a:b]) * 10 ** (n - b) == (int(S[a: n]) - int(S[b: n])) で表される
# 例
# S = 1234
# a = 1, b = 3 のとき
# 23 = (234 - 4) // 10 ** (4 - 3)
# = 230 // 10
# = 23
#
# 2.
# Pは素数のため P = 2, 5 のとき以外は 10の約数でない
# A * ... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 544,275 | 544,274 | u023958502 | python |
p02757 | N, P = map(int, input().split())
S = input()
ans = 0
rui = [0] * (N + 1)
if 10 % P == 0:
for i in range(len(S)):
if int(S[i]) % P == 0:
ans += i + 1
print(ans)
exit()
t = 1
for i in reversed(range(N)):
tmp = int(S[i]) * t % P
rui[i] = (rui[i + 1] + tmp) % P
t *= 10
t %= ... | N, P = map(int, input().split())
S = input()
ans = 0
rui = [0] * (N + 1)
if 10 % P == 0:
for i in range(len(S)):
if int(S[i]) % P == 0:
ans += i + 1
print(ans)
exit()
t = 1
for i in reversed(range(N)):
tmp = int(S[i]) * t % P
rui[i] = (rui[i + 1] + tmp) % P
t *= 10
t %= ... | [
"assignment.value.change",
"expression.operation.binary.change"
] | 544,300 | 544,301 | u311379832 | python |
p02757 | N, P = map(int, input().split())
S = input()
ans = 0
rui = [0] * (N + 1)
if 10 % P == 0:
for i in range(len(S)):
if int(S[i]) % P == 0:
ans += i + 1
print(ans)
exit()
t = 1
for i in reversed(range(N)):
tmp = int(S[i]) * t % P
rui[i] = (rui[i + 1] + tmp) % P
t *= 10
t %= ... | N, P = map(int, input().split())
S = input()
ans = 0
rui = [0] * (N + 1)
if 10 % P == 0:
for i in range(len(S)):
if int(S[i]) % P == 0:
ans += i + 1
print(ans)
exit()
t = 1
for i in reversed(range(N)):
tmp = int(S[i]) * t % P
rui[i] = (rui[i + 1] + tmp) % P
t *= 10
t %= ... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 544,302 | 544,301 | u311379832 | python |
p02758 | import heapq
mod = 998244353
n = int(input())
robot = [tuple(map(int, input().split())) for _ in range(n)]
robot.sort(reverse=True)
parent = list(range(n))
root = []
for i in range(n):
x, d = robot[i]
while root:
r = heapq.heappop(root)
if r[0] < x + d:
parent[r[1]] = i
else:
heapq.heappu... | import heapq
mod = 998244353
n = int(input())
robot = [tuple(map(int, input().split())) for _ in range(n)]
robot.sort(reverse=True)
parent = list(range(n))
root = []
for i in range(n):
x, d = robot[i]
while root:
r = heapq.heappop(root)
if r[0] < x + d:
parent[r[1]] = i
else:
heapq.heappu... | [] | 544,330 | 544,331 | u686230543 | python |
p02759 | n=int(input())
if n%2==0:
print(n/2)
if not n%2==0:
print(n/2+1) | n=int(input())
if n%2==0:
print(int(n/2))
if not n%2==0:
print(int(n/2+1)) | [
"call.arguments.add",
"call.arguments.change",
"call.add"
] | 544,403 | 544,404 | u428341537 | python |
p02759 | N = int(input())
amari = N % 2
count = int( N // 2 )
print( count + arari ) | N = int(input())
amari = N % 2
count = int( N // 2 )
print( count + amari )
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,405 | 544,406 | u768636516 | python |
p02759 | a = input()
if a % 2 == 0:
print(a // 2)
else:
print((a + 1) // 2) | a = int(input())
if a % 2 == 0:
print(a // 2)
else:
print((a + 1) // 2) | [
"call.add",
"call.arguments.change"
] | 544,424 | 544,425 | u237299453 | python |
p02759 | x=int(input())
print(round(x/2)) | import math
x=int(input())
print(math.ceil(x/2)) | [
"call.arguments.change",
"io.output.change"
] | 544,428 | 544,429 | u488219351 | python |
p02759 | 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)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,436 | 544,437 | u438189153 | python |
p02759 | import math
N = int(input().split())
print(math.ceil(N/2)) | import math
N = int(input())
print(math.ceil(N/2)) | [
"call.remove"
] | 544,438 | 544,439 | u772371451 | python |
p02759 | a = int(input())
print(round(a/2)) | a = int(input())
print((a + 1) // 2) | [
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,440 | 544,441 | u334983390 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,442 | 544,443 | u869154953 | python |
p02759 | n = int(input())
print(n/2 + n%2) | n = int(input())
print(int(n/2) + n%2) | [
"call.arguments.add",
"call.arguments.change"
] | 544,444 | 544,445 | u883820415 | python |
p02759 | N = int(input())
print(N // 2) | N = int(input())
print((N + 1) // 2) | [
"call.arguments.change"
] | 544,446 | 544,447 | u633355062 | python |
p02759 | 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)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,464 | 544,465 | u283751459 | python |
p02759 | 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))
| [
"call.arguments.add",
"call.arguments.change"
] | 544,472 | 544,473 | u096025032 | python |
p02759 | import math
n = int(input())
print(math.floor(n/2)) | import math
n = int(input())
print(math.ceil(n/2)) | [
"misc.opposites",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 544,476 | 544,477 | u965482124 | python |
p02759 | a = int(input())
print((a+1)/2) | a = int(input())
print((a+1)//2) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,504 | 544,505 | u344959959 | python |
p02759 | x = int(input())
print(n+1//2) | x = int(input())
print((x+1)//2) | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,508 | 544,509 | u318661636 | python |
p02759 | n = int(input())
print(n/2) if n%2 == 0 else print(n/2+1) | n = int(input())
print(int(n/2)) if n%2 == 0 else print(int(n/2+1))
| [
"call.arguments.add",
"call.arguments.change",
"call.add"
] | 544,513 | 544,514 | u555356625 | python |
p02759 |
def main():
n = int(input())
print((n+1)/2)
if __name__ == "__main__":
main() |
def main():
n = int(input())
print((n+1)//2)
if __name__ == "__main__":
main() | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,517 | 544,518 | u872271866 | python |
p02759 | n = int(input())
print(n // 2 + n % 1) | n = int(input())
print(n // 2 + (n % 2))
| [
"call.arguments.change",
"literal.number.integer.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,521 | 544,522 | u982594421 | python |
p02759 | n = int(sys.stdin.readline().rstrip("\n"))
if n % 2 == 0:
print(n // 2)
else:
print(n // 2 + 1) | import sys
n = int(sys.stdin.readline().rstrip("\n"))
if n % 2 == 0:
print(n // 2)
else:
print(n // 2 + 1) | [] | 544,528 | 544,529 | u393224521 | python |
p02759 | #A
N = int(input())
if N//2 ==0:
print(N//2)
else:
print(N//2+1) | #A
N = int(input())
if N%2 ==0:
print(N//2)
else:
print(N//2+1) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 544,532 | 544,533 | u408677243 | python |
p02759 | a=int(input())
if a%2==0:
print(int(a))
else:
print(int(a/2+1)) | a=int(input())
if a%2==0:
print(int(a/2))
else:
print(int(a/2+1)) | [
"expression.operation.binary.add"
] | 544,555 | 544,556 | u244836567 | python |
p02759 | n = input()
print((n // 2) + (n % 2)) | n = int(input())
print((n // 2) + (n % 2) ) | [
"call.add",
"call.arguments.change"
] | 544,559 | 544,560 | u468972478 | python |
p02759 | N = int(input())
import math
print(math.celi(N/2)) | N = int(input())
import math
print(math.ceil(N/2)) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 544,589 | 544,590 | u921632705 | python |
p02759 | N = int(input())
print(round(N / 2)) | import math
N = int(input())
print(math.ceil(N / 2)) | [
"call.arguments.change",
"io.output.change"
] | 544,610 | 544,611 | u630467326 | python |
p02759 | n= int(input)
if n%2==0:
print(int(n*0.5))
else:
print(int(0.5*n)+1) | n= int(input())
if n%2==0:
print(int(n*0.5))
else:
print(int(0.5*n)+1) | [
"call.add"
] | 544,625 | 544,626 | u000085263 | python |
p02759 | 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)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,633 | 544,634 | u749614185 | python |
p02759 | n = int(inpur())
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)) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 544,635 | 544,636 | u125269142 | python |
p02759 | n=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)
| [
"call.add",
"call.arguments.change"
] | 544,643 | 544,644 | u159717036 | python |
p02759 | # -*- coding: utf-8 -*-
n = int(input())
if n%2 == 0:
print(int(n/2))
else:
print(int(n//2)) | # -*- coding: utf-8 -*-
n = int(input())
if n%2 == 0:
print(int(n/2))
else:
print(int((n+1)/2)) | [
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,645 | 544,646 | u021763820 | python |
p02759 | n = int(input())
if(n % 2 == 0 ):
a = n / 2
else:
a = n / 2 + 1
print(a) | n = int(input())
if(n % 2 == 0 ):
a = n / 2
else:
a = n / 2 + 1
print(int(a))
| [
"call.arguments.add",
"call.arguments.change"
] | 544,647 | 544,648 | u688281605 | python |
p02759 | n = int(input())
if n % 2 == 0:
print(n//2+1)
else:
print(n//2) | n = int(input())
if n % 2 == 0:
print(n//2)
else:
print(n//2+1) | [
"expression.operation.binary.remove"
] | 544,651 | 544,652 | u920694585 | python |
p02759 | N =input()
print(int(N+1)/2) | N = input()
print(int((int(N)+1)/2)) | [
"call.arguments.change"
] | 544,655 | 544,656 | u194810247 | python |
p02759 | a = input()
if(a%2 == 1):
print((a+1)//2)
if(a%2 == 0):
print(a//2) | a = int(input())
if(a%2 == 1):
print((a+1)//2)
if(a%2 == 0):
print(a//2)
| [
"call.add",
"call.arguments.change"
] | 544,657 | 544,658 | u515441812 | python |
p02759 | n = int(input().split())
a = n // 2 + n % 2
print(a) | n = int(input())
a = n // 2 + n % 2
print(a) | [
"call.remove"
] | 544,667 | 544,668 | u288335507 | python |
p02759 | n=int(input())
if n%2==1:
print(n/2+1)
else:
print(n/2) | n=int(input())
if n%2==1:
print(n//2+1)
else:
print(n//2) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,679 | 544,680 | u566574814 | python |
p02759 | N=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(N//2+1) | [
"call.add",
"call.arguments.change"
] | 544,828 | 544,829 | u185806788 | python |
p02759 | N=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) | [
"call.add",
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,828 | 544,831 | u185806788 | python |
p02759 | n=int(input())
if n%2==0:print(n//2)
else:print(n//+1) | n=int(input())
if n%2==0:print(n//2)
else:print(n//2+1) | [
"call.arguments.change"
] | 544,839 | 544,840 | u440129511 | python |
p02759 | N=input()
N=int(N)
if N%2==1:
N=int(((N-1)/2)+1)
print(N)
else:
N=int(N)
print(N) | N=input()
N=int(N)
if N%2==1:
N=int(((N-1)/2)+1)
print(N)
else:
N=int(N/2)
print(N) | [
"assignment.change"
] | 544,854 | 544,855 | u494295478 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,859 | 544,860 | u969080040 | python |
p02759 | # -*- coding: <encoding name> -*-
import math
n = map(int, input())
print(math.ceil(n / 2)) | # -*- coding: <encoding name> -*-
import math
n = int(input())
print(math.ceil(n / 2)) | [
"call.remove",
"assignment.value.change",
"call.arguments.change"
] | 544,865 | 544,866 | u730710086 | python |
p02759 | import math
n=int(input())
print(math.ceil(n)) | import math
n=int(input())
print(math.ceil(n/2)) | [
"expression.operation.binary.add"
] | 544,884 | 544,885 | u297089927 | python |
p02759 |
n = int(input())
if n%2 == 1:
print(n//2 + 1)
else:
print(2//n)
|
n = int(input())
if n%2 == 1:
print(n//2 + 1)
else:
print(n//2)
| [
"expression.operation.binary.remove"
] | 544,889 | 544,890 | u304593245 | python |
p02759 | n=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) | [
"call.add",
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,899 | 544,898 | u549603397 | python |
p02759 | # -*- coding: utf-8 -*-
N = int(input())
g = N // 2
k = ( N + 1 ) // 1
if N % 2 == 0:
print(g)
else:
print(k) | # -*- coding: utf-8 -*-
N = int(input())
g = N // 2
k = ( N + 1 ) // 2
if N % 2 == 0:
print(g)
else:
print(k) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 544,906 | 544,907 | u767438459 | python |
p02759 | n = int(input())
if n // 2:
print(n // 2 + 1)
else:
print(n // 2) | n = int(input())
if n % 2:
print(n // 2 + 1)
else:
print(n // 2) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 544,916 | 544,917 | u296989351 | python |
p02759 | 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) | [
"call.add",
"call.arguments.change"
] | 544,921 | 544,922 | u277641173 | python |
p02759 | import math
N = int(input())
print(math.ceil(N))
| import math
N = int(input())
print(math.ceil(N/2))
| [
"expression.operation.binary.add"
] | 544,927 | 544,928 | u165268875 | python |
p02759 | def solve():
n = int(input())
print(n+1)//2
solve() | def solve():
n = int(input())
print((n+1)//2)
solve() | [
"call.arguments.change"
] | 544,935 | 544,936 | u491550356 | python |
p02759 | 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))
| [
"call.add",
"call.arguments.change"
] | 544,943 | 544,944 | u614320306 | python |
p02759 | import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
a = int(sys.stdin.readline().rstrip())
print(a // 2 if a % 2 == 0 else a // 2 + 1)
if __name__ == '__main__':
main()
| import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
A = int(sys.stdin.buffer.readline().rstrip())
print(A//2 if A%2 == 0 else A//2 + 1)
if __name__ == '__main__':
main()
| [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,947 | 544,948 | u634079249 | python |
p02759 | import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
a = int(sys.stdin.readline().rstrip())
print(int(a // 2 if a % 2 == 0 else a // 2 + 1))
if __name__ == '__main__':
main()
| import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
a = int(sys.stdin.readline().rstrip())
print(a // 2 if a % 2 == 0 else a // 2 + 1)
if __name__ == '__main__':
main()
| [
"call.arguments.change"
] | 544,949 | 544,950 | u634079249 | python |
p02759 | a = input()
n, mod = divmod(a, 2)
print(n if mod == 0 else n + 1) | a = input()
n, mod = divmod(int(a), 2)
print(n if mod == 0 else n + 1) | [
"call.add",
"call.arguments.change"
] | 544,951 | 544,952 | u634079249 | python |
p02759 | i = input()
a = i//2
b = i%2
print(a+b) | i = input()
a = int(i)//2
b = int(i)%2
print(a+b) | [
"call.add",
"call.arguments.change"
] | 544,959 | 544,960 | u694402282 | python |
p02759 | print(round(int(input())/2)) | import math
print(math.ceil(int(input())/2)) | [
"call.arguments.change",
"io.output.change"
] | 544,961 | 544,962 | u100873497 | python |
p02759 | import sys
N = int(input()) + 1
ans = N / 2
print(ans) | import sys
N = int(input()) + 1
ans = N // 2
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 544,970 | 544,971 | u101371735 | python |
p02759 | import math
n= int(input())
print(math.ceil(n))
| import math
n = int(input())
print(math.ceil(n/2))
| [
"expression.operation.binary.add"
] | 544,980 | 544,981 | u169350228 | python |
p02759 | s = input()
print(s//2 + s%2) | s = int(input())
print(s//2 + s%2) | [
"call.add",
"call.arguments.change"
] | 544,982 | 544,983 | u482522932 | python |
p02759 | n = int(input())
if n%2 == 0:
print(n/2)
else:
print(math.floor(n/2)+1) | import math
n = int(input())
if n%2 == 0:
print(n//2)
else:
print(math.floor(n//2)+1) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 544,991 | 544,990 | u834248129 | python |
p02759 | 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) | [
"call.arguments.add",
"call.arguments.change"
] | 544,999 | 544,998 | u129749062 | python |
p02759 | 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) | [
"call.add",
"call.arguments.change"
] | 545,002 | 545,003 | u423193302 | python |
p02759 | if __name__ == '__main__':
r = input()
r = int(r)
result = int(r/2)+1
print(result) | if __name__ == '__main__':
r = input()
r = int(r)
result = int(r/2+0.5)
print(result) | [
"expression.operation.binary.remove"
] | 545,005 | 545,006 | u619144316 | python |
p02759 | i = int(input())
if i // 2 == 0:
print(int(i/2))
else:
print(int(i/2 + 1)) | i = int(input())
if i % 2 == 0:
print(int(i/2))
else:
print(int(i/2) +1) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"call.arguments.change"
] | 545,009 | 545,010 | u571832343 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 545,011 | 545,012 | u678505520 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"call.arguments.change"
] | 545,013 | 545,012 | u678505520 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 545,013 | 545,014 | u678505520 | python |
p02759 | N = input()
N = int(N) /2 + int(N)%2
print(N) | N = input()
N = int(N) //2 + int(N)%2
print(N) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 545,022 | 545,023 | u849647454 | python |
p02759 | 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) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 545,026 | 545,027 | u548093253 | python |
p02759 | n=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((n//2)+1) | [
"call.add",
"call.arguments.change"
] | 545,030 | 545,029 | u224119985 | python |
p02759 | 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) | [
"misc.opposites",
"identifier.change",
"call.function.change"
] | 545,033 | 545,034 | u347920118 | python |
p02759 | def main():
x = input()
if(x % 2 == 0):
print(x//2)
else:
print(x//2 + 1)
if __name__ == 'main__':
main()
| def main():
x = int(input())
if(x % 2 == 0):
print(x//2)
else:
print(x//2 + 1)
if __name__ == '__main__':
main()
| [
"call.add",
"call.arguments.change",
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 545,041 | 545,042 | u250554058 | python |
p02759 | n = int(input())
x = n//2
n =n%2
print(x+y) | n = int(input())
x = n//2
n =n%2
print(x+n)
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 545,043 | 545,044 | u886907961 | python |
p02759 | num = int(input())
print(num/2 + num%2) | num = int(input())
a = num//2 + num % 2
print(a) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"call.add"
] | 545,047 | 545,048 | u615323709 | python |
p02759 | N = input()
if N % 2 == 1:
a = 1
else:
a = 0
print(N//2+a) | N = int(input())
if N % 2 == 1:
a = 1
else:
a = 0
print(N//2+a) | [
"call.add",
"call.arguments.change"
] | 545,055 | 545,056 | u856282038 | python |
p02759 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_... | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_... | [
"assignment.add"
] | 545,061 | 545,062 | u285891772 | python |
p02759 | n = int(input())
ans = n//2
print(ans) | n = int(input())
ans = -(-n//2)
print(ans) | [] | 545,067 | 545,068 | u524534026 | python |
p02759 | 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) | [
"assignment.value.change"
] | 545,069 | 545,070 | u174766008 | python |
p02759 | 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)) | [
"call.arguments.add",
"call.arguments.change"
] | 545,092 | 545,093 | u238084414 | python |
p02759 | print(int(input()) // 2)
| print((int(input()) + 1) // 2)
| [
"call.arguments.change"
] | 545,094 | 545,095 | u471641802 | python |
p02759 | #--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#from math import sqrt
#--------------------------------------------
N = int(input())
print((N//2)+1) | #--------------------------------------------
#ライブラリ呼び出し
import sys
import math
#from math import sqrt
#--------------------------------------------
N = int(input())
print(math.ceil(N/2)) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.binary.remove"
] | 545,108 | 545,109 | u142211940 | python |
p02759 | n = int(input())
print((n-1)/2) | n = int(input())
print(int((n+1)/2)) | [
"call.arguments.add",
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 545,117 | 545,118 | u106181248 | python |
p02759 | 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)) | [
"call.arguments.add",
"call.arguments.change"
] | 545,121 | 545,122 | u375193358 | python |
p02759 | n = int(input())
s = n//2
t = n%2
if t ==1:
print(s+1)
if t ==0:
print(s+1)
| n = int(input())
s = n//2
t = n% 2
if t ==1:
print(s+1)
if t ==0:
print(s) | [
"expression.operation.binary.remove"
] | 545,131 | 545,132 | u231038326 | python |
p02759 | n = int(intput())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 545,151 | 545,152 | u912318491 | python |
p02759 | n = int(intput())
res = n // 2
if n % 2 == 1:
res += 1
print(res) | n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 545,153 | 545,152 | u912318491 | python |
p02759 | n = int(intput())
res = n // 2
if res % 2 == 1:
res += 1
print(res) | n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 545,156 | 545,152 | u912318491 | python |
p02759 | n = int(intput())
res = n // 2
if res % 2 == 1:
res += 1
print(res) | n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 545,157 | 545,152 | u912318491 | python |
p02759 | n = int(input())
res = n //2
if n%2 == 1:
res += 1
return res | n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"function.return_value.change",
"call.arguments.change"
] | 545,158 | 545,152 | u912318491 | python |
p02759 | n = int(input())
res = n//2
if res % 2 == 1:
res += 1
return res | n = int(input())
res = n // 2
if n % 2 == 1:
res += 1
print(res)
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"function.return_value.change",
"call.arguments.change"
] | 545,159 | 545,152 | u912318491 | python |
p02759 | N = int(input())
if N % 2 != 0:
print((N/2)+1)
else:
print(N/2)
| N = int(input())
if N % 2 != 0:
print(int(N/2)+1)
else:
print(int(N/2))
| [
"call.add",
"type_conversion.to_integer.change",
"type_conversion.to_number.change",
"call.arguments.change"
] | 545,164 | 545,165 | u443972048 | python |
p02759 | n = int(input())
print(n + 1 // 2) | n = int(input())
print((n + 1) // 2) | [
"call.arguments.change"
] | 545,178 | 545,179 | u577868286 | python |
p02759 | n=int(input())
if n%2 == 0:
print(n/2)
else:
print(int(n/2)) | n=int(input())
if n%2 == 0:
print(int(n/2))
else:
print(int(n/2)+1)
| [
"call.arguments.add",
"call.arguments.change"
] | 545,182 | 545,181 | u593364182 | python |
p02759 | import math
N = int(input())
print(math.ceil(N//2))
| import math
N = int(input())
print(math.ceil(N/2))
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 545,185 | 545,186 | u223646582 | python |
p02759 |
a = int(input())
print(int(a/2)+1) |
a = int(input()) + 1
print(int(a/2)) | [
"expression.operation.binary.remove"
] | 545,187 | 545,188 | u946996108 | python |
p02759 | import math
N = int(input())
number_of_pages = math.floor(N / 2)
print(number_of_pages)
| import math
N = int(input())
number_of_pages = math.ceil(N / 2)
print(number_of_pages)
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 545,213 | 545,214 | u017624958 | python |
p02759 | p = int(input())
print(p+1 // 2)
| p = int(input())
print((p+1) // 2)
| [
"call.arguments.change"
] | 545,243 | 545,244 | u296101474 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.