Datasets:

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
p02742
H, W = map(int, input().split()) count = H * W // 2 if H % 2 == 1 and W % 2 == 1 : count +=1 if H == 1 or W == 1: count = 0 print(count)
H, W = map(int, input().split()) count = H * W // 2 if H % 2 == 1 and W % 2 == 1 : count +=1 if H == 1 or W == 1: count = 1 print(count)
[ "literal.number.integer.change", "assignment.value.change" ]
518,646
518,647
u860338101
python
p02742
h, w = map(int, input().split()) hd, hm, wd, wm = h // 2, h % 2, w // 2, w % 2 s = hd * wd * 2 + hm * wd + wm * hd + hm * wm if h == 1 or w == 1: s = 0 print(s)
h, w = map(int, input().split()) hd, hm, wd, wm = h // 2, h % 2, w // 2, w % 2 s = hd * wd * 2 + hm * wd + wm * hd + hm * wm if h == 1 or w == 1: s = 1 print(s)
[ "literal.number.integer.change", "assignment.value.change" ]
518,654
518,655
u353548710
python
p02742
h,w=map(int,input().split()) m=h*w if h or w == 1: ans=1 else: if m%2==0: ans=m//2 else: ans=(m+1)//2 print(ans)
h,w=map(int,input().split()) m=h*w if h == 1 or w == 1: ans=1 else: if m%2==0: ans=m//2 else: ans=(m+1)//2 print(ans)
[ "control_flow.branch.if.condition.change" ]
518,656
518,657
u137646745
python
p02742
H,W=map(int,input().split()) if H*W==1: print(1) exit() print((H*W+1)//2)
H,W=map(int,input().split()) if H==1 or W==1: print(1) exit() print((H*W+1)//2)
[ "control_flow.branch.if.condition.change" ]
518,660
518,661
u729939940
python
p02742
#B - Bishop △(TLE,WA) H,W = map(int,input().split()) count = 0 if H == 1 or W == 1:#コーナーケース(H,Wが1の時どこにも動けない) print(1) if H % 2 == 0: count = (H // 2)*W else : count = (H // 2)*W + ((W + 2 - 1) // 2)#x/yの切り上げ:(x+y-1)//y print(count)
#B - Bishop △(TLE,WA) H,W = map(int,input().split()) count = 0 if H == 1 or W == 1:#コーナーケース(H,Wが1の時どこにも動けない) count = 1 elif H % 2 == 0: count = (H // 2)*W else : count = (H // 2)*W + ((W + 2 - 1) // 2)#x/yの切り上げ:(x+y-1)//y print(count)
[ "call.arguments.change", "io.output.change" ]
518,669
518,670
u411923565
python
p02742
# 4 5 import math field = [int(i) for i in input().split(" ")] field_num = field[0] * field[1] if field_num[0] == 1 or field_num[1] == 1: print(1) else: canFillBlock = 0 canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2) canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2) prin...
# 4 5 import math field = [int(i) for i in input().split(" ")] field_num = field[0] * field[1] if field[0] == 1 or field[1] == 1: print(1) else: canFillBlock = 0 canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2) canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2) print(canFil...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
518,697
518,698
u581022379
python
p02742
h, w = map(int, input().split()) #print(h, w) if h == 1 or w == 1: print(0) elif h % 2 == 0 or w % 2 == 0: print(h*w//2) else: print((h*w//2) + 1)
h, w = map(int, input().split()) #print(h, w) if h == 1 or w == 1: print(1) elif h % 2 == 0 or w % 2 == 0: print(h*w//2) else: print((h*w//2) + 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
518,889
518,890
u982749462
python
p02742
def resolve(): ''' code here ''' H, W = [int(item) for item in input().split()] if H == 1 or W == 1: res = 1 elif H % 2 == 1 and W % 2 == 1: res += H * W // 2 +1 else: res = H * W // 2 print(res) if __name__ == "__main__": resolve()
def resolve(): ''' code here ''' H, W = [int(item) for item in input().split()] if H == 1 or W == 1: res = 1 elif H % 2 == 1 and W % 2 == 1: res = H * W // 2 +1 else: res = H * W // 2 print(res) if __name__ == "__main__": resolve()
[ "assignment.value.change" ]
518,934
518,935
u591503175
python
p02742
H, W = map(int,input().split()) if H == 1 or W == 0: print(1) else: print((H * W + 1) // 2)
H, W = map(int,input().split()) if H == 1 or W == 1: print(1) else: print((H * W + 1) // 2)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
518,952
518,953
u189479417
python
p02742
# n, m, l = map(int, input().split()) # list_n = list(map(int, input().split())) # n = input() # list = [input() for i in range(N) # list = [[i for i in range(N)] for _ in range(M)] H, W = map(int, input().split()) ans = 0 if H == 1 or W == 1: ans = 0 else: ans = (-H//2) * (-W//2) + (H//2) * (W//2) print(an...
# n, m, l = map(int, input().split()) # list_n = list(map(int, input().split())) # n = input() # list = [input() for i in range(N) # list = [[i for i in range(N)] for _ in range(M)] H, W = map(int, input().split()) ans = 0 if H == 1 or W == 1: ans = 1 else: ans = (-H//2) * (-W//2) + (H//2) * (W//2) print(an...
[ "literal.number.integer.change", "assignment.value.change" ]
518,965
518,966
u047931063
python
p02742
import sys H, W = map(int, input().split()) if H or W ==1: print(1) sys.exit() a = H * W if a % 2 == 0: answer = a // 2 else: answer = a // 2 + 1 print(answer)
import sys H, W = map(int, input().split()) if H == 1 or W == 1: print(1) sys.exit() a = H * W if a % 2 == 0: answer = a // 2 else: answer = a // 2 + 1 print(answer)
[ "control_flow.branch.if.condition.change" ]
518,967
518,968
u064383240
python
p02742
H,W=map(int,input().split()) import math A=[0,math.ceil(W/2)] if (H-1)*(W-1)!=0: c=W*math.floor(H/2)+A[H%2] else: c=0 print(c)
H,W=map(int,input().split()) import math A=[0,math.ceil(W/2)] if (H-1)*(W-1)!=0: c=W*math.floor(H/2)+A[H%2] else: c=1 print(c)
[ "literal.number.integer.change", "assignment.value.change" ]
518,992
518,993
u492737043
python
p02742
H,W = map(int, input().split()) if H == 1: print(1) elif W == 1: print(1) else: ans = H*(W // 2) if H % 2 == 1: if W % 2 == 0: ans += W // 2 else: ans += W // 2 + 1 print(ans)
H, W = map(int, input().split()) if W == 1: print(1) elif H == 1: print(1) else: ans = W * (H // 2) if H % 2 == 1: if W % 2 == 0: ans += W // 2 else: ans += W // 2 + 1 print(ans)
[ "identifier.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
518,998
518,999
u526131148
python
p02742
h,w=map(int,input().split()) if h==1 and w==1: print(1) exit() ans=h*(w//2) if w%2==1: ans+=(h+2-1)//2 print(ans)
h,w=map(int,input().split()) if h==1 or w==1: print(1) exit() ans=h*(w//2) if w%2==1: ans+=(h+2-1)//2 print(ans)
[ "control_flow.branch.if.condition.change" ]
519,014
519,015
u094191970
python
p02742
h,w = map(int, input().split()) a = h*w if h==1 or w==1: print(0) elif a%2==0: print(a//2) else: print(a//2+1)
h,w = map(int, input().split()) a = h*w if h==1 or w==1: print(1) elif a%2==0: print(a//2) else: print(a//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,030
519,031
u075303794
python
p02742
h,w=[int(x) for x in input().split()] if h==1 or w==1: print(0) elif (h*w)%2==0: print((h*w)//2) else: print((h*w)//2+1)
h,w=[int(x) for x in input().split()] if h==1 or w==1: print(1) elif (h*w)%2==0: print((h*w)//2) else: print((h*w)//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,034
519,035
u920103253
python
p02742
a,b=map(int,input().split()) if min(a,b)==0: ans=1 else: c=(a*b)%2 if c==0: ans=(a*b)//2 elif c==1: ans=((a*b)//2)+1 print(ans)
a,b=map(int,input().split()) if min(a,b)==1: ans=1 else: c=(a*b)%2 if c==0: ans=(a*b)//2 elif c==1: ans=((a*b)//2)+1 print(ans)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
519,038
519,039
u016336953
python
p02742
a,b=map(int,input().split()) if min(a,b)==0: ans=0 else: c=(a*b)%2 if c==0: ans=(a*b)//2 elif c==1: ans=((a*b)//2)+1 print(ans)
a,b=map(int,input().split()) if min(a,b)==1: ans=1 else: c=(a*b)%2 if c==0: ans=(a*b)//2 elif c==1: ans=((a*b)//2)+1 print(ans)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
519,040
519,039
u016336953
python
p02742
h,w = list(map(int, input().split())) if h==1 or w==1: print(0) else: q,r = divmod(h*w, 2) print(q+r)
h,w = list(map(int, input().split())) if h==1 or w==1: print(1) else: q,r = divmod(h*w, 2) print(q+r)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,059
519,060
u687574784
python
p02742
def resolve(): H, W = list(map(int, input().split())) ans = 0 if (H == 1 and W == 1): print(1) return if H % 2 == 1: even = (H // 2) + 1 else: even = (H // 2) odd = H - even if W % 2 == 1: ans += even * (W // 2 + 1) else: ans += even * (W...
def resolve(): H, W = list(map(int, input().split())) ans = 0 if (H == 1 or W == 1): print(1) return if H % 2 == 1: even = (H // 2) + 1 else: even = (H // 2) odd = H - even if W % 2 == 1: ans += even * (W // 2 + 1) else: ans += even * (W ...
[ "control_flow.branch.if.condition.change" ]
519,063
519,064
u364386647
python
p02742
def resolve(): H, W = list(map(int, input().split())) ans = 0 if (H == 1 and W == 1): print(1) return if H % 2 == 1: even = (H // 2) + 1 else: even = (H // 2) odd = H - even if W % 2 == 1: ans += even * (W // 2 + 1) else: ans += even * (W...
def resolve(): H, W = list(map(int, input().split())) ans = 0 if (H == 1 or W == 1): print(1) return if H % 2 == 1: even = (H // 2) + 1 else: even = (H // 2) odd = H - even if W % 2 == 1: ans += even * (W // 2 + 1) else: ans += even * (W ...
[ "control_flow.branch.if.condition.change", "call.add" ]
519,065
519,064
u364386647
python
p02742
h,w = map(int, input().split()) if(h==1 or w==2): print('1') elif(h%2 == 0 or w%2 == 0): print((h*w)//2) else: print((h*w+1)//2)
h,w = map(int, input().split()) if(h==1 or w==1): print('1') elif(h%2 == 0 or w%2 == 0): print((h*w)//2) else: print((h*w+1)//2)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
519,074
519,075
u749742659
python
p02742
(a,b)=[int(x) for x in input().split()] if a==0 or b==0: print(1) else: print((a*b+1)//2)
(a,b)=[int(x) for x in input().split()] if a==1 or b==1: print(1) else: print((a*b+1)//2)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
519,080
519,081
u579508806
python
p02742
H, W = [int(x) for x in input().split(" ")] if H > W: H, W = W, H if H == 1: print(1) if H % 2 == 0: print(W * (H // 2)) else: if W % 2 == 0: print(W * H // 2) else: print(((W - 1) * H // 2) + H // 2 + 1)
H, W = [int(x) for x in input().split(" ")] if H > W: H, W = W, H if H == 1: print(1) elif H % 2 == 0: print(W * (H // 2)) else: if W % 2 == 0: print(W * H // 2) else: print(((W - 1) * H // 2) + H // 2 + 1)
[ "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
519,082
519,083
u299172013
python
p02742
x, y = map(int, input().split()) if x == 1 or y == 1: print(0) elif (x * y) % 2 == 0: print((x * y) // 2) else: print((x * y + 1) // 2)
x, y = map(int, input().split()) if x == 1 or y == 1: print(1) elif (x * y) % 2 == 0: print((x * y) // 2) else: print((x * y + 1) // 2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,146
519,147
u681158084
python
p02742
import math from collections import deque from collections import defaultdict def readInt(): return int(input()) def readInts(): return list(map(int, input().split())) def readChar(): return input() def readChars(): return input().split() def factorization(n): res = [] if n%2==0: res.append(2) for i in range(...
import math from collections import deque from collections import defaultdict def readInt(): return int(input()) def readInts(): return list(map(int, input().split())) def readChar(): return input() def readChars(): return input().split() def factorization(n): res = [] if n%2==0: res.append(2) for i in range(...
[ "control_flow.branch.if.condition.change" ]
519,158
519,159
u509739538
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: print(((h*W) + 1) // 2)
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: print(((H*W) + 1) // 2)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
519,166
519,167
u006738234
python
p02742
def main(): #from sys import stdin, setrecursionlimit #setrecursionlimit(10**9) #r = input() #n = int(input()) #a, b = map(int, input().split()) #s, y = input().split() #a = input().split() #a = list(map(int, input().split())) #a = [input().split() for i in range(n)] #a = [int(in...
def main(): #from sys import stdin, setrecursionlimit #setrecursionlimit(10**9) #r = input() #n = int(input()) #a, b = map(int, input().split()) #s, y = input().split() #a = input().split() #a = list(map(int, input().split())) #a = [input().split() for i in range(n)] #a = [int(in...
[ "control_flow.return.add" ]
519,179
519,180
u414458988
python
p02742
import math n,w=map(int,input().split()) if h==1 or w==1: print(1) else: ans=math.ceil(w/2)*math.ceil(n/2)+(w//2)*(n//2) print(ans)
import math n,w=map(int,input().split()) if n==1 or w==1: print(1) else: ans=math.ceil(w/2)*math.ceil(n/2)+(w//2)*(n//2) print(ans)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
519,204
519,205
u133356863
python
p02742
H,W = map(int,input().split()) ans = 0 ans += H//2*W if H % 2 == 0: print(ans) elif H or W == 1: print(1) else: if W % 2 == 0: ans += W//2 print(ans) else: ans += W//2+1 print(ans)
H,W = map(int,input().split()) ans = 0 ans += H//2*W if H % 2 == 0: print(ans) elif H == 1 or W == 1: print(1) else: if W % 2 == 0: ans += W//2 print(ans) else: ans += W//2+1 print(ans)
[ "control_flow.branch.if.condition.change" ]
519,216
519,217
u733132703
python
p02742
import math H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print(H*W/2 if H*W%2==0 else H*W//2+1)
H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print(H*W//2 if H*W%2==0 else H*W//2+1)
[ "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
519,227
519,228
u779293207
python
p02742
H, W = map(int, input().split()) if H==1 or W==1: print(0) else: if H%2==0: print(H*W//2) else: if W%2==0: print(H*W//2) else: print(H*W//2+1)
H, W = map(int, input().split()) if H==1 or W==1: print(1) else: if H%2==0: print(H*W//2) else: if W%2==0: print(H*W//2) else: print(H*W//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,231
519,232
u368249389
python
p02742
h,w = map(int,input().split()) resp = h*w//2 if h == 1: print(1) else: if (h * w) % 2 != 0: resp += 1 print(resp) elif (h*w) % 2 == 0: print(resp)
h,w = map(int,input().split()) resp = h*w//2 if h == 1 or w == 1: print(1) else: if (h * w) % 2 != 0: resp += 1 print(resp) elif (h*w) % 2 == 0: print(resp)
[ "control_flow.branch.if.condition.change" ]
519,258
519,259
u945335181
python
p02742
H, W = [int(i) for i in input().split()] masu_sum = H * W if H == 1 | W == 1: ans = 1 elif masu_sum % 2 == 0: ans = masu_sum // 2 else: ans = masu_sum // 2 + 1 print(ans)
H, W = [int(i) for i in input().split()] masu_sum = H * W if H == 1 or W == 1: ans = 1 elif masu_sum % 2 == 0: ans = masu_sum // 2 else: ans = masu_sum // 2 + 1 print(ans)
[ "control_flow.branch.if.condition.change" ]
519,266
519,267
u991193366
python
p02742
H, W = [int(i) for i in input().split()] masu_sum = H * W if H == 1 | W == 1: ans = 1 if masu_sum % 2 == 0: ans = masu_sum // 2 else: ans = masu_sum // 2 + 1 print(ans)
H, W = [int(i) for i in input().split()] masu_sum = H * W if H == 1 or W == 1: ans = 1 elif masu_sum % 2 == 0: ans = masu_sum // 2 else: ans = masu_sum // 2 + 1 print(ans)
[ "control_flow.branch.if.condition.change", "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
519,268
519,267
u991193366
python
p02742
h,w = map(int,input().split(" ")) field = h*w if (h*w) % 2 == 0: answer = (h*w)//2 else: answer = (h*w)//2 + 1 if h == 1: answer = 0 elif w == 1: answer = 0 print(answer)
h,w = map(int,input().split(" ")) field = h*w if (h*w) % 2 == 0: answer = (h*w)//2 else: answer = (h*w)//2 + 1 if h == 1: answer = 1 elif w == 1: answer = 1 print(answer)
[ "literal.number.integer.change", "assignment.value.change" ]
519,275
519,276
u505181116
python
p02742
h,w = map(int,input().split()) c = 0 if w%2 == 0: c = (w//2)*h else: if h%2 == 0: c = (h//2)*w else: c = ((h//2)+1)*((w//2)+1)+(h//2)*(w//2) if h == 1 or w == 1: c = 0 print(c)
h,w = map(int,input().split()) c = 0 if w%2 == 0: c = (w//2)*h else: if h%2 == 0: c = (h//2)*w else: c = ((h//2)+1)*((w//2)+1)+(h//2)*(w//2) if h == 1 or w == 1: c = 1 print(c)
[ "literal.number.integer.change", "assignment.value.change" ]
519,287
519,288
u448720391
python
p02742
H,W=map(int,input().split()) if H or W == 1: print(1) else: print(W*(H//2)+H%2*(W//2+W%2))
H,W=map(int,input().split()) if H == 1 or W == 1: print(1) else: print(W*(H//2)+H%2*(W//2+W%2))
[ "control_flow.branch.if.condition.change" ]
519,309
519,310
u005317312
python
p02742
#coding:utf-8 h, w = map(int,input().split()) if h == 1 or w == 1: ans = 1 if (h * w) % 2 == 0: ans = h * w // 2 else: ans = (h * w + 1) // 2 print("{}".format(ans))
#coding:utf-8 h, w = map(int,input().split()) if h == 1 or w == 1: ans = 1 elif (h * w) % 2 == 0: ans = h * w // 2 else: ans = (h * w + 1) // 2 print("{}".format(ans))
[ "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
519,331
519,332
u924273546
python
p02742
n,m=map(int,input().split()) if m==1 or n==1: print(1) if m%2+n%2<2: print(n*m//2) else: print(n*(m//2)+(n//2+1))
n,m=map(int,input().split()) if m==1 or n==1: print(1) elif m%2+n%2<2: print(n*m//2) else: print(n*(m//2)+(n//2+1))
[ "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
519,333
519,334
u595893956
python
p02742
r, c = map(int, input().split()) if r == 1 or c==1: print(0) elif (r*c) % 2 != 0: print(((r*c)//2)+1) else: print(((r * c) // 2))
r, c = map(int, input().split()) if r == 1 or c==1: print(1) elif (r*c) % 2 != 0: print(((r*c)//2)+1) else: print(((r * c) // 2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,335
519,336
u056100633
python
p02742
h, w = map(int, input().split()) if h == 1 or w == 1: print(0) exit() if h*w % 2 == 0: print(h*w//2) else: print((h*w+1)//2)
h, w = map(int, input().split()) if h == 1 or w == 1: print(1) exit() if h*w % 2 == 0: print(h*w//2) else: print((h*w+1)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,342
519,343
u997641430
python
p02742
def resolve(): H, W = map(int, input().split()) print(1) if H == W == 1 else print((H * W + 1) // 2) if __name__ == "__main__": resolve()
def resolve(): H, W = map(int, input().split()) print(1) if H == 1 or W == 1 else print((H * W + 1) // 2) if __name__ == "__main__": resolve()
[]
519,355
519,356
u234091409
python
p02742
M, N = map(int,input().split()) if M == 1 or N == 1: print(1) break if M * N % 2 == 1: print(M * N // 2 + 1) elif M* N % 2 == 0: print(M * N // 2)
M, N = map(int,input().split()) if M == 1 or N == 1: print(1) elif M * N % 2 == 1: print(M * N // 2 + 1) elif M* N % 2 == 0: print(M * N // 2)
[]
519,359
519,360
u153823221
python
p02742
#6 h,w = map(int,input().split()) if h == 1 or w == 1: print(1) else: a = (h+1) // 2 #奇数列の列数 b = (w+1) // 2 #奇数列のマス目数 c = h // 2 #偶数列の列数 d = h // 2 #偶数列のマス目数 print(a*b+c*d)
#6 h,w = map(int,input().split()) if h == 1 or w == 1: print(1) else: a = (h+1) // 2 #奇数列の列数 b = (w+1) // 2 #奇数列のマス目数 c = h // 2 #偶数列の列数 d = w // 2 #偶数列のマス目数 print(a*b+c*d)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
519,372
519,373
u211805975
python
p02742
def main(): H, W = map(int, input().split()) ans = 0 if H == 1 and W == 1: ans = 1 else: ans = (H * W) // 2 if (H * W) % 2 == 1: ans += 1 print(ans) main()
def main(): H, W = map(int, input().split()) ans = 0 if H == 1 or W == 1: ans = 1 else: ans = (H * W) // 2 if (H * W) % 2 == 1: ans += 1 print(ans) main()
[ "control_flow.branch.if.condition.change" ]
519,376
519,377
u024442309
python
p02742
h, w = list(map(int, input().split())) print( (h*w) // 2 + (h*w) % 2 if h == 1 or w == 1 else 1)
h, w = list(map(int, input().split())) print( (h*w) // 2 + (h*w) % 2 if h != 1 and w != 1 else 1)
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
519,391
519,392
u057993957
python
p02742
H, W = map(int, input().split()) if (H ==1)or(W==1): print(0) else: print(-(-H*W//2))
H, W = map(int, input().split()) if (H ==1)or(W==1): print(1) else: print(-(-H*W//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,395
519,396
u677842374
python
p02742
H, W = map(int, input().split()) if (H ==1)or(W==1): print(0) else: print(H*W//2)
H, W = map(int, input().split()) if (H ==1)or(W==1): print(1) else: print(-(-H*W//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,397
519,396
u677842374
python
p02742
a, b = map(int, input().split()) if a == 1 or b == 1: print(1) elif a*b%2: (a*b+1)//2 else: (a*b)//2
a, b = map(int, input().split()) if a == 1 or b == 1: print(1) elif a*b%2: print((a*b+1)//2) else: print((a*b)//2)
[ "call.add", "call.arguments.change" ]
519,412
519,413
u941407962
python
p02742
a,b=map(int,input_line.split()) if a==1 or b==1: print (1) else: print (((a*b)+1)//2)
a,b=map(int,input().split()) if a==1 or b==1: print (1) else: print (((a*b)+1)//2)
[ "assignment.value.change", "call.arguments.change", "call.add" ]
519,418
519,419
u013202780
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: print(0) else: print(-((-H*W)//2))
H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print(-((-H*W)//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,422
519,423
u566428756
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) quit() ans = (math.ceil(W / 2) * math.ceil(H / 2)) + ((W // 2) * (H // 2)) print(ans)
import math H, W = map(int, input().split()) if H == 1 or W == 1: print(1) quit() ans = (math.ceil(W / 2) * math.ceil(H / 2)) + ((W // 2) * (H // 2)) print(ans)
[]
519,426
519,427
u451206510
python
p02742
h,w = map(int,input().split(" ")) if h == 1: print(1) exit() if h % 2 == 0: print((h // 2) * w) else: if w % 2 == 0: print((h // 2) * w + (w // 2)) else: print((h // 2) * w + (w // 2) + 1)
h,w = map(int,input().split(" ")) if h == 1 or w == 1: print(1) exit() if h % 2 == 0: print((h // 2) * w) else: if w % 2 == 0: print((h // 2) * w + (w // 2)) else: print((h // 2) * w + (w // 2) + 1)
[ "control_flow.branch.if.condition.change" ]
519,448
519,449
u848647227
python
p02742
# -*- coding: utf-8 -*- from sys import stdin from operator import itemgetter # stdin = open("sample.txt") h, w = [int(x) for x in stdin.readline().rstrip().split()] if h == 1 or w == 1: print(0) else: if h*w % 2 == 0: print(h*w // 2) else: print((h*w + 1) // 2)
# -*- coding: utf-8 -*- from sys import stdin from operator import itemgetter # stdin = open("sample.txt") h, w = [int(x) for x in stdin.readline().rstrip().split()] if h == 1 or w == 1: print(1) else: if h*w % 2 == 0: print(h*w // 2) else: print((h*w + 1) // 2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,478
519,479
u595353654
python
p02742
# -*- coding: utf-8 -*- from sys import stdin from operator import itemgetter # stdin = open("sample.txt") h, w = [int(x) for x in stdin.readline().rstrip().split()] if h == 1 and w == 1: print(0) else: if h*w % 2 == 0: print(h*w // 2) else: print((h*w + 1) // 2)
# -*- coding: utf-8 -*- from sys import stdin from operator import itemgetter # stdin = open("sample.txt") h, w = [int(x) for x in stdin.readline().rstrip().split()] if h == 1 or w == 1: print(1) else: if h*w % 2 == 0: print(h*w // 2) else: print((h*w + 1) // 2)
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,481
519,479
u595353654
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(0) elif H % 2 == 0 or W % 2 == 0: print(W * H // 2) else: total = H * (W//2) + H//2 + 1 print(total)
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) elif H % 2 == 0 or W % 2 == 0: print(W * H // 2) else: total = H * (W//2) + H//2 + 1 print(total)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,492
519,493
u944643608
python
p02742
h,w=map(int,input().split()) if (h-1)*(w-1)==0: print(1) else: print(-(-h*w)//2)
h,w=map(int,input().split()) if (h-1)*(w-1)==0: print(1) else: print(-(-h*w//2))
[ "call.arguments.change" ]
519,496
519,497
u631299617
python
p02742
h,w = map(int,input(). split()) if (h == 1) or (w == 1): answer = 1 print(answer) elif (h%2 == 1) and (w%2 == 1): answer = (h*w+1)/2 print(answer) else: answer = h*w/2 print(answer)
h,w = map(int,input(). split()) if (h == 1) or (w == 1): answer = 1 print(answer) elif (h%2 == 1) and (w%2 == 1): answer = ((h*w)+1)//2 print(answer) else: answer = h*w//2 print(answer)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
519,503
519,504
u609093494
python
p02742
h,w = [int(i) for i in input().split()] if h == 1 or w == 1: print(0) else: print(h * w // 2 + 1 if h * w % 2 else h * w //2 )
h,w = [int(i) for i in input().split()] if h == 1 or w == 1: print(1) else: print(h * w // 2 + 1 if h * w % 2 else h * w //2 )
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,511
519,512
u183840468
python
p02742
H,W=map(int, input().split()) w1=W//2 h1=H//2 if W%2!=0: w2=W//2+1 else: w2=w1 if H%2!=0: h2=H//2+1 else: h2=h1 print(w1*h1+w2*h2 if (H!=1)&(W!=1) else 0)
H,W=map(int, input().split()) w1=W//2 h1=H//2 if W%2!=0: w2=W//2+1 else: w2=w1 if H%2!=0: h2=H//2+1 else: h2=h1 print(w1*h1+w2*h2 if (H!=1)&(W!=1) else 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,513
519,514
u830592648
python
p02742
import sys input = sys.stdin.readline H, W = list(map(int,input().split())) if H==1 or W==1: print(1) exit(0) ans =int((H*W) // 2) print(ans)
import sys input = sys.stdin.readline H, W = list(map(int,input().split())) if H==1 or W==1: print(1) exit(0) ans =int((H*W+1) // 2) print(ans)
[ "assignment.change" ]
519,518
519,519
u756570398
python
p02742
h, w = map(int, input().split()) if h==1 or w==1: #コーナーケース print(1) elif h%2 != w%2 != 0: #両者奇数 print(h*w//2 + 1) else: print(h*w//2)
h, w = map(int, input().split()) if h==1 or w==1: #コーナーケース print(1) elif h%2 != 0 and w%2 != 0: #両者奇数 print(h*w//2 + 1) else: print(h*w//2)
[ "control_flow.branch.if.condition.change" ]
519,543
519,544
u484052148
python
p02742
h, w = map(int, input().split()) if(h == 1 or w == 1): print(1) else: if(h*w % 2 == 0): print(h*w//2) else: print(h*w//2)
h, w = map(int, input().split()) if(h == 1 or w == 1): print(1) else: if(h*w % 2 == 0): print(h*w//2) else: print(h*w//2+1)
[ "expression.operation.binary.add" ]
519,545
519,546
u734876600
python
p02742
H, W = map(int, input().split()) HW = H * W HW2 = HW // 2 if HW == 1: ans = 1 else: if HW % 2 == 0: ans = HW2 else: ans = HW2 + 1 print(ans)
H, W = map(int, input().split()) HW = H * W HW2 = HW // 2 if H == 1 or W == 1: ans = 1 else: if HW % 2 == 0: ans = HW2 else: ans = HW2 + 1 print(ans)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
519,553
519,554
u697101155
python
p02742
h, w = map(int, input().split()) print(1 if h == w == 1 else (h*w+1)//2)
h, w = map(int, input().split()) print(1 if h == 1 or w == 1 else (h*w+1)//2)
[]
519,565
519,566
u814265211
python
p02742
H,W = map(int,input().split()) if H == 1 or W == 1: return 1 else: cnt = (H * W + 1) // 2 return cnt
H,W = map(int,input().split()) if H == 1 or W == 1: print(1) else: cnt = (H * W + 1) // 2 print(cnt)
[ "function.return_value.change", "call.arguments.change" ]
519,571
519,572
u531219227
python
p02742
h,w = map(int, input().split()) if h == 1 or w==1: print(1) else: print(h*w//2)
h,w = map(int, input().split()) if h == 1 or w==1: print(1) else: print((h*w+1)//2)
[ "call.arguments.change" ]
519,586
519,587
u035445296
python
p02742
a,b=list(map(int, input().split())) if a==1 or b==1: print(0) elif a*b%2==0: print(a*b//2) else: print(-(-a*b//2))
a,b=list(map(int, input().split())) if a==1 or b==1: print(1) elif a*b%2==0: print(a*b//2) else: print(-(-a*b//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,598
519,599
u064408584
python
p02742
#n=int(input()) h,w=map(int,input().split()) #l=list(map(int,input().split())) #l=[list(map(int,input().split())) for i in range(n)] m=h//2 n=w//2 if h==1 or w==1: ans=0 elif h%2==0: ans=m*w else: md=w%2 ans=n*(m+1+m)+md*(m+1) print(ans)
#n=int(input()) h,w=map(int,input().split()) #l=list(map(int,input().split())) #l=[list(map(int,input().split())) for i in range(n)] m=h//2 n=w//2 if h==1 or w==1: ans=1 elif h%2==0: ans=m*w else: md=w%2 ans=n*(m+1+m)+md*(m+1) print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
519,621
519,622
u200887663
python
p02742
H , W = map(int , input().split()) if H == 1: print(1) elif(H * W ) % 2 == 0: print((H * W) // 2) else: print((H * W) // 2 + 1 )
H , W = map(int , input().split()) if H == 1 or W == 1: print(1) elif(H * W ) % 2 == 0: print((H * W) // 2) else: print((H * W) // 2 + 1 )
[ "control_flow.branch.if.condition.change" ]
519,648
519,649
u228636605
python
p02742
x,y = map(int,input().split()) if x == 1 or y == 1: print(0) else: print(-(-(x*y)//2))
x,y = map(int,input().split()) if x == 1 or y == 1: print(1) else: print(-(-(x*y)//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,664
519,665
u487594898
python
p02742
H, W = map(int, input().split()) ans = H * W // 2 if H == 1 or W == 1: ans = 0 elif (H & 1) and (W & 1): ans += 1 print(ans)
H, W = map(int, input().split()) ans = H * W // 2 if H == 1 or W == 1: ans = 1 elif (H & 1) and (W & 1): ans += 1 print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
519,700
519,701
u652583512
python
p02742
#input H, W = map(int, input().split()) #output if (H-1)*(W-1) == 0: print(0) else: print((H*W+1)//2)
#input H, W = map(int, input().split()) #output if (H-1)*(W-1) == 0: print(1) else: print((H*W+1)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,716
519,717
u461454424
python
p02742
h, w = map(int, input().split()) if h == 1 or w == 1: ans = 1 if h % 2 == 0: ans = h//2 * w elif w % 2 == 0: ans = w//2 * h else: hh = h // 2 wh = w // 2 ans = (hh + 1) * (wh + 1) + hh * wh print(ans)
h, w = map(int, input().split()) if h == 1 or w == 1: ans = 1 elif h % 2 == 0: ans = h//2 * w elif w % 2 == 0: ans = w//2 * h else: hh = h // 2 wh = w // 2 ans = (hh + 1) * (wh + 1) + hh * wh print(ans)
[ "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
519,734
519,735
u940852449
python
p02742
h,w=map(int,input().split()) if h==1: print(1) else: print((h*w)//2 if h%2==0 else ((h-1)*w)//2-(-w//2))
h,w=map(int,input().split()) if h==1 or w==1: print(1) else: print((h*w)//2 if h%2==0 else ((h-1)*w)//2-(-w//2))
[ "control_flow.branch.if.condition.change" ]
519,748
519,747
u705007443
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: count = W // 2 * H if H & 1: count += (H + 1) // 2 print(count)
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: count = W // 2 * H if W & 1: count += (H + 1) // 2 print(count)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
519,753
519,754
u586368075
python
p02742
H,W=map(imt,input().split()) if H==1 or W==1: print(1) else: print((H*W+1)//2)
H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print((H*W+1)//2)
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
519,762
519,763
u168578024
python
p02742
H, W = map(int, input().split()) if H==0 or W==0: print(0) elif H%2==0 or W%2==0: print((H*W)//2) else: print((H*(W-1))//2+H//2+1)
H, W = map(int, input().split()) if H==1 or W==1: print(1) elif H%2==0 or W%2==0: print((H*W)//2) else: print((H*(W-1))//2+H//2+1)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
519,764
519,765
u311488536
python
p02742
H, W = map(int, input().split()) if H==0 and W==0: print(0) elif H%2==0 or W%2==0: print((H*W)//2) else: print((H*(W-1))//2+H//2+1)
H, W = map(int, input().split()) if H==1 or W==1: print(1) elif H%2==0 or W%2==0: print((H*W)//2) else: print((H*(W-1))//2+H//2+1)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
519,766
519,765
u311488536
python
p02742
n, m = map(int, input().split()) k=n*m+1 if n==1 or m==1: print(0) exit() else: print((k)//2)
n, m = map(int, input().split()) k=n*m+1 if n==1 or m==1: print(1) exit() else: print((k)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,767
519,768
u685983477
python
p02742
H, W = map(int, input().split()) if H == W == 1: print(1) else: print(-((-H*W)//2))
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: print(-((-H*W)//2))
[ "control_flow.branch.if.condition.change" ]
519,769
519,770
u767664985
python
p02742
H, W = map(int, input().split()) if H == W == 1: print(1) else: print(-(-H*W)//2)
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: print(-((-H*W)//2))
[ "control_flow.branch.if.condition.change", "call.arguments.change" ]
519,771
519,770
u767664985
python
p02742
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readli...
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readli...
[ "call.add" ]
519,782
519,783
u854685063
python
p02742
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readli...
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readli...
[ "literal.number.integer.change", "call.arguments.change", "io.output.change", "call.add" ]
519,784
519,783
u854685063
python
p02742
h, w = map(int, input().split()) if(h == 1 and w == 1): print(1) exit() a = (w // 2) * h b = -(-(w % 2) * h // 2) print(a + b)
h, w = map(int, input().split()) if(h == 1 or w == 1): print(1) else: a = (w // 2) * h b = -(-(w % 2) * h // 2) print(a + b)
[ "control_flow.branch.if.condition.change", "call.arguments.change" ]
519,809
519,810
u024450350
python
p02742
h, w = map(int, input().split()) if(h == 1 and w == 1): print(1) else: cCol = -(-w // 2) cRow = -(-h // 2) fCol = w - cCol fRow = h - cRow print(cRow * cCol + fRow * fCol)
h, w = map(int, input().split()) if(h == 1 or w == 1): print(1) else: cCol = -(-w // 2) cRow = -(-h // 2) fCol = w - cCol fRow = h - cRow print(cRow * cCol + fRow * fCol)
[ "control_flow.branch.if.condition.change" ]
519,811
519,812
u024450350
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: c=0 elif H*W%2==0: c=H*W//2 else:c=H*W//2+1 print(c)
H,W=map(int,input().split()) if H==1 or W==1: c=1 elif H*W%2==0: c=H*W//2 else:c=H*W//2+1 print(c)
[ "literal.number.integer.change", "assignment.value.change" ]
519,813
519,814
u038819082
python
p02742
h,w=map(int,input().split()) if h == 1 or w == 1: print(1) elif h%2 == 0 or w%2 == 0: print(h*w/2) else: print(int(h*w/2)+1)
h,w=map(int,input().split()) if h == 1 or w == 1: print(1) elif h%2 == 0 or w%2 == 0: print(h*w//2) else: print(h*w//2+1)
[ "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "call.remove" ]
519,843
519,844
u021916304
python
p02742
h, w = map(int, input().split()) if h ==1 and w == 1: ans = 1 else: ans = (h * w + 1) // 2 print(ans)
h, w = map(int, input().split()) if h ==1 or w == 1: ans = 1 else: ans = (h * w + 1) // 2 print(ans)
[ "control_flow.branch.if.condition.change" ]
519,863
519,864
u165368960
python
p02742
import math h, w = map(int, input().split()) if h == 1 or w == 1: print(1) elif h % 2 == 0 or w % 2 ==0: print((h * w) // 2) else: print(math.ceil((h * w) // 2))
import math h, w = map(int, input().split()) if h == 1 or w == 1: print(1) elif h % 2 == 0 or w % 2 ==0: print((h * w) // 2) else: print((h * w) // 2 + 1)
[ "call.arguments.change", "io.output.change" ]
519,865
519,866
u165368960
python
p02742
H, W = map(int, input().split()) D = H * W if H == 1 or W == 1: print(0) exit() if D % 2: print(D//2+1) else: print(D//2)
H, W = map(int, input().split()) D = H * W if H == 1 or W == 1: print(1) exit() if D % 2: print(D//2+1) else: print(D//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,867
519,868
u970308980
python
p02742
from math import ceil h, w = map(int, input().split()) if h == 1 or w == 1: print(0) exit() if w % 2 == 0: ans = (w // 2) * h else: ans = (w // 2) * h + (ceil(h / 2)) print(ans)
from math import ceil h, w = map(int, input().split()) if h == 1 or w == 1: print(1) exit() if w % 2 == 0: ans = (w // 2) * h else: ans = (w // 2) * h + (ceil(h / 2)) print(ans)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,887
519,888
u652057333
python
p02742
h,w=map(int,input().split()) print(1if min(h,w)else(h*w+2-1)//2)
h,w=map(int,input().split()) print(1 if min(h,w)==1 else (h*w+1)//2)
[ "expression.operation.binary.remove" ]
519,902
519,901
u130900604
python
p02742
h,w=map(int,input().split()) if h==1 and w==1: print(1) elif h%2!=0 and w%2!=0: print(h*w//2+1) else: print(h*w//2)
h,w=map(int,input().split()) if h==1 or w==1: print(1) elif h%2!=0 and w%2!=0: print(h*w//2+1) else: print(h*w//2)
[ "control_flow.branch.if.condition.change" ]
519,926
519,927
u774539708
python
p02742
arg = input().split(' ') H = int(arg[0]) W = int(arg[1]) if H == 1 or W == 1: print(1) w_odd = (W+1) // 2 w_even = W // 2 h_odd_line = (H+1) // 2 h_even_line = H // 2 reachable = w_odd * h_odd_line + w_even * h_even_line print(reachable)
arg = input().split(' ') H = int(arg[0]) W = int(arg[1]) if H == 1 or W == 1: print(1) exit(0) w_odd = (W+1) // 2 w_even = W // 2 h_odd_line = (H+1) // 2 h_even_line = H // 2 reachable = w_odd * h_odd_line + w_even * h_even_line print(reachable)
[ "call.add" ]
519,933
519,934
u297891484
python
p02742
import sys input = sys.stdin.readline import math H, W = map(int, input().split(' ')) ans = (H * W) // 2 if H % 2 == 1 and W % 2 == 1: ans += 1 if H == 1 and W == 1: ans = 0 print(ans)
import sys input = sys.stdin.readline import math H, W = map(int, input().split(' ')) ans = (H * W) // 2 if H % 2 == 1 and W % 2 == 1: ans += 1 if H == 1 or W == 1: ans = 1 print(ans)
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "assignment.value.change" ]
519,937
519,936
u004423772
python
p02742
H,W = map(int,input().split()) if H == 1: print(1) elif H % 2 == 0: print(H*W //2) else: print((H-1)*W //2 + (W//2 + W%2))
H,W = map(int,input().split()) if H == 1 or W == 1: print(1) elif H % 2 == 0: print(H*W //2) else: print((H-1)*W //2 + (W//2 + W%2))
[ "control_flow.branch.if.condition.change" ]
519,959
519,960
u539969758
python
p02742
#B - Bishop import math H,W= map(int, input().split()) if H == 0 or W == 0: print(1) else: print(int(math.ceil(H/2) * math.ceil(W/2) + math.floor(H/2)*math.floor(W/2)))
#B - Bishop import math H,W= map(int, input().split()) if H == 1 or W == 1: print(1) else: print(int(math.ceil(H/2) * math.ceil(W/2) + math.floor(H/2)*math.floor(W/2)))
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
519,973
519,974
u146575240
python
p02742
def main(): h, w = map(int, input().split()) if h == 1 or w == 1: print(1) else: print(int(w * h / 2)) if __name__ == '__main__': main()
def main(): h, w = map(int, input().split()) if h == 1 or w == 1: print(1) else: print((w * h + 1) // 2) if __name__ == '__main__': main()
[ "call.arguments.change", "expression.operator.arithmetic.change", "expression.operation.binary.change", "io.output.change" ]
519,982
519,981
u355649707
python