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()) if h == 1 or w == 1: print(1) else: if a*w%2 != 0: print(a*w//2 + 1) else: print(a*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 + 1) else: print(h*w//2)
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
519,983
519,984
u394731058
python
p02742
H,W = map(int,input().split()) if(min(H,W) == 1): print(0) exit() print((H*W+((H*W)%2))//2)
H,W = map(int,input().split()) if(min(H,W) == 1): print(1) exit() print((H*W+(H*W)%2)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
519,989
519,990
u528887718
python
p02742
h, w = map(int, input().split()) ans = (h * w - 1) // 2 if h == 1 or w == 1: ans = 1 print(ans)
h, w = map(int, input().split()) ans = (h * w + 1) // 2 if h == 1 or w == 1: ans = 1 print(ans)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
520,011
520,012
u305366205
python
p02742
h, w = map(int, input().split()) ans = (h * w - 1 // 2) if h == 1 or w == 1: ans = 1 print(ans)
h, w = map(int, input().split()) ans = (h * w + 1) // 2 if h == 1 or w == 1: ans = 1 print(ans)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
520,013
520,012
u305366205
python
p02742
h, w = map(int, input().split()) ans = (h * w - 1 / 2) if h == 1 or w == 1: ans = 1 print(ans)
h, w = map(int, input().split()) ans = (h * w + 1) // 2 if h == 1 or w == 1: ans = 1 print(ans)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
520,014
520,012
u305366205
python
p02742
from collections import deque, defaultdict, Counter from math import ceil, floor import sys def input(): return sys.stdin.readline().strip() H, W = map(int, input().split()) if H == 1 or W == 1: print(0) exit() if H > W: H, W = W, H # print(H, W) ans = W * (H // 2) # print(ans) if H % 2 == 1: # ...
from collections import deque, defaultdict, Counter from math import ceil, floor import sys def input(): return sys.stdin.readline().strip() H, W = map(int, input().split()) if H == 1 or W == 1: print(1) exit() if H > W: H, W = W, H # print(H, W) ans = W * (H // 2) # print(ans) if H % 2 == 1: # ...
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,040
520,041
u047102107
python
p02742
from decimal import Decimal, getcontext a, b = map(int, input().split()) getcontext().prec = 50 c = Decimal(a) * Decimal(b) if a == 1 or b == 1: print(0) else: if c % 2 == 1: print(int(c/2)+1) else: print(int(c/2))
from decimal import Decimal, getcontext a, b = map(int, input().split()) getcontext().prec = 50 c = Decimal(a) * Decimal(b) if a == 1 or b == 1: print(1) else: if c % 2 == 1: print(int(c/2)+1) else: print(int(c/2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,042
520,043
u661343770
python
p02742
H, W = [int(i) for i in input().split()] if H==1 or W==1: print(1) if H%2==0: H //= 2 print(H*W) elif W%2==0: W //= 2 print(H*W) else: W -= 1 c = (W//2)*H c += H//2 + 1 print(c)
H, W = [int(i) for i in input().split()] if H==1 or W==1: print(1) quit() if H%2==0: H //= 2 print(H*W) elif W%2==0: W //= 2 print(H*W) else: W -= 1 c = (W//2)*H c += H//2 + 1 print(c)
[ "call.add" ]
520,054
520,055
u821432765
python
p02742
H,W = map(int,input().split()) if(H == 1 or W == 1): print(1) else: if(H%2 == 0): i = H//2 if(H%2 != 0): i = H//2+1 j = H-i if(W%2 == 0): sum = i*(W//2) + j*(W//2) if(W%2 != 0): sum = i*(W/2+1) + j*(W/2) print(sum)
H,W = map(int,input().split()) if(H == 1 or W == 1): print(1) else: if(H%2 == 0): i = H//2 if(H%2 != 0): i = H//2 + 1 j = H-i if(W%2 == 0): sum = i*(W//2) + j*(W//2) if(W%2 != 0): sum = i*(W//2 + 1) + j*(W//2) print(sum)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
520,066
520,067
u623953567
python
p02742
h, w = map(int, input().split()) if h == 1 and w == 1: print(0) elif h % 2 == 1 and w % 2 == 1: print((h - 1) * w // 2 + (w+1) // 2 ) else: print(h*w//2)
h, w = map(int, input().split()) if h == 1 or w == 1: print(1) elif h % 2 == 1 and w % 2 == 1: print((h - 1) * w // 2 + (w+1) // 2 ) else: print(h*w//2)
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,099
520,100
u861141787
python
p02742
H , W = input().split() W = (W) H = int(H) ans = int(0) #Wが偶数なら(W//2)*H #W.Hが奇数なら((W+1)//2)*((H+1)//2) + ((W - 1)//2*(H - 1)//2) #Wが奇数Hが偶数(W+1)//2*(H//2) + ((W - 1)//2)*(H//2) if(W == H == 1): ans =1 elif(W%2 == 0): ans = (W//2)*H elif(W%2 == 1 and H%2==1): ans = (((W+1)//2)*((H+1)//2)) + (((W - 1)//2)*(...
H , W = input().split() W = int(W) H = int(H) ans = int(0) #Wが偶数なら(W//2)*H #W.Hが奇数なら((W+1)//2)*((H+1)//2) + ((W - 1)//2*(H - 1)//2) #Wが奇数Hが偶数(W+1)//2*(H//2) + ((W - 1)//2)*(H//2) if(W == 1 or H == 1): ans = 1 elif(W%2 == 0): ans = (W//2)*H elif(W%2 == 1 and H%2==1): ans = (((W+1)//2)*((H+1)//2)) + (((W -...
[ "call.add", "type_conversion.to_integer.change", "type_conversion.to_number.change", "control_flow.branch.if.condition.change" ]
520,107
520,108
u076303440
python
p02742
hw = list(map(int, input().split())) if hw[0] == 1 or hw[1] == 1: count = 0 elif hw[0] % 2 == 0 and hw[1] % 2 == 0: count = (hw[0] * hw[1]) // 2 elif hw[0] % 2 != 0 and hw[1] % 2 == 0: count = ((hw[0] + 1) * hw[1] // 2) - (hw[1] // 2) elif hw[0] % 2 == 0 and hw[1] % 2 != 0: count = ((hw[1] + 1) * hw[0]...
hw = list(map(int, input().split())) if hw[0] == 1 or hw[1] == 1: count = 1 elif hw[0] % 2 == 0 and hw[1] % 2 == 0: count = (hw[0] * hw[1]) // 2 elif hw[0] % 2 != 0 and hw[1] % 2 == 0: count = ((hw[0] + 1) * hw[1] // 2) - (hw[1] // 2) elif hw[0] % 2 == 0 and hw[1] % 2 != 0: count = ((hw[1] + 1) * hw[0]...
[ "literal.number.integer.change", "assignment.value.change" ]
520,115
520,116
u763291354
python
p02742
h, w = map(int, input().split()) if h == 0: print(1) elif w == 0: print(1) else: print((h * w + 1)// 2)
h, w = map(int, input().split()) if h == 1: print(1) elif w == 1: print(1) else: print((h * w + 1)// 2)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
520,127
520,128
u373228444
python
p02742
h, w = [int(x) for x in input().split()] if h==1: print(1) quit() if w==1: print(1) quit() if h%2==0 and w%2==0: print(h*w//2) elif h%2==0 and w%2==1: print(h*w//2) elif h%2==1 and w%2==0: print((h*w)//2+1) else: print((h*w)//2+1)
h, w = [int(x) for x in input().split()] if h==1: print(1) quit() if w==1: print(1) quit() if h%2==0 and w%2==0: print(h*w//2) elif h%2==0 and w%2==1: print(h*w//2) elif h%2==1 and w%2==0: print((h*w)//2) else: print((h*w)//2+1)
[ "expression.operation.binary.remove" ]
520,157
520,158
u983181637
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: ans = 1 elif H % 2 == 0: if W % 2 == 0: ans = H*(W//2) else: ans = H*((W-1)//2)+(H//12) elif H % 2 == 1: if W % 2 == 0: ans = H*(W//2) else: # W%2==1 ans = H*((W-1)//2)+((H+1)//2) print(ans)
H, W = map(int, input().split()) if H == 1 or W == 1: ans = 1 elif H % 2 == 0: if W % 2 == 0: ans = H*(W//2) else: ans = H*((W-1)//2)+(H//2) elif H % 2 == 1: if W % 2 == 0: ans = H*(W//2) else: # W%2==1 ans = H*((W-1)//2)+((H+1)//2) print(ans)
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
520,159
520,160
u615647623
python
p02742
h, w = map(int, input().split(' ')) a1 = 0 if ((h == 1) or (w == 1)): a1 = 0 elif(((h * w) % 2) == 1): a1 = ((h * w) // 2) + 1 elif(((h * w) % 2) == 0): a1 = (h * w) // 2 print(a1)
h, w = map(int, input().split(' ')) a1 = 0 if ((h == 1) or (w == 1)): a1 = 1 elif(((h * w) % 2) == 1): a1 = ((h * w) // 2) + 1 elif(((h * w) % 2) == 0): a1 = (h * w) // 2 print(a1)
[ "literal.number.integer.change", "assignment.value.change" ]
520,164
520,165
u363892646
python
p02742
h, w = map(int, input().split(' ')) if ((h == 1) or (w == 1)): a1 = 0 elif(((h * w) % 2) == 1): a1 = ((h * w) // 2) + 1 elif(((h * w) % 2) == 0): a1 = (h * w) // 2 print(a1)
h, w = map(int, input().split(' ')) a1 = 0 if ((h == 1) or (w == 1)): a1 = 1 elif(((h * w) % 2) == 1): a1 = ((h * w) // 2) + 1 elif(((h * w) % 2) == 0): a1 = (h * w) // 2 print(a1)
[ "literal.number.integer.change", "assignment.value.change" ]
520,166
520,165
u363892646
python
p02742
h, w = map(int, input().split()) boad = h * w if w == 1 and h == 1: print(1) else: print((boad + 1) // 2)
h, w = map(int, input().split()) boad = h * w if w == 1 or h == 1: print(1) else: print((boad + 1) // 2)
[ "control_flow.branch.if.condition.change" ]
520,177
520,178
u068142202
python
p02742
h, w = map(int, input().split()) a = h * w if h == 1: print(1) exit() if 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) exit() if a % 2 == 0: print(a//2) else: print(a//2 + 1)
[ "control_flow.branch.if.condition.change" ]
520,191
520,192
u195054737
python
p02742
#!/usr/bin/env python3 H, W = [int(str) for str in input().strip().split()] print((H * W + 1) // 2 if H != 0 and W != 0 else 1)
#!/usr/bin/env python3 H, W = [int(str) for str in input().strip().split()] print((H * W + 1) // 2 if H != 1 and W != 1 else 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,208
520,209
u470936782
python
p02742
h, w = map(int, input().split()) mas = h*w if mas == 1: print(1) exit() if mas % 2 == 0: print(mas//2) else: print(mas//2+1)
h, w = map(int, input().split()) mas = h*w if h == 1 or w == 1: print(1) exit() if mas % 2 == 0: print(mas//2) else: print(mas//2+1)
[ "identifier.change", "control_flow.branch.if.condition.change" ]
520,212
520,213
u280552586
python
p02742
def main(): w, h = map(int, input().split()) if w == 1 or h == 1: print(1) h1 = (h + 1) // 2 h2 = h // 2 if (w % 2) == 1: print(h1 * ((w // 2) + 1) + (h2 * (w // 2))) else: print((h1 + h2) * (w // 2)) if __name__ == "__main__": main()
def main(): w, h = map(int, input().split()) if w == 1 or h == 1: print(1) exit() h1 = (h + 1) // 2 h2 = h // 2 if (w % 2) == 1: print(h1 * ((w // 2) + 1) + (h2 * (w // 2))) else: print((h1 + h2) * (w // 2)) if __name__ == "__main__": main()
[ "call.add" ]
520,214
520,215
u006883624
python
p02742
import sys input = sys.stdin.readline H, W = [int(x) for x in input().split()] ans = 0 if H == 1 and W == 1: print(1) sys.exit() if H == 1 or W == 1: print(1) sys.exit() # type2 b = H // 2 # type1 a = H - b ans += a * (W // 2) ans += b * (W - (W // 2)) print(ans)
import sys input = sys.stdin.readline H, W = [int(x) for x in input().split()] ans = 0 if H == 1 and W == 1: print(1) sys.exit() if H == 1 or W == 1: print(1) sys.exit() # type2 b = H // 2 # type1 a = H - b ans += b * (W // 2) ans += a * (W - (W // 2)) print(ans)
[ "identifier.change", "expression.operation.binary.change" ]
520,224
520,225
u609061751
python
p02742
h,w=map(int,input().split()) if h==1 or w==1: print('0') 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.string.change", "call.arguments.change", "io.output.change" ]
520,266
520,267
u636845339
python
p02742
h,w=map(int,input().split()) if h==1 and w==1: print('0') 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)
[ "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
520,268
520,267
u636845339
python
p02742
[h,w] = [int(x) for x in input().split()] if h == 1: print(1) else: row1 = w//2 + w%2 row2 = w//2 total = (row1 * (h//2+h%2)) + (row2 * (h//2)) print(total)
[h,w] = [int(x) for x in input().split()] if h == 1 or w == 1: print(1) else: row1 = w//2 + w%2 row2 = w//2 total = (row1 * (h//2+h%2)) + (row2 * (h//2)) print(total)
[ "control_flow.branch.if.condition.change" ]
520,280
520,281
u013956357
python
p02742
def resolve(): H, W = map(int, input().split()) if H == 1: print(1) return count = H * W ans = count // 2 if count % 2 != 0: ans += 1 print(ans) resolve()
def resolve(): H, W = map(int, input().split()) if H == 1 or W == 1: print(1) return count = H * W ans = count // 2 if count % 2 != 0: ans += 1 print(ans) resolve()
[ "control_flow.branch.if.condition.change" ]
520,290
520,291
u586662847
python
p02742
H, W = [int(x) for x in input().split()] if H == 1 or W == 1: print(0) else: print(-(-H * W //2))
H, W = [int(x) for x in 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" ]
520,296
520,297
u703345769
python
p02742
def resolve(): h, w = map(int, input().split()) dy = h // 2 if h != 1 else 1 if h == 1 or w == 1: count = 1 elif h % 2 == 1: count = w * dy + (w-1) else: count = w * dy print(count) if __name__ == '__main__': resolve()
def resolve(): h, w = map(int, input().split()) dy = h // 2 if h != 1 else 1 if h == 1 or w == 1: count = 1 elif h % 2 == 1: count = w * dy + (w - (w // 2)) else: count = w * dy print(count) if __name__ == '__main__': resolve()
[ "assignment.value.change", "expression.operation.binary.change" ]
520,301
520,302
u822961851
python
p02742
# -*- coding: utf-8 -*- import math def main(): h, w = map(int, input().split()) result = 0 if h == 1: result = 1 else: result = w * (h // 2) if h % 2 == 1: result += math.ceil(w / 2) print(int(result)) if __name__ == '__main__': main()
# -*- coding: utf-8 -*- import math def main(): h, w = map(int, input().split()) result = 0 if h == 1 or w == 1: result = 1 else: result = w * (h // 2) if h % 2 == 1: result += math.ceil(w / 2) print(int(result)) if __name__ == '__main__': main()
[ "control_flow.branch.if.condition.change" ]
520,332
520,333
u852210959
python
p02742
import math H, W = map(int, input().split()) base = math.ceil(W / 2) if H == 1: print(1) exit() if W % 2 == 0: ans = base * H else: if H % 2 == 1: ans = (base + base -1) * (H - 1) // 2 + base else: ans = (base + base -1) * H // 2 print(ans)
import math H, W = map(int, input().split()) base = math.ceil(W / 2) if H == 1 or W == 1: print(1) exit() if W % 2 == 0: ans = base * H else: if H % 2 == 1: ans = (base + base -1) * (H - 1) // 2 + base else: ans = (base + base -1) * H // 2 print(ans)
[ "control_flow.branch.if.condition.change" ]
520,334
520,335
u025501820
python
p02742
h, w = map(int, input().split()) ans = 0 if h != 1 and w != 1: ans = (h//2) * w if h%2 == 1: c = w - w//2 ans += c print(ans)
h, w = map(int, input().split()) ans = 1 if h != 1 and w != 1: ans = (h//2) * w if h%2 == 1: c = w - w//2 ans += c print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
520,336
520,337
u922172470
python
p02742
# -*- coding: utf-8 -*- H, W = map(int, input().split()) if H==1 or W==1: ans = 0 elif H%2==0 or W%2==0: ans = H*W // 2 else: ans = (H*W//2) + 1 print(ans)
# -*- coding: utf-8 -*- H, W = map(int, input().split()) if H==1 or W==1: ans = 1 elif H%2==0 or W%2==0: ans = H*W // 2 else: ans = (H*W//2) + 1 print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
520,374
520,375
u421828301
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: print(0) else: print(((H+1)//2)*((W+1)//2)+(W//2)*(H//2))
H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print(((H+1)//2)*((W+1)//2)+(W//2)*(H//2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,435
520,436
u233159251
python
p02742
H,W=map(int,input().split()) if H==1 or w==1: print(0) else: print(((H+1)//2)*((W+1)//2)+(W//2)*(H//2))
H,W=map(int,input().split()) if H==1 or W==1: print(1) else: print(((H+1)//2)*((W+1)//2)+(W//2)*(H//2))
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,437
520,436
u233159251
python
p02736
def main(): n = int(input()) a = list(map(lambda x: int(x)-1, list(input()))) b = [i % 2 for i in a] def all_a(x): ans = 0 for j, i in enumerate(x): ans ^= (n-1 | j == n-1)*i return ans all_b = all_a(b) if all_b == 1: print(1) return if 1...
def main(): n = int(input()) a = list(map(lambda x: int(x)-1, list(input()))) b = [i % 2 for i in a] def all_a(x): ans = 0 for j, i in enumerate(x): ans ^= (n-1 | j == n-1)*i return ans all_b = all_a(b) if all_b == 1: print(1) return if 1...
[ "function.return_value.change", "call.arguments.change" ]
520,507
520,508
u532966492
python
p02736
n = int(input()) al = list(input()) al = [int(a) - 1 for a in al] flag = False if 1 not in al: flag = True al = [a // 2 for a in al] else: al = [a if a != 2 else 0 for a in al] countl = [0] a = 0 for i in range(1, n+1): if i % 2 == 0: a += 1 countl.append(a) def comb(a,b): if countl[a...
n = int(input()) al = list(input()) al = [int(a) - 1 for a in al] flag = False if 1 not in al: flag = True al = [a // 2 for a in al] else: al = [a if a != 2 else 0 for a in al] countl = [0] a = 0 for i in range(1, n+1): while i % 2 == 0: a += 1 i //= 2 countl.append(a) def comb(a,...
[ "control_flow.branch.while.replace.add", "control_flow.loop.if.replace.remove" ]
520,576
520,577
u683134447
python
p02736
N = int(input()) a = [ int(s) - 1 for s in input()] # r! に含まれる 2 の数 twos = {} twos[0] = 0 for r in range(1, N): count = 0 tmp = r while tmp % 2 != 0: tmp //= 2 count += 1 twos[r] = twos[r-1] + count # {N-1}_C_r の偶数奇数判定 ncr = {} for r in range(N): if twos[N-1] - twos[N-1-r] - ...
N = int(input()) a = [ int(s) - 1 for s in input()] # r! に含まれる 2 の数 twos = {} twos[0] = 0 for r in range(1, N): count = 0 tmp = r while tmp % 2 == 0: tmp //= 2 count += 1 twos[r] = twos[r-1] + count # {N-1}_C_r の偶数奇数判定 ncr = {} for r in range(N): if twos[N-1] - twos[N-1-r] -...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
520,589
520,590
u577170763
python
p02742
h,w=map(int,input().split()) print(-(-(h*w)//2) if h!=1 or w!=1 else 1)
h,w=map(int,input().split()) print(-(-(h*w)//2) if h!=1 and w!=1 else 1)
[ "call.arguments.change", "io.output.change" ]
520,630
520,631
u702018889
python
p02742
n,m=map(int,input().split()) import math if n==1 and m==1: print(1) exit() if n*m%2==0: print(m*n//2) else: print(m*n//2+1)
n,m=map(int,input().split()) import math if n==1 or m==1: print(1) exit() if n*m%2==0: print(m*n//2) else: print(m*n//2+1)
[ "control_flow.branch.if.condition.change" ]
520,634
520,635
u469953228
python
p02742
h,w = map(int,input().split()) if h%2==0: ans = (h//2)*w else: ans = (h//2)*w + (h%2)*(w//2+1) if h==1 or w==1: ans = 1 print(ans)
h,w = map(int,input().split()) if h%2==0: ans = (h//2)*w else: ans = (h//2)*w + (h%2)*(w//2+(w%2)) if h==1 or w==1: ans = 1 print(ans)
[ "assignment.value.change", "expression.operation.binary.change" ]
520,636
520,637
u089376182
python
p02742
def main(): H, W = map(int, input().split()) if H == 1 or W == 1: print(0) else: print(-(-H*W // 2)) if __name__ == "__main__": main()
def main(): H, W = map(int, input().split()) if H == 1 or W == 1: print(1) else: print(-(-H*W // 2)) if __name__ == "__main__": main()
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,666
520,667
u024383312
python
p02742
h,w = (int(i) for i in input().split()) q_h,mod_h = divmod(h,2) if h == 1: print(1) elif mod_h == 0: print(w * q_h) else: q_w,mod_w = divmod(w,2) if mod_w == 0: print(w * q_h + q_w) else: print(w * q_h + q_w + 1)
h,w = (int(i) for i in input().split()) q_h,mod_h = divmod(h,2) if h == 1 or w == 1: print(1) elif mod_h == 0: print(w * q_h) else: q_w,mod_w = divmod(w,2) if mod_w == 0: print(w * q_h + q_w) else: print(w * q_h + q_w + 1)
[ "control_flow.branch.if.condition.change" ]
520,678
520,679
u833416137
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: print(0) else: if H==2 and W==2: print(1) else: 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) else: if H==2 and W==2: print(2) 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" ]
520,682
520,683
u141574039
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print (0) else: if 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) else: if H*W%2 == 0: print (H*W//2) else: print (H*W//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,712
520,713
u375477204
python
p02742
from math import sqrt a,b=map(int,input().split()) if(a==1 or b==1): print('1') if(a%2==0): a//=2 print(a*b) elif(b%2==0): b//=2 print(a*b) else: print(a*b//2+(a*b)%2)
from math import sqrt a,b=map(int,input().split()) if(a==1 or b==1): print('1') exit() if(a%2==0): a//=2 print(a*b) elif(b%2==0): b//=2 print(a*b) else: print((a*b)//2+(a*b)%2)
[ "call.add", "call.arguments.change" ]
520,716
520,717
u295361373
python
p02742
s = input().split() H = int(s[0]) W = int(s[1]) if H == 1 or W == 1: print(1) else: ret = (H//2) * W + (H%2) * (W // 2 + 1 ) print(ret)
s = input().split() H = int(s[0]) W = int(s[1]) if H == 1 or W == 1: print(1) else: ret = (H//2) * W + (H%2) * ((W+1) // 2) print(ret)
[ "expression.operation.binary.remove" ]
520,725
520,726
u919242376
python
p02742
H,W=map(int,input().split()) print(((W+1)//2)*((H+1)//2)+(H//2)*(W//2) if H!=1 and W!=1 else 0)
H,W=map(int,input().split()) print(((W+1)//2)*((H+1)//2)+(H//2)*(W//2) if H!=1 and W!=1 else 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,729
520,730
u477062848
python
p02742
h , w = map(int, input().split()) if h == 1 or w == 1: exit(print(1)) a1 = h//2 + 1 if h % 2 != 0 else h//2 a2 = h - a1 a3 = w//2 + 1 if h%2!=0 else w//2 a4 = w - a3 ans = a1*a3 + a2*a4 print(ans)
h , w = map(int, input().split()) if h == 1 or w == 1: exit(print(1)) a1 = h//2 + 1 if h % 2 != 0 else h//2 a2 = h - a1 a3 = w//2 + 1 if w%2!=0 else w//2 a4 = w - a3 #print(a1 , a2 , a3,a4) ans = a1*a3 + a2*a4 print(ans)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
520,739
520,740
u733581231
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+1)//2)
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+1)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,741
520,742
u296101474
python
p02742
h, w = map(int,input().split()) if h == 1 or w == 1: print(1) if h%2 == 1 and w%2 == 1: print((h*w+1)//2) else: print(h*w//2)
h, w = map(int,input().split()) if h == 1 or w == 1: print(1) elif h%2 == 1 and w%2 == 1: print((h*w+1)//2) else: print(h*w//2)
[ "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
520,764
520,763
u735891571
python
p02742
import math h,w=map(int,input().split()) d,m=divmod(h,2) if h == 1: print(1) exit() print(d*(math.ceil(w/2)+math.floor(w/2))+math.ceil(w/2)*m)
import math h,w=map(int,input().split()) d,m=divmod(h,2) if h==1 or w==1: print(1) exit() print(d*(math.ceil(w/2)+math.floor(w/2))+math.ceil(w/2)*m)
[ "control_flow.branch.if.condition.change" ]
520,765
520,766
u027929618
python
p02742
h,w=list(map(int,input().split())) if h==1 or w==1: print(1) print(h//2*w+(h%2)*((w+1)//2))
h,w=list(map(int,input().split())) if h==1 or w==1: print(1) else: print(h//2*w+(h%2)*((w+1)//2))
[]
520,767
520,768
u860829879
python
p02742
h, w = map(int, input().split()) if h == 1 or w == 1: c == 1 elif h & 1: if w & 1: c = ((h + 1) // 2) * ((w + 1) // 2) + (h // 2) * (w // 2) else: c = (((h + 1) // 2) + (h // 2)) * (w // 2) else: c = (h // 2) * w print(c)
h, w = map(int, input().split()) if h == 1 or w == 1: c = 1 elif h & 1: if w & 1: c = ((h + 1) // 2) * ((w + 1) // 2) + (h // 2) * (w // 2) else: c = (((h + 1) // 2) + (h // 2)) * (w // 2) else: c = (h // 2) * w print(c)
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
520,774
520,775
u277312083
python
p02742
from math import ceil H, W = map(int, input().split()) if (H == 1) or (W == 1): print(0) exit() x1 = ceil(W / 2) x2 = W // 2 print(int(ceil(H / 2) * x1 + H // 2 * x2))
from math import ceil H, W = map(int, input().split()) if (H == 1) or (W == 1): print(1) exit() x1 = ceil(W / 2) x2 = W // 2 print(int(ceil(H / 2) * x1 + H // 2 * x2))
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,776
520,777
u075012704
python
p02742
H, W = map(int, input().split()) a = W // 2 + W % 2 b = W // 2 c = H // 2 d = H % 2 if H == 1 or W == 1: print(0) else: print(c * (a + b) + d * a)
H, W = map(int, input().split()) a = W // 2 + W % 2 b = W // 2 c = H // 2 d = H % 2 if H == 1 or W == 1: print(1) else: print(c * (a + b) + d * a)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,782
520,783
u451017206
python
p02742
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(0) exit() # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(1) exit() # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,815
520,816
u209299893
python
p02742
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(0) # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(1) exit() # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change", "call.add" ]
520,817
520,816
u209299893
python
p02742
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(1) # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
hi, wd = map(int, input().split()) # いずれかが1の場合 if hi==1 or wd ==1: print(1) exit() # heightまたはwidthが偶数だった場合 if hi%2 == 0 or wd%2 == 0: print(hi*wd//2) else: print(hi*wd//2 + 1)
[ "call.add" ]
520,818
520,816
u209299893
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: print(0) elif H%2==0 and W%2==0: print((H*W)//2) elif H%2==1 and W%2==0: print(H*(W//2)) elif H%2==0 and W%2==1: print((H//2)*W) else: print((H*W)//2+1)
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) elif H%2==1 and W%2==0: print(H*(W//2)) elif H%2==0 and W%2==1: print((H//2)*W) else: print((H*W)//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
520,837
520,838
u114954806
python
p02742
h,w=map(int,input().split()) if h==1: print(1) elif h*w%2==0: print(h*w//2) else: print(int((h*w+2-1)/2))
h,w=map(int,input().split()) if h==1or w==1: print(1) elif h*w%2==0: print(h*w//2) else: print(int((h*w+2-1)/2))
[ "control_flow.branch.if.condition.change" ]
520,841
520,842
u731362892
python
p02742
w, h = map(int,input().split()) if w == 1 or h == 1: print(0) exit() if w * h % 2 == 0: print(w * h // 2) else: a = w // 2 + 1 s = a * (h // 2 + 1) b = w // 2 s2 = b * (h //2) print(s + s2)
w, h = map(int,input().split()) if w == 1 or h == 1: print(1) exit() if (w * h) % 2 == 0: print(w * h // 2) else: a = w // 2 + 1 s = a * (h // 2 + 1) b = w // 2 s2 = b * (h //2) print(s + s2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change", "control_flow.branch.if.condition.change" ]
520,847
520,848
u634046173
python
p02742
import sys def input(): return sys.stdin.readline()[:-1] H,W = map(int,input().split(' ')) A = -(-W//2) if W==1 or H==1: print(1) exit() if H%2==0: print(W*H//2) else: print(A) print(W*(H-1)//2+A)
import sys def input(): return sys.stdin.readline()[:-1] H,W = map(int,input().split(' ')) A = -(-W//2) if W==1 or H==1: print(1) exit() if H%2==0: print(W*H//2) else: print(W*(H-1)//2+A)
[ "call.remove" ]
520,916
520,917
u598720217
python
p02742
import sys def input(): return sys.stdin.readline()[:-1] H,W = map(int,input().split(' ')) A = W//2+1 if W==1 or H==1: print(1) exit() if H%2==0: print(W*H//2) else: print(W*(H-1)//2+A)
import sys def input(): return sys.stdin.readline()[:-1] H,W = map(int,input().split(' ')) A = -(-W//2) if W==1 or H==1: print(1) exit() if H%2==0: print(W*H//2) else: print(W*(H-1)//2+A)
[ "assignment.value.change", "expression.operation.binary.change" ]
520,918
520,917
u598720217
python
p02742
h,w = (int(x) for x in input().split()) if h != 1 and w != 1: num = ((w // 2) + (w % 2))*( (h // 2) + ( h% 2) ) + ((w // 2) + (w % 2)-(w%2))*( (h // 2) + (h%2) -(h%2)) print(num)
h,w = (int(x) for x in input().split()) num = 1 if h != 1 and w != 1: num = ((w // 2) + (w % 2))*( (h // 2) + ( h% 2) ) + ((w // 2) + (w % 2)-(w%2))*( (h // 2) + (h%2) -(h%2)) print(num)
[ "assignment.add" ]
520,922
520,923
u250828304
python
p02742
def resolve(): a, b = map(int, input().split()) if a ==1 or b==1: print(1) print((a*b+1)//2) resolve()
def resolve(): a, b = map(int, input().split()) if a ==1 or b==1: print(1) exit() print((a*b+1)//2) resolve()
[ "call.add" ]
520,949
520,950
u793868662
python
p02742
def resolve(): a, b = map(int, input().split()) if a ==1 or b==1: print(0) print((a*b+1)//2) resolve()
def resolve(): a, b = map(int, input().split()) if a ==1 or b==1: print(1) exit() print((a*b+1)//2) resolve()
[ "literal.number.integer.change", "call.arguments.change", "io.output.change", "call.add" ]
520,951
520,950
u793868662
python
p02742
h,w=map(int,input().split()) if (h==1 and w!=1) or (h==1 and w!=1): print(1) else: m=h*w print((m+2-1)//2)
h,w=map(int,input().split()) if (h==1 and w!=1) or (h!=1 and w==1): print(1) else: m=h*w print((m+2-1)//2)
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
520,972
520,973
u079022116
python
p02742
import sys int1 = lambda x: int(x) - 1 read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) H, W = map(int, read().split()) if min(H, W) == 1: print(0) elif (H % 2 == 1) & (W % 2 == 1): print((H * W + 1) // 2) else: print(H ...
import sys int1 = lambda x: int(x) - 1 read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) H, W = map(int, read().split()) if min(H, W) == 1: print(1) elif (H % 2 == 1) & (W % 2 == 1): print((H * W + 1) // 2) else: print(H ...
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,017
521,018
u961683878
python
p02742
h,w=map(int,input().split()) if h or w ==1: print(1) else: if h%2==0: hk=h//2 hg=h//2 else: hk=h//2+1 hg=h//2 if w%2==0: wk=w//2 wg=w//2 else: wk=w//2+1 wg=w//2 print((hk*wk)+(hg*wg))
h,w=map(int,input().split()) if h ==1 or w==1: print(1) else: if h%2==0: hk=h//2 hg=h//2 else: hk=h//2+1 hg=h//2 if w%2==0: wk=w//2 wg=w//2 else: wk=w//2+1 wg=w//2 print((hk*wk)+(hg*wg))
[ "control_flow.branch.if.condition.change" ]
521,021
521,022
u239653493
python
p02742
h,w = list(map(int,input().split(' '))) kisuu = (w+1)//2 guusuu = w//2 tate_kisuu = (h+1)//2 tate_guusuu = h//2 res = kisuu*tate_kisuu+guusuu*tate_guusuu if(h==1)or(w==1): res = 0 print(res)
h,w = list(map(int,input().split(' '))) kisuu = (w+1)//2 guusuu = w//2 tate_kisuu = (h+1)//2 tate_guusuu = h//2 res = kisuu*tate_kisuu+guusuu*tate_guusuu if(h==1)or(w==1): res = 1 print(res)
[ "literal.number.integer.change", "assignment.value.change" ]
521,028
521,029
u680046686
python
p02742
n, m = map(int, input().split()) if n == 1: print(1) else: r = (n * m) // 2 if (n * m) % 2 == 0: print(r) else: print(r+1)
n, m = map(int, input().split()) if n == 1 or m == 1: print(1) else: r = (n * m) // 2 if (n * m) % 2 == 0: print(r) else: print(r+1)
[ "control_flow.branch.if.condition.change" ]
521,030
521,031
u480755260
python
p02742
H,W = map(int,input().split()) import sys a = (W+1)//2+(W//2) if H == 1 or W == 1: print(0) sys.exit() if H%2 == 0: print(a*(H//2)) else: print(a*(H//2)+(W+1)//2)
H,W = map(int,input().split()) import sys a = (W+1)//2+(W//2) if H == 1 or W == 1: print(1) sys.exit() if H%2 == 0: print(a*(H//2)) else: print(a*(H//2)+(W+1)//2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,034
521,035
u698919163
python
p02742
H,W = map(int,input().split()) import sys a = (W+1)//2+(W//2) if H == 1 and W == 1: print(0) sys.exit() if H%2 == 0: print(a*(H//2)) else: print(a*(H//2)+(W+1)//2)
H,W = map(int,input().split()) import sys a = (W+1)//2+(W//2) if H == 1 or W == 1: print(1) sys.exit() if H%2 == 0: print(a*(H//2)) else: print(a*(H//2)+(W+1)//2)
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,036
521,035
u698919163
python
p02742
h, w = input().split() h = int(h) w = int(w) if h == 1 or w == 1: print(1) s = h * w if s % 2: print(s//2+1) else: print(s//2)
h, w = input().split() h = int(h) w = int(w) if h == 1 or w == 1: print(1) exit() s = h * w if s % 2: print(s//2+1) else: print(s//2)
[ "call.add" ]
521,041
521,042
u197610362
python
p02742
def main(): h, w = map(int, input().split()) if h == 1: print(1) return 0 ans = 0 if w&1: ans += w * (h//2) if h % 2 == 1: ans += (w+1)//2 else: ans += h*(w//2) print(ans) main()
def main(): h, w = map(int, input().split()) if h == 1 or w == 1: print(1) return 0 ans = 0 if w&1: ans += w * (h//2) if h % 2 == 1: ans += (w+1)//2 else: ans += h*(w//2) print(ans) main()
[ "control_flow.branch.if.condition.change" ]
521,064
521,065
u813098295
python
p02742
h, w = map(int, input().split()) if h == 1 or w == 1: print(0) elif h % 2 == 1 and w % 2 == 1: 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 == 1 and w % 2 == 1: print(h * w // 2 + 1) else: print(h * w // 2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,116
521,117
u878849567
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print('1') a = H // 2 + H % 2 if H % 2 == 0: b = a * W print(b) else: b = a * (W // 2 + W % 2) + (a - 1) * (W // 2) print(b)
H, W = map(int, input().split()) if H == 1 or W == 1: print('1') else: a = H // 2 + H % 2 if H % 2 == 0: b = a * W print(b) else: b = a * (W // 2 + W % 2) + (a - 1) * (W // 2) print(b)
[]
521,124
521,125
u761720628
python
p02742
n,m = map(int,input().split()) ans = n*m if n == 1 or m == 1: print('1') elif ans%2 ==0: ans=ans//2 else: ans=ans//2 ans+=1 print(ans)
n,m = map(int,input().split()) ans = n*m if n == 1 or m == 1: print('1') elif ans%2 ==0: ans=ans//2 print(ans) else: ans=ans//2 ans+=1 print(ans)
[ "call.add" ]
521,136
521,137
u175694641
python
p02742
h, w = map(int, input().split()) if w == 1 or h == 1: print(1) if w % 2 == 1 and h % 2 == 1: print(w * h // 2 + 1) else: print(w * h // 2)
h, w = map(int, input().split()) if w == 1 or h == 1: print(1) exit(0) if w % 2 == 1 and h % 2 == 1: print(w * h // 2 + 1) else: print(w * h // 2)
[ "call.add" ]
521,150
521,151
u974792613
python
p02742
H, W = map(int,input().split()) if H != 0 and W != 0: print( ((W+1)//2) * ((H+1)//2) + ((W//2) * (H//2))) else: print(1)
H, W = map(int,input().split()) if H != 1 and W != 1: print( ((W+1)//2) * ((H+1)//2) + ((W//2) * (H//2))) else: print(1)
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
521,152
521,153
u003019316
python
p02742
h, w = map(int, input().split()) ans = 0 ans += (h // 2) * (w // 2) * 2 if h % 2 != 0: ans += w // 2 if w % 2 != 0: ans += h // 2 if h % 2 != 0 and w % 2 != 0: ans += 1 if h == 1 or w == 1: ans = 0 print(ans)
h, w = map(int, input().split()) ans = 0 ans += (h // 2) * (w // 2) * 2 if h % 2 != 0: ans += w // 2 if w % 2 != 0: ans += h // 2 if h % 2 != 0 and w % 2 != 0: ans += 1 if h == 1 or w == 1: ans = 1 print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
521,174
521,175
u514390882
python
p02742
import math H, W = map(int, input().split()) if H == 1 or W == 1: print("1") else: print(math.ceil(W / 2) * math.ceil(H / 2) + W // 2 * H // 2)
import math H, W = map(int, input().split()) if H == 1 or W == 1: print("1") else: print(math.ceil(W / 2) * math.ceil(H / 2) + (W // 2) * (H // 2))
[ "call.arguments.change" ]
521,178
521,179
u981931040
python
p02742
#!/usr/bin/env python def main(): h, w = map(int, input().split()) hw = h * w if h == 1 or w == 1: print(0) else: if hw % 2 == 0: print(hw // 2) else: print(hw // 2 + 1) if __name__ == '__main__': main()
#!/usr/bin/env python def main(): h, w = map(int, input().split()) hw = h * w if h == 1 or w == 1: print(1) else: if hw % 2 == 0: print(hw // 2) else: print(hw // 2 + 1) if __name__ == '__main__': main()
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,184
521,185
u399155892
python
p02742
# B - Bishop def main(): H, W = map(int, input().split()) if min(H, W) == 1: print(0) else: ans = (H * W + 1) // 2 print(ans) if __name__ == "__main__": main()
# B - Bishop def main(): H, W = map(int, input().split()) if min(H, W) == 1: print(1) else: ans = (H * W + 1) // 2 print(ans) if __name__ == "__main__": main()
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,202
521,203
u077291787
python
p02742
import sys input = lambda: sys.stdin.readline().rstrip() input_nums = lambda: list(map(int, input().split())) H, W = input_nums() horizontal = 0 ans = 0 if W % 2 == 0: horizontal = W // 2 ans = horizontal * H else: horizontal = W // 2 + 1 if H % 2 == 0: ans = ((horizontal * 2) - 1) * (H // 2)...
import sys input = lambda: sys.stdin.readline().rstrip() input_nums = lambda: list(map(int, input().split())) H, W = input_nums() horizontal = 0 ans = 0 if W % 2 == 0: horizontal = W // 2 ans = horizontal * H else: horizontal = W // 2 + 1 if H % 2 == 0: ans = ((horizontal * 2) - 1) * (H // 2)...
[ "control_flow.branch.if.condition.change" ]
521,204
521,205
u638902622
python
p02742
def solve(): h, w = list(map(int, input().split())) if w == 1 or h == 1: print(0) return _odd = ((w + 1) // 2) * ((h + 1) // 2) _even = (w // 2) * (h // 2) print(_odd + _even) if __name__ == "__main__": solve()
def solve(): h, w = list(map(int, input().split())) if w == 1 or h == 1: print(1) return _odd = ((w + 1) // 2) * ((h + 1) // 2) _even = (w // 2) * (h // 2) print(_odd + _even) if __name__ == "__main__": solve()
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,216
521,217
u646818123
python
p02742
h, w = map(int, input().split()) if h == 1 and w == 1: print(1) else: import math h_odds = math.ceil(h / 2) h_evens = h // 2 w_odds = math.ceil(w / 2) w_evens = w // 2 print(h_odds * w_evens + h_evens * w_odds)
h, w = map(int, input().split()) if h == 1 or w == 1: print(1) else: import math h_odds = math.ceil(h / 2) h_evens = h // 2 w_odds = math.ceil(w / 2) w_evens = w // 2 print(h_odds * w_odds + h_evens * w_evens)
[ "control_flow.branch.if.condition.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
521,236
521,237
u470542271
python
p02742
h,w=map(int,input('').split(' ')) masu=0 masu=masu+(w*(h//2)) if h%2==1: if w%2==1: masu=masu+(w//2)+1 else: masu=masu+(w//2) if h==1 and w==1: masu=0 print(masu)
h,w=map(int,input('').split(' ')) masu=0 masu=masu+(w*(h//2)) if h%2==1: if w%2==1: masu=masu+(w//2)+1 else: masu=masu+(w//2) if h==1 or w==1: masu=1 print(masu)
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "assignment.value.change" ]
521,238
521,239
u283683979
python
p02742
h, w = list(map(int, input().split())) if h != 1 or w != 1: print((h * w + 1) // 2) else: print(1)
h, w = list(map(int, input().split())) if h != 1 and w != 1: print((h * w + 1) // 2) else: print(1)
[ "control_flow.branch.if.condition.change" ]
521,271
521,272
u760642788
python
p02742
def submit(): h, w = map(int, input().split()) if h == 1 or w == 1: print(1) even_c = sum(divmod(w, 2)) odd_c = w // 2 even_row = sum(divmod(h, 2)) * even_c odd_row = (h // 2) * odd_c print(even_row + odd_row) if __name__ == "__main__": submit()
def submit(): h, w = map(int, input().split()) if h == 1 or w == 1: print(1) return even_c = sum(divmod(w, 2)) odd_c = w // 2 even_row = sum(divmod(h, 2)) * even_c odd_row = (h // 2) * odd_c print(even_row + odd_row) if __name__ == "__main__": submit()
[ "control_flow.return.add" ]
521,281
521,282
u655834330
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) exit() if H % 2 == 0 or W % 2 == 0: print(H * W / 2) else: print(H * (W // 2) + H // 2 + 1)
H, W = map(int, input().split()) if H == 1 or W == 1: print(1) exit() if H % 2 == 0 or W % 2 == 0: print(H * W // 2) else: print(H * (W // 2) + H // 2 + 1)
[ "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
521,283
521,284
u068944955
python
p02742
h,w=map(int,input().split()) if(h!=1 and w!=1): print((h*w+1)//2) else: print(0)
h,w=map(int,input().split()) if(h!=1 and w!=1): print((h*w+1)//2) else: print(1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,311
521,312
u965840662
python
p02742
H, W = map(int, 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 = 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)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,315
521,316
u463858127
python
p02742
H, W = map(int, input().split()) if H == 1 or W == 1: print(0) if (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)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change", "control_flow.branch.if.replace.remove", "control_flow.branch.else_if.replace.add" ]
521,317
521,316
u463858127
python
p02742
from sys import stdin def main(): input = stdin.readline H,W = map(int,input().split()) ans = H * W if H == 1 or W == 1: print("0") elif ans % 2 == 0: print(ans//2) else: print(ans//2+1) if __name__ == "__main__": main()
from sys import stdin def main(): input = stdin.readline H,W = map(int,input().split()) ans = H * W if H == 1 or W == 1: print("1") elif ans % 2 == 0: print(ans//2) else: print(ans//2+1) if __name__ == "__main__": main()
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
521,328
521,329
u727717182
python
p02742
a,b=map(int,input().split()) if a==1 or b==1: print(0) 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)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,340
521,341
u375695365
python
p02742
h, w = map(int, input().split()) if h == 1 or w == 1: print(0) elif (h * w) % 2 == 1: print((h * w + 1) // 2) else: print((h * w) // 2)
h, w = map(int, input().split()) if h == 1 or w == 1: print(1) elif (h * w) % 2 == 1: print((h * w + 1) // 2) else: print((h * w) // 2)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,350
521,351
u079427319
python
p02742
H,W=map(int,input().split()) if H==1 or W==1: print(0) exit(0) if W%2==0: w=W//2 ans=w*H else: w=W//2 + 1 ans=w*H ans-=H//2 print(ans)
H,W=map(int,input().split()) if H==1 or W==1: print(1) exit(0) if W%2==0: w=W//2 ans=w*H else: w=W//2 + 1 ans=w*H ans-=H//2 print(ans)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,362
521,363
u204616996
python
p02742
a=input().split(" ") b=int(a[0])*int(a[1]) if int(a[0])==1 or int(a[1])==1: print(0) else: if b%2==0: print(b//2) else: print(b//2+1)
a=input().split(" ") b=int(a[0])*int(a[1]) if int(a[0])==1 or int(a[1])==1: print(1) else: if b%2==0: print(b//2) else: print(b//2+1)
[ "literal.number.integer.change", "call.arguments.change", "io.output.change" ]
521,381
521,382
u460229551
python