s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s405490006 | p02410 | u661529494 | 1512452091 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | n,m=map(int, input().split())
for _ in range (n):
A=list(map(int, input().split())
for _ in range (m):
b=int(input())
for _ in range (n):
print(sum(a[_][i] * b[i] for i in range(m))) |
s995620908 | p02410 | u661529494 | 1512452413 | Python | Python3 | py | Runtime Error | 0 | 0 | 185 | n,m=map(int, input().split())
A=[list(map(int, input().split()) for _ in range (n)]
b=[int(input()) for _ in range (m)]
for _ in range (n):
print(sum(a[_][i] * b[i] for i in range(m))) |
s373451417 | p02410 | u017523606 | 1514269667 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | import numpy as np
n,m = map(int,input().split())
arr = [[0 for i in range(m)]for j in range(n)]
for i in range(n):
line = input().split()
for j in range(m):
arr[i][j] = int(line[j])
array = np.array(arr)
colvec = np.array([])
for _ in range(m):
colvec = np.append(colvec,int(input()))
for i in range... |
s580856341 | p02410 | u017523606 | 1514269766 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | import numpy as np
n,m = map(int,input().split())
arr = [[0 for i in range(m)]for j in range(n)]
for i in range(n):
line = input().split()
for j in range(m):
arr[i][j] = int(line[j])
array = np.array(arr)
colvec = np.array([])
for i in range(m):
colvec = np.append(colvec,int(input()))
for i in range... |
s504379598 | p02410 | u017523606 | 1514269978 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | import numpy as np
n,m = map(int,input().split())
arr = [[0 for i in range(m)]for j in range(n)]
for i in range(n):
line = input().split()
for j in range(m):
arr[i][j] = int(line[j])
array = np.array(arr)
colvec = np.array([])
for i in range(m):
colvec = np.append(colvec,int(input()))
for i in range... |
s520688359 | p02410 | u017523606 | 1514270149 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | import numpy as np
n,m = map(int,input().split())
arr = [[0 for i in range(m)]for j in range(n)]
colvec = np.array([])
for i in range(n):
line = input().split()
for j in range(m):
arr[i][j] = int(line[j])
for _ in range(m):
colvec = np.append(colvec,int(input()))
array = np.array(arr)
for i in range... |
s763431373 | p02410 | u017523606 | 1514270348 | Python | Python3 | py | Runtime Error | 0 | 0 | 374 | import numpy as np
n,m = map(int,input().split())
arr = [[0 for i in range(m)]for j in range(n)]
colvec = np.array([])
for i in range(n):
line = input().split()
for j in range(m):
arr[i][j] = int(line[j])
for _ in range(m):
colvec = np.append(colvec,int(input()))
array = np.array(arr)
for i in range... |
s519049810 | p02410 | u165141947 | 1514667217 | Python | Python | py | Runtime Error | 0 | 0 | 241 | n, m = map(int, raw_input().split())
a, b = [], []
for _ in range(n):
a.append(map(int, raw_input().split()))
for _ in range(m):
b.append(int(raw_input()))
for i in range(n):
c[i] = 0
for j in range(m):
c[i] += a[i][j]*b[j]
print c[i] |
s475246278 | p02410 | u505411588 | 1516617058 | Python | Python3 | py | Runtime Error | 0 | 0 | 623 | '''
1 1 1
2 2 2
1
2
3
とあったら、1*1+1*2+1*3
2*1+2*2+2*3
みたいな感じ。
'''
from operator import add
from functools import reduce
#テスト値
n = int(input())
m = int(input())
#a = [[1,1,1],[2,2,2]]
#b = [1,2,3]
a = [list(map(int, input().split())) for n in range(n)]
#print(a)
b = [int(input()) for n in range(m)]
#print(b)... |
s081788439 | p02410 | u017435045 | 1521443102 | Python | Python3 | py | Runtime Error | 0 | 0 | 157 | n,m=map(int,input().split())
a=[list(map(int,input().split()))
b=[int(input())for i in range(m)]
[print(sum([j*k for j,k in zip(a[i],b])) for i in range(n)]
|
s429159837 | p02410 | u017435045 | 1521443143 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | n,m=map(int,input().split())
a=[list(map(int,input().split())) for i in range(n)]
b=[int(input())for i in range(m)]
[print(sum([j*k for j,k in zip(a[i],b])) for i in range(n)]
|
s531246657 | p02410 | u017435045 | 1521443197 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | n,m=map(int,input().split())
a=[list(map(int,input().split())) for i in range(n)]
b=[int(input())for i in range(m)]
[print(sum([j*k for j,k in zip(a[i],b])) for i in range(n)]
|
s924823340 | p02410 | u017435045 | 1521443299 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 |
n,m=map(int,input().split())
a=[list(map(int,input().split())) for i in range(n)]
b=[int(input())for i in range(m)]
[print(sum([j*k for j,k in zip(a[i],b])) for i in range(n)]
|
s412451203 | p02410 | u017435045 | 1521443388 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 |
n,m=map(int,input().split())
a=[list(map(int,input().split()))for i in range(n)]
b=[int(input())for i in range(m)]
[print(sum([j*k for j,k in zip(a[i],b]))for i in range(n)]
|
s039797385 | p02410 | u017435045 | 1521443443 | Python | Python3 | py | Runtime Error | 0 | 0 | 175 |
n,m=map(int,input().split())
a=[list(map(int,input().split()))for f in range(n)]
b=[int(input())for g in range(m)]
[print(sum([j*k for j,k in zip(a[i],b]))for i in range(n)]
|
s188192031 | p02410 | u017435045 | 1521443516 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | n,m=map(int,input().split())
a=[list(map(int,input().split()))for _ in range(n)]
b=[int(input())for _ in range(m)]
[print(sum([j*k for j,k in zip(a[i],b]))for i in range(n)]
|
s422044244 | p02410 | u017435045 | 1521443556 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | n,m=map(int,input().split())
a=[list(map(int,input().split()))for _ in range(n)]
b=[int(input())for _ in range(m)]
[print(sum([j*k for j,k in zip(a[i],b]))for i in range(n)]
~
|
s344435703 | p02410 | u682153677 | 1523432987 | Python | Python3 | py | Runtime Error | 0 | 0 | 434 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(n[0] * n[1])
for i in range(n[0]):
a_line = list(map(int, input().split()))
np.append(a, a_line)
a.reshape(n[0], n[1])
b = np.array(n[1])
for i in range(n[1]):
b_column = list(map(int, input().split()))
np.app... |
s994328336 | p02410 | u682153677 | 1523509706 | Python | Python3 | py | Runtime Error | 0 | 0 | 406 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(list(map(int, input().split())))
for i in range(n[0] - 1):
a = np.vstack((a, list(map(int, input().split()))))
b = np.array(list(map(int, input().split())))
for i in range(n[1] - 1):
b = np.vstack((b, list(map(int, i... |
s281603073 | p02410 | u682153677 | 1523509996 | Python | Python3 | py | Runtime Error | 0 | 0 | 425 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(list(map(int, input().split())))
for i in range(n[0] - 1):
a = np.vstack((a, list(map(int, input().split()))))
b = np.array(list(map(int, input().split())))
for i in range(n[1] - 1):
b = np.vstack((b, list(map(int, i... |
s526329286 | p02410 | u682153677 | 1523510112 | Python | Python3 | py | Runtime Error | 0 | 0 | 425 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(list(map(int, input().split())))
for i in range(n[0] - 1):
a = np.vstack((a, list(map(int, input().split()))))
b = np.array(list(map(int, input().split())))
for i in range(n[1] - 1):
b = np.vstack((b, list(map(int, i... |
s375557426 | p02410 | u682153677 | 1523525255 | Python | Python3 | py | Runtime Error | 0 | 0 | 425 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(list(map(int, input().split())))
for i in range(n[0] - 1):
a = np.vstack((a, list(map(int, input().split()))))
b = np.array(list(map(int, input().split())))
for i in range(n[1] - 1):
b = np.vstack((b, list(map(int, i... |
s046624632 | p02410 | u682153677 | 1523525535 | Python | Python3 | py | Runtime Error | 0 | 0 | 424 | # -*- coding: utf-8 -*-
import numpy as np
n = list(map(int, input().split()))
a = np.array(list(map(int, input().split())))
for i in range(n[0] - 1):
a = np.vstack((a, list(map(int, input().split()))))
b = np.array(list(map(int, input().split())))
for i in range(n[1] - 1):
b = np.vstack((b, list(map(int, in... |
s942237789 | p02410 | u007858722 | 1523969520 | Python | Python3 | py | Runtime Error | 0 | 0 | 310 | n, m = map(int, input().split())
numberList = []
for i in n:
childNumberList = list(map(int, input().split()))
numberList.append(childNumberList)
for j in range(0, n):
totalNum = 0
num = int(input())
for k in range(0, m):
totalNum += numberList[j][k] * num
print(totalNum)
|
s122426573 | p02410 | u328199937 | 1524305935 | Python | Python3 | py | Runtime Error | 20 | 5604 | 343 | n, m = map(int, input().split())
List1 = [[0 for i in range(m)] for i in range(n)]
for x in range(n):
List1[x] = list(map(int, input().split()))
List2 = [int(input()) for i in range(n + 1)]
sum = [0 for i in range(n)]
for x in range(n):
for y in range(m):
sum[x] += List1[x][y] * List2[y]
for x in range(... |
s586106678 | p02410 | u328199937 | 1524306087 | Python | Python3 | py | Runtime Error | 0 | 0 | 338 | n, m = map(int, input().split())
List1 = [[0 for i in range(m)] for i in range(n)]
for x in range(n):
List1[x] = list(map(int, input().split()))
List2 = [int(input()) for _ in range(n)]
sum = [0 for i in range(n)]
for x in range(n):
for y in range(m):
sum[x] += List1[x][y] * List2[y]
for x in range(n):
... |
s170474401 | p02410 | u150984829 | 1524759708 | Python | Python3 | py | Runtime Error | 0 | 0 | 143 | n,m=map(int,input().split())
A=[input().split()for _ in[0]*n]
b=[input()for _ in[0]*m]
for a in A:print(sum(x*y for x,y in map(int,zip(a,b))))
|
s705181407 | p02410 | u876060624 | 1524997809 | Python | Python3 | py | Runtime Error | 20 | 5604 | 286 | n,m = map(int,input().split())
A=[[] for i in range(n)]
for i in range(n):
A[i] = list(map(int,input().split()))
b = []
c = list(map(int,'0'*m))
for i in range(m):
b.append(int(input()))
for i in range(n):
for j in range(m):
c[i] += A[i][j]*b[j]
for i in range(n):
print(c[i])
|
s073066479 | p02410 | u327546577 | 1528140918 | Python | Python3 | py | Runtime Error | 0 | 0 | 307 | bfr = [[[0 for _ in range(10)] for _ in range(3)] for _ in range(4)]
n = int(input())
for _ in range(n):
b, f, r, v = map(int, input().split())
bfr[b-1][f-1][r-1] += v
for b in range(4):
for f in range(3):
print(' ' + ' '.join(map(str, bfr[b][f])))
if b != 3:
print('#'*20)
|
s538527358 | p02410 | u929141425 | 1528478489 | Python | Python3 | py | Runtime Error | 20 | 5604 | 283 | n,m = map(int, input().split())
Li = [[] for y in range(m)]
Li2 = []
a = 0
for x in range(n):
Li[x] += list(map(int, input().split()))
for x in range(m):
Li2.append(int(input()))
for x in range(n):
for y in range(m):
a += Li[x][y]*Li2[y]
print(a)
a = 0
|
s793971374 | p02410 | u929141425 | 1528478649 | Python | Python3 | py | Runtime Error | 20 | 5604 | 285 | n,m = map(int, input().split())
Li = [[] for y in range(m)]
Li2 = []
a = 0
for x in range(n):
Li[x] += list(map(int, input().split()))
for x in range(m):
Li2.append(int(input()))
for x in range(n):
for y in range(m):
a += Li[x][y]*Li2[y]
print(a)
a = 0
|
s003790325 | p02410 | u929141425 | 1528502645 | Python | Python3 | py | Runtime Error | 20 | 5604 | 282 | n,m = map(int, input().split())
Li = [[] for y in range(m)]
Li2 = []
a = 0
for x in range(n):
Li[x] += list(map(int, input().split()))
for x in range(m):
Li2.append(int(input()))
for x in range(n):
for y in range(m):
a += Li[x][y]*Li2[y]
print(a)
a = 0
|
s381015698 | p02410 | u092736322 | 1528854836 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | import numpy as np
k=input().split()
n=int(k[0])
m=int(k[1])
a=np.zeros((n,m),dtype='int32')
b=np.zeros(m,dtype='int32')
for i in range(n):
k=input().split()
for j in range(m):
a[i][j]=int(k[j])
for i in range(m):
b[i]=int(input())
for i in range(n):
c=0
for j in range(m):
c+=a[... |
s362683926 | p02410 | u932203900 | 1529168989 | Python | Python3 | py | Runtime Error | 0 | 0 | 547 |
import sys
import numpy as np
n, m = input().strip().split(" ")
n = int(n) ;m = int(m)
c = n
a = []
for line in sys.stdin :
a.append(line)
c -= 1
if c == 0 :
break
c = m
b = []
for line in sys.stdin :
b.append(line)
c -= 1
if c == 0 :
break
for i in range(0, len(a)) :
... |
s052416289 | p02410 | u123669391 | 1530111717 | Python | Python3 | py | Runtime Error | 0 | 0 | 188 | n, m = list(map(int, input().split()))
a=[]
for i in range(n):
a.append([int(j) for j in input().split()])
for j in range(n):
s = 0
for j in range(m):
s += a[i][j] * b[j]
print(s)
|
s053804914 | p02410 | u123669391 | 1530111889 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | n, m = list(map(int, input().split()))
a=[]
for i in range(n):
a.append([int(j) for j in input().split()])
b = []
for i in range(m)
b.append(int(input()))
for j in range(n):
s = 0
for j in range(m):
s += a[i][j] * b[j]
print(s)
|
s136295483 | p02411 | u336705996 | 1535199781 | Python | Python3 | py | Runtime Error | 20 | 5596 | 297 | while True:
a,b,c = map(int,input().split())
if a == b == c == -1: break
if a+b>=80: print('A')
elif 65 <= a+b < 80: print('B')
elif 50 <= a+b < 65: print('C')
elif 30 <= a+b < 50:
if r<=50: print('C')
else: print('D')
elif a+b<30: print('F')
|
s259583184 | p02411 | u277375424 | 1540992764 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | n = int(input())
for _ in range(n):
m, f, r = map(int, input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 && s < 80:
print("B")
elif s >= 50 && s < 65 || f >= 50:
print("C")
elif s >= 30 && s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s958920804 | p02411 | u277375424 | 1540992833 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | n = int(input())
for _ in range(n):
m, f, r = map(int, input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s336441268 | p02411 | u277375424 | 1540993431 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | n = int(input())
for _ in range(n):
m, f, r = map(int,input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s968402425 | p02411 | u277375424 | 1540993486 | Python | Python3 | py | Runtime Error | 0 | 0 | 303 | n = int(input())
for _ in range(n):
m,f,r = map(int,input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s999824115 | p02411 | u277375424 | 1540993545 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | n=int(input())
for _ in range(n):
m,f,r = map(int,input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s585883610 | p02411 | u277375424 | 1541075617 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | n = int(input())
for _ in range(n):
m, f, r = map(int, input().split())
s = m+f
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
if m == f == r== -1:
print("F")
|
s175689469 | p02411 | u277375424 | 1541076154 | Python | Python3 | py | Runtime Error | 0 | 0 | 324 | while True:
m, f, r = map(int, input().split())
if m == f == r== -1:
break
if s >= 80:
print("A")
elif s >= 65 and s < 80:
print("B")
elif (s >= 50 and s < 65) or f >= 50:
print("C")
elif s >= 30 and s < 50:
print("D")
else:
print("F")
... |
s322532796 | p02411 | u643542669 | 1546126635 | Python | Python3 | py | Runtime Error | 0 | 0 | 398 | for _ in [None] * 50:
m, f, r = map(int, input().split())
result = " "
if m == f == r == -1:
break
if m == -1 or f == -1 or m + f < 30:
result = "F"
elif m + f > 80:
result = "A"
elif 80 > m + f >= 65:
result = "B"
elif 65 > m + f >= 50:
result = "C"
... |
s816772900 | p02411 | u498462680 | 1546400059 | Python | Python3 | py | Runtime Error | 20 | 5604 | 806 | 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... |
s447046124 | p02411 | u254455259 | 1546430758 | Python | Python3 | py | Runtime Error | 0 | 0 | 386 | while(1):
m,f,r=map(int,input().split())
if m==-1 and f==-1 and r==-1:
break
elif m==-1 or f==-1:
print("F")
elif m+f>=80:
print("A")
elif m+f>=65 and m+f<80:
print("B")
elif m+f>=50 and m+f<65:
print("C")
elif m+f>=30 and m+f<50:
print("D")
... |
s756023042 | p02411 | u902639104 | 1551388816 | Python | Python3 | py | Runtime Error | 0 | 0 | 261 | while True:
m,f,r= map(int.input().split())
if m+f+r==-3:break
if m==-1 or f==-1 or r==-1:"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:"F"
print(str(s)
|
s704925233 | p02411 | u340503368 | 1555913840 | Python | Python3 | py | Runtime Error | 0 | 0 | 426 | while True:
m,f,r = map(int, input().split())
if m == f == r ==-1:
break
elif (m+f) >= 80:
print("A")
elif (m+f) < 80 and (m+f) >= 65:
print("B")
elif ((m+f) < 65 and (m+f) >= 50) or (((m+f) < 50 and (m+f) >= 30 and (m != -1 and f != -1)) and r >= 50)
print("C")
e... |
s405263208 | p02411 | u610816226 | 1556875610 | Python | Python3 | py | Runtime Error | 0 | 0 | 408 | 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)
elif 30 <= m + F < 50:
if r >=... |
s622286994 | p02411 | u610816226 | 1556875634 | Python | Python3 | py | Runtime Error | 0 | 0 | 424 | 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 + F < 50:... |
s640037598 | p02411 | u610816226 | 1556875666 | Python | Python3 | py | Runtime Error | 0 | 0 | 423 | 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 + F < 50:
... |
s346542029 | p02411 | u610816226 | 1556875704 | Python | Python3 | py | Runtime Error | 20 | 5588 | 437 | 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 + ... |
s653509379 | p02411 | u017764209 | 1417437628 | Python | Python | py | Runtime Error | 0 | 0 | 453 | test = []
while True:
tmp = map(int,raw_input().split())
for i in tmp:
if i == -1:
break
else:
test.append(tmp)
for a in test:
if a[0]+a[1] >= 80:
print "A"
elif 80 > a[0]+a[1] >= 65:
print "B"
elif 65 > a[0]+a[1] >= 50:
print "C"
elif 50 >... |
s980989285 | p02411 | u971748390 | 1421677615 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | while(not((m==-1) and (f==-1) and (r==-1)))
m,f,r=map(int,input().split())
if((m==-1) or (f==-1))
print('F')
if(m+f>=80)
print('A')
if(65<= m+f) and (m+f<80))
print('B')
if(50<= m+f) and (m+f<60))
print('C')
if(30<= m+f) and (m+f<50))
if(50<=r)
print('C')
else
print('D')
if(m+f<30)... |
s953168520 | p02411 | u971748390 | 1421678354 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | while True:
m,f,r=map(int,input().split())
if m==f==r==-1 : break
if((m==-1) or (f==-1))
print('F')
if(m+f>=80)
print('A')
if(65<= m+f) and (m+f<80))
print('B')
if(50<= m+f) and (m+f<60))
print('C')
if(30<= m+f) and (m+f<50))
if(50<=r)
print('C')
else
print('D')
if(m+f<30)
prin... |
s830931390 | p02411 | u971748390 | 1421678802 | Python | Python3 | py | Runtime Error | 0 | 0 | 303 | while True:
m,f,r=map(int,input().split())
if m==f==r==-1 : break
if((m==-1) or (f==-1))
print('F')
if m+f>=80 :
print('A')
elif m+f >= 65 :
print('B')
elif m+f >= 50 :
print('C')
elif m+f >= 30 :
if r >= 50
print('C')
else
print('D')
if(m+f<30)
print('F')
|
s573053463 | p02411 | u823030818 | 1423014474 | Python | Python3 | py | Runtime Error | 0 | 0 | 449 | int main(void) {
int m,f,r;
scanf("%d %d %d",&m,&f,&r);
while(m!=-1 || f!=-1 || r!=-1) {
if(m==-1 || f==-1)printf("F\n");
else if(m+f>=80)printf("A\n");
else if(m+f>=65)printf("B\n");
else if(m+f>=50)printf("C\n");
else if(m+f>=30) {
if(r>=50)printf("C\n")... |
s552022068 | p02411 | u971748390 | 1423227915 | Python | Python3 | py | Runtime Error | 0 | 0 | 334 | while True:
m,f,r=map(int,input().split())
if m==f==r==-1 : break
if (m==-1) or (f==-1):
print('F')
if(m+f>=80):
print('A')
if (65<= m+f) and (m+f<80) :
print('B')
if (50<= m+f) and (m+f<60):
print('C')
if(30<= m+f) and (m+f<50):
if (50<=r):
print('C')
else
print('D')
if(m+f<30):... |
s059239449 | p02411 | u527848444 | 1424654578 | Python | Python3 | py | Runtime Error | 0 | 0 | 336 | while True:
(m,f,r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if mf <= 80:
priftf('A')
elif 65 <= mf <= 79:
printf('B')
elif 50 <= mf <= 64 || r >= 50:
printf('C')
elif 30 <= mf <=49:
printf('D')
else:
pr... |
s482020173 | p02411 | u442346200 | 1424655726 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | while True:
(m, fm r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if m == -1 of f == -1 of mf < 30:
print('F')
elif mf < 50 and r < 50:
print('D')
elif mf < 65:
print('C')
elif mf < 80:
print('B')
else:
... |
s024571507 | p02411 | u442346200 | 1424655755 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if m == -1 of f == -1 of mf < 30:
print('F')
elif mf < 50 and r < 50:
print('D')
elif mf < 65:
print('C')
elif mf < 80:
print('B')
else:
... |
s421172051 | p02411 | u442346200 | 1424655784 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if m == -1 or == -1 of mf < 30:
print('F')
elif mf < 50 and r < 50:
print('D')
elif mf < 65:
print('C')
elif mf < 80:
print('B')
else:
pr... |
s436886302 | p02411 | u442346200 | 1424655803 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if m == -1 or f == -1 of mf < 30:
print('F')
elif mf < 50 and r < 50:
print('D')
elif mf < 65:
print('C')
elif mf < 80:
print('B')
else:
... |
s979354846 | p02411 | u745846646 | 1424656885 | Python | Python3 | py | Runtime Error | 0 | 0 | 331 | while True:
(m ,f ,r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
mf = m + f
if m == -1 or f == -1 mf < 30:
print('F')
elif mf < 50 and r < 50:
print('D')
elif mf < 65:
print('C')
elif mf < 80:
print('B')
else:
... |
s694004401 | p02411 | u669360983 | 1430298010 | Python | Python3 | py | Runtime Error | 0 | 0 | 451 | import sys
while True:
data=list(map(int,input().split()))
if data[0]==data[1]==data[2]==-1: break
if data[0]!=-1 and data[1]!=-1:
sum=data[0]+data[1]
if data[2]!=-1 and sum<data[2]
sum=data[2]
if sum>=50:
sum=50
elif sum<50:
sum=0
if data[0]==-1 or data[1]==-1:
print('F')
elif sum<30 :
print(... |
s167494950 | p02411 | u669360983 | 1430298033 | Python | Python3 | py | Runtime Error | 0 | 0 | 451 | import sys
while True:
data=list(map(int,input().split()))
if data[0]==data[1]==data[2]==-1: break
if data[0]!=-1 and data[1]!=-1:
sum=data[0]+data[1]
if data[2]!=-1 and sum<data[2]
sum=data[2]
if sum>=50:
sum=50
elif sum<50:
sum=0
if data[0]==-1 or data[1]==-1:
print('F')
elif sum<30 :
print(... |
s592179946 | p02411 | u669360983 | 1430298433 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | while True:
m,f,r=map(int,input().split())
if m==f==r==-1: break
if m==-1 or f==-1:
sum=0
elif r!=-1:
if r>49:
sum=50
else :
sum=r
elif sum<30 :
print('F')
elif 30<=sum<50:
print('D')
elif 50<=sum<65:
print('C')
elif 65<=sum<=79:
print('B')
elif 80<=sum:
print('A')
|
s761284165 | p02411 | u571345655 | 1435462337 | Python | Python | py | Runtime Error | 0 | 0 | 507 | True:
line = raw_input()
if line == '-1 -1 -1':
break
middle, final, re = map(int, line.split())
if middle == -1 or final == -1:
grade = 'F'
elif middle + final >= 80:
grade = 'A'
elif 65 <= middle + final < 80:
grade = 'B'
elif 50 <= middle + final < 65:
... |
s133461522 | p02411 | u713218261 | 1439170521 | Python | Python3 | py | Runtime Error | 0 | 0 | 337 | (m, f, r) = [int(i) for i in input().split()]
if m==-1 and f==-1 and r==-1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g >= 80:
print('A')
elif g >= 65:
print('B')
elif g >= 30 or r >= 50:
print('C')
else:
print('D')
~ ... |
s205822923 | p02411 | u713218261 | 1439170652 | Python | Python3 | py | Runtime Error | 0 | 0 | 360 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m==-1 and f==-1 and r==-1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g >= 80:
print('A')
elif g >= 65:
print('B')
elif g >= 50 or r >= 50:
print('C')
else:... |
s541879087 | p02411 | u713218261 | 1439170866 | Python | Python3 | py | Runtime Error | 0 | 0 | 335 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m==-1 and f==-1 and r==-1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g < 50 or r < 50:
print('D')
elif g < 65:
print('C')
elif g < 80:
print('B')
else:
... |
s823300306 | p02411 | u713218261 | 1439171012 | Python | Python3 | py | Runtime Error | 0 | 0 | 327 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g < 50 or r < 50:
print('D')
elif g < 65:
print('C')
elif g < 80:
print('B')
else:
pri... |
s756266649 | p02411 | u713218261 | 1439171131 | Python | Python3 | py | Runtime Error | 0 | 0 | 344 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m==f==r==-1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g < 50 and r < 50:
print('D')
elif g < 65:
print('C')
elif g < 80:
print('B')
else:
print('A... |
s036372645 | p02411 | u713218261 | 1439171231 | Python | Python3 | py | Runtime Error | 0 | 0 | 336 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m==f==r==-1:
break
g = m + f
if m == -1 or f == -1 or g < 30:
print('F')
elif g < 50 and r < 50:
print('D')
elif g < 65:
print('C')
elif g < 80:
print('B')
else:
print('A')
~ ... |
s199183627 | p02411 | u713218261 | 1439171367 | Python | Python3 | py | Runtime Error | 0 | 0 | 360 | 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')
els... |
s850383125 | p02411 | u255164080 | 1439171565 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | 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 < 5-:
print('D')
elif total < 65:
print('C')
elif total < 85:
print('B')
else... |
s794586182 | p02411 | u925228699 | 1439171686 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | while True:
(m, f, r) = [int(i)for i in input().split()]
if m == f == -1:
break
total = m + f
if m == -1 or == -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:
print('A') |
s500879726 | p02411 | u118723993 | 1439171688 | Python | Python3 | py | Runtime Error | 0 | 0 | 347 | 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:
... |
s082339784 | p02411 | u118723993 | 1439171782 | Python | Python3 | py | Runtime Error | 0 | 0 | 432 | 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... |
s242763004 | p02411 | u118723993 | 1439171815 | Python | Python3 | py | Runtime Error | 0 | 0 | 434 | 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... |
s259563847 | p02411 | u978086225 | 1439171994 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | while Ture:
(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... |
s494986173 | p02411 | u686134343 | 1439172246 | Python | Python3 | py | Runtime Error | 0 | 0 | 1 | j |
s288690503 | p02411 | u978086225 | 1439944649 | Python | Python3 | py | Runtime Error | 0 | 0 | 281 | while True:
(m, f, r) = [int(i) for i in input().split()]
if m == f == r == -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:
print('A') |
s041382612 | p02411 | u978086225 | 1439944805 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | 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'):
els... |
s638014098 | p02411 | u978086225 | 1439944868 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | 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'):
el... |
s475560783 | p02411 | u978086225 | 1439944967 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | 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'):
el... |
s350294056 | p02411 | u473077745 | 1440650513 | Python | Python3 | py | Runtime Error | 0 | 0 | 419 | 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:
????????????????prin... |
s694562194 | p02411 | u775586391 | 1447823044 | Python | Python3 | py | Runtime Error | 0 | 0 | 383 | l = []
l= []
while True:
m,f,r = map(int,input().split())
if m == f == r == -1:
break
else:
l.append([m,f,r])
for i in l:
s = ''
x = i[0] + i[1]
if i[0] == -1 or i[1] == -1:
s = 'F'
elif x >= 80:
s = 'A'
elif x >= 65:
s = 'B':
elif x >= 50:
s = 'C':
elif x >= 30:
s = 'D'
... |
s646162265 | p02411 | u775586391 | 1447823273 | Python | Python3 | py | Runtime Error | 0 | 0 | 377 | l = []
while True:
m,f,r = map(int,input().split())
if m == f == r == -1:
break
else:
l.append([m,f,r])
for i in l:
s = ''
x = i[0] + i[1]
if i[0] == -1 or i[1] == -1:
s = 'F'
elif x >= 80:
s = 'A'
elif x >= 65:
s = 'B':
elif x >= 50:
s = 'C':
elif x >= 30:
s = 'D'
if... |
s617845460 | p02411 | u731710433 | 1454418007 | Python | Python3 | py | Runtime Error | 0 | 0 | 422 | while True:
m, f, v = [int(n) for n in input().split()]
if m == f == v == -1:
break
sum = m + f
if m == -1 or f == -1
print("F")
elif 80 <= sum:
print("A")
elif 65 <= sum < 80:
print("B")
elif 50 <= sum < 65:
print("C")
elif 30 <= sum < 50:
... |
s450394667 | p02411 | u148101999 | 1456625626 | Python | Python | py | Runtime Error | 0 | 0 | 505 | num = []
while True:
m,f,r = map(int, raw_input().split())
if m = -1:
m = 0
if f = -1:
f = 0
ans = m + f
if m == f == r == -1:
break
if ans >= 80:
num.append("A")
elif (65 <= ans) and (ans < 80):
num.append("B")
elif (50 <= ans) and (ans < 65):
... |
s913814672 | p02411 | u300858087 | 1456638746 | Python | Python | py | Runtime Error | 0 | 0 | 407 | num = []
while True:
l = map(int, raw_input().split())
if l[0] == l[1] == l[2] == -1:
break
sum = l[0] + l[1]
if sum >= 80:
num.append("A")
elif sum >= 65:
num.append("B")
elif sum >= 50:
num.append("C")
elif sum >= 30:
if l[2] >= 50:
num.append("C")
else :... |
s288700620 | p02411 | u869301406 | 1459237426 | Python | Python | py | Runtime Error | 10 | 6400 | 652 | student_info = []
while True:
s = map(int,raw_input().split(" "))
if s[0] is s[1] is s[2] is -1:
break
student_info.append(s)
score_info = []
for s in student_info:
if s[0] == -1 or s[1] == -1:
score_info.append("F")
elif s[0]+s[1] >= 80:
score_info.append("A")
e... |
s181379481 | p02411 | u013479944 | 1461634431 | Python | Python | py | Runtime Error | 0 | 0 | 473 |
a = []
while True:
n = map(int, raw_input().split())
if n == [-1, -1, -1]:
break
a.append(n)
for n in range(len(a)):
m = a[n][0] + a[n][1]
if a[n][0] == -1 or a[n][1] == -1:
print "F"
break
if m >= 80: print "A"
if m >= 65 and m < 80: print "B"
if m >= 50 ... |
s579897570 | p02411 | u565781955 | 1466744075 | Python | Python3 | py | Runtime Error | 30 | 7716 | 534 |
if __name__ == "__main__":
while True:
score = [int(i) for i in input().split()]
if score[0] == score[1] == score[2] == -1:
break
if score[0] == -1 or score[1] == -1:
print ('F')
else:
if score[0] + score[1] >= 80:
print ('A')
elif score[0] + score[1] >= 65:
print ('B')
elif score[0] + ... |
s646315518 | p02411 | u204883389 | 1470113246 | Python | Python3 | py | Runtime Error | 0 | 0 | 445 | while True:
(m, f, r) = map(int, raw_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:
... |
s291028609 | p02411 | u204883389 | 1470113313 | Python | Python3 | py | Runtime Error | 0 | 0 | 452 | while True:
(m, f, r) = map(int(i) for i in 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... |
s884829006 | p02411 | u600195957 | 1470114197 | Python | Python3 | py | Runtime Error | 0 | 0 | 365 | while True:
m, f, r = [int(i) for i in input().split()]
if m == f == r == -1:
break
elif m or f == -1:
return F
elif m + f >= 80:
return A
elif 65 <= m +f < 80:
return B
elif 50 <= m+f < 65:
return C
elif 30 <= m+f < 50:
if r >= 50:
return C
e... |
s976805435 | p02411 | u644636020 | 1470114287 | Python | Python3 | py | Runtime Error | 0 | 0 | 390 | while True:
m, f, r = [int(i) for i in input().solit()]
if m == f == r == -1:
break
if m == -1 or f == -1:
print("F")
if m + f >= 80:
print("A")
if 65 <= m + f < 80:
print("B")
if 50 <= m + f < 65:
print("C")
if 30 <= m + f < 50:
print("D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.