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 |
|---|---|---|---|---|
while True:
m, f, r = list(map(int, input().split()))
if m == f == r ==-1:
break
if m == -1 or f == -1:
print("F")
elif m + f >= 80:
print("A")
elif 65 <= m + f < 80:
print("B")
elif 50 <= m + f < 65:
print("C")
elif 30 <= m + f < 50:
if r <= 50:
print("C")
else:
print("D")
else:
print("F"... | while True:
m, f, r = list(map(int, input().split()))
if m == f == r ==-1:
break
if m == -1 or f == -1:
print("F")
elif m + f >= 80:
print("A")
elif 65 <= m + f < 80:
print("B")
elif 50 <= m + f < 65:
print("C")
elif 30 <= m + f < 50:
if r >= 50:
print("C")
else:
print("D")
else:
print("F"... | [["-", 75, 665, 64, 196, 0, 57, 15, 666, 667, 19], ["+", 75, 665, 64, 196, 0, 57, 15, 666, 667, 20]] | 5 | 131 |
while True:
m, f, r = list(map(int, input().split()))
p = ""
if m == -1 and f == -1 and r == -1:
break
if m == -1 or f == -1:
p = "F"
else:
s = m + f
if s >= 80:
p = "A"
elif s >= 65:
p = "B"
elif s >= 50:
p = "C"
... | while True:
m, f, r = list(map(int, input().split()))
p = ""
if m == -1 and f == -1 and r == -1:
break
if m == -1 or f == -1:
p = "F"
else:
s = m + f
if s >= 80:
p = "A"
elif s >= 65:
p = "B"
elif s >= 50:
p = "C"
... | [["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 127 |
loop do
m, f, r = gets.chomp.split.map(&:to_i)
# 範囲オブジェクト使えばいい
break if [m, f, r].all?{ |i| i < 0}
s = m + f
ans = [m, f].any?{ |i| i<0 } || s < 30 ? "F" : ((30...50).include?(s) and r < 50 ? "D" : ((50...65).include?(s) || ((30...50).include?(s) && r>=50) ? "C" : ((65...80).include?(s) ? "B" : "A")... | loop do
m, f, r = gets.chomp.split.map(&:to_i)
# 範囲オブジェクト使えばいい
break if [m, f, r].all?{ |i| i < 0}
s = m + f
ans = [m, f].any?{ |i| i<0 } || s < 30 ? "F" :
(
(30...50).include?(s) && r < 50 ? "D" :
(
(
(50...65).include?(s)) || ((30... | [["-", 0, 662, 12, 754, 75, 739, 0, 738, 17, 355], ["+", 12, 754, 75, 739, 0, 754, 15, 738, 17, 98], ["+", 12, 754, 75, 739, 0, 754, 75, 739, 0, 24], ["+", 15, 738, 31, 739, 0, 652, 3, 4, 0, 25]] | 4 | 148 |
while
x = gets()
x = x.split
m = x[0].to_i
f = x[1].to_i
r = x[2].to_i
if m == -1 && f == -1 && r == -1
end
if m == -1 || f == -1
puts "F"
elsif 80 <= m + f
puts "A"
elsif 65 <= m + f && m + f < 80
puts "B"
elsif 50 <= m + f && m + f < 65
puts "C"
elsif 30 <= m + f && m + f < 50 && ... | while
x = gets()
x = x.split
m = x[0].to_i
f = x[1].to_i
r = x[2].to_i
if m == -1 && f == -1 && r == -1;break
end
if m == -1 || f == -1
puts "F"
elsif 80 <= m + f
puts "A"
elsif 65 <= m + f && m + f < 80
puts "B"
elsif 50 <= m + f && m + f < 65
puts "C"
elsif 30 <= m + f && m + f < ... | [["+", 0, 89, 8, 170, 0, 121, 64, 749, 0, 35], ["+", 8, 170, 0, 121, 64, 749, 0, 94, 0, 94]] | 4 | 159 |
loop {
m,f,r=gets.split(" ").map(&:to_i)
break if m==-1 && f==-1 && r==-1
grade="F"
if m == -1 && f == -1
elsif (m + f) >=80
grade= "A"
elsif (m + f) >=65
grade= "B"
elsif (m + f)>=50
grade="C"
elsif (m + f)>=30
if r >= 50
grade= "C"
else
grade= "D"
end
end
puts grade
}
... | loop {
m,f,r=gets.split(" ").map(&:to_i)
break if m==-1 && f==-1 && r==-1
grade="F"
if m == -1 or f == -1
elsif (m + f) >=80
grade= "A"
elsif (m + f) >=65
grade= "B"
elsif (m + f)>=50
grade="C"
elsif (m + f)>=30
if r >= 50
grade= "C"
else
grade= "D"
end
end
puts grade
}
... | [["-", 196, 196, 8, 734, 0, 121, 15, 738, 17, 98], ["+", 196, 196, 8, 734, 0, 121, 15, 738, 17, 354]] | 4 | 120 |
loop do
m, f, r = gets.split.map(&:to_i)
break if m == -1 && f == -1 && r == -1
if m == -1 || f == -1
puts "F"
else
if m + f >= 80
puts "A"
elsif m + f >= 65
puts "B"
elsif m + f >= 50
puts "C"
elsif m + f >= 30
if r >= 50
puts "C"
else
puts "F"
... | loop do
m, f, r = gets.split.map(&:to_i)
break if m == -1 && f == -1 && r == -1
if m == -1 || f == -1
puts "F"
else
if m + f >= 80
puts "A"
elsif m + f >= 65
puts "B"
elsif m + f >= 50
puts "C"
elsif m + f >= 30
if r >= 50
puts "C"
else
puts "D"
... | [["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 106 |
result=[]
while true
m, f, r = gets.split.map(&:to_i)
sum=m+f
if m==-1 && f==-1 && r==-1
break
elsif m==-1 || f==-1
result << "F"
elsif sum>=80
result << "A"
elsif sum>=65 && sum<80
result << "B"
elsif sum>=50 && sum<65
result << "C"
elsif sum>=30 && sum<50
if r>=50
result ... | result=[]
while true
m, f, r = gets.split.map(&:to_i)
sum=m+f
if m==-1 && f==-1 && r==-1
break
elsif m==-1 || f==-1
result << "F"
elsif sum>=80
result << "A"
elsif sum>=65 && sum<80
result << "B"
elsif sum>=50 && sum<65
result << "C"
elsif sum>=30 && sum<50
if r>=50
result ... | [["-", 0, 121, 75, 95, 0, 738, 12, 557, 0, 6], ["+", 0, 121, 75, 95, 0, 738, 12, 557, 0, 6]] | 4 | 126 |
ans =[]
while true
args = gets.split(" ").map{|e|e.to_i}
break if args[0] == -1 && args[1] == -1 && args[2] == -1
if args[0] == -1 || args[1] == -1
ans.push "F"
elsif args[0] + args[1] >= 80
ans.push "A"
elsif args[0] + args[1] >= 65
ans.push "B"
elsif args[0] + args[1] >= 50
ans.push "C"
... | ans =[]
while true
args = gets.split(" ").map{|e|e.to_i}
break if args[0] == -1 && args[1] == -1 && args[2] == -1
if args[0] == -1 || args[1] == -1
ans.push "F"
elsif args[0] + args[1] >= 80
ans.push "A"
elsif args[0] + args[1] >= 65
ans.push "B"
elsif args[0] + args[1] >= 50
ans.push "C"
... | [["-", 196, 196, 8, 734, 0, 652, 3, 4, 0, 22], ["+", 196, 196, 8, 734, 0, 652, 3, 4, 0, 22]] | 4 | 190 |
ans = []
while true
m, f, r = gets.chop.split.map(&:to_i)
break if m == -1 && f == -1 && r == -1
a = [m, f, r].to_a
ans << a
end
ans.each do |i, j, k|
case
when i == 0 || j == 0
puts "F"
when 80 <= i + j
puts "A"
when 65 <= i + j && i+j < 80
puts "B"
when 50 <= i + j && i+j <... | ans = []
while true
m, f, r = gets.chop.split.map(&:to_i)
break if m == -1 && f == -1 && r == -1
a = [m, f, r].to_a
ans << a
end
ans.each do |i, j, k|
case
when i == -1 || j == -1
puts "F"
when 80 <= i + j
puts "A"
when 65 <= i + j && i+j < 80
puts "B"
when 50 <= i + j && i+j... | [["-", 0, 763, 374, 374, 0, 738, 31, 738, 12, 612], ["+", 374, 374, 0, 738, 31, 738, 12, 748, 17, 33], ["+", 374, 374, 0, 738, 31, 738, 12, 748, 439, 612], ["-", 0, 763, 374, 374, 0, 738, 12, 738, 12, 612], ["+", 374, 374, 0, 738, 12, 738, 12, 748, 17, 33], ["+", 374, 374, 0, 738, 12, 738, 12, 748, 439, 612], ["-", 8, ... | 4 | 152 |
scores = readlines
scores.each do |score|
texam,kexam,sexam = score.split.map(&:to_i)
break if (texam == -1) && (kexam == -1) && (sexam == -1)
exam = texam + kexam
if (texam == -1) && (kexam == -1)
puts "F"
elsif exam >= 80
puts "A"
elsif exam >= 65 && exam < 80
... | scores = readlines
scores.each do |score|
texam,kexam,sexam = score.split.map(&:to_i)
break if (texam == -1) && (kexam == -1) && (sexam == -1)
exam = texam + kexam
if (texam == -1) || (kexam == -1)
puts "F"
elsif exam >= 80
puts "A"
elsif exam >= 65 && exam < 80
... | [["-", 196, 737, 8, 736, 0, 121, 15, 738, 17, 98], ["+", 196, 737, 8, 736, 0, 121, 15, 738, 17, 106]] | 4 | 136 |
def main():
while True:
m, f, r = map(int, input().split())
if m == f == r == -1:
break
total = m + f
if m == f == -1:
print('F')
elif total >= 80:
print('A')
elif total >= 65:
print('B')
elif total >= 50:
... | def main():
while True:
m, f, r = map(int, input().split())
if m == f == r == -1:
break
total = m + f
if m == -1 or f == -1:
print('F')
elif total >= 80:
print('A')
elif total >= 65:
print('B')
elif total >= 50:
... | [["+", 0, 57, 15, 679, 31, 666, 0, 664, 17, 33], ["+", 0, 57, 15, 679, 31, 666, 0, 664, 28, 612], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 132 |
while True:
a,b,c = map(int,input().split())
if a == b == c == -1: break
if a==-1 or b==-1: print('F')
if 80 <= a+b: print('A')
elif 65 <= a+b: print('B')
elif 50 <= a+b: print('C')
elif 30 <= a+b:
if 50 <= c: print('C')
else: print('D')
elif a+b<30: print('F')
| while True:
a,b,c = map(int,input().split())
if a == b == c == -1: break
if a==-1 or b==-1:
print('F')
continue
if 80 <= a+b:
print('A')
continue
elif 65 <= a+b:
print('B')
continue
elif 50 <= a+b:
print('C')
continue
elif 30 <=... | [["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 0, 57, 75, 665, 64, 196, 0, 116, 0, 117], ["+", 64, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 0, 57, 75, 76, 8, 196, 0, 116, 0, 117]] | 5 | 127 |
while True:
m, f, r = map(int, input().split())
if m == f == r== -1:
break
s = m + f
if m == -1 or f == -1:
print("F")
if s >= 80:
print("A")
elif s >= 65:
print("B")
elif s >= 50:
print("C")
elif s >= 30:
if r >= 50:
print("C")... | while True:
m, f, r = map(int, input().split())
if m == f == r== -1:
break
s = m + f
if m == -1 or f == -1:
print("F")
elif s >= 80:
print("A")
elif s >= 65:
print("B")
elif s >= 50:
print("C")
elif s >= 30:
if r >= 50:
print("C... | [["-", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 75, 665, 0, 683]] | 5 | 119 |
score = []
while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
score.append((m, f, r))
for i in range(len(score)):
sum = score[i][0] + score[i][1]
if score[i][0] == -1 or score[i][1] == -1 or sum < 30:
print('F')
if sum >= 80:
print('... | score = []
# 提出用の入力
while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
score.append((m, f, r))
# # 動作確認用の入力
# with open('input_itp1_7_a_1.txt', mode='r', encoding='utf8') as input:
# while True:
# m, f, r = map(int, next(input).split())
# ... | [["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683]] | 5 | 190 |
while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
if m == -1 and f == -1:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
elif 30 <= m + f < 50:
if r >= 50:
print('C')
else:
print('D')
elif... | while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
if m == -1 or f == -1:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
elif 30 <= m + f < 50:
if r >= 50:
print('C')
else:
print('D')
elif ... | [["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 139 |
midScore =[0]*50
finScore = [0]*50
reScore = [0]*50
personNum = 0
while True:
m,f,r = map(int,input().split())
midScore[personNum] = m
finScore[personNum] = f
reScore[personNum] = r
personNum += 1
if m is f is r is -1:
break
for person in range(personNum):
totalScore = midS... | midScore =[0]*50
finScore = [0]*50
reScore = [0]*50
personNum = 0
while True:
m,f,r = map(int,input().split())
midScore[personNum] = m
finScore[personNum] = f
reScore[personNum] = r
personNum += 1
if m is f is r is -1:
break
for person in range(personNum):
totalScore = midS... | [["+", 64, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 64, 196, 0, 57, 15, 666, 0, 206, 206, 22], ["+", 64, 196, 0, 57, 15, 666, 0, 206, 0, 73]] | 5 | 213 |
while True:
m,f,r= map(int,input().split())
if m+f+r==-3:break
if m==-1 or f==-1 or r==-1:s="F"
elif m+f>=80:s="A"
elif m+f>=65:s="B"
elif m+f>=50:s="C"
elif m+f>=30 and r>=50:s="C"
elif m+f>=30:s="D"
else:s="F"
print(str(s))
| while True:
m,f,r= map(int,input().split())
if m+f+r==-3:break
if m==-1 or f==-1:s="F"
elif m+f>=80:s="A"
elif m+f>=65:s="B"
elif m+f>=50:s="C"
elif m+f>=30 and r>=50:s="C"
elif m+f>=30:s="D"
else:s="F"
print(str(s))
| [["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["-", 0, 57, 15, 679, 12, 666, 0, 664, 17, 33], ["-", 0, 57, 15, 679, 12, 666, 0, 664, 28, 612]] | 5 | 131 |
while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
elif (m == -1 or f == -1) or m+f < 30:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
elif 30 <= m + ... | while True:
m, f, r = map(int, input().split())
if m == -1 and f == -1 and r == -1:
break
elif (m == -1 or f == -1) or m+f < 30:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
elif 30 <= m + ... | [["-", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22]] | 5 | 142 |
while True:
m,f,r = map(int,input().split())
score = ""
if(m == -1 and f == -1 and r == -1): break
if(m == -1 or f == -1): score = "F"
if(m+f >= 80): score = "A"
elif(m+f >= 65): score = "B"
elif(m+f >= 50): score = "C"
elif(m+f >= 30):
if(r >= 50): score = "C"
else: scor... | while True:
m,f,r = map(int,input().split())
score = ""
if(m == -1 and f == -1 and r == -1): break
if(m == -1 or f == -1): score = "F"
elif(m+f >= 80): score = "A"
elif(m+f >= 65): score = "B"
elif(m+f >= 50): score = "C"
elif(m+f >= 30):
if(r >= 50): score = "C"
else: sc... | [["-", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 75, 665, 0, 683]] | 5 | 143 |
st = list()
while True:
a = list(map(lambda x: int(x),input().split(" ")))
if min(a[0:2]) == -1:
if a[2] == -1:
break
else:
st += {"F"}
else:
if 80 <= sum(a[0:2]):
st += {"A"}
elif 65 <= sum(a[0:2]):
st += {"B"}
elif 50 ... | st = list()
while True:
a = list(map(lambda x: int(x),input().split(" ")))
if min(a[0:2]) == -1:
if max(a) == -1:
break
else:
st += {"F"}
else:
if 80 <= sum(a[0:2]):
st += {"A"}
elif 65 <= sum(a[0:2]):
st += {"B"}
elif 5... | [["+", 64, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["-", 64, 196, 0, 57, 15, 666, 0, 206, 206, 612], ["-", 64, 196, 0, 57, 15, 666, 0, 206, 0, 73], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]] | 5 | 184 |
JUDGE_LIST=[[80, "A"],
[65, "B"],
[50, "C"],
[30, "D"]]
while True:
try:
score=[int(x) for x in input().split(" ")]
except EOFError:
break
if score[0]==-1 and score[1]==-1 and score[2]==-1:
break
if score[0]==-1 or score[1]==-1:
... | JUDGE_LIST=[[80, "A"],
[65, "B"],
[50, "C"],
[30, "D"]]
while True:
try:
score=[int(x) for x in input().split(" ")]
except EOFError:
break
if score[0]==-1 and score[1]==-1 and score[2]==-1:
break
if score[0]==-1 or score[1]==-1:
... | [["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]] | 5 | 177 |
import sys
for line in sys.stdin:
m, f, r = map(int, line.split())
if m == f == r == -1:
break
if m == -1 or f == -1:
print('F')
elif (m + f) >= 80:
print('A')
elif (m + f) >= 65:
print('B')
elif (m + f) >= 50:
print('C')
elif (m + f) >= 30:
i... | import sys
for line in sys.stdin:
m, f, r = map(int, line.split())
if m == f == r == -1:
break
if m == -1 or f == -1:
print('F')
elif (m + f) >= 80:
print('A')
elif (m + f) >= 65:
print('B')
elif (m + f) >= 50:
print('C')
elif (m + f) >= 30:
i... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 134 |
#coding:utf-8
#1_7_A 2015.4.5
while True:
m,f,r = map(int,input().split())
if m == f == r == -1:
break
elif (m or f) == -1 or m + f < 30:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
elif 3... | #coding:utf-8
#1_7_A 2015.4.5
while True:
m,f,r = map(int,input().split())
if m == f == r == -1:
break
elif m == -1 or f == -1 or m + f < 30:
print('F')
elif m + f >= 80:
print('A')
elif 65 <= m + f < 80:
print('B')
elif 50 <= m + f < 65:
print('C')
el... | [["-", 75, 665, 15, 679, 31, 666, 0, 23, 0, 24], ["+", 75, 665, 15, 679, 31, 679, 31, 666, 667, 60], ["+", 15, 679, 31, 679, 31, 666, 0, 664, 17, 33], ["+", 15, 679, 31, 679, 31, 666, 0, 664, 28, 612], ["-", 75, 665, 15, 679, 31, 666, 0, 23, 0, 25]] | 5 | 127 |
while True:
m, f, r = map(int, (input().split()))
score = m + f
if m == f == r == -1:
break
else:
if m == -1 or f == -1:
print("F")
elif score >= 80:
print("A")
elif 80 > score >= 65:
print("B")
elif 65 > score >= 50:
... | while True:
m, f, r = map(int, (input().split()))
score = m + f
if m == f == r == -1:
break
else:
if m == -1 or f == -1:
print("F")
elif score >= 80:
print("A")
elif 80 > score >= 65:
print("B")
elif 65 > score >= 50:
... | [["-", 0, 57, 75, 665, 15, 679, 31, 666, 0, 612], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 0, 612]] | 5 | 137 |
while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
total = m + f
if m == -1 or f == -1 or total < 30:
print('F')
elif total < 50 and r < 50:
print('D')
elif total < 65:
print('C')
elif total < 85:
print('B')
else... | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
total = m + f
if m == -1 or f == -1 or total < 30:
print('F')
elif total < 50 and r < 50:
print('D')
elif total < 65:
print('C')
elif total < 80:
print('B')
else... | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 109 |
n, m = map(int, input().split())
A = []
B = []
for i in range(n):
A.append(map(int, input().split()))
for i in range(m):
B.append(int(input()))
C = []
for i in range(n):
C.append(0)
for j in range(m):
C[i] += int(A[i][j]) * B[j]
print(C[i]) | n, m = map(int, input().split())
A = []
B = []
for i in range(n):
A.append(input().split())
for i in range(m):
B.append(int(input()))
C = []
for i in range(n):
C.append(0)
for j in range(m):
C[i] += int(A[i][j]) * B[j]
print(C[i]) | [["-", 0, 1, 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, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 121 |
n, m = list(map(int, input().split()));
i = 0
ar = [0] * n
vc = [0] * m
while i < n:
ar[i] = list(map(int, input().split()));
i += 1
i = 0
while i < m:
vc[i] = eval(input());
i += 1
for el in ar:
ans = 0
for el2, el3 in zip(vc, el):
ans += el2 * el3
print() | n, m = list(map(int, input().split()));
i = 0
ar = [0] * n
vc = [0] * m
while i < n:
ar[i] = list(map(int, input().split()));
i += 1
i = 0
while i < m:
vc[i] = eval(input());
i += 1
for el in ar:
ans = 0
for el2, el3 in zip(vc, el):
ans += el2 * el3
print(ans) | [["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 117 |
n, m = list(map(int,input().split()))
A = [[0 for j in range(m)] for i in range(n)]
b = [0 for j in range(m)]
for i in range(n):
A[i] = list(map(int, input().split()))
for j in range(m):
b[j] = input()
for i in range(n):
c = 0
for j in range(m):
c += A[i][j] * b[j]
print(c) | n, m = list(map(int,input().split()))
A = [[0 for j in range(m)] for i in range(n)]
b = [0 for j in range(m)]
for i in range(n):
A[i] = list(map(int, input().split()))
for j in range(m):
b[j] = eval(input())
for i in range(n):
c = 0
for j in range(m):
c += A[i][j] * b[j]
print(c) | [["+", 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 | 133 |
n, m = list(map(int, input().split()))
A = []
b = []
C = 0
for i in range(n):
A += [list(map(int, input().split()))]
for i in range(m):
b += [eval(input())]
for i in range(n):
for j in range(m):
C += A[i][j] * b[j]
print(C) | n, m = list(map(int, input().split()))
A = []
b = []
for i in range(n):
A += [list(map(int, input().split()))]
for i in range(m):
b += [eval(input())]
for i in range(n):
C = 0
for j in range(m):
C += A[i][j] * b[j]
print(C) | [["-", 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], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 109 |
n, m = map(int, input().split())
A = []
B = []
for line in range(n):
A.append(list(map(int, input().split())))
for line in range(m):
B.append(int(input()))
print(A,B)
ret = []
for i in range(n):
ret.append(sum(A[i][j] * B[j] for j in range(m)))
print('\n'.join(map(str, ret))) | n, m = map(int, input().split())
A = []
B = []
for line in range(n):
A.append(list(map(int, input().split())))
for line in range(m):
B.append(int(input()))
#print(A,B)
ret = []
for i in range(n):
ret.append(sum(A[i][j] * B[j] for j in range(m)))
print('\n'.join(map(str, ret))) | [["-", 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, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 132 |
A=list(map(int,input().split(" ")))
vec=A[0]
col=A[1]
def zero(n):
zerolist=list()
for i in range(n):
zerolist+=[0]
return(zerolist)
A=list()
for i in range(vec):
A+=[zero(col)]
print(A)
for i in range(vec):
k=list(map(int,input().split(" ")))
for j in range(col):
A[i][j]=k[j]
#ok
v=zero(col)
for i in r... | A=list(map(int,input().split(" ")))
vec=A[0]
col=A[1]
def zero(n):
zerolist=list()
for i in range(n):
zerolist+=[0]
return(zerolist)
A=list()
for i in range(vec):
A+=[zero(col)]
for i in range(vec):
k=list(map(int,input().split(" ")))
for j in range(col):
A[i][j]=k[j]
#ok
v=zero(col)
for i in range(col... | [["-", 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 | 199 |
n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(su... | [["+", 0, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 0, 658, 0, 659, 12, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73]] | 5 | 111 |
n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum =0
for mi in rannge(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["-", 0, 7, 8, 196, 0, 7, 12, 652, 63, 22], ["+", 0, 7, 8, 196, 0, 7, 12, 652, 63, 22]] | 5 | 113 |
n, m = map(int, input().split())
M1 = []
M2 = []
for i in range(n):
M1.append(list(map(int, input().split())))
for i in range(m):
M2.append(int(input()))
for i in range(n):
c = 0
for s in range(m):
c += M1[i][s] + M2[s]
print(c) | n, m = map(int, input().split())
M1 = []
M2 = []
for i in range(n):
M1.append(list(map(int, input().split())))
for i in range(m):
M2.append(int(input()))
for i in range(n):
c = 0
for s in range(m):
c += M1[i][s] * M2[s]
print(c) | [["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 48]] | 5 | 108 |
# -*- coding:utf-8 -*-
row, col = map(int,input().split())
mat = [[0 for i2 in range(col)] for i1 in range(row)]
for i in range(row):
mat[i] = list(map(float,input().split()))
vec = [0 for i in range(col)]
for i in range(col):
vec[i] = float(input())
result = [0 for i in range(col)]
for i in range(row):
... | row, col = map(int,input().split())
mat = [[0 for i2 in range(col)] for i1 in range(row)]
for i in range(row):
mat[i] = list(map(float,input().split()))
vec = [0 for i in range(col)]
for i in range(col):
vec[i] = float(input())
result = [0 for i in range(row)]
for i in range(row):
for j in range(col):
... | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 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 | 160 |
n, m = map(int, input().split())
Mat = [[]]
for i in range(n):
row = list(map(int, input().split()))
Mat.append(row)
b = []
for j in range(m):
b.append(int(input()))
c = [0 for k in range(n)]
for l in range(n):
for l2 in range(m):
c[l] += (Mat[l][l2] * b[l2])
print(c[l]) | n, m = map(int, input().split())
Mat = []
for i in range(n):
row = list(map(int, input().split()))
Mat.append(row)
b = []
for j in range(m):
b.append(int(input()))
c = [0 for k in range(n)]
for l in range(n):
for l2 in range(m):
c[l] += (Mat[l][l2] * b[l2])
print(c[l]) | [["-", 0, 1, 0, 662, 12, 634, 0, 634, 0, 70], ["-", 0, 1, 0, 662, 12, 634, 0, 634, 0, 73]] | 5 | 130 |
n,m = map(int,input().split())
a_list = []
b_list = []
c_list = []
for a in range(n):
a_list.append(list(map(int,input().split())))
for b in range(n):
b_list.append(int(input()))
for c in range(n):
c_list.append([])
for d in range(m):
c_list[c].append((a_list[c][d] * b_list[c]))
c_list = li... | n,m = map(int,input().split())
a_list = []
b_list = []
c_list = []
for a in range(n):
a_list.append(list(map(int,input().split())))
for b in range(m):
b_list.append(int(input()))
for c in range(n):
c_list.append([])
for d in range(m):
c_list[c].append((a_list[c][d] * b_list[d]))
c_list = li... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 23, 0, 657, 12, 206, 206, 22], ["+", 3, 4, 0, 23, 0, 657, 12, 206, 206, 22]] | 5 | 140 |
n,m=map(int,input().split())
b=[list(map(int,input().split())) for i in range(n)]
c =[int(input()) for j in range(m)]
[print([sum(d*e for d,e in zip(b[i],c))]) for i in range(n)] | n,m=map(int,input().split())
b=[list(map(int,input().split())) for i in range(n)]
c =[int(input()) for j in range(m)]
[print(sum([d*e for d,e in zip(b[i],c)])) for i in range(n)] | [["-", 0, 658, 8, 652, 3, 4, 0, 634, 0, 70], ["+", 3, 4, 0, 652, 3, 4, 0, 658, 0, 70], ["-", 3, 668, 0, 659, 12, 652, 3, 4, 0, 25], ["+", 8, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 93 |
n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
a+=[[int(i) for i in input().split()]]
for i in range(m):
b+=[[int(i) for i in input().split()]]
for i in range(n):
for j in range(m):
z+=[a[i][j]*b[j][0]]
x+=[sum(z)]
z=0
for i in range(m):
print(x[i]) | n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
a+=[[int(i) for i in input().split()]]
for i in range(m):
b+=[[int(i) for i in input().split()]]
for i in range(n):
for j in range(m):
z+=[a[i][j]*b[j][0]]
x+=[sum(z)]
z=[]
for i in range(n):
print(x[i]) | [["-", 0, 7, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 634, 0, 70], ["+", 8, 196, 0, 1, 0, 662, 12, 634, 0, 73], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 149 |
data = list(map(int, list(input().split())))
row = data[0]
column = data[1]
matrix = [[0 for i in range(column)] for j in range(row)]
vector = [[0] for k in range(column)]
vector_multi = [[0] for l in range(row)]
for i in range(row):
data_row = list(map(int, list(input().split())))
print(data_row)
for j in... | data = list(map(int, list(input().split())))
row = data[0]
column = data[1]
matrix = [[0 for i in range(column)] for j in range(row)]
vector = [[0] for k in range(column)]
vector_multi = [[0] for l in range(row)]
for i in range(row):
data_row = list(map(int, list(input().split())))
for j in range(column):
... | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 206 |
n,m= map(int,input().split())
A_line =[]
row=[]
for i in range(n):
line = [int(i) for i in input().split()]
A_line.append(line)
for i in range(m):
row += [int(i) for i in input()]
for i in range(n):
c=0
for j in range(m):
c += A_line[i][j]*row[j]
print(c)
| n,m= map(int,input().split())
A_line =[]
row=[]
for i in range(n):
line = [int(i) for i in input().split()]
A_line.append(line)
for i in range(m):
row += [int(i) for i in input().split()]
for i in range(n):
c=0
for j in range(m):
c += A_line[i][j]*row[j]
print(c)
| [["+", 12, 658, 0, 659, 12, 652, 63, 319, 0, 131], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]] | 5 | 115 |
n,m = tuple(int(i) for i in input().split())
A = [[int(j) for j in input().split()] for k in range(n)]
b = [int(input()) for p in range(m)]
print(b)
R = [sum([A[p][q] * b[q] for q in range(m)]) for p in range(n)]
for r in R:
print(str(r))
| n,m = tuple(int(i) for i in input().split())
A = [[int(j) for j in input().split()] for k in range(n)]
b = [int(input()) for p in range(m)]
R = [sum([A[p][q] * b[q] for q in range(m)]) for p in range(n)]
for r in R:
print(str(r))
| [["-", 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 | 116 |
n,m=map(int,input().split())
s=[list(map(int,input().split())) for i in range(n)]
c=[list(map(int,input())) for b in range(m)]
ans=[0]*n
for i in range(n):
for j in range(m):
ans[i]+=s[i][j]*c[j][0]
for r in ans:
print(r)
| n,m=map(int,input().split())
s=[list(map(int,input().split())) for i in range(n)]
c=[list(map(int,input().split())) for b in range(m)]
ans=[0]*n
for i in range(n):
for j in range(m):
ans[i]+=s[i][j]*c[j][0]
for r in ans:
print(r)
| [["+", 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], ["+", 8, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 116 |
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
// File fi=new File("file.txt");
Scanner sc = new Scanner(System.in);
for (;;) {
int n = sc.nextInt();
int x = sc.nextInt();
if (n == 0 && x == 0)
... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
// File fi=new File("file.txt");
Scanner sc = new Scanner(System.in);
for (;;) {
int n = sc.nextInt();
int x = sc.nextInt();
if (n == 0 && x == 0)
... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 186 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
... | [["-", 0, 7, 502, 503, 49, 200, 51, 16, 31, 22], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 31, 22], ["-", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499]] | 3 | 465 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String[] tmp = br.readLine().split(" ");
int n = Integer.parseInt(tmp[0]);
int x = Integer.parseInt(tmp[1]);
... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String[] tmp = br.readLine().split(" ");
int n = Integer.parseInt(tmp[0]);
int x = Integer.parseInt(tmp[1]);
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]] | 3 | 183 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
while (n != 0 || x != 0) {
int count = 0;
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
while (n != 0 || x != 0) {
int count = 0;
for (int i = 1; i <= n; i++) {
for (int j = i + 1; j <= n; j++) {... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 165 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
for (;;) {
String input = reader.readLine()... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
for (;;) {
String input = reader.readLine()... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 502, 503, 49, 200, 51, 16, 31, 22], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 31, 22], ["-", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499]] | 3 | 226 |
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.out.print(" ");
Scanner scan = new Scanner(System.in);
ArrayList<Integer> NN = new ArrayList<Integer>();
Arr... | import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.out.print(" ");
Scanner scan = new Scanner(System.in);
ArrayList<Integer> NN = new ArrayList<Integer>();
Arr... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72]] | 3 | 311 |
import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (true) {
int n = scanner.nextInt();
int x = scanner.nextInt();
int count = 0;
if (n == 0 && x == 0) {
break;
}
... | import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (true) {
int n = scanner.nextInt();
int x = scanner.nextInt();
int count = 0;
if (n == 0 && x == 0) {
break;
}
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 31, 22], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 17, 72], ["+", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499]] | 3 | 151 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
String[] line = sc.nextLine().split(" ");
int n = Integer.parseInt(line[0]);
int x = Integer.parseInt(line[1]);
// break
if (n == 0 && x == 0) {
... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
String[] line = sc.nextLine().split(" ");
int n = Integer.parseInt(line[0]);
int x = Integer.parseInt(line[1]);
// break
if (n == 0 && x == 0) {
... | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499]] | 3 | 202 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i, j, k, x, n, co = 0;
Scanner s = new Scanner(System.in);
while (true) {
n = s.nextInt();
x = s.nextInt();
if (n == 0 && x == 0)
break;
for (i = 1; i <= n; i++) {
for (j = i... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i, j, k, x, n, co = 0;
Scanner s = new Scanner(System.in);
while (true) {
n = s.nextInt();
x = s.nextInt();
if (n == 0 && x == 0)
break;
for (i = 1; i <= n; i++) {
for (j = i... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 22]] | 3 | 159 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n, x, result = 0;
while (true) {
n = sc.nextInt();
x = sc.nextInt();
if (n == 0 && x == 0)
break;
for (int i = 0; i < n; i++) {
for (int ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n, x, result = 0;
while (true) {
n = sc.nextInt();
x = sc.nextInt();
if (n == 0 && x == 0)
break;
for (int i = 1; i <= n; i++) {
for (int... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 158 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n = sc.nextInt();
int x = sc.nextInt();
if (n == 0 && x == 0)
break;
int i, j, k;
int c = 0;
for (i = 1; i <= n - 2; i++) ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n = sc.nextInt();
int x = sc.nextInt();
if (n == 0 && x == 0)
break;
int i, j, k;
int c = 0;
for (i = 1; i <= n - 2; i++) ... | [["+", 8, 196, 0, 7, 502, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 502, 11, 12, 16, 17, 72]] | 3 | 159 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i;
int j;
int k;
while (true) {
int count = 0;
int a = sc.nextInt();
int n = sc.nextInt();
if (a == 0 && n == 0) {
break;
} else {... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i;
int j;
int k;
while (true) {
int count = 0;
int n = sc.nextInt();
int a = sc.nextInt();
if (a == 0 && n == 0) {
break;
} else {... | [["-", 0, 52, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 52, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 8, 196, 0, 7, 502, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 502, 11, 12, 16, 12, 499]] | 3 | 168 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n, x, a = 0;
n = sc.nextInt();
x = sc.nextInt();
if (n == 0 || x == 0)
break;
for (int i = 1; i < n - 1; i++) {
for (int ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int n, x, a = 0;
n = sc.nextInt();
x = sc.nextInt();
if (n == 0 && x == 0)
break;
for (int i = 1; i < n - 1; i++) {
for (int ... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]] | 3 | 147 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (in.hasNext()) {
int n = in.nextInt();
int x = in.nextInt();
if (n == 0) {
break;
}
int ret = 0;
... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (in.hasNext()) {
int n = in.nextInt();
int x = in.nextInt();
if (n == 0) {
break;
}
int ret = 0;
... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 31, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 31, 22]] | 3 | 193 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (true) {
int n = scan.nextInt();
int x = scan.nextInt();
int count = 0;
if (n == 0 && x == 0) {
break;
}
for (int i = 0; i <= n; i++... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (true) {
int n = scan.nextInt();
int x = scan.nextInt();
int count = 0;
if (n == 0 && x == 0) {
break;
}
for (int i = 1; i <= n; i++... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]] | 3 | 154 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int count = 0;
while (n != 0 && x != 0) {
for (int i = 1; i < n - 1; i++) {
for (int j = i + 1; j < n; j++) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int count = 0;
while (n != 0 || x != 0) {
for (int i = 1; i < n - 1; i++) {
for (int j = i + 1; j < n; j++) {
... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]] | 3 | 185 |
#include <stdio.h>
int main() {
int n, x, i, j, k, s;
for (;;) {
s = 0;
scanf("%d%d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= n; k++) {
if (i + j + k == x)
s = s++;
}
... | #include <stdio.h>
int main() {
int n, x, i, j, k, s;
for (;;) {
s = 0;
scanf("%d%d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if (i + j + k == x)
s++;
... | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]] | 0 | 134 |
#include <stdio.h>
int main() {
int n, x, count;
int i, j, k;
while (1) {
scanf("%d %d", &n, &x);
count = 0;
if (n == 0 && x == 0) {
break;
}
for (i = 1; i < n; i++) {
for (j = i + 1; j < n; j++) {
if (i + j >= x) {
break;
}
for (k = j + 1; k < n... |
#include <stdio.h>
int main() {
int n, x, count;
int i, j, k;
while (1) {
scanf("%d %d", &n, &x);
count = 0;
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
if (i + j >= x) {
break;
}
for (k = j + 1; k ... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 150 |
#include <stdio.h>
int main(void) {
int i, j, k, x, n, kekka;
while (1) {
scanf("%d %d", &n, &x);
kekka = 0;
if (n == 0 && x == 0) {
break;
} else {
for (i = 1; i <= n - 1; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= n + 1; k++) {
if ((i + j... | #include <stdio.h>
int main(void) {
int i, j, k, x, n, kekka;
while (1) {
scanf("%d %d", &n, &x);
kekka = 0;
if (n == 0 && x == 0) {
break;
} else {
for (i = 1; i < n - 1; i++) {
for (j = i + 1; j < n; j++) {
for (k = j + 1; k < n + 1; k++) {
if ((i + j + ... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 17, 19], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18]] | 0 | 146 |
#include <stdio.h>
int main(void) {
int n, x, n1, n2, n3, k;
scanf("%d %d", &n, &x);
while (n != 0 && x != 0) {
k = 0;
for (n1 = 1; n1 <= n - 2; n1++) {
for (n2 = n1 + 1; n2 <= n - 1; n2++) {
for (n3 = n2 + 1; n3 <= n; n3++) {
if (n1 + n2 + n3 == x)
k++;
}
... | #include <stdio.h>
int main(void) {
int n, x, n1, n2, n3, k;
scanf("%d %d", &n, &x);
while (n != 0 || x != 0) {
k = 0;
for (n1 = 1; n1 <= n - 2; n1++) {
for (n2 = n1 + 1; n2 <= n - 1; n2++) {
for (n3 = n2 + 1; n3 <= n; n3++) {
if (n1 + n2 + n3 == x)
k++;
}
... | [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106]] | 0 | 140 |
#include <stdio.h>
int main() {
int n, x, i, j, l, k;
while (1) {
k = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 0; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (l = j + 1; l <= n; l++) {
if (i + j + l == x) {
... | #include <stdio.h>
int main(void) {
int n, x, i, j, l, k;
while (1) {
k = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (l = j + 1; l <= n; l++) {
if (i + j + l == x) {
... | [["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 142 |
#include <stdio.h>
int main(void) {
int n[100], x[300], i, j, k, cnt[300] = {0}, a = 0, b, c = 0;
while (c < 1000) {
scanf("%d %d", &n[a], &x[a]);
if (n[a] == 0 && x[a] == 0) {
break;
}
a = a + 1;
c = c + 1;
}
for (a = 0; a <= c; a++) {
for (i = 1; i <= n[a]; i++) {
for (j ... | #include <stdio.h>
int main(void) {
int n[100], x[300], i, j, k, cnt[300] = {0}, a = 0, b, c = 0;
while (c < 1000) {
scanf("%d %d", &n[a], &x[a]);
if (n[a] == 0 && x[a] == 0) {
break;
}
a = a + 1;
c = c + 1;
}
for (a = 0; a < c; a++) {
for (i = 1; i <= n[a]; i++) {
for (j =... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 0 | 232 |
#include <stdio.h>
int main(void) {
int i, j, k;
int x[300];
int n[100];
int count[300] = {0};
int a = 0;
int c = 0;
do {
scanf("%d %d", &n[a], &x[a]);
a += 1;
c = a;
} while (n[a - 1] != 0 && x[a - 1] != 0);
for (a = 0; a < c - 1; a++) {
for (i = 1; i < n[a]; i++) {
for (j... | #include <stdio.h>
int main(void) {
int i, j, k;
int x[300];
int n[100];
int count[300] = {0};
int a = 0;
int c = 0;
do {
scanf("%d %d", &n[a], &x[a]);
a += 1;
c = a;
} while (n[a - 1] != 0 || x[a - 1] != 0);
for (a = 0; a < c - 1; a++) {
for (i = 1; i < n[a]; i++) {
for (j... | [["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]] | 0 | 216 |
#include <stdio.h>
int main() {
int i, j, k, n, x, sum = 0, count = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = n; i >= 1; i--) {
for (j = n; j >= 1; j--) {
for (k = n; k >= 1; k--) {
if (i == j || j == k || k == i)
continue;
... | #include <stdio.h>
int main() {
int i, j, k, n, x, sum = 0, count = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = n; i >= 1; i--) {
for (j = n; j >= 1; j--) {
for (k = n; k >= 1; k--) {
if (i == j || j == k || k == i)
continue;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13]] | 0 | 149 |
#include <stdio.h>
int main() {
int n, x;
int a, b, c, ans;
while (1) {
scanf("%d%d", &n, &x);
if (n == 0 && x == 0) {
break;
}
ans = 0;
for (a = 1; a <= n; a++) {
for (b = 1; b <= n; b++) {
for (c = 1; c <= n; c++) {
if (a == b || b == c || c == a) {
... | #include <stdio.h>
int main() {
int n, x;
int a, b, c, ans;
while (1) {
scanf("%d%d", &n, &x);
if (n == 0 && x == 0) {
break;
}
ans = 0;
for (a = 1; a <= n; a++) {
for (b = a; b <= n; b++) {
for (c = b; c <= n; c++) {
if (a == b || b == c || c == a) {
... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 57, 15, 23, 0, 16, 12, 23, 0, 25]] | 0 | 152 |
#include <stdio.h>
int combination(int n, int x) {
int count = 0;
int a, b, c;
for (a = 1; a <= n; a++) {
for (b = a + 1; b <= n; b++) {
for (c = b + 1; c <= n; c++) {
if (a + b + c == x && a != b && b != c && c != a)
count++;
}
}
}
return count;
}
int main(void) {
i... | #include <stdio.h>
int combination(int n, int x) {
int count = 0;
int a, b, c;
for (a = 1; a <= n; a++) {
for (b = a + 1; b <= n; b++) {
for (c = b + 1; c <= n; c++) {
if (a + b + c == x && a != b && b != c && c != a)
count++;
}
}
}
return count;
}
int main(void) {
i... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 165 |
#include <stdio.h>
int main() {
int a, b;
int i, j, k;
int ans;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
}
ans = 0;
for (i = 1; i < a - 1; i++) {
for (j = i + 1; j < a; j++) {
for (k = j + 1; k <= a + 1; k++) {
if (i + j + k == b)
... | #include <stdio.h>
int main() {
int a, b;
int i, j, k;
int ans;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
}
ans = 0;
for (i = 1; i < a - 1; i++) {
for (j = i + 1; j < a; j++) {
for (k = j + 1; k < a + 1; k++) {
if (i + j + k == b)
... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18]] | 0 | 139 |
#include <stdio.h>
int main(void) {
int n = 1, x = 1;
int i, j, k;
int sum = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = i + 2; k <= n; k++) {
if (((i + j + k) =... | #include <stdio.h>
int main(void) {
int n = 1, x = 1;
int i, j, k;
int sum = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if (((i + j + k) ... | [["-", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0... | 0 | 160 |
#include <stdio.h>
int main(void) {
int i, j, k, x, n;
int m = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = 1; i <= n / 3; i++) {
for (j = 1; j <= n / 3; j++) {
for (k = 1; k <= n / 3; k++) {
if (i + j + k == x) {
if (i != j ... | #include <stdio.h>
int main(void) {
int i, j, k, x, n;
int m = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
for (k = 1; k <= n; k++) {
if (i + j + k == x) {
if (i != j && j != k &&... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 155 |
#include <stdio.h>
int main() {
int n, x, i, j, k, count;
while (i) {
count = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = n; i >= 3; i--) {
for (j = i - 1; j >= 2; j--) {
for (k = j - 1; k >= 1; k--) {
if ((i + j + k) == x)
count++;... | #include <stdio.h>
int main() {
int n, x, i, j, k, count;
while (1) {
count = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = n; i >= 3; i--) {
for (j = i - 1; j >= 2; j--) {
for (k = j - 1; k >= 1; k--) {
if ((i + j + k) == x)
count++;... | [["-", 0, 14, 8, 9, 0, 52, 15, 23, 0, 22], ["+", 0, 14, 8, 9, 0, 52, 15, 23, 0, 13]] | 0 | 133 |
#include <stdio.h>
int main(void) {
int i, ii, iii, n, x, hantei;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
hantei = 0;
for (i = 1; i <= n - 2; i++) {
for (ii = i++; ii <= n - 1; ii++) {
for (iii = ii++; iii <= n; iii++) {
if (i + ii + iii == x)
... | #include <stdio.h>
int main(void) {
int i, ii, iii, n, x, hantei;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
hantei = 0;
for (i = 1; i <= n - 2; i++) {
for (ii = i + 1; ii <= n - 1; ii++) {
for (iii = ii + 1; iii <= n; iii++) {
if (i + ii + iii ==... | [["-", 8, 9, 0, 7, 10, 11, 12, 27, 17, 29], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13]] | 0 | 134 |
#include <stdio.h>
int main(void) {
int i, j, k, c, n, x;
for (; scanf("%d %x", &n, &x), n || x; printf("%d\n", c)) {
for (i = n, c = 0; i > 2; i--) {
for (j = ~-i; j > 1; j--) {
for (k = ~-j; k; k--) {
i + j + k == x &&c++;
}
}
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, j, k, c, n, x;
for (; scanf("%d %d", &n, &x), n || x; printf("%d\n", c)) {
for (i = n, c = 0; i > 2; i--) {
for (j = ~-i; j > 1; j--) {
for (k = ~-j; k > 0; k--) {
i + j + k - x || c++;
}
}
}
}
return 0;
} | [["-", 15, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 15, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 60], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 33], ["-", 0, 7, 8, 9, 0, 1, 0, 16, 17, 98], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17... | 0 | 119 |
#include <stdio.h>
int main() {
int i, j, k;
int n;
int x;
int ans;
for (; scanf("%d %d", &n, &x) && n != 0 && x != 0;) {
ans = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if ((i + j + k) == x) {
ans++;
... | #include <stdio.h>
int main() {
int i, j, k;
int n;
int x;
int ans;
for (; scanf("%d %d", &n, &x), n != 0 || x != 0;) {
ans = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if ((i + j + k) == x) {
ans++;
... | [["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 98], ["+", 0, 14, 8, 9, 0, 7, 15, 34, 0, 21], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 98], ["+", 8, 9, 0, 7, 15, 34, 12, 16, 17, 106]] | 0 | 138 |
#include <stdio.h>
int main() {
int n, i, j, k, x, ans = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
ans = 0;
for (i = 1; i < n - 2; i++) {
for (j = i + 1; j < n - 1; j++) {
for (k = j + 1; k < n; k++) {
if (x == i + j + k)
ans++;
... |
#include <stdio.h>
int main() {
int n, i, j, k, x, ans;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
ans = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if (x == i + j + k)
ans++;
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 52, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 137 |
#include <stdio.h>
int main(void) {
int n, x, i, j, k, sum;
while (1) {
sum = 0;
scanf("%d %d", &n, &x);
if (n, x == 0)
break;
else {
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= n; k++) {
if (i + j + k == x) {
... | #include <stdio.h>
int main(void) {
int n, x, i, j, k, sum;
while (1) {
sum = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
else {
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= n; k++) {
if (i + j + k == x) {
... | [["-", 8, 9, 0, 57, 15, 23, 0, 34, 0, 21], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 135 |
#include <stdio.h>
int main(void) {
int a, b, c, n, x, Count = 0, count2 = 0, i, point[100], j, allcount = 0;
while (1) {
scanf("%d %d", &n, &x);
i = 0;
for (a = i; a <= n; a++) {
for (b = a; b <= n; b++) {
for (c = b; c <= n; c++) {
if (a + b + c == x && a != b && a != c && b !... | #include <stdio.h>
int main(void) {
int a, b, c, n, x, Count = 0, count2 = 0, i, point[100], j, allcount = 0;
while (1) {
scanf("%d %d", &n, &x);
i = 0;
for (a = i; a <= n; a++) {
for (b = a; b <= n; b++) {
for (c = b; c <= n; c++) {
if (a + b + c == x && a != b && a != c && b !... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106]] | 0 | 193 |
#include <stdio.h>
int main() {
int n, x, a1, a2, a3, score = 0;
scanf("%d%d", &n, &x);
while (n != 0 || x != 0) {
score = 0;
for (a1 = 1; a1 < n + 1; a1++) {
for (a2 = 1; a2 < n + 1; a2++) {
for (a3 = 1; a3 < n + 1; a3++) {
if (a1 != a2 && a2 != a3 && a3 != a1) {
if (... | #include <stdio.h>
int main() {
int n, x, a1, a2, a3, score = 0;
scanf("%d%d", &n, &x);
while (n != 0 || x != 0) {
score = 0;
for (a1 = 1; a1 < n + 1; a1++) {
for (a2 = 1; a2 < n + 1; a2++) {
for (a3 = 1; a3 < n + 1; a3++) {
if (a1 != a2 && a2 != a3 && a3 != a1) {
if (... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 163 |
#include <stdio.h>
int main(void) {
int a, b, c, n = -1, x = -1, q = 0;
while (n + x != 0) {
while (n + x > 0) {
for (a = 1; a <= n - 2; a++) {
for (b = a + 1; b <= n - 1; b++) {
for (c = b + 1; c <= n; c++) {
if (a + b + c == x) {
q++;
}
}... | #include <stdio.h>
int main(void) {
int a, b, c, n = -1, x = -1, q = -1;
while (n + x != 0) {
while (n + x > 0) {
for (a = 1; a <= n - 2; a++) {
for (b = a + 1; b <= n - 1; b++) {
for (c = b + 1; c <= n; c++) {
if (a + b + c == x) {
q++;
}
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 162 |
#include <stdio.h>
int main(void) {
int i, j, k;
int n, x;
int count;
while (1) {
scanf("%d %d", &n, &x);
if (n + x == 0)
break;
count = 0;
for (i = 1; i <= n - 2; i++)
for (j = i + 1; j <= n - 1; j++)
for (k = i + 2; k <= n; k++)
if (i + j + k == x)
... | #include <stdio.h>
int main(void) {
int i, j, k;
int n, x;
int count;
while (1) {
scanf("%d %d", &n, &x);
if (n + x == 0)
break;
count = 0;
for (i = 1; i <= n - 2; i++)
for (j = i + 1; j <= n - 1; j++)
for (k = j + 1; k <= n; k++)
if (i + j + k == x)
... | [["-", 8, 7, 8, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 7, 8, 7, 10, 11, 12, 16, 31, 22], ["-", 8, 7, 8, 7, 10, 11, 12, 16, 12, 13], ["+", 8, 7, 8, 7, 10, 11, 12, 16, 12, 13]] | 0 | 132 |
#include <stdio.h>
int main() {
int n, x, i, j, k, a;
int d = 0;
for (a = 0; a < 10000; a++) {
d = 0;
scanf("%d %d", &n, &x);
if (n, x == 0)
break;
for (i = 1; i <= n - 2; i++) {
for (j = 1; j <= n - 1; j++) {
for (k = 1; k <= n; k++) {
if (i == j || j == k || i == k)... | #include <stdio.h>
int main() {
int n, x, i, j, k, a;
int d = 0;
for (a = 0; a < 10000; a++) {
d = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
for (i = 1; i <= n - 2; i++) {
for (j = 1; j <= n - 1; j++) {
for (k = 1; k <= n; k++) {
if (i == j || j == k || ... | [["-", 8, 9, 0, 57, 15, 23, 0, 34, 0, 21], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 179 |
#include <stdio.h>
int main(void) {
int n, x, i, j, k, kumi = 0;
while (1) {
scanf("%d %d", &n, &x);
if ((n == 0) && (x == 0)) {
break;
}
for (i = 1; i <= n + 1; i++) {
for (j = i + 1; j <= n + 1; j++) {
for (k = j + 1; k <= n + 1; k++) {
if (x == (i + j + k) && (i ... | #include <stdio.h>
int main(void) {
int n, x, i, j, k, kumi = 0;
while (1) {
scanf("%d %d", &n, &x);
if ((n == 0) && (x == 0)) {
break;
}
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= n; k++) {
if (x == (i + j + k) && (i != j) && (i ... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 168 |
#include <stdio.h>
int m, f, r;
int n;
int x, y, z, zz;
int total, ans;
int cnt;
int hoge[256];
int i, s, t;
main() {
for (z = 0;; z++) {
scanf("%d%d", &x, &y);
for (i = 1; i <= x; i++) {
for (s = 1; s <= x; s++) {
for (t = 1; t <= x; t++) {
total = (i + s + t);
if ((total... | #include <stdio.h>
int m, f, r;
int n;
int x, y, z, zz;
int total, ans;
int cnt;
int hoge[256];
int i, s, t;
main() {
for (z = 0;; z++) {
scanf("%d%d", &x, &y);
for (i = 1; i <= x; i++) {
for (s = 1; s <= x; s++) {
for (t = 1; t <= x; t++) {
total = (i + s + t);
if ((total... | [["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 30, 0, 9, 0, 7, 15, 16, 17, 18]] | 0 | 205 |
#include <stdio.h>
int main() {
int n, x;
int n1, n2, n3;
int n_combinations;
for (;;) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
n_combinations = 0;
for (n1 = 0; n1 <= n; n1++)
for (n2 = n1 + 1; n2 <= n; n2++)
for (n3 = n2 + 1; n3 <= n; n3++)
if (n1 ... | #include <stdio.h>
int main() {
int n, x;
int n1, n2, n3;
int n_combinations;
for (;;) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0)
break;
n_combinations = 0;
for (n1 = 1; n1 <= n; n1++)
for (n2 = n1 + 1; n2 <= n; n2++)
for (n3 = n2 + 1; n3 <= n; n3++)
if (n1 ... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 128 |
#include <stdio.h>
void outputnum();
int main(void) {
int n, x;
scanf("%d%d", &n, &x);
while (n != 0 && x != 0) {
outputnum(n, x);
scanf("%d%d", &n, &x);
}
return 0;
}
void outputnum(int n, int x) {
int i, j, k, sum = 0, com = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j+... | #include <stdio.h>
void outputnum();
int main(void) {
int n, x;
scanf("%d%d", &n, &x);
while (n != 0 || x != 0) {
outputnum(n, x);
scanf("%d%d", &n, &x);
}
return 0;
}
void outputnum(int n, int x) {
int i, j, k, sum = 0, com = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j+... | [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106]] | 0 | 171 |
#include <stdio.h>
int main(void) {
int n, x;
int i, j, k;
int test;
while (1) {
scanf("%d %d", &n, &x);
test = 0;
if (n == 0 && x == 0)
break;
for (i = 1; i < n - 2; i++)
for (j = i + 1; j <= n - 1; j++)
for (k = j + 1; k <= n; k++) {
if (i + j + k == x)
... | #include <stdio.h>
int main(void) {
int n, x;
int i, j, k;
int test;
while (1) {
scanf("%d %d", &n, &x);
test = 0;
if (n == 0 && x == 0)
break;
for (i = 1; i <= n - 2; i++)
for (j = i + 1; j <= n - 1; j++)
for (k = j + 1; k <= n; k++) {
if (i + j + k == x)
... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 134 |
#include <stdio.h>
int main(void) {
int i, j, k, l, m, n, o;
scanf("%d %d", &i, &j);
do {
k = 0;
for (l = 0; l <= i - 2; l++)
for (m = l + 1; m <= i - 1; m++)
for (n = m + 1; n <= i; n++) {
o = l + m + n;
if (o == j)
k += 1;
}
printf("%d\n", k);
... | #include <stdio.h>
int main(void) {
int i, j, k, l, m, n, o;
scanf("%d %d", &i, &j);
do {
k = 0;
for (l = 1; l <= i - 2; l++)
for (m = l + 1; m <= i - 1; m++)
for (n = m + 1; n <= i; n++) {
o = l + m + n;
if (o == j)
k += 1;
}
printf("%d\n", k);
... | [["-", 0, 82, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 82, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 8, 9, 0, 82, 15, 23, 0, 11, 17, 32], ["+", 0, 82, 15, 23, 0, 16, 31, 16, 17, 79]] | 0 | 148 |
#include <stdio.h>
int main() {
int n = 1, x = 1, cnt, ans = 0;
int i, j, k;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i < n - 1; i++) {
for (j = 1; j < n; j++) {
for (k = 1; k <= n; k++) {
cnt = i + j + k;
if (cn... | #include <stdio.h>
int main() {
int n = 1, x = 1, cnt, ans = 0;
int i, j, k;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i < n - 1; i++) {
for (j = i + 1; j < n; j++) {
for (k = j + 1; k <= n; k++) {
cnt = i + j + k;
... | [["+", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 72]] | 0 | 150 |
#include <stdio.h>
int main() {
int n, x; // n:?????§?????° x:????¨??????°
int sumCount[10000] = {0};
int dataSetCount;
int i, j, k;
dataSetCount = 0;
scanf("%d %d", &n, &x);
while (n != 0 && x != 0) {
//??\???????????£???????????????????????????
for (i = 1; i <= n; i++) {
for (j = i + 1... | #include <stdio.h>
int main() {
int n, x; // n:?????§?????° x:????¨??????°
int sumCount[10000] = {0};
int dataSetCount;
int i, j, k;
dataSetCount = 0;
scanf("%d %d", &n, &x);
while (!(n == 0 && x == 0)) {
for (i = 1; i <= n; i++) {
for (j = i + 1; j <= n; j++) {
for (k = j + 1; k <= ... | [["+", 8, 9, 0, 52, 15, 23, 0, 91, 17, 111], ["+", 0, 52, 15, 23, 0, 91, 28, 23, 0, 24], ["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 79], ["+", 0, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 23, 0, 16, 12, 16, 17, 79], ["+", 0, 91, 28, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 23, 0, 91, 28, 23, 0, 25]] | 0 | 178 |
#include <stdio.h>
int main() {
int x, n, ans = 0, i, j, k;
while (1) {
ans = 0;
scanf("%d%d", &n, &x);
if (x == 0 && n == 0)
break;
for (i = 1; i <= n; i++)
for (j = i + 1; j <= n; j++)
for (k = j + 1; k <= n; k++)
if (i + j + k == x)
ans = ans + 1;
... | #include <stdio.h>
int main() {
int x, n, ans = 0, i, j, k;
while (1) {
ans = 0;
scanf("%d%d", &n, &x);
if (x == 0 && n == 0)
break;
for (i = 1; i <= n; i++)
for (j = i + 1; j <= n; j++)
for (k = j + 1; k <= n; k++)
if (i + j + k == x)
ans = ans + 1;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 132 |
#include <stdio.h>
int main(void) {
int i, j, k, n, x;
int count = 0;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 0; i <= x; i++) {
for (j = 0; j <= x; j++) {
for (k = 0; k <= x; k++) {
if (i + j + k == x && i != j && i != k && j !=... | #include <stdio.h>
int main(void) {
int i, j, k, n, x;
int count = 0;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
for (k = 1; k <= n; k++) {
if (i + j + k == x && i != j && i != k && j !=... | [["-", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, ... | 0 | 161 |
#include <stdio.h>
int main(void) {
setvbuf(stdout, NULL, _IONBF, 0);
int n, x;
int i, j, k;
int count;
int sum = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 || x == 0) {
break;
} else {
count = 0;
for (i = 1; i < n - 1; i++) {
for (j = i + 1; j < n; j++) {
... | #include <stdio.h>
int main(void) {
setvbuf(stdout, NULL, _IONBF, 0);
int n, x;
int i, j, k;
int count;
int sum = 0;
while (1) {
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
} else {
count = 0;
for (i = 1; i < n - 1; i++) {
for (j = i + 1; j < n; j++) {
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 168 |
#include <stdio.h>
int main(void) {
int n, x;
int i, j, k;
while (1) {
int count = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
for (k = 0; k < n; k++) {
if (i + j + k == x && i != j && j != k &... | #include <stdio.h>
int main(void) {
int n, x;
int i, j, k;
while (1) {
int count = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
for (k = 1; k <= n; k++) {
if (i + j + k == x && i != j && j != ... | [["-", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 52, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, ... | 0 | 146 |
#include <stdio.h>
int main() {
int n, x, i, j, k, a = 0;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 || x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if ((i + j + k) == x) {
a++;
... | #include <stdio.h>
int main() {
int n, x, i, j, k, a = 0;
while (1) {
scanf("%d %d\n", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if ((i + j + k) == x) {
a++;
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 144 |
#include <stdio.h>
int main() {
int n, x, c, i, j, k;
scanf("%d%d", &n, &x);
while (n * n + x * x) {
c = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if (x == i + j + k)
c = c + 1;
}
}
}
print... | #include <stdio.h>
int main() {
int n, x, c, i, j, k;
scanf("%d%d", &n, &x);
while (n * n + x * x) {
c = 0;
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) {
if (x == i + j + k)
c = c + 1;
}
}
}
print... | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 146 |
/*
* a.c
*
* Created on: 2017/06/13
* Author: AWV060608
*/
#include <stdio.h>
int main(void) {
int n, x, y;
int i, j;
int a, b, c;
int rst;
rst = 0;
while (1) {
scanf("%d", &n);
scanf("%d", &x);
if ((n == 0) && (x == 0))
break;
y = x / 3;
for (i = 0, a = 1; i < y; i... | /*
* a.c
*
* Created on: 2017/06/13
* Author: AWV060608
*/
#include <stdio.h>
int main(void) {
int n, x, y;
int i, j;
int a, b, c;
int rst;
rst = 0;
while (1) {
scanf("%d", &n);
scanf("%d", &x);
if ((n == 0) && (x == 0))
break;
y = x / 3;
for (i = 0, a = 1; i < n; i... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 177 |
#include <stdio.h>
int main(void) {
int a, b, c = 0, i, j, k;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 || b == 0)
break;
for (i = 1; i <= a; i++)
for (j = i + 1; j <= a; j++)
for (k = j + 1; k <= a; k++) {
if (i + j + k == b)
c++;
}
printf("%d... | #include <stdio.h>
int main(void) {
int a, b, c = 0, i, j, k;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0)
break;
for (i = 1; i <= a; i++)
for (j = i + 1; j <= a; j++)
for (k = j + 1; k <= a; k++) {
if (i + j + k == b)
c++;
}
printf("%d... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 130 |
#include <stdio.h>
int main() {
int n = 0, x = 0, count, a, b, c;
while (1) {
scanf("%d %d", &x, &n);
if ((x == 0) && (n == 0)) {
break;
}
count = 0;
for (a = 1; a <= n - 2; a++) {
for (b = a + 1; b <= n - 1; b++) {
for (c = b + 1; c <= n; c++) {
if ((a + b + c) ==... | #include <stdio.h>
int main() {
int n = 0, x = 0, count, a, b, c;
while (1) {
scanf("%d %d", &n, &x);
if ((x == 0) && (n == 0)) {
break;
}
count = 0;
for (a = 1; a <= n - 2; a++) {
for (b = a + 1; b <= n - 1; b++) {
for (c = b + 1; c <= n; c++) {
if ((a + b + c) ==... | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 7, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 0, 52, 8, 9, 0, 7, 8, 9, 0, 46]] | 0 | 147 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.