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 |
|---|---|---|---|---|---|---|---|
p02696 | A,B,N=map(int,input().split())
if N>=B:
print(int(A*(B-1)/B)-A*int(B-1/B))
else:
print(int(A*(N)/B)-A*int(N/B)) | A,B,N=map(int,input().split())
if N>=B:
print(int(A*(B-1)/B)-A*int((B-1)/B))
else:
print(int(A*(N)/B)-A*int(N/B))
| [
"call.arguments.change"
] | 443,238 | 443,239 | u581636201 | python |
p02696 | A, B, N = map(int, input().split()) # 入力
ans = None
a_max = None
for _x in range(N):
x = min((B - 1), N) * (_x+1)
if x > N:
break
# print(x)
a = x/B-int(x / B)
# print(int(a * A))
sa = int(a*A)
# s = int((A * x) / B) - A * int(x / B)
if a_max == None:
a_max = sa
el... | A, B, N = map(int, input().split()) # 入力
ans = None
a_max = None
for _x in range(1):
x = min((B - 1), N) * (_x+1)
if x > N:
break
# print(x)
a = x/B-int(x / B)
# print(int(a * A))
sa = int(a*A)
# s = int((A * x) / B) - A * int(x / B)
if a_max == None:
a_max = sa
el... | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 443,240 | 443,241 | u596681540 | python |
p02696 | A,B,N = map(int,input().split())
S = 0
n = N // B
r = N % B
if B > N:
S = (A*N)//B
else:
if r == 0:
S = (A*(N-1))//B - A * (N-1//B)
elif r == B - 1:
S = (A*N)//B - A * (N//B)
else:
S = (A*(n*B-1))//B - A * ((n*B-1)//B)
print(S)
| A,B,N = map(int,input().split())
S = 0
n = N // B
r = N % B
if B > N:
S = (A*N)//B
else:
if r == 0:
S = (A*(N-1))//B - A * ((N-1)//B)
elif r == B - 1:
S = (A*N)//B - A * (N//B)
else:
S = (A*(n*B-1))//B - A * ((n*B-1)//B)
print(S)
| [] | 443,274 | 443,271 | u165436807 | python |
p02696 | a, b, n = [int(x) for x in input().split()]
y = min(b, n)
print((a*y)//b) | a, b, n = [int(x) for x in input().split()]
y = min(b-1, n)
print((a*y)//b) | [
"assignment.change"
] | 443,284 | 443,285 | u056830573 | python |
p02696 | import math
A,B,N=map(int,input().split())
if B==1:
print(0)
else:
if B >= N:
print(math.floor(A*N/B))
else:
print(math.floor(A*(B-1)/B))
| import math
A,B,N=map(int,input().split())
if B==1:
print(0)
else:
if B > N:
print(math.floor(A*N/B))
else:
print(math.floor(A*(B-1)/B))
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,301 | 443,302 | u194472175 | python |
p02696 | from math import floor
a,b,n = map(int, input().split())
i = min(n,b)
print(floor(a*i/b) - a*floor(i/b)) | from math import floor
a,b,n = map(int, input().split())
i = min(n,b-1)
print(floor(a*i/b) - a*floor(i/b)) | [
"assignment.change"
] | 443,321 | 443,322 | u125337618 | python |
p02696 | a, b, x = map(int, input().split())
print(a * (b - 1) // b) | a, b, n = map(int, input().split())
print(a * min(n, b - 1) // b) | [
"assignment.variable.change",
"identifier.change",
"call.add",
"call.arguments.change",
"call.arguments.add"
] | 443,323 | 443,324 | u026862065 | python |
p02696 | a, b, n = [int(i) for i in input().split()]
m = n % b if n >= b else n
print((a * m // b) - a * (m // b))
| a, b, n = [int(i) for i in input().split()]
m = b - 1 if n >= b else n
print((a * m // b) - a * (m // b))
| [
"expression.operation.binary.remove"
] | 443,329 | 443,330 | u330690418 | python |
p02696 | a, b, n = [int(i) for i in input().split()]
m = n - n % b if n >= b else n
print((a * m // b) - a * (m // b))
| a, b, n = [int(i) for i in input().split()]
m = b - 1 if n >= b else n
print((a * m // b) - a * (m // b))
| [
"expression.operation.binary.remove"
] | 443,332 | 443,330 | u330690418 | python |
p02696 | A,B,N=map(int,input().split())
s=0
if B<N:
x=B-1
s=(A*x)//B - A*(x//B)
else:
x=N
s=(A*x)//B - A*(x//B)
print(s) | A,B,N=map(int,input().split())
s=0
if B<=N:
x=B-1
s=(A*x)//B - A*(x//B)
else:
x=N
s=(A*x)//B - A*(x//B)
print(s) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,339 | 443,340 | u343977188 | python |
p02696 | import math
A,B,N=map(int, input().split())
b=0
if N>B:
b=B-1
else:
b=N
c=math.floor(A*b/B)-A*math.floor(b/B)
print(c) | import math
A,B,N=map(int, input().split())
b=0
if N>=B:
b=B-1
else:
b=N
c=math.floor(A*b/B)-A*math.floor(b/B)
print(c) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,341 | 443,342 | u585963734 | python |
p02696 | def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
A, B, N = MAP()
left, right = 0, N
def f(x):
return int(A*x/B) - A*int(x/B)
# while right-left > 1:
# mid1 = (left + right)*1// 3
# mid2 = (left + right)*2// 3
# if f(mid1)... | def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
A, B, N = MAP()
left, right = 0, N
def f(x):
return int(A*x/B) - A*int(x/B)
# while right-left > 1:
# mid1 = (left + right)*1// 3
# mid2 = (left + right)*2// 3
# if f(mid1)... | [
"expression.operation.binary.remove"
] | 443,343 | 443,344 | u417220101 | python |
p02696 | def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
A, B, N = MAP()
left, right = 0, N
def f(x):
return int(A*x/B) - A*int(x/B)
# while right-left > 1:
# mid1 = (left + right)*1// 3
# mid2 = (left + right)*2// 3
# if f(mid1)... | def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
A, B, N = MAP()
left, right = 0, N
def f(x):
return int(A*x/B) - A*int(x/B)
# while right-left > 1:
# mid1 = (left + right)*1// 3
# mid2 = (left + right)*2// 3
# if f(mid1)... | [
"expression.operation.binary.remove"
] | 443,345 | 443,344 | u417220101 | python |
p02696 | a,b,n=map(int,input().split())
if n>=b:
print(int(b-1)/b*a)
else:
print(int(n/b*a)) | a,b,n=map(int,input().split())
if n>=b:
print(int((b-1)/b*a))
else:
print(int(n/b*a)) | [
"call.arguments.change"
] | 443,346 | 443,347 | u786229198 | python |
p02696 | A, B, N = map(int, input().split())
print(A * min(B, N) // B)
| A, B, N = map(int, input().split())
print(A * min(B-1, N) // B)
| [
"expression.operation.binary.add"
] | 443,373 | 443,374 | u036514535 | python |
p02696 | import math
n = list(map(int,input().split()))
x = min(b-1 , n[2])
if n[2] >= n[2]:
print(math.floor(n[0] * x / n[1])) | import math
n = list(map(int,input().split()))
x = min(n[1]-1 , n[2])
if n[2] >= n[2]:
print(math.floor(n[0] * x / n[1])) | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 443,379 | 443,380 | u930723367 | python |
p02696 | import math
n = list(map(int,input().split()))
#hikaku = 0
#for x in range(1,n[2]+1):
# m = math.floor(n[0] * x // n[1]) - n[0] * math.floor(x // n[1])
# if hikaku < m:
# hikaku = m
x = min(b-1 , n[2])
if n[2] >= n[2]:
print(math.floor(n[0] * x // n[1])) | import math
n = list(map(int,input().split()))
x = min(n[1]-1 , n[2])
if n[2] >= n[2]:
print(math.floor(n[0] * x / n[1])) | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operator.arithmetic.change",
"io.output.change"
] | 443,381 | 443,380 | u930723367 | python |
p02696 | [A,B,N] = list(map(int,input().split()))
X = N
Y = min(B-1,N)
out1 = A*X//B - A*(X//B)
out2 = A*Y//B - A*(Y//B)
print(min(out1,out2))
| [A,B,N] = list(map(int,input().split()))
X = N
Y = min(B-1,N)
out1 = A*X//B - A*(X//B)
out2 = A*Y//B - A*(Y//B)
print(max(out1,out2)) | [
"misc.opposites",
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 443,382 | 443,383 | u208713671 | python |
p02696 | [A,B,N] = list(map(int,input().split()))
X = N
Y = min(B-1,N)
out1 = int(A*X/B) - A*int(X/B)
out2 = int(A*Y/B) - A*int(Y/B)
print(min(out1,out2))
| [A,B,N] = list(map(int,input().split()))
X = N
Y = min(B-1,N)
out1 = int(A*X/B) - A*int(X/B)
out2 = int(A*Y/B) - A*int(Y/B)
print(out2)
| [
"call.remove",
"call.arguments.change"
] | 443,384 | 443,385 | u208713671 | python |
p02696 | from math import floor
from collections import deque
def main():
A,B,N=map(int,input().split())
ans1=min(N,B)
ans2=floor(A*ans1/B)-A*floor(ans1/B)
print(ans2)
if __name__=="__main__":
main()
| from math import floor
def main():
A,B,N=map(int,input().split())
ans1=min(N,B-1)
ans2=floor(A*ans1/B)-A*floor(ans1/B)
print(ans2)
if __name__=="__main__":
main()
| [
"assignment.change"
] | 443,395 | 443,396 | u764860452 | python |
p02696 | from sys import stdin
A, B, N = [int(x) for x in stdin.readline().rstrip().split()]
ans1 = int((A*N)/B)-A*(N/B)
if B-1<=N:
ans2 = (A*(B-1))//B
else:
ans2=0
print(max(ans1,ans2)) | from sys import stdin
A, B, N = [int(x) for x in stdin.readline().rstrip().split()]
ans1 = ((A*N)//B)-A*int(N/B)
if B-1<=N:
ans2 = (A*(B-1))//B
else:
ans2=0
print(max(ans1,ans2)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"call.add",
"type_conversion.to_integer.change",
"type_conversion.to_number.change"
] | 443,419 | 443,420 | u396210538 | python |
p02696 | a, b, n = map(int, input().split())
def f(x):
return (a * x) // b - (a * x) // b
print(f(min(n,b-1))) | a, b, n = map(int, input().split())
def f(x):
return (a * x) // b - a * (x // b)
print(f(min(n, b-1)))
| [
"function.return_value.change"
] | 443,432 | 443,433 | u119012830 | python |
p02696 | a, b, n = map(int, input().split())
if b == 1 or a == 1:
print(0)
else:
r = min(b-1, n)
s = (a * r) // b - a * (r // b)
print(r) | a, b, n = map(int, input().split())
if b == 1 or a == 1:
print(0)
else:
r = min(b-1, n)
s = (a * r) // b - a * (r // b)
print(s)
| [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 443,437 | 443,438 | u469936642 | python |
p02696 | import sys
A,B,N=map(int,input().split())
X=B-1
X=max(B-1,N)
ans=(A*X)//B-A*(X//B)
print(ans) | import sys
A,B,N=map(int,input().split())
X=B-1
X=min(B-1,N)
ans=(A*X)//B-A*(X//B)
print(ans) | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 443,467 | 443,468 | u829249049 | python |
p02696 | A, B, N = map(int, input().split())
if N < B:
print((A * N) // B)
else:
print(A - (A + B) // B + 1)
| A, B, N = map(int, input().split())
if N < B:
print((A * N) // B)
else:
print(A - (A + B - 1) // B)
| [
"expression.operation.binary.remove"
] | 443,487 | 443,488 | u403234553 | python |
p02696 | A,B,N = map(int,input().split())
n = min(B-1,N%B)
ans = (A*n)//B
print(ans) | A,B,N = map(int,input().split())
n = min(B-1,N)
ans = (A*n)//B
print(ans) | [
"expression.operation.binary.remove"
] | 443,495 | 443,496 | u266014018 | python |
p02696 | A,B,N = map(int,input().split())
n = min(N,N%B)
ans = (A*n)//B
print(ans) | A,B,N = map(int,input().split())
n = min(B-1,N)
ans = (A*n)//B
print(ans) | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.remove"
] | 443,497 | 443,496 | u266014018 | python |
p02696 | a,b,n = map(int, input().split())
x = (b-1,n)
print(int(a*x/b)) | a,b,n = map(int, input().split())
x = min(b-1,n)
print(int(a*x/b)) | [
"call.add"
] | 443,504 | 443,505 | u744695362 | python |
p02696 | a,b,n=map(int,input().split())
x=0
if n>b:
x=b-1
else:
x=n
ans=int(a*x/b)-a*int(x/b)
print(ans)
| a,b,n=map(int,input().split())
x=0
if n>b-1:
x=b-1
else:
x=n
ans=int(a*x/b)-a*int(x/b)
print(ans) | [
"control_flow.branch.if.condition.change"
] | 443,506 | 443,507 | u835924161 | python |
p02696 | a,b,n=map(int,input().split())
x=0
if n>b:
x=b
else:
x=n
ans=int(a*x/b)-a*int(x/b)
print(ans) | a,b,n=map(int,input().split())
x=0
if n>b-1:
x=b-1
else:
x=n
ans=int(a*x/b)-a*int(x/b)
print(ans) | [
"control_flow.branch.if.condition.change"
] | 443,508 | 443,507 | u835924161 | python |
p02696 | a,b,n=map(int,input().split())
x=0
if n>b:
x=b
else:
x=n
ans1=int(a*x/b)-a*int(x/b)
print(ans2) | a,b,n=map(int,input().split())
x=0
if n>b-1:
x=b-1
else:
x=n
ans=int(a*x/b)-a*int(x/b)
print(ans) | [
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 443,509 | 443,507 | u835924161 | python |
p02696 | a,b,n=map(int,input().split())
x=max(b-1,n)
print((a*x)//b)
| a,b,n=map(int,input().split())
x=min(b-1,n)
print((a*x)//b) | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 443,520 | 443,521 | u477977638 | python |
p02696 | a, b, n = map(int, input().split())
if a==1:
print(0)
else:
c = max(b-1, n)
print((a*c)//b)
| a, b, n = map(int, input().split())
if a==1:
print(0)
else:
c = min(b-1, n)
print((a*c)//b)
| [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 443,524 | 443,525 | u181195295 | python |
p02696 | A, B, N = map(int, input().split())
if N < B:
ans = int(A * N / B) - A * int(N / B)
else:
ans = int(B - 1 / B * A)
print(ans)
| A, B, N = map(int, input().split())
if N < B:
ans = int(A * N / B) - A * int(N / B)
else:
ans = int((B - 1) / B * A)
print(ans) | [
"call.arguments.change"
] | 443,530 | 443,531 | u101350975 | python |
p02696 | A, B, N = map(int, input().split())
if N <= B:
ans = int(A * N / B) - A * int(N / B)
else:
ans = int(B - 1 / B * A)
print(ans) | A, B, N = map(int, input().split())
if N < B:
ans = int(A * N / B) - A * int(N / B)
else:
ans = int((B - 1) / B * A)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.arguments.change"
] | 443,532 | 443,531 | u101350975 | python |
p02696 | from math import floor
def f(x):
return floor(a*x/b) - a*floor(x/b)
a,b,n = map(int,input().split())
print(min(b-1,n)) | from math import floor
def f(x):
return floor(a*x/b) - a*floor(x/b)
a,b,n = map(int,input().split())
print(f(min(b-1,n))) | [
"call.arguments.add",
"call.arguments.change"
] | 443,543 | 443,544 | u898967808 | python |
p02696 | import math
A, B, N = map(int, input().split())
def f(A, B, x):
return math.floor((A * x) / B) - A * math.floor(x / B)
x = N if N < B else B
print(f(A, B, x)) | import math
A, B, N = map(int, input().split())
def f(A, B, x):
return math.floor((A * x) / B) - A * math.floor(x / B)
x = N if N < B else B - 1
print(f(A, B, x)) | [
"assignment.change"
] | 443,580 | 443,581 | u419354839 | python |
p02696 | import sys
input = sys.stdin.readline
def main():
a, b, n = map(int, input().split())
x = min(n + 1, b - 1)
X = (a * x) // b
Y = a * (x // b)
print(X - Y)
if __name__ == '__main__':
main()
| import sys
input = sys.stdin.readline
def main():
a, b, n = map(int, input().split())
x = min(n, b - 1)
X = (a * x) // b
Y = a * (x // b)
print(X - Y)
if __name__ == '__main__':
main()
| [
"expression.operation.binary.remove"
] | 443,594 | 443,595 | u189023301 | python |
p02696 | import math
A, B, N = list(map(int, input().split(" ")))
if B > N:
print(math.floor(A*i/B) - A * math.floor(i/B))
else:
print(math.floor(A*(B-1)/B)) | import math
A, B, N = list(map(int, input().split(" ")))
if B > N:
print(math.floor(A*N/B) - A * math.floor(N/B))
else:
print(math.floor(A*(B-1)/B)) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 443,596 | 443,597 | u150787983 | python |
p02696 | A, B, N = map(int, input().split())
if N < B:
print(int(A * N / B))
else:
print(int(A * (N % B) / B)) | A, B, N = map(int, input().split())
if N < B:
print(int(A * N / B))
else:
print(int(A * (B - 1) / B)) | [
"expression.operation.binary.remove"
] | 443,600 | 443,601 | u092646083 | python |
p02696 | a,b,n = map(int,input().split())
if b > n:
print((a*n)//b)
elif b <= n:
print((a*b-1)//b) | a,b,n = map(int,input().split())
if b > n:
print((a*n)//b)
elif b <= n:
print((a*(b-1))//b) | [
"call.arguments.change"
] | 443,602 | 443,603 | u562015767 | python |
p02696 |
A, B, N=list(map(int, input().split()))
if B > N:
X = N
else:
X = B-1
Ans = math.floor(A*X/B) - A * math.floor(X/B)
print(Ans)
| import math
A, B, N=list(map(int, input().split()))
if B > N:
X = N
else:
X = B-1
Ans = math.floor(A*X/B) - A * math.floor(X/B)
print(Ans)
| [] | 443,611 | 443,612 | u949425889 | python |
p02696 | import math
a, b, n = map(int, input().split())
if n < b:
print('a')
ans = math.floor(a*n/b) - a * math.floor(n/b)
print(ans)
else:
ans = a - (a-1) // b - 1
print(ans) | import math
a, b, n = map(int, input().split())
if n < b:
ans = math.floor(a*n/b) - a * math.floor(n/b)
print(ans)
else:
ans = a - (a-1) // b - 1
print(ans) | [
"call.remove"
] | 443,613 | 443,614 | u546618578 | python |
p02696 | import math
A, B, N = [int(s) for s in input().split()]
if N > B:
x = B - 1
else:
x = N
ans = A * x // B - A * (x // B)
print(ans) | A, B, N = [int(s) for s in input().split()]
if N >= B - 1:
x = B - 1
else:
x = N
ans = A * x // B - A * (x // B)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,641 | 443,642 | u550419600 | python |
p02696 | import math
a, b, n = map(int, input().split())
x = n
if b < n:
x = b-1
new = math.floor(a*x/b) - a * math.floor(x/b)
print(new)
| import math
a, b, n = map(int, input().split())
x = n
if b <= n:
x = b-1
new = math.floor(a*x/b) - a * math.floor(x/b)
print(new)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,661 | 443,662 | u336564899 | python |
p02696 | import math
#X=int(input())
A,B,N=map(int,input().split())
if B<N:
print(math.floor(A*(B-1)/B)-A*math.floor((B-1)/B))
exit()
else:
print(math.floor(A*(N)/B)-A*math.floor((N)/B))
exit()
| import math
#X=int(input())
A,B,N=map(int,input().split())
if B<=N:
print(math.floor(A*(B-1)/B)-A*math.floor((B-1)/B))
exit()
else:
print(math.floor(A*(N)/B)-A*math.floor((N)/B))
exit()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,663 | 443,664 | u163907160 | python |
p02696 | # -*- coding:utf-8 -*-
def solve():
A, B, N = list(map(int, input().split()))
def f(x):
return (A*x//B) - A*(x//B)
# 分母のBに注目すると、1 <= x <= B を調べれば良い
if B >= N:
print(f(N))
else:
print(f(B-1))
def solve2():
A, B, N = list(map(int, input().split()))
def f(x):
... | # -*- coding:utf-8 -*-
def solve():
A, B, N = list(map(int, input().split()))
def f(x):
return (A*x//B) - A*(x//B)
# 分母のBに注目すると、1 <= x <= B を調べれば良い
if B > N:
print(f(N))
else:
print(f(B-1))
def solve2():
A, B, N = list(map(int, input().split()))
def f(x):
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,665 | 443,666 | u687044304 | python |
p02696 | # -*- coding:utf-8 -*-
def solve():
A, B, N = list(map(int, input().split()))
def f(x):
return (A*x//B) - A*(x//B)
# 分母のBに注目すると、1 <= x <= B を調べれば良い
if B >= N:
print(f(N))
else:
print(f(B))
def solve2():
A, B, N = list(map(int, input().split()))
def f(x):
... | # -*- coding:utf-8 -*-
def solve():
A, B, N = list(map(int, input().split()))
def f(x):
return (A*x//B) - A*(x//B)
# 分母のBに注目すると、1 <= x <= B を調べれば良い
if B > N:
print(f(N))
else:
print(f(B-1))
def solve2():
A, B, N = list(map(int, input().split()))
def f(x):
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,667 | 443,666 | u687044304 | python |
p02696 | a,b,n=map(int,input().split())
if a <= b:
if n > b:
ans=(a*(b-1))//b
else:
ans=(a*n)//b - a*(n//b)
else:
if n > b:
ans=(a*(b-1))//b
else:
ans=(a*n)//b - a*(n//b)
print(ans)
| a,b,n=map(int,input().split())
if a <= b:
if n >= b:
ans=(a*(b-1))//b
else:
ans=(a*n)//b - a*(n//b)
else:
if n >= b:
ans=(a*(b-1))//b
else:
ans=(a*n)//b - a*(n//b)
print(ans)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,670 | 443,671 | u181644161 | python |
p02696 | from math import floor
A, B, N = map(int, input().split())
ans = 0
if N > B:
x = B - 1
else:
x = N
ans = floor(A*x/B) - A*floor(x/B)
print(ans) | from math import floor
A, B, N = map(int, input().split())
ans = 0
if N >= B:
x = B - 1
else:
x = N
ans = floor(A*x/B) - A*floor(x/B)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,675 | 443,676 | u078349616 | python |
p02696 | A, B, N = [int(i) for i in input().split()]
if B == 1:
max = 0
elif B >= N:
x = N
max = ((A * x) // B) - A * (x // B)
else:
x = N
maxn = ((A * x) // B) - A * (x // B)
x = B * (N // B) - 1
maxx = ((A * x) // B) - A * (x // B)
if maxx > maxn:
max = maxx
else:
max = maxn... | A, B, N = [int(i) for i in input().split()]
if B == 1:
max = 0
elif B > N:
x = N
max = ((A * x) // B) - A * (x // B)
else:
x = N
maxn = ((A * x) // B) - A * (x // B)
x = B * (N // B) - 1
maxx = ((A * x) // B) - A * (x // B)
if maxx > maxn:
max = maxx
else:
max = maxn
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,677 | 443,678 | u865418111 | python |
p02696 | A, B, N = map(int, input().split())
if B-1>N:
answer = (A*N/B)//1 - A*((N/B)//1)
if A > B:
answer = (A*(B-1)/B)//1 - A*(((B-1)/B)//1)
print(int(answer))
| A, B, N = map(int, input().split())
if B-1>N:
answer = (A*N/B)//1 - A*((N/B)//1)
else:
answer = (A*(B-1)/B)//1 - A*(((B-1)/B)//1)
print(int(answer))
| [] | 443,697 | 443,698 | u511457539 | python |
p02696 | A, B, N = map(int, input().split())
if N > B:
X = (A*(B-1)) // B
Y = A * ((B-1)//B)
print(X-Y)
else:
X = (A*N) // B
Y = A * (N//B)
print(X-Y)
| A, B, N = map(int, input().split())
if N >= B:
X = (A*(B-1)) // B
Y = A * ((B-1)//B)
print(X-Y)
else:
X = (A*N) // B
Y = A * (N//B)
print(X-Y)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,699 | 443,700 | u776311944 | python |
p02696 | a,b,n = map(int,input().split())
import math
if b < n:
print(math.floor(a*(b-1)/b))
else:
print(math.floor((a*n)/b)) | a,b,n = map(int,input().split())
import math
if b <= n:
print(math.floor(a*(b-1)/b))
else:
print(math.floor((a*n)/b)) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,707 | 443,708 | u306060982 | python |
p02696 | import sys
readline = sys.stdin.readline
A, B, N = map(int, readline().split())
k = min(B, N)
ans = (A * k - A * k % B) // B
print(ans) | import sys
readline = sys.stdin.readline
A, B, N = map(int, readline().split())
k = min(B - 1, N)
ans = (A * k - A * k % B) // B
print(ans) | [
"assignment.change"
] | 443,713 | 443,714 | u780465569 | python |
p02696 | a, b, n = map(int, input().split())
if n <= b:
k = n
else:
k = b
print((a*k)//b - a*(k//b)) | a, b, n = map(int, input().split())
if n < b:
k = n
else:
k = b - 1
print((a*k)//b - a*(k//b)) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,720 | 443,721 | u347600233 | python |
p02696 | def main():
a,b,n = map(int,input().split())
aa = min(b,n)
ans = a*aa//b - a * (aa//b)
print(ans)
if __name__=='__main__':
main()
| def main():
a,b,n = map(int,input().split())
aa = min(b-1,n)
ans = a*aa//b - a * (aa//b)
print(ans)
if __name__=='__main__':
main()
| [
"assignment.change"
] | 443,727 | 443,728 | u321035578 | python |
p02696 | import math
a,b,n = list(map(int,input().split()))
if b>=n:
x=n
else:x=b
print(math.floor(a*x/b)-a*math.floor(x/b)) | import math
a,b,n = list(map(int,input().split()))
if b-1>=n:
x=n
else:x=b-1
print(math.floor(a*x/b)-a*math.floor(x/b)) | [
"control_flow.branch.if.condition.change"
] | 443,735 | 443,736 | u657786757 | python |
p02696 | from math import floor
a, b, n = map(int, input().split())
if b == 1:
print(0)
else:
if n <= b:
print((a * n) // b - a * (n //b))
else:
ans = 0
for i in range(b - 1, n + 1, b):
ans = max(ans, (a * i) // b - a * (i //b))
print(ans) | from math import floor
a, b, n = map(int, input().split())
if b == 1:
print(0)
else:
if n < b:
print((a * n) // b - a * (n //b))
else:
ans = 0
for i in range(b - 1, n + 1, b):
ans = max(ans, (a * i) // b - a * (i //b))
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,742 | 443,743 | u163874353 | python |
p02696 | a,b,n = map(int,input().split())
import math
if n < b:
print(int(math.floor(a*n/b) - a*np.floor(n/b)))
else:
print(int(math.floor(a*(b-1)/b) - a*np.floor((b-1)/b))) | a,b,n = map(int,input().split())
import math
if n < b:
print(int(math.floor(a*n/b) - a*math.floor(n/b)))
else:
print(int(math.floor(a*(b-1)/b) - a*math.floor((b-1)/b))) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 443,744 | 443,745 | u100800700 | python |
p02696 | import math
A,B,N=map(int,input().split())
if(N<=B):
x = N
else:
x =B-1
print(int( math.floor(A*x/B)-A*math.floor(x/B) )) | import math
A,B,N=map(int,input().split())
if(N<B):
x = N
else:
x =B-1
print(int( math.floor(A*x/B)-A*math.floor(x/B) )) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,764 | 443,765 | u442855260 | python |
p02696 | import math
a,b,n = map(int,input().split())
x = 0
ans = 0
if b > n:
x = n
ans = math.floor(a*n/b) - a*math.floor(n/b)
else:
n = b-1
ans = ath.floor(a*n/b) - a*math.floor(n/b)
print(ans)
| import math
a,b,n = map(int,input().split())
x = 0
ans = 0
if b > n:
x = n
ans = math.floor(a*n/b) - a*math.floor(n/b)
else:
n = b-1
ans = math.floor(a*n/b) - a*math.floor(n/b)
print(ans)
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 443,774 | 443,775 | u728473456 | python |
p02696 | import sys
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
a,b,x=MAP()
def f(n):
return (a*n)//b-a*(n//b)
if b<=x:
print(f(b))
else:
print(f(x))
| import sys
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
a,b,x=MAP()
def f(n):
return (a*n)//b-a*(n//b)
if b<=x:
print(f(b-1))
else:
print(f(x))
| [
"expression.operation.binary.add"
] | 443,776 | 443,777 | u639343026 | python |
p02696 | def main():
A, B, N = map(int, input().split(" "))
max_score = -float("inf")
if B <= N:
x = B-1
else:
x = N
score = math.floor((A*x)/B) - A*math.floor(x/B)
print(score)
if __name__ == "__main__":
main() | import math
def main():
A, B, N = map(int, input().split(" "))
max_score = -float("inf")
if B <= N:
x = B-1
else:
x = N
score = math.floor((A*x)/B) - A*math.floor(x/B)
print(score)
if __name__ == "__main__":
main() | [] | 443,790 | 443,791 | u458396858 | python |
p02696 | a, b, n =map(int, input().split())
if b>=n:
ans=(a*n)//b
print(ans)
else:
ans=(a*(b-1)//b)
print(ans) | a, b, n =map(int, input().split())
if b>n:
ans=(a*n)//b
print(ans)
else:
ans=(a*(b-1)//b)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,794 | 443,795 | u886459614 | python |
p02696 | a, b, n = map(int, input().split())
t = n // b
if t == 0:
ans = int(a * n / b) - a * int(n / b)
else:
ans = 0
for i in range(t):
x = b * i + (b - 1)
if x > n:
x = n
else:
pass
tmp = int(a * x / b) - a * int(x / b)
print(tmp)
if... | a, b, n = map(int, input().split())
t = n // b
if t == 0:
ans = int(a * n / b) - a * int(n / b)
else:
ans = 0
for i in range(t):
x = b * i + (b - 1)
if x > n:
x = n
else:
pass
tmp = int(a * x / b) - a * int(x / b)
if tmp > an... | [
"call.remove",
"control_flow.pass.remove",
"control_flow.break.add"
] | 443,802 | 443,801 | u318233626 | python |
p02696 | #!/usr/bin/env python3
import sys
import math
def solve(A: int, B: int, N: int):
print(math.floor(A*min(B, N)/B) - A * math.floor(min(B, N)/B))
return
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom te... | #!/usr/bin/env python3
import sys
import math
def solve(A: int, B: int, N: int):
print(math.floor(A*min(B-1, N)/B) - A * math.floor(min(B-1, N)/B))
return
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custo... | [
"expression.operation.binary.add"
] | 443,807 | 443,808 | u333190709 | python |
p02696 |
def main():
A, B, N = map(int, input().split())
max = ((A*N)//B) - (A * (N//B))
if B>=N:
temp = ((A*(B-1))//B) - (A * ((B-1)//B))
if max > temp:
max = temp
print(max)
if __name__ == '__main__':
main()
|
def main():
A, B, N = map(int, input().split())
max = ((A*N)//B) - (A * (N//B))
if B<=N:
temp = ((A*(B-1))//B) - (A * ((B-1)//B))
if max < temp:
max = temp
print(max)
if __name__ == '__main__':
main()
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,816 | 443,817 | u983853152 | python |
p02696 | a,b,n = map(int,input().split())
c = 0
if n >b:
i = b-1
else:
i =n
ans = int(a*i/b)-a*int(i/b)
print(ans) | a,b,n = map(int,input().split())
c = 0
if n >=b:
i = b-1
else:
i =n
ans = int(a*i/b)-a*int(i/b)
print(ans)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,824 | 443,825 | u665369939 | python |
p02696 | from math import floor
A, B, N = map(int,input().split())
x=max(N,B-1)
print(floor(A*x/B)-A*floor(x/B)) | from math import floor
A, B, N = map(int,input().split())
x=min(N,B-1)
print(floor(A*x/B)-A*floor(x/B)) | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 443,851 | 443,852 | u612261372 | python |
p02696 | a,b,n=map(int,input().split())
if b<n:
print(int((a*(b)/b))-1)
else:
print(int((a*(n)/b)))
| a,b,n=map(int,input().split())
if b<=n:
print(int((a*(b-1)/b)))
else:
print(int((a*(n)/b))) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 443,859 | 443,860 | u024782094 | python |
p02696 | a,b,n=map(int,input().split())
if b<=n:
print(int((a*(b)/b))-1)
else:
print(int((a*(n)/b)))
| a,b,n=map(int,input().split())
if b<=n:
print(int((a*(b-1)/b)))
else:
print(int((a*(n)/b))) | [
"expression.operation.binary.remove"
] | 443,861 | 443,860 | u024782094 | python |
p02696 | a,b,n=map(int,input().split())
if b<=n:
print(int((a*(b)/b)))
else:
print(int((a*(n)/b)))
| a,b,n=map(int,input().split())
if b<=n:
print(int((a*(b-1)/b)))
else:
print(int((a*(n)/b))) | [
"expression.operation.binary.add"
] | 443,862 | 443,860 | u024782094 | python |
p02696 | def main():
a,b,n=map(int,input().split())
if n>=b-1:
print((a*(b-1))//b)
else:
print((a*(n-1)//b))
if __name__=='__main__':
main() | def main():
a,b,n=map(int,input().split())
if n>=b-1:
print((a*(b-1))//b)
else:
print((a*n)//b)
if __name__=='__main__':
main() | [
"call.arguments.change",
"expression.operation.binary.remove"
] | 443,874 | 443,875 | u766684188 | python |
p02696 | # D
inp = input().split(' ')
A, B, N = int(inp[0]), int(inp[1]), int(inp[2])
alpha, beta = math.floor(A/B), A%B
if B-1 < N:
x = B-1
else:
x = N
print(math.floor(A*x/B) - A * math.floor(x/B)) | # D
import math
inp = input().split(' ')
A, B, N = int(inp[0]), int(inp[1]), int(inp[2])
alpha, beta = math.floor(A/B), A%B
if B-1 < N:
x = B-1
else:
x = N
print(math.floor(A*x/B) - A * math.floor(x/B)) | [] | 443,880 | 443,881 | u609307781 | python |
p02696 | a, b, n = map(int, input().split())
if b <= n:
print((b- 1 * a) // b - a * (b - 1 // b))
else:
print((n * a) // b - a * (n // b)) | a, b, n = map(int, input().split())
if b <= n:
print(((b- 1) * a) // b - a * ((b - 1) // b))
else:
print((n * a) // b - a * (n // b)) | [
"call.arguments.change"
] | 443,895 | 443,896 | u845847173 | python |
p02696 | a, b, n = map(int, input().split())
import math
c = math.floor(a*n/b)
d = math.floor(n/b)
e = a*d
f = math.floor(a*(b-1)/b)
g = math.floor((b-1)/b)
h = a*g
if n <= b:
print(c - e)
else:
print(f - h) | a, b, n = map(int, input().split())
import math
c = math.floor(a*n/b)
d = math.floor(n/b)
e = a*d
f = math.floor(a*(b-1)/b)
g = math.floor((b-1)/b)
h = a*g
if n < b:
print(c - e)
else:
print(f - h) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,912 | 443,913 | u004482945 | python |
p02696 | # input
A, B, N = map(int, input().split())
# process
x = 0
if B <= N:
x = B-1
else:
x = N
# output
print(x)
print(A*x//B - A*(x//B))
| # input
A, B, N = map(int, input().split())
# process
x = 0
if B <= N:
x = B-1
else:
x = N
# output
print(A*x//B - A*(x//B))
| [
"call.remove"
] | 443,922 | 443,923 | u563676207 | python |
p02696 | # ANSHUL GAUTAM
# IIIT-D
from math import *
from copy import * # ll = deepcopy(l)
from heapq import * # heappush(hp,x)
from string import * # alpha = ascii_lowercase
from random import * # l.sort(key=lambda l1:l1[0]-l1[1]) => ex: sort on the basis difference
from bisect import * # bisect_left(arr,x,st... | # ANSHUL GAUTAM
# IIIT-D
from math import *
from copy import * # ll = deepcopy(l)
from heapq import * # heappush(hp,x)
from string import * # alpha = ascii_lowercase
from random import * # l.sort(key=lambda l1:l1[0]-l1[1]) => ex: sort on the basis difference
from bisect import * # bisect_left(arr,x,st... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 443,929 | 443,930 | u056977516 | python |
p02696 | from math import floor
A, B, N = map(int, input().split())
print(floor((A*min(N, B))/B) - A * floor(min(N,B)/B))
| from math import floor
A, B, N = map(int, input().split())
print(floor((A*min(N, B-1))/B) - A * floor(min(N,B-1)/B))
| [
"expression.operation.binary.add"
] | 443,933 | 443,934 | u873776333 | python |
p02696 | import math
a,b,n = map(int,input().split())
if n <= b-1:
print(math.floor(a*n/b))
else:
print(math.floor(a*(n-1)/b)) | import math
a,b,n = map(int,input().split())
if n <= b-1:
print(math.floor(a*n/b))
else:
print(math.floor(a*(b-1)/b)) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 443,935 | 443,936 | u689890477 | python |
p02696 | import math
a,b,n = map(int, input().split())
if b > n:
c = n-1
else:
c = b-1
ans = math.floor(a * c /b) - a * math.floor(c/b)
print(ans) | import math
a,b,n = map(int, input().split())
if b > n:
c = n
else:
c = b-1
ans = math.floor(a * c /b) - a * math.floor(c/b)
print(ans) | [
"expression.operation.binary.remove"
] | 443,940 | 443,941 | u395816772 | python |
p02696 | import math
a, b, n = (int(x) for x in input().split())
if b > n:
print(math.floor(b * n / b) - a * math.floor(n / b))
else:
print(math.floor(a * (b -1) / b) - a * math.floor((b -1) / b)) | import math
a, b, n = (int(x) for x in input().split())
if b > n:
print(math.floor(a * n / b) - a * math.floor(n / b))
else:
print(math.floor(a * (b -1) / b) - a * math.floor((b -1) / b)) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 443,942 | 443,943 | u626529075 | python |
p02696 | def fn(x):
return ((a*x)//b) - a*(x//b)
a,b,n = map(int, input().split())
ans = 0
if b <= n:
ans = b
else:
ans = n
print(fn(ans)) | def fn(x):
return ((a*x)//b) - a*(x//b)
a,b,n = map(int, input().split())
ans = 0
if b <= n:
ans = b-1
else:
ans = n
print(fn(ans)) | [
"assignment.change"
] | 443,946 | 443,947 | u691896522 | python |
p02696 | def f(a,b,x):
return (a*x)//b - a*(x//b)
a,b,n=map(int,input().split())
res=0
if n<=b:
res=f(a,b,n)
print(res)
else:
res=f(a,b,b-1)
if n%b==0:
res=max(res,f(a,b,n-1))
print(res)
else:
res=max(res,f(a,b,(n//b)-1))
print(res) | def f(a,b,x):
return (a*x)//b - a*(x//b)
a,b,n=map(int,input().split())
res=0
if n<b:
res=f(a,b,n)
print(res)
else:
res=f(a,b,b-1)
if n%b==0:
res=max(res,f(a,b,n-1))
print(res)
else:
res=max(res,f(a,b,(n//b)-1))
print(res) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,948 | 443,949 | u039189422 | python |
p02696 | a, b, n = map(int, input().split())
x = b - 1 if 0 <= b - 1 <= n else n - 1
print(a*x//b - a * (x // b))
| a, b, n = map(int, input().split())
x = b - 1 if 0 <= b - 1 <= n else n
print(a*x//b - a * (x // b))
| [
"expression.operation.binary.remove"
] | 443,950 | 443,951 | u111497285 | python |
p02696 | a, b, n = map(int, input().split())
x = b - 1 if 1 <= b - 1 <= n else n - 1
print(a*x//b - a * (x // b))
| a, b, n = map(int, input().split())
x = b - 1 if 0 <= b - 1 <= n else n
print(a*x//b - a * (x // b))
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.remove"
] | 443,952 | 443,951 | u111497285 | python |
p02696 | a, b, n = map(int, input().split())
x = b - 1 if b - 1 <= n else n - 1
print(a*x//b - a * (x // b))
| a, b, n = map(int, input().split())
x = b - 1 if 0 <= b - 1 <= n else n
print(a*x//b - a * (x // b))
| [
"expression.operation.binary.remove"
] | 443,953 | 443,951 | u111497285 | python |
p02696 | a, b, n = map(int, input().split())
def val(x):
global a, b, n
return int((a*x)//b - a*(x//b))
if n >= b:
print(val(b-0.001))
else:
print(val(n)) | a, b, n = map(int, input().split())
def val(x):
global a, b, n
return int((a*x)//b - a*(x//b))
if n >= b:
print(val(b-1))
else:
print(val(n)) | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 443,956 | 443,957 | u677253688 | python |
p02696 | A,B,N=map(int,input().split())
C=min(B,N)
print(int(A*C/B)) | A,B,N=map(int,input().split())
C=min(B-1,N)
print(int(A*C/B))
| [
"assignment.change"
] | 443,961 | 443,962 | u387774811 | python |
p02696 | import math
a, b , n = map(int, input().split())
s1 = math.floor(a * n / b) - a * math.floor(n / b)
if n <= b:
print(s1)
exit()
ans = 0
for i in range(b, b - 10*3, -1):
ans = max(math.floor(a * (b-1) / b) - a * math.floor((b-1) / b), ans)
print(ans) | import math
a, b , n = map(int, input().split())
s1 = math.floor(a * n / b) - a * math.floor(n / b)
if n < b:
print(s1)
exit()
ans = 0
for i in range(b, b - 10*3, -1):
ans = max(math.floor(a * (b-1) / b) - a * math.floor((b-1) / b), ans)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,963 | 443,964 | u558242240 | python |
p02696 | a,b,n=map(int,input().split())
if n<b:
ans=int(a*n/b)-a*int(n/b)
else :
ans=int(a*(n-1)/b)-a*int((n-1)/b)
print(ans) | a,b,n=map(int,input().split())
if n<b:
ans=int(a*n/b)-a*int(n/b)
else:
ans=int(a*(b-1)/b)-a*int((b-1)/b)
print(ans) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 443,971 | 443,972 | u404629709 | python |
p02696 | a,b,n=map(int,input().split())
if n<b:
ans=int(a*n/b)-a*int(n/b)
else :
ans=int(a*(n-1)/b)-a*int((n-1)/b)
| a,b,n=map(int,input().split())
if n<b:
ans=int(a*n/b)-a*int(n/b)
else:
ans=int(a*(b-1)/b)-a*int((b-1)/b)
print(ans) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"call.add"
] | 443,973 | 443,972 | u404629709 | python |
p02696 | import math
A, B, N = [int(x) for x in input().split()]
if B >= N:
x = N
else:
x = B - 1
print(math.floor(A*x/B)-A*math.floor(x/B))
| import math
A, B, N = [int(x) for x in input().split()]
if B > N:
x = N
else:
x = B - 1
print(math.floor(A*x/B)-A*math.floor(x/B))
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 443,994 | 443,995 | u439009525 | python |
p02696 | str1 = str(input(' '))
l = str1.split(' ')
a = int(l[0])
b = int(l[1])
n = int(l[2])
if n<=b:
print((a*n)//b - a*(n//b))
else:
print((a*(b-1)//b) - a*((b-1)//b)) | str1 = str(input(' '))
l = str1.split(' ')
a = int(l[0])
b = int(l[1])
n = int(l[2])
if n<b:
print((a*(n))//b - a*((n)//b))
else:
print((a*(b-1)//b) - a*((b-1)//b)) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.arguments.change"
] | 443,999 | 444,000 | u043062362 | python |
p02696 | a, b, n = map(int, input().split())
if n >= b:
print(int(a*(b-1)/b) - a*int(b-1/b))
else:
print(int(a*n/b) - a*int(n/b)) | a, b, n = map(int, input().split())
if n >= b:
print(int(a*(b-1)/b) - a*int((b-1)/b))
else:
print(int(a*n/b) - a*int(n/b)) | [
"call.arguments.change"
] | 444,005 | 444,006 | u086438369 | python |
p02696 | import math
A,B,N = map(int,input().split())
if N <=B:
print(math.floor(A*N/B))
else:
print(math.floor(A*(B-1)/B)) | import math
A,B,N = map(int,input().split())
if N < B:
print(math.floor(A*N/B))
else:
print(math.floor(A*(B-1)/B)) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 444,007 | 444,008 | u617718239 | python |
p02696 | import numpy as np
a,b,n=list(map(int,input().split()))
def func(a,b,x):
return int(a*x/b)-a*int(x/b)
if n>b:
print(func(a,b,b-1))
else:
print(func(a,b,n)) | import numpy as np
a,b,n=list(map(int,input().split()))
def func(a,b,x):
return int(a*x/b)-a*int(x/b)
if n>=b:
print(func(a,b,b-1))
else:
print(func(a,b,n)) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 444,016 | 444,017 | u954488273 | python |
p02696 | import math
a, b, n = list(map(int, input().split()))
x = min(b, n)
print(math.floor(a * x / b) - a * math.floor(x / b)) | import math
a, b, n = list(map(int, input().split()))
x = min(b-1, n)
print(math.floor(a * x / b) - a * math.floor(x / b))
| [
"assignment.change"
] | 444,024 | 444,025 | u057993957 | python |
p02696 | import math
A,B,N= map(int, input().split())
ans = 0
if N>B:
i = B-1
else:
i = N
d = (math.floor((A*i)/B) - A *math.floor(i/B))
print(d) | import math
A,B,N= map(int, input().split())
ans = 0
if N>=B:
i = B-1
else:
i = N
d = (math.floor((A*i)/B) - A *math.floor(i/B))
print(d) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 444,032 | 444,033 | u892006633 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.