buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
i = 0 #????????????
while True:
n = input()
if n == '0':
break
i += 1#?????????????????????
print('Case {} : {}'.format(i,n), end="") |
i = 0 #????????????
while True:
n = input()
if n == '0':
break
i += 1#?????????????????????
print('Case {}: {}'.format(i,n)) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["-", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["-", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]] | 5 | 42 |
i=0
while True:
i+=1
x=eval(input())
if x==0:
break
else:
print("case "+str(i)+": "+str(x)) | i=0
while True:
i+=1
x=eval(input())
if x==0:
break
else:
print("Case "+str(i)+": "+str(x)) | [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 45 |
import sys
while True:
x = sys.stdin.readline().strip()
if x == "0":
break
print("Case %d: %s"%(i, x))
i += 1 | import sys
i = 1
while True:
x = sys.stdin.readline().strip()
if x == "0":
break
print("Case %d: %s"%(i, x))
i += 1 | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 41 |
x = input()
case = 1
while x != '0' :
print('case {}: {}'.format(case, x))
x = input()
case += 1 | x = input()
case = 1
while x != '0' :
print('Case {}: {}'.format(case, x))
x = input()
case += 1 | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 36 |
c=0
n=1
while n!=0 :
n=eval(input())
print("Case", str(c+1) + ":", n)
c=c+1 | c=0
n=1
while n!=0 :
n=eval(input())
if n!=0:
print("Case", str(c+1) + ":", n)
c=c+1 | [["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 79], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 102]] | 5 | 43 |
A = []
while True:
n = int(input())
if n == 0:
break
A.append(n)
for i in range(len(A)):
print('Case' + ' ' + str(i) + ':' + ' ' + str(A[i])) | A = []
while True:
n = int(input())
if n == 0:
break
A.append(n)
for i in range(len(A)):
print('Case' + ' ' + str(i + 1) + ':' + ' ' + str(A[i])) | [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 69 |
i = 1
while True:
hoge = input()
if hoge == "":
break
print("Case " + str(i) + ": " + hoge)
i += 1 | i = 1
while True:
hoge = input()
if int(hoge) == 0:
break
print("Case " + str(i) + ": " + hoge)
i += 1 | [["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 38 |
l = []
y = 1
while True:
x = input()
if x == 0:
break
l.append(x)
print('Case {}: {}'.format(y,x))
y += 1 | l = []
y = 1
while True:
x = int(input())
if x == 0:
break
l.append(x)
print('Case {}: {}'.format(y,x))
y += 1 | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 43 |
l = []
i = 1
while 1:
x = int(input())
if x == 0:
break
l.append(x)
print("Case {0}:{1}".format(i,l[i-1]))
i += 1 | l = []
i = 1
while 1:
x = int(input())
if x == 0:
break
l.append(x)
print("Case {0}: {1}".format(i,l[i-1]))
i += 1 | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 51 |
list = []
while True:
n = int(input())
if n == 0:
break
list.append(n)
for i,n in enumerate(list):
print('case %i: %i' %(i+1, n)) | list = []
while True:
n = int(input())
if n == 0:
break
list.append(n)
for i,n in enumerate(list):
print('Case %i: %i' %(i+1, n)) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 51 |
a = []
while True:
n = int(input())
if n == 0:
break
a.append(n)
y = 0
z = len(a)
for y in range(0,z):
w = y + 1
print("Case"+str(w)+":",a[y])
| a = []
while True:
n = int(input())
if n == 0:
break
a.append(n)
y = 0
z = len(a)
for y in range(0,z):
w = y + 1
print("Case",str(w)+":",a[y])
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 71 |
inputs = []
for i in range(10000) :
inputraw = input()
if inputraw == '0' :
break
inputs.append(inputraw)
for i, input in enumerate(inputs) :
print("Case "+str(i)+": "+ str(input)) |
inputs = []
for i in range(10000) :
inputraw = input()
if inputraw == '0' :
break
inputs.append(inputraw)
for i, input in enumerate(inputs) :
print("Case "+str(i+1)+": "+ str(input)) | [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 61 |
import sys
count = 1
while true:
x = sys.stdin.readline().strip()
if x == 0:
break
print("Case {}: {}".format(count,x))
count += 1 | import sys
count = 1
while True:
x = sys.stdin.readline().strip()
if x == "0":
break
print("Case {}: {}".format(count,x))
count += 1 | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 43 |
count=1
while(True):
num=int(input())
if num == 0:
break
print('Case %d: %d' % (count,num)) | count=1
while(True):
num=int(input())
if num == 0:
break
print('Case %d: %d' % (count,num))
count += 1 | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 34 |
import sys
a = sys.stdin
i = 1
for line in a:
if(int(line) == 0):
break
print('Case{0}:{1}'.format(i,line),end="")
i += 1 | import sys
a = sys.stdin
i = 1
for line in a:
if(int(line) == 0):
break
print('Case {0}: {1}'.format(i,line),end="")
i += 1 | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 47 |
for i in range(100000):
x = eval(input())
if x == 0:
break
print("Case " + str(i) + ": " + str(x)) | for i in range(100000):
x = eval(input())
if x == 0:
break
print("Case " + str(i + 1) + ": " + str(x)) | [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 42 |
i = 1
while True:
x = int(input())
if x:
print('Case {:d}: {:d}'.format(i, x))
else:
break | i = 1
while True:
x = int(input())
if x:
print('Case {:d}: {:d}'.format(i, x))
i += 1
else:
break | [["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612]] | 5 | 33 |
i = 1
x = input()
while x:
print('Case {0}: {1}'.format(i, x))
x = input()
i += 1 | i = 1
x = input()
while x != '0':
print('Case {0}: {1}'.format(i, x))
x = input()
i += 1 | [["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 79], ["+", 0, 656, 0, 52, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 52, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 52, 15, 666, 0, 557, 0, 655]] | 5 | 32 |
i = 1
x=int(input())
if x==0:
break
print("Case {0}: {1}".format(i,x))
i+=1 | i = 1
while True:
x=int(input())
if x==0:
break
print("Case {0}: {1}".format(i,x))
i+=1 | [["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 102]] | 5 | 33 |
count = 0
while True:
x = int(input())
if x == 0:
break
print("Case %d: %d" % (count, x)) | count = 0
while True:
count += 1
x = int(input())
if x == 0:
break
else:
print("Case %d: %d" % (count, x)) | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102]] | 5 | 32 |
t=[]
while True:
x = str(input(""))
if x == "0":
break
else:
t.append(x)
for i,v in enumerate(t):
print("Case",i+1,t[i]) | t=[]
while True:
x = str(input(""))
if x == "0":
break
else:
t.append(x)
for i,v in enumerate(t):
print("Case",str(i+1)+":",t[i]) | [["+", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 12, 557, 0, 655]] | 5 | 58 |
x = []
while(1):
num = int(eval(input()))
if(num == 0):
break
x.append(num)
for i in range( len(x) ):
print('Case '+str(i)+':', x[i]) | x = []
while(1):
num = int(eval(input()))
if(num == 0):
break
x.append(num)
for i in range( len(x) ):
print('Case '+str(i+1)+':', x[i]) | [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 65 |
### 17.07.2017
n = []
while (True):
x = int(input())
if x == 0:
break
n.append(int(x))
a = 0
for i in n:
print('case ',a+1, ': ', n[a], sep='')
a += 1 | ### 17.07.2017
n = []
while (True):
x = int(input())
if x == 0:
break
n.append(int(x))
a = 0
for i in n:
print('Case ',a+1, ': ', n[a], sep='')
a += 1 | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 68 |
ret = []
while True:
n = eval(input())
if n == 0:
break
ret += [n]
for i, x in enumerate(ret):
print('Case %d: %d' % (i, x)) | ret = []
while True:
n = eval(input())
if n == 0:
break
ret += [n]
for i, x in enumerate(ret):
print('Case %d: %d' % (i+1, x)) | [["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]] | 5 | 48 |
ret = []
while True:
n = eval(input())
if n == 0:
break
ret += [n]
for i, x in enumerate(ret):
print('Case %d: %d' % (i, x)) | ret = []
while True:
n = eval(input())
if n == 0:
break
ret += [n]
for i, x in enumerate(ret):
print(('Case %d: %d' % (i+1, x))) | [["+", 0, 1, 0, 652, 3, 4, 0, 23, 0, 24], ["+", 0, 23, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 0, 23, 0, 657, 12, 660, 0, 657, 12, 612], ["+", 3, 4, 0, 23, 0, 657, 12, 660, 0, 25]] | 5 | 48 |
i = 0
while True:
i, n = i+1, eval(input())
if n == 0:
break
print('Case %d: %d' % (i+1, n)) | i = 0
while True:
i, n = i+1, eval(input())
if n == 0:
break
print('Case %d: %d' % (i, n)) | [["-", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["-", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]] | 5 | 40 |
i=1
while(1):
n=input()
if(int(n)==0):
break
else:
print('Case '+str(i)+': '+n) | i=1
while(1):
n=input()
if(int(n)==0):
break
else:
print('Case '+str(i)+': '+n)
i+=1 | [["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 43 |
i=1
while True:
a = int(input())
if a==0:
break
else:
print("case {}: {}".format(i,a))
i += 1; | i=1
while True:
a = int(input())
if a==0:
break
else:
print("Case {}: {}".format(i,a))
i += 1; | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 39 |
input_list = []
flag = True
while flag:
input_value = input()
if input_value == "0":
flag = False
input_list.append(input_value)
for i in range(0, len(input_list)-1):
print("Case {0}:{1}".format(i+1, input_list[i])) | input_list = []
flag = True
while flag:
input_value = input()
if input_value == "0":
flag = False
input_list.append(input_value)
for i in range(0, len(input_list)-1):
print("Case {0}: {1}".format(i+1, input_list[i])) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 64 |
count = 0
while True:
x=input()
count += 1
if x == '0':
break
print(('Case' + str(count) + ': ' + x))
| count = 0
while True:
x=input()
count += 1
if x == '0':
break
print(('Case ' + str(count) + ': ' + x))
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 41 |
a=1
while True:
x=input()
if x!=0:
print(('Case '+str(a)+':'+x))
a+=1
elif x==0:
break | a=1
while True:
x=input()
if x!='0':
print(('Case '+str(a)+': '+x))
a+=1
elif x=='0':
break | [["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["-", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]] | 5 | 44 |
i=1;count=1
while 1:
i=input()
if i==0:break
print("Case {0}: {1}".format(count,i))
count+=1 | i=1;count=1
while 1:
i=input()
i=int(i)
if i==0:
break
print("Case {0}: {1}".format(count,i))
count+=1 | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 37 |
c = 1
x = input()
while x != "0":
print("Case{}: {}".format(c, x))
x = input()
c += 1 | c = 1
x = input()
while x != "0":
print("Case {}: {}".format(c, x))
x = input()
c += 1 | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 36 |
import sys
for m, n in enumerate(sys.stdin):
if int(n) == 0:
break
print('Case {}: {}'.format(m+1, n)) | import sys
for m, n in enumerate(sys.stdin):
if int(n) == 0:
break
print('Case {}: {}'.format(m+1, int(n))) | [["+", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 38 |
i = 0
while 1:
i += 1
test = input()
if test == "0":
break
print("case " + str(i) + ":" + test) | i = 0
while 1:
i += 1
test = input()
if test == "0":
break
print("Case " + str(i) + ": " + test) | [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 39 |
import sys
for i, x in enumerate(sys.stdin):
x = x.strip()
if x == '0':
break
print('Case %d: %s'%(i, x)) | import sys
for i, x in enumerate(sys.stdin):
x = x.strip()
if x == '0':
break
print('Case %d: %s'%(i+1, x)) | [["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]] | 5 | 41 |
array = []
x = input()
while x != "0" :
array.append(x)
x = input()
for i in range(len(array)):
print("Case" + str(i + 1) + ':' + array[i]) | array = []
x = input()
while x != "0" :
array.append(x)
x = input()
for i in range(len(array)):
print("Case " + str(i + 1) + ": " + array[i]) | [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["+", 3, 4, 0, 657, 31, 657, 12, 557,... | 5 | 60 |
for i in range(10000):
x = input()
if x=="0":
break
else:
print ("Case " + str(i) + ": " + str(x)) | for i in range(20000):
x = input()
if x=="0":
break
else:
print ("Case " + str(i+1) + ": " + str(x)) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 43 |
#x = []
i = 0
while True:
x = int(input())
if x == 0:
break
print("Case" + str(i+1) + ": " + str(x))
i += 1
| #x = []
i = 0
while True:
x = int(input())
if x == 0:
break
print("Case " + str(i+1) + ": " + str(x))
i += 1
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 46 |
count = 1
while(True):
inp = input()
if inp == '0':
break
print('CASE ' + str(count) + ': ' + inp)
count+=1 | count = 1
while(True):
inp = input()
if inp == '0':
break
print('Case ' + str(count) + ': ' + inp)
count+=1 | [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 41 |
cnt = 1
while True:
num = int(input())
if num == 0:
break
print("case", str(cnt) + ":", num, sep = " ")
cnt += 1 | cnt = 1
while True:
num = int(input())
if num == 0:
break
print("Case", str(cnt) + ":", num, sep = " ")
cnt += 1 | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 46 |
import sys
cnt=1
while 1:
x=sys.stdin.readline().strip()
if x=='0':
break;
print("Case %d %s"%(cnt,x))
cnt+=1 | import sys
cnt=1
while 1:
x=sys.stdin.readline().strip()
if x== '0':
break;
print("Case %d: %s"%(cnt,x))
cnt+=1 | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 45 |
n=[]
line=''
while line != '0':
line=input()
if line != '0': n.append(int(line))
for x in range(len(n)):
print('Case %d: %d'%(x, n[x])) | n=[]
line=''
while line != '0':
line=input()
if line != '0': n.append(int(line))
for x in range(len(n)): print('Case %d: %d'%(x+1, n[x])) | [["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]] | 5 | 62 |
i = 1
while True:
n = input()
if n == 0:
break
print("Case {0}: {1}".format(i,n))
i += 1 | i = 1
while True:
n = input()
if n == "0":
break
print("Case {0}: {1}".format(i,n))
i += 1 | [["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 33 |
v = int(input())
i = 1
while v != 0:
print(("Case " + str(i) + ": " + str(v)))
v = int(input()) | v = int(input())
i = 1
while v != 0:
print(("Case " + str(i) + ": " + str(v)))
v = int(input())
i = i+1 | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 46 |
for i in range(10001):
x=int(input())
if x==0:
break
else:
print('Case'+' '+str(i)+':'+' '+str(x)) | for i in range(1,10001):
x=int(input())
if x==0:
break
else:
print('Case'+' '+str(i)+':'+' '+str(x)) | [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 52 |
i = 1
while True:
x = input()
if x == "0":
break
else:
print("Case{} : {}".format(i, x))
i += 1
| i = 1
while True:
x = input()
if x == "0":
break
else:
print("Case {}: {}".format(i, x))
i += 1
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 37 |
count = 1
count = int(count)
while True:
num = input()
if num == 0:
break
print('Case {0}: {1}'.format(count,num))
count = count + 1 | count = 1
count = int(count)
while True:
num = input()
num = int(num)
if num == 0:
break
print('Case {0}: {1}'.format(count,num))
count = count + 1 | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 41 |
count = 0
while true:
count += 1
n = int(input())
if n == 0:
break
print('Case ' + str(count) + ' :' + str(n)) | count = 0
while 1:
count += 1
n = int(input())
if n == 0:
break
print('Case ' + str(count) + ': ' + str(n)) | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 612], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 43 |
i = 1
while True:
instr = input()
x = int(instr)
if x == 0:
break
else:
print("Case " + str(i) + ":" + str(x))
i += 1
| i = 1
while True:
instr = input()
x = int(instr)
if x == 0:
break
else:
print("Case " + str(i) + ": " + str(x))
i += 1
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 48 |
i = 0
while True:
i += 1
n = input()
if (n == 0): break
print("Case " + str(i) + ": " + str(n))
| i = 0
while True:
i += 1
n = input()
if (n == "0"): break
print("Case " + str(i) + ": " + n)
| [["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655], ["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 42 |
i = 1
while True:
case = input()
if case == "0":
break
print("Case "+str(i)+":"+case)
i += 1
| i = 1
while True:
case = input()
if case == "0":
break
print("Case "+str(i)+": "+case)
i += 1
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 39 |
count = 1
while(1):
x = input()
if(x == "0"):
break
count = str(count)
print(("Case "+count+":"+x))
count = int(count)
count += 1
| count = 1
while(1):
x = input()
if(x == "0"):
break
count = str(count)
print(("Case "+count+": "+x))
count = int(count)
count += 1
| [["-", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 54 |
### Repetitive Processing - Print Test Cases
i = 0
while True:
x = int(input());
i += 1
if x == 0: break
print("Case {}: {}".format(c, i))
| ### Repetitive Processing - Print Test Cases
i = 0
while True:
x = int(input());
i += 1
if x == 0: break
print("Case {}: {}".format(i, x))
| [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]] | 5 | 38 |
c = 1
while True:
n = input()
if n == 0:
break
print ('case {}: {}'.format(c, n))
c += 1
| c = 1
while True:
n = int(input())
if n == 0:
break
print ('Case {}: {}'.format(c, n))
c += 1
| [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 33 |
n=0
i = int(input())
while i != 0:
n+=1
print("Case " + str(n) + ":" +str(i))
i = int(input())
| n=0
i = int(input())
while i != 0:
n+=1
print("Case " + str(n) + ": " +str(i))
i = int(input())
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 47 |
a = 1
while True:
n = int(input())
if n == 0:
break
print ("case " + str(a) + ": " + str(n))
a += 1
| a = 1
while True:
n = int(input())
if n == 0:
break
print ("Case " + str(a) + ": " + str(n))
a += 1
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 43 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
num = 0
while True:
s = sys.stdin.readline().strip()
if s == '0':
break
num += 1
print('Case: ', num, ' ', s, sep='')
| #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
num = 0
while True:
s = sys.stdin.readline().strip()
if s == '0':
break
num += 1
print('Case ', num, ': ', s, sep='')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 53 |
array = []
while True:
z = input()
if(int(z)== 0):
break
else:
array.append(z)
a = 1
for i in array:
print('Case ' + str(a) + ': ' + str(i))
a += a
|
array = []
while True:
z = input()
if(int(z)== 0):
break
else:
array.append(z)
a = 1
for i in array:
print('Case ' + str(a) + ': ' + str(i))
a += 1
| [["-", 0, 7, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 62 |
import sys
lines = sys.stdin.readlines()
for i in range(lines):
a = int(lines[i])
if(a == 0):
break
else:
print("Case {0}: {1}".format(i+1, a))
| import sys
lines = sys.stdin.readlines()
for i in range(len(lines)):
a = int(lines[i])
if(a == 0):
break
else:
print("Case {0}: {1}".format(i+1, a))
| [["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 53 |
a=[]
i=0
while 1:
n=int(input())
if n==0:
break
else:
a.append(n)
i=i+1
l=0
while l<i:
print("case "+str(l+1)+": "+str(a[l]))
l=l+1
| a=[]
i=0
while 1:
n=int(input())
if n==0:
break
else:
a.append(n)
i=i+1
l=0
while l<i:
print("Case "+str(l+1)+": "+str(a[l]))
l=l+1
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 75 |
cnt = 1
c = int(input())
while c != 0:
print("Case {0}: {1}".format(cnt).format(c))
c = int(input())
cnt += 1
| cnt = 1
c = int(input())
while c != 0:
print("Case {0}: {1}".format(cnt,c))
c = int(input())
cnt += 1
| [["-", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21]] | 5 | 43 |
a = []
while True:
n = int(input())
if n == 0:
break
a.append(n)
for i in range(len(a)):
print("Case {0}: {1}".format(i, a[i]))
| a = []
while True:
n = int(input())
if n == 0:
break
a.append(n)
for i in range(len(a)):
print("Case {0}: {1}".format(i + 1, a[i]))
| [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 54 |
num = 0
last = 1
while last != 0:
t = input()
if t == "0":
last = 0
else:
num += 1
print("Case " + str(num) + ":" + str(t) )
| num = 0
last = 1
while last != 0:
t = input()
if t == "0":
last = 0
else:
num += 1
print("Case " + str(num) + ": " + str(t) )
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 51 |
i=1
x=int(input())
while x != 0:
print("case {0}: {1}".format(i, x))
x = int(input())
i+=1
| i=1
x = int(input())
while x != 0 :
print("Case {0}: {1}".format(i, x))
x = int(input())
i=i+1
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72]] | 5 | 40 |
a = []
while True:
n = eval(input())
if n == 0:
break
a.append(n)
i = 0
for case in a:
i+=1
print("Case "+str(i)+":"+str(case))
| a = []
while True:
n = eval(input())
if n == 0:
break
a.append(n)
i = 0
for case in a:
i+=1
print("Case "+str(i)+": "+str(case))
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 58 |
x = []
while(1):
inp = int(input())
if inp !=0:
x.append(inp)
else:
x.append(inp)
break
j=0
while(1):
if(x[j]!=0):
print("Case {} : {}".format(j,x[j]))
j+=1
else:
break
| x = []
while(1):
inp = int(input())
if inp !=0:
x.append(inp)
else:
x.append(inp)
break
j=0
while(1):
if(x[j]!=0):
print("Case {}: {}".format(j+1,x[j]))
j+=1
else:
break
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 77 |
a = int(input())
i = 1
while(a != 0):
print("Case {0}: {1}".format(1,a))
i += 1
a = int(input())
| a = int(input())
i = 1
while(a != 0):
print("Case {0}: {1}".format(i,a))
i += 1
a = int(input())
| [["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 612], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]] | 5 | 42 |
i = 1
while true:
x = int(input())
if x==0: break
print('Case {}: {}'.format(i,x))
i += 1
| i = 1
while True:
x = int(input())
if x == 0: break
print("Case {}: {}".format(i, x))
i+=1
| [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655]] | 5 | 36 |
i = 0
x = input()
while x != "0":
print('Case '+str(i)+': '+x)
x = input()
i+=1
| i = 1
x = input()
while x != "0":
print('Case '+str(i)+': '+x)
x = input()
i+=1
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 40 |
i = 0
x = input()
while x != "0":
print('Case '+str(i)+': '+x)
x = input()
i+=1
| i,x = 1,input()
while x != "0":
print('Case '+str(i)+': '+x)
x = input()
i+=1
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 12, 432, 0, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 432, 0, 21]] | 5 | 40 |
import sys
a = []
for line in sys.stdin:
a.append(int(line))
print(a)
cnt = 0
for i in a:
cnt += 1
if i == 0:
break
print("Case " + str(cnt) + ": " + str(i))
| import sys
a = []
for line in sys.stdin:
a.append(int(line))
cnt = 0
for i in a:
cnt += 1
if i == 0:
break
print("Case " + str(cnt) + ": " + str(i))
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 63 |
i=0
while True:
x = int(eval(input()))
if x==0 : break
i+=1
print("case %d: %d" %(i,x))
break
| i=0
while True:
x = int(eval(input()))
if x==0 : break
i+=1
print("Case %d: %d" %(i,x))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["-", 36, 36, 36, 36, 0, 656, 0, 93, 0, 94]] | 5 | 39 |
num = 1
while True:
a = input()
if a == '0':
break
print('case ' + str(num) + ': ' + str(a))
num += 1
| num = 1
while True:
a = input()
if a == '0':
break
print('Case ' + str(num) + ': ' + str(a))
num += 1
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 42 |
count = 0
while true:
count += 1
a = int(input())
if a == 0:
break
print("Case {}: {}".format(count, a))
| count = 0
while True:
count += 1
a = int(input())
if a == 0:
break
print("Case {}: {}".format(count, a))
| [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]] | 5 | 36 |
i = 1
while True:
x=int(input())
if x==False:
break
print("case {}: {}".format(i,x))
i+=1
| # itp1_3_b
i = 1
while True:
x=int(input())
if x==False:
break
print("Case {}: {}".format(i,x))
i+=1
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 36 |
#! python3
# print_test_cases.py
for i in range(10000):
x = int(input())
if x == 0:
break
print('Case ' + str(i) + ': ' + str(x))
| #! python3
# print_test_cases.py
for i in range(10000):
x = int(input())
if x == 0:
break
print('Case ' + str(i+1) + ': ' + str(x))
| [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
a=[]
i=0
while 1 :
a.append(int(input()))
i+=1
if a[i-1] == 0:
break
for j in range(i):
print("Case %d: %d" % (j+1 ,a[j]))
| a=[]
i=0
while 1 :
a.append(int(input()))
i+=1
if a[i-1] == 0:
break
for j in range(i-1):
print("Case %d: %d" % (j+1 ,a[j]))
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 60 |
count = 1
while True:
x = int(input())
if x == 0:
break
print("Case ",count,": ", x, sep="")
| count = 1
while True:
x = int(input())
if x == 0:
break
print("Case ",count,": ", x, sep="")
count += 1
| [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 39 |
i = int(input())
x = 1
while i != 0:
print("Case" + str(x) + ": " + str(i))
x += 1
i = int(input())
| i = int(input())
x = 1
while i != 0:
print("Case " + str(x) + ": " + str(i))
x += 1
i = int(input())
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 47 |
c = 0
while true:
x = int(input())
c += 1
if x == 0:
break
print("Case {}: {}".format(c,x))
| c = 0
while True:
x = int(input())
c += 1
if x == 0:
break
print("Case {}: {}".format(c,x))
| [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]] | 5 | 36 |
for i in range(10000):
k=int(input())
if k==0:
break
else:
print("Case "+str(i)+": "+str(k))
| for i in range(10000):
k=int(input())
if k==0:
break
else:
print("Case "+str(i+1)+": "+str(k))
| [["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
li=[]
a=1
while(a!=0):
a=int(input())
li.append(a)
for i in range(1,len(li)+1):
if li[i-1]!=0:
print("case {0}: {1}".format(i,li[i-1]))
else:
break
| li=[]
a=1
while(a!=0):
a=int(input())
li.append(a)
for i in range(1,len(li)+1):
if li[i-1]!=0:
print("Case {0}: {1}".format(i,li[i-1]))
else:
break
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 74 |
i = 1
while 1:
x = input()
x = int( x )
if x == 0:
break
print( "case " + str( i ) + ": " + str( x ) )
i += 1
| i = 1
while 1:
x = input()
x = int( x )
if x == 0:
break
print( "Case " + str( i ) + ": " + str( x ) )
i += 1
| [["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]] | 5 | 46 |
def solve(test):
for i in range(len(test)):
print("Case {0}: {1}".format(i,test[i]))
def answer():
test =[]
while True :
n = input()
if n=='0':
break
else:
test.append(n)
solve(test)
if __name__ =='__main__':
answer()
| def solve(test):
for i in range(len(test)):
print("Case {0}: {1}".format(i+1,test[i]))
def answer():
test =[]
while True :
n = input()
if n=='0':
break
else:
test.append(n)
solve(test)
if __name__ =='__main__':
answer()
| [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 80 |
i = 0
while True:
x = eval(input())
if x == 0:
return 0
i += 1
print(("Case %d: %d" % (i, x))) | i = 0
while True:
x = eval(input())
if x == 0:
break
i += 1
print(("Case %d: %d" % (i, x))) | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 612], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 38 |
c = 0
while True:
a = input()
if a == 0: break
c += 1
print('Case %d: %d' %(c, a)) | c = 0
while True:
a = int(input())
if a == 0: break
c += 1
print('Case %d: %d' %(c, a)) | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 32 |
package main
import "fmt"
func main() {
var a, b, c int
fmt.Scan(&a, &b, &c)
nd := 0
for i := a; i < b; i++ {
if c%i == 0 {
nd++
}
}
fmt.Println(nd)
}
| package main
import "fmt"
func main() {
var a, b, c int
fmt.Scan(&a, &b, &c)
nd := 0
for i := a; i <= b; i++ {
if c%i == 0 {
nd++
}
}
fmt.Println(nd)
}
| [["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 17, 19]] | 7 | 74 |
function main(input) {
var data = input.split(' ');
var a = parseInt(data[0]);
var b = parseInt(data[1]);
var d = Math.floor(a / b);
var r = a % b;
var f = (a / b).toFixed(5);
var output = [ a, b, f ].join(' ');
console.log(output);
}
process.stdin.resume();
var input = '';
process.stdin.setEncoding('ut... | function main(input) {
var data = input.split(' ');
var a = parseInt(data[0]);
var b = parseInt(data[1]);
var d = Math.floor(a / b);
var r = a % b;
var f = (a / b).toFixed(5);
var output = [ d, r, , f ].join(' ');
console.log(output);
}
process.stdin.resume();
var input = '';
process.stdin.setEncoding(... | [["-", 0, 200, 51, 2, 63, 558, 500, 516, 0, 22], ["+", 0, 200, 51, 2, 63, 558, 500, 516, 0, 22], ["+", 0, 200, 51, 2, 63, 558, 500, 516, 0, 21]] | 2 | 168 |
<?php
$stdin = explode(" ", trim(fgets(STDIN)));
$d = round($stdin[0] / $stdin[1]);
$r = $stdin[0] % $stdin[1];
$f = sprintf("%f", $stdin[0] / $stdin[1]);
echo $d . " " . $r . " " . $f . PHP_EOL; | <?php
$stdin = explode(" ", trim(fgets(STDIN)));
$d = floor($stdin[0] / $stdin[1]);
$r = $stdin[0] % $stdin[1];
$f = sprintf("%f", $stdin[0] / $stdin[1]);
echo $d . " " . $r . " " . $f . PHP_EOL; | [["-", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141]] | 6 | 94 |
<?php
$in = explode(" ", trim(fgets(STDIN)));
$a = $in[0];
$b = $in[1];
$d = $a / $b;
$r = $a % $b;
$f = $a / $b;
echo round($d) . " " . $r . " " . sprintf("%.5f",$f) . "\n"; | <?php
$in = explode(" ", trim(fgets(STDIN)));
$a = $in[0];
$b = $in[1];
$d = $a / $b;
$r = $a % $b;
$f = $a / $b;
echo floor($d) . " " . $r . " " . sprintf("%.5f",$f) . "\n"; | [["-", 31, 16, 31, 16, 31, 16, 31, 613, 63, 141], ["+", 31, 16, 31, 16, 31, 16, 31, 613, 63, 141]] | 6 | 96 |
<?php
while ($line = fgets(STDIN)) {
$line = rtrim($line);
$data = explode(" ", $line);
$d = ceil((int)$data[0] / (int)$data[1]);
$r = (int)$data[0] % (int)$data[1];
$f = (int)$data[0] / (int)$data[1];
printf("%d %d %f\n", $d, $r, $f);
} | <?php
while ($line = fgets(STDIN)) {
$line = rtrim($line);
$data = explode(" ", $line);
$d = floor((int)$data[0] / (int)$data[1]);
$r = (int)$data[0] % (int)$data[1];
$f = (int)$data[0] / (int)$data[1];
printf("%d %d %f\n", $d, $r, $f);
} | [["-", 8, 9, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 8, 9, 0, 1, 0, 11, 12, 613, 63, 141]] | 6 | 118 |
<?php
while ($line = fgets(STDIN)) {
$line = rtrim($line);
$data = explode(" ", $line);
$d = ceil((int)$data[0] / (int)$data[1]);
$r = (int)$data[0] % (int)$data[1];
$f = (int)$data[0] / (int)$data[1];
printf("%d %d %f\n", $d, $r, $f);
} | <?php
while ($line = fgets(STDIN)) {
$line = rtrim($line);
$data = explode(" ", $line);
$d = (int)$data[0] / (int)$data[1];
$r = (int)$data[0] % (int)$data[1];
$f = (int)$data[0] / (int)$data[1];
printf("%d %d %f\n", $d, $r, $f);
} | [["-", 8, 9, 0, 1, 0, 11, 12, 613, 63, 141], ["-", 3, 3, 0, 28, 0, 16, 31, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 613, 3, 3, 0, 25]] | 6 | 118 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int d = a % b;
int r = a - b * d;
double f = 1.0 * a / b;
System.out.println(d + " " + r + " " + (String.format("%.8f", ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int d = a / b;
int r = a - b * d;
double f = 1.0 * a / b;
System.out.println(d + " " + r + " " + (String.format("%.8f",... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85]] | 3 | 110 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
float a = scan.nextInt();
float b = scan.nextInt();
scan.close();
System.out.printf("%d %d %f", a / b, a % b, a / b);
}
} | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
scan.close();
System.out.printf("%d %d %f", a / b, a % b, (double)a / b);
}
} | [["-", 0, 195, 8, 196, 0, 503, 39, 511, 0, 531], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 492, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 511, 0, 512], ["+", 0, 492, 3, 4, 0, 16, 31, 74, 0, 25]] | 3 | 81 |
import java.util.Scanner;
class Main {
int a, b;
public void solve() {
int d, r;
double f;
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
d = a / b;
r = a % b;
f = 1.0 * a / b;
System.out.printf("%2d%2d%.5f", d, r, f);
}
public static void main(Strin... | import java.util.Scanner;
class Main {
int a, b;
public void solve() {
int d, r;
double f;
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
d = a / b;
r = a % b;
f = 1.0 * a / b;
System.out.printf("%2d %2d %2.5f", d, r, f);
}
public static void main(St... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 116 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
String is = br.readLine();
String[] sp = is.split(" ");
in... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
String is = br.readLine();
String[] sp = is.split(" ");
in... | [["+", 0, 503, 49, 200, 51, 16, 31, 74, 0, 24], ["+", 49, 200, 51, 16, 31, 74, 39, 511, 0, 512], ["+", 0, 503, 49, 200, 51, 16, 31, 74, 0, 25], ["+", 0, 503, 49, 200, 51, 16, 12, 74, 0, 24], ["+", 49, 200, 51, 16, 12, 74, 39, 511, 0, 512], ["+", 0, 503, 49, 200, 51, 16, 12, 74, 0, 25]] | 3 | 161 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
double d = (double)a / (double)b;
System.out.print((a / b) + " " + (a % b) + " " + String.format("%.5d", d));
}
} | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
double d = (double)a / (double)b;
System.out.print((a / b) + " " + (a % b) + " " + String.format("%.5f", d));
}
} | [["-", 0, 16, 12, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 16, 12, 492, 3, 4, 0, 5, 0, 491]] | 3 | 103 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int d = a % b;
int r = a / b;
double f = ((double)a / (double)b);
System.out.print(d + " " + r + " ");
System.out.... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int d = a / b;
int r = a % b;
double f = ((double)a / (double)b);
System.out.print(d + " " + r + " ");
System.out.p... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109]] | 3 | 113 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
double i = (double)a / (double)b;
System.out.printf((a - a % b) / 2 + " " + a % b + " "
+ "%.7f",
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
double i = (double)a / (double)b;
System.out.printf((a - a % b) / b + " " + a % b + " "
+ "%.10f",
... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 499], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]] | 3 | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.