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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s357574670 | p03477 | u107077660 | 1554086824 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 145 | W = map(int,input().split())
if sum(W[:2]) < sum(W[2:]):
print("Right")
elif sum(W[:2]) > sum(W[2:]):
print("Left")
else:
print("Balanced") |
s382269095 | p03477 | u410736938 | 1553975536 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | for i in range(4)
a[i] = input() |
s362180734 | p03477 | u915355756 | 1553927956 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 279 | def digits(x):
ans = 0
for i in range(4,-1,-1):
ans += x//(10**i)
x = x - ((10**i)*(x//(10**i)))
return ans
[N,A,B] = list(map(int,input().split()))
data = []
for i in range(1,N+1):
if A <= digits(i) <= B:
data.append(i)
print(sum(data)) |
s535865141 | p03477 | u159994501 | 1553460092 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | A,B,C,D =map(int,input().split())
if A+B>C+D:
print("Left")
else A+B=C+D
print("Balanced")
else:
print("Right") |
s135683102 | p03477 | u623819879 | 1553119644 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 1 | a |
s686687734 | p03477 | u159994501 | 1552943798 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n,a,b=map(int,input().split())
ans=0
for i in range(n+1):
if a<=sum(list(map(int, list(str(i)))))<=b:
ans += i
print(ans) |
s523781140 | p03477 | u159994501 | 1552943729 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 132 | n,a,b=map(int,input().split())
ans=0
for i in range(n+1):
if a<=sum(list(map(int, sum(str(i)))))<=b:
ans += i
print(ans) |
s654158235 | p03477 | u209918867 | 1552876815 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 147 | s=sum(map(int,input().split()));
sl=sum(map(int,input().split()[:2]))
if sl>s/2:
m='Left'
elif sl==s/2:
m='Balanced'
else:
m='Right'
print(m) |
s142150199 | p03477 | u350049649 | 1552481134 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 129 | l=map(int,input().split())
L=l[0]+l[1]
R=l[2]+l[3]
if R==L:
print('Balanced')
elif R>L:
print('Right')
else:
print('Left') |
s102372369 | p03477 | u177132624 | 1552406013 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 211 | N,A,B = map(int,input().split())
mass = 0
for i in range(1,N+1):
a=i//1000
b=(i-a*1000)//100
c=(i-a*1000-b*100)//10
d=i-a*1000-b*100-c*10
if A <= (a+b+c+d) <= B:
mass += i
print(mass) |
s857538000 | p03477 | u543954314 | 1551970348 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 83 | import math
a, b = map(int, input().split())
print(max(1+int(math.log2(b//a)), 0))
|
s881230509 | p03477 | u242393873 | 1551769399 | Python | Python (3.4.3) | py | Runtime Error | 21 | 2940 | 143 | n, a, b = map(int, input().split())
ans =0
for i in range(n+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += i
print(ans) |
s563739840 | p03477 | u192588826 | 1551652601 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 281 | n,a,b = map(int,input().split())
count = 0
for i in range(n+1):
if i == 10000 and a == 1:
count += 1
break
judge = i%10 + (i%100 - i%10)//10 + (i%1000 - i%100)//100 + (i%10000 - i%1000)//1000
if judge >= a and judge <= b:
count += i
print(count) |
s495067639 | p03477 | u815659544 | 1551216773 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 166 | n,a,b = map(int, input().split())
cursum = 0
for x in range(1, n+1):
y = sum(map(int, str(x)))
if a <= sum and sum <= b:
cursum += x
print(cursum)
|
s249006069 | p03477 | u815659544 | 1551216508 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 166 | l = list(map(int, input().split()))
cursum = 0
for n in range(1, l[0]+1):
x = sum(map(int, str(n)))
if a <= x and x <= b:
cursum += n
print(cursum) |
s859478636 | p03477 | u815659544 | 1551216401 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 174 | l = list(map(int, input().split()))
cursum = 0
for n in range(1, l[0]+1):
x = sum(list(map(int, str(n))))
if a <= x and x <= b:
cursum += n
print(cursum)
|
s562495968 | p03477 | u815659544 | 1551216305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | l = list(map(int, input().split()))
cursum = 0
for n in range(1, l[0]+1):
x = sum(list(map(int, list(n))))
if a <= x and x <= b:
cursum += n
print(cursum) |
s695414083 | p03477 | u815659544 | 1551216258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | l = list(map(int, input().split()))
cursum = 0
for n in range(1, l[0]+1):
if a <= sum(list(map(int, list(n)))) <= b:
cursum += n
print(cursum) |
s695518582 | p03477 | u282228874 | 1550803004 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 211 | n,a,b = map(int,input().split())
ans = 0
for i in range(n+1):
good_num = 0
for j in str(i) :
good_num += int(j)
if a <= good_num <= b:
ans += i
print(ans) |
s882455803 | p03477 | u007550226 | 1550799530 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 123 | A,B,C,D = map(int,input().split())
if A+B = C+D:
print('Balanced')
elif A+B > C+D:
print('Left')
else:
print('Right') |
s352137486 | p03477 | u449555432 | 1550663786 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 94 | a,b,c,d=map(int,input().split());print('Left' if a+b>c+d elif a+b<c+d 'Right' else 'Balanced') |
s423108596 | p03477 | u030626972 | 1550116667 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 319 | n,a,b = map(int, input().split())
#該当する数を代入していく
sum = 0
#各桁の和をいれる
tmp_sum = 0
for i in range(1, n+1):
tmp_sum = 0
tmp = i
for j in range(4):
tmp_sum += tmp % 10
tmp = tmp // 10
if( (tmp_sum>=a) and (tmp_sum<=b) ):
sum += i
print(sum) |
s263813537 | p03477 | u397563544 | 1549869080 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 136 | n,a,b = int(input().split())
ans = 0
for i in range(n+1):
if a<= sum(list(map(int,list(str(i))))) <= b:
ans += i:
print(ans) |
s630066049 | p03477 | u686283589 | 1549764952 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 212 | if __name__ == '__main__':
n, a, b = map(int, input().split())
count = 0
for i in range(n+1):
x = sum(map(int, str(i)))
if a <= x <= b:
count = count + i
print(count) |
s453149210 | p03477 | u823871776 | 1549478347 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 287 | n,a,b = list(map(int,input().split()))
num_sum = 0
for ni in range(n+1):
d1 = ni%10
d2 = (ni//10)%10
d3 = (ni//100)%10
d4 = (ni//1000)%10
d5 = (ni//10000)%10
digit_sum = d1 + d2 + d3 + d4 + d5
if digit_sum >= a and digit_sum <= b: num_sum += ni
print(num_sum) |
s660567027 | p03477 | u948986080 | 1546982919 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 38640 | 144 | n=map(int,int(input().split(" ")))
if n[0]+n[1]>n[2]+n[3]:
print("Left")
elif n[0]+n[1]==n[2]+n[3]:
print("Balaced")
else:
print("Right")
|
s768173853 | p03477 | u948986080 | 1546982900 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 126 | a,b,c,d=map(int,int(input().split(" ")))
if a+b>c+d:
print("Left")
elif a+b==c+d:
print("Balaced")
else:
print("Right")
|
s642098098 | p03477 | u948986080 | 1546982802 | Python | PyPy3 (2.4.0) | py | Runtime Error | 182 | 38512 | 144 | n=map(int,int(input().split(" ")))
if n[0]+n[1]>n[2]+n[3]:
print("Left")
elif n[0]+n[1]==n[2]+n[3]:
print("Balaced")
else:
print("Right")
|
s666656550 | p03477 | u948986080 | 1546982767 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38256 | 147 | n=map(int,int(input().split(" ")))
if n[0]+n[1]>n[2]+n[3]:
print("Left")
else if n[0]+n[1]==n[2]+n[3]:
print("Balaced")
else:
print("Right")
|
s998634605 | p03477 | u948986080 | 1546982741 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38256 | 146 | n=map(int,int(input().split(" ")))
if n[0]+n[1]>n[2]+n[3]:
print("Left")
elseif n[0]+n[1]==n[2]+n[3]:
print("Balaced")
else:
print("Right")
|
s344984335 | p03477 | u740284863 | 1546313798 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | A,B,C,D = map(int,input().split())
if A+B > C+D:
print("Left")
elif A+B == C+D:
print("Blanced")
else:
print("Right") |
s623421599 | p03477 | u740284863 | 1546309381 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 125 | A,B,C,D = map(int,input().split())
if A+B > C+D:
print("Left")
elif A+B == C+D:
print("Blanced")
else:
print("Right") |
s140420240 | p03477 | u216631280 | 1546148748 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 7 | 1 7 6 4 |
s624856614 | p03477 | u370867568 | 1545965070 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 217 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n + 1):
num = i
total = 0
while num != 0:
total += num % 10
num //= 10
if a <= total <= b:
ans += i
print(ans)
|
s460295673 | p03477 | u371467115 | 1545348114 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | a,b,c,d=map(int,input().spilt())
if a+b==c+d:
print("Balanced")
elif a+b>c+d:
print("Left")
elif a+b<c+d:
print("Right")
|
s939850156 | p03477 | u371467115 | 1545348041 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 141 | a,b,c,d=map(int,input().spilt())
if a+b==c+d:
print("Balanced")
elif (a+b)>(c+d):
print("Left")
elif (a+b)<(c+d):
print("Right")
|
s522537124 | p03477 | u371467115 | 1545347928 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 129 | a,b,c,d=map(int,input().spilt())
if a+b==c+d:
print("Balanced")
elif (a+b)>(c+d):
print("Left")
else:
print("Right")
|
s034552863 | p03477 | u371467115 | 1545347322 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 125 | a,b,c,d=map(int,input().spilt())
if a+b==c+d:
print("Balanced")
elif (a+b)>(c+d):
print("a+b")
else:
print("c+d") |
s481286238 | p03477 | u928784113 | 1544295598 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 152 | # -*- coding: utf-8 -*-
A, B, C, D =map(int,input().split())
if (A+B) > (C+D):
print(Left)
elif (A+B) == (C+D):
print(Balanced)
else:
print(Right) |
s568081219 | p03477 | u933214067 | 1543273830 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 146 | x =input().split()
for i in range(4): x[i] = int(x[i])
e =a+b
f =c+d
if e > f:
print("Left")
elif e<f:
print("Right")
else : print("Balanced") |
s825348010 | p03477 | u129978636 | 1542827595 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 83 | A,B,C,D=map(int,input().split())
print([Balanced,Left,Right][(C+D<A+B)-(C+D>A+B)])
|
s039109722 | p03477 | u129978636 | 1542827214 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | A, B, C, D = map( int, input().split())
L = A + B
R = C + D
print(["Balance","Left","Right"][R<L - R>L]
|
s406107855 | p03477 | u129978636 | 1542826708 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 113 | A, B, C, D = map( int, input()split())
L = A + B
R = C + D
if( L < R):
print('Right')
else:
print('Left') |
s716628201 | p03477 | u052332717 | 1542734894 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | a,b,c,d = map(int,input().split())
x = a+b
y = c+d
if x>:y
print('Left')
elif x == y:
print('Balanced')
else:
print('Right') |
s260408869 | p03477 | u920299620 | 1541884140 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 346 | #include <cstdio>
#include <vector>
#include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin >> a >> b >> c >> d;
if(a+b < c+d){
cout << "Right" << endl;
return 0;
}
else if( a+b > c+d){
cout << "Left" << endl;
return 0;
}
else{
cout << "... |
s980017419 | p03477 | u643840641 | 1541655509 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a,b,c,d=map(int, input().split())
x=a+b-c-d
if x>0:
print(Left)
elif x<0:
print(Right)
else:
print(Balanced) |
s331809616 | p03477 | u643840641 | 1541655478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c,d=map(int, input())
x=a+b-c-d
if x>0:
print(Left)
elif x<0:
print(Right)
else:
print(Balanced) |
s764074839 | p03477 | u984870883 | 1541469698 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 223 | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 4 21:46:51 2018
@author: sk
"""
a,b, c,d = map(int, input().split())
s1=a+b
s2=c+d
if s1>s2:
print("Left")
elseif s1==s2:
print("Balanced")
else:
print("Right")
|
s619106276 | p03477 | u432805419 | 1541349331 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | a = list(map(int,input().split()))
l = a[0] + a[1]
r = a[2] + a[3]
if l > r:
print("Left")
elif l = r:
print("Balanced")
else:
print("Right") |
s824969603 | p03477 | u595539169 | 1540958763 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 299 | def sumDigit(n):
sum = 0
while(n > 0):
sum += n % 10
n //= 10
return sum
n = int(input())
a = int(input())
b = int(input())
total = 0
for i in range(1, n+1):
sum = sumDigit(i)
if(a<= sumDigit(i) <=b):
total += i
print(total)
|
s519989499 | p03477 | u500279510 | 1539590239 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 145 | A, B, C, D = map(int,input())
ab = A + B
cd = C + D
if ab == cd:
print('Balanced')
elif ab > cd:
print('Left')
else:
print('Right') |
s685138517 | p03477 | u073775598 | 1539524513 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | X, Y=map(int,input().split())
num_2=Y/X
count=1
if X==1 and Y>=550000000000000000:
print(0/0)
while num_2>=2:
num_2=num_2/2
count+=1
print(count) |
s455786097 | p03477 | u073775598 | 1539524473 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | X, Y=map(int,input().split())
num_2=Y/X
count=1
if X==1 and Y>=575000000000000000:
print(0/0)
while num_2>=2:
num_2=num_2/2
count+=1
print(count) |
s379876345 | p03477 | u518556834 | 1539219788 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 123 | a,b,c,d = map(int,input().split())
if a+b > c+d:
print("Left")
elif a+b = c+d:
print("Balanced")
else:
print("Right") |
s182347733 | p03477 | u074445770 | 1538977369 | Python | Python (3.4.3) | py | Runtime Error | 21 | 2940 | 125 | a,b,c,d=map(int(),input().split())
if a+b>c+d:
print("Left")
if a+b==c+d:
print("Balanced")
else:
print("Right")
|
s238673056 | p03477 | u063052907 | 1538872391 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 |
A, B, C, D = map(int, input().split())
print("Balanced" if A+B == C+D else "Left" if |
s268798173 | p03477 | u601522790 | 1538075831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 241 | a,b,c = map(int,input().split())
if a == b:
print(c)
elif a == c:
print(b)
elif b == c:
print(a)
a,b,c,d = map(int,input().split())
l = a + b
r = c + d
if l > r:
print("Left")
elif l < r:
print("Right")
elif l == r:
print("Balanced") |
s550928155 | p03477 | u462538484 | 1537665643 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 133 | a, b, c, d = map(int, input().split())
l = a + b
r = c + d
print("Left" if l > r else "Balanced" if l = r else "Right" if l < r else) |
s873907994 | p03477 | u462538484 | 1537665491 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | a, b, c, d = map(int, input().split())
l = a + b
r = c + d
print("Left" if l > r else "Balanced" if l = r else "Right") |
s946523402 | p03477 | u462538484 | 1537665411 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a, b, c, d = map(int, input().split())
l = a + b
r = c + d
print("Left" if l > r "Balanced" if l = r else "Right") |
s933942920 | p03477 | u388323466 | 1537644131 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 286 | N,A,B = map(int, input().split())
arr = []
ans = 0
for i in range(N):
y = i
while y >= 1:
arr.append(int(i % 10))
i = int(i/10)
if sum(arr)>= A and sum(arr) <= B:
ans += sum(arr)
arr = []
else:
arr = []
ptint(ans)
|
s804962926 | p03477 | u971256474 | 1536953269 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 95 | #include<bits/stdc++.h>
using namespace std;
int main(){
int M;
cin>>M;
cout<<48-M<<endl;
} |
s591114327 | p03477 | u362560965 | 1536106445 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | A, B, C, D = map(input().split())
if A + B > C + D:
print("Left")
elif A + B == C + D:
print("Balanced")
else:
print("Right")
|
s091086446 | p03477 | u094565093 | 1536069378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | if A+B>C+D:
print("Left")
elif A+B==C+D:
print("Balanced")
else:
print("Right") |
s409287484 | p03477 | u317440328 | 1534621550 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | A,B,C,D=map(int,input().split())
if(A+B>C+D):
print("Left")
elif(A+B==C+D):
print("Balanced")
else:
ptint("Right") |
s036607244 | p03477 | u317440328 | 1534621502 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | A,B,C,D=map(int,input().split())
if(A+B>C+D):
print("Left")
elif(A+B==C+D):
print("Balanced")
else:
ptinr("Right") |
s207105971 | p03477 | u740284863 | 1533943688 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | N = int(input())
A = int(input())
B = int(input())
i = 0
for k in range(N +1):
if A <= sum( [int(s) for s in str(k)] ) <= B:
i = i+1
print(i) |
s984720994 | p03477 | u528748570 | 1533894118 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 215 | Weiht = list(map(int, input().split()))
if (Weight[0] + Weight[1]) > (Weight[2] + Weight[3]):
print("Left")
elif (Weight[0] + Weight[1]) < (Weight[2] + Weight[3]):
print("Right")
else:
print("Balanced")
|
s170885939 | p03477 | u048945791 | 1533209618 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | a, b, c, d = map(int, input()split())
if a + b > c + d:
print("Left")
elif a + b == c + d:
print("Balanced")
else:
print("Right") |
s522286814 | p03477 | u690536347 | 1533047218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a,b,c,d=map(int,input().split())
if a+b>c+d:print("Left")
elif a+b==c+d:print("Balanced")
else print("Right") |
s753542960 | p03477 | u434500430 | 1532635320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 143 | A, B, C, D = map(int, input().split())
lw = A+B
rw = C+D
if lw > rw:
print(Left)
elif lw < rw:
print(Right)
else:
print(Balanced) |
s300708038 | p03477 | u115682115 | 1532144433 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 138 | A,B,C,D =map(int,input().split())
if A+B >C+D:
print('Left')
elif A+B ==C+D:
print('Balanced')
else A+B <=C+D:
print('Right') |
s037038201 | p03477 | u883792993 | 1531424584 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | A,B,C,D=list(map(int,input().split()))
if A+B>C+D:
print("Left")
elif A+B<C+D:
print("Right)
else:
print("Balanced") |
s787200203 | p03477 | u897436032 | 1530042568 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 422 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10
el... |
s803200087 | p03477 | u897436032 | 1530042468 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 1667 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10
els... |
s860112334 | p03477 | u897436032 | 1530042390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 414 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10
els... |
s921169871 | p03477 | u897436032 | 1530042236 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 414 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10
els... |
s746119477 | p03477 | u897436032 | 1530041952 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 426 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i//10 + i%10
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%10... |
s341944638 | p03477 | u897436032 | 1530041836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 428 | N,A,B = map(int,input().split())
output = 0
for i in range(1,N+1):
# set condition for i < 10^4
if i < 10:
digitsum = i//10 + i%10
elif i<100:
digitsum = i//10+i%10
elif i<1000:
digitsum = i//100+(i%100)//10+(i%100)%10
elif i<10000:
digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%... |
s721618017 | p03477 | u314057689 | 1529276353 | Python | PyPy3 (2.4.0) | py | Runtime Error | 163 | 38512 | 72 | import math
x, y= map(int, input().split())
print(int(math.log2(y/x)+1)) |
s701223652 | p03477 | u982762220 | 1528995139 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 147 | l, r = int(input()) + int(input()), int(input()) + int(input())
if l > r:
print('Left')
elif r < l:
print('Right')
else:
print('Balanced')
|
s704079449 | p03477 | u153729035 | 1528944332 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | n,a,b=list(map(int,input().split()))
sum([i for i in range(1,n+1) if a<=sum([int(c) for c in str(i)])<=b]) |
s383023533 | p03477 | u787562674 | 1527817761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | A, B, C, D = map(int, input().split())
if A + B > C + D:
print("Left")
elif A + B = C + D:
print("Balanced")
else:
print("Right") |
s362513096 | p03477 | u203995947 | 1526590444 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | a, b, c, d = map(int, input().split(' '))
l = a + b
r = c + d
if l > r:
print('Left')
elsif l = r:
print('Balanced')
else:
print('Right') |
s406057145 | p03477 | u203995947 | 1526590316 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | a, b, c, d = map(int, input().split(' '))
r = a + b
l = c + d
if l > r:
print('Left')
elsif l = r:
print('Balanced')
else:
print('Right')
|
s192800787 | p03477 | u203995947 | 1526590176 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | a, b, c, d = map(int, input().split(' '))
r = a + b
l = c + d
if l > r:
print('left')
elsif l = r:
print('Balanced')
else:
print('Right') |
s485898151 | p03477 | u503901534 | 1524981345 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | a,b,c,d = map(int,input().split())
if a+ b < c + d:
print('Left')
elif a + b = c + d:
print('Balanced')
else:
print('Right') |
s050482741 | p03477 | u314219654 | 1524688225 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 262 | import std.stdio, std.string, std.conv;
void main(){
auto ip = readln.split.to!(int[]);
if(ip[0] + ip[1] > ip[2] + ip[3]){
writeln("Left");
}else if(ip[0] + ip[1] < ip[2] + ip[3]){
writeln("Right");
}else{
writeln("Balanced");
}
} |
s376042058 | p03477 | u591295155 | 1523913249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a,b=map(int,input().split())
print((a+b+1)//2) |
s874266961 | p03477 | u027622859 | 1522162929 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 180 | n, a, b = map(int, input().split())
total = 0
for x in range(n+1):
X = [int(x) for x in list(str(x))]
sum_x = sum(X)
if a <= sum_x <= b:
total += x
print(total) |
s295055775 | p03477 | u027622859 | 1521945703 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 134 | A, B, C, D = map(int, input())
if (A+B) > (C+D):
print("Left")
elif (A+B) < (C+D):
print("Right")
else:
print("Balanced") |
s822284677 | p03477 | u181012033 | 1521651543 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 302 |
def find_sum_digits(n):
sum = 0
while (n>0):
sum += (n % 10)
n /= 10
print (n)
return sum
n,a,b = map(int,input().split(" "))
print(n)
total = 0
for i in range(n + 1):
print (i)
ans = find_sum_digits(i)
if a <= ans <= b:
total += i
print(total) |
s515557317 | p03477 | u181012033 | 1521651438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 144 | n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += i
print(ans) |
s007926691 | p03477 | u181012033 | 1521651387 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += i
print(ans) |
s170523903 | p03477 | u127856129 | 1521403096 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | a,b,c,d=map(int,input().split())
e=a+b
f=c+d
if e>f:
print("Left")
elif e=f:
print("Balanced")
else:
print("Right") |
s484991428 | p03477 | u941884460 | 1520747718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 | X,Y=map(int,input().split())
dev = int(Y/X)
work = 1
for i in range(74):
tmp = pow(2,i)
if tmp <= dev and dev < tmp*2:
work +=i
break
print(work) |
s432161371 | p03477 | u941884460 | 1520747229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | X,Y=map(int,input().split())
dev = int(Y/X)
work = 1
for i in range(108):
tmp = pow(2,i)
if tmp <= dev and dev < tmp*2:
work +=i
break
print(work) |
s956863132 | p03477 | u702582248 | 1520656656 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 140 | a=map(input().split(), int)
r = next(a)
r += next(a)
r -= next(a)
r -= next(a)
print('Left' if r > 0 else 'Balanced' if r == 0 else 'Right') |
s772685579 | p03477 | u803647747 | 1519195307 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 143 | A, B, C, D= [int(input() )for _ in range(4)]
D = A+B
E = C+D
if D>E:
print("Left")
elif D<E:
print("Right")
else:
print("Balanced") |
s353306655 | p03477 | u803647747 | 1519195182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 147 | A, B, C, D= [int(input() )for _ in range(4)]
if (A+B )> (C+D):
print("Left")
elif (A+B )< (C+D):
print("Right")
else:
print("Balanced") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.