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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s849089887 | p03502 | u477343425 | 1576631229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | s = input()
sum_of_digits = sum(map(int, s))
if (int)s % sum_of_digits:
print('Yes')
else:
print('No') |
s536041257 | p03502 | u103902792 | 1576537410 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | n = input()
x = int(input())
fx = 0
for i in n:
fx += int(i)
print('Yes' if x%fx ==0 else 'No') |
s091608447 | p03502 | u477343425 | 1576363259 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | x = input()
sum_of_digits = sum(map(int, x))
check = (int)x % sum_of_digits
print('No' if check else 'Yes') |
s981331277 | p03502 | u477343425 | 1576363163 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | x = input()
n = (int)x
sum_of_digits = sum(map(int, x))
check = n % sum_of_digits
print('No' if check else 'Yes')
|
s671801975 | p03502 | u353919145 | 1575270438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 205 | N=int(input())
F=[int(input().replace(' ','')) for i in range(N)]
P=[list(map(int,input().split())) for i in range(N)]
print(max(sum([p[bin(f&i).count('1')] for f,p in zip(F,P)]) for i in range(1,2**10)))
|
s868856048 | p03502 | u187109555 | 1573964170 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | X = int(input())
X_ = X
x_sum = 0
while True:
if (X_ // 10) ==0 :
break
else:
x_sum += X_ % 10
X_ = X_ // 10
if X % x_sum == 0:
print("Yes")
else:
print("No") |
s480225123 | p03502 | u187109555 | 1573964121 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | X = int(input())
X_ = X
x_sum = 0
while True:
if (X_ // 10) ==0 :
break
else:
x_sum += X_ % 10
X_ = X_ // 10
if X % x_sum == 0:
print("Yes")
else:
print("No") |
s358479841 | p03502 | u840310460 | 1572815448 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 102 | N = int(inout)
L = [int(j) for j in str(N)]
if N % sum(L) == 0:
print("Yes")
else:
print("No") |
s023764748 | p03502 | u089376182 | 1571722013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | n = input()
print('No' int(n) % sum(map(int, n)) else 'Yes') |
s368786276 | p03502 | u780354103 | 1570920898 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | N = int(input())
if N % sum(str(N)) == 0:
print("Yes")
else:
print("No") |
s974839442 | p03502 | u671650998 | 1570424856 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | n = input()
print('Yes') if n % sum(map(int, n)) == 0 else print('No') |
s145687210 | p03502 | u503111914 | 1569810003 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 108 | N = input()
X = 0
for i in range(len(N)):
X += int(N[i])
if N % X == 0:
print("Yes")
else:
print("No") |
s315532364 | p03502 | u385244248 | 1569647804 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | N = int(input())
if N%sum(list(str(N))) == 0:
print("Yes")
else:
print("No") |
s294565301 | p03502 | u865741247 | 1569380885 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38512 | 98 | S = input()
q = 0
for i in list(S):
q += i
if int(S)% q == 0:
print("Yes")
else:
print("No") |
s915431398 | p03502 | u396391104 | 1569187476 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 82 | n = int(input())
m = [int(c) for c in n]
print("No") if n%sum(m) else print("Yes") |
s779850756 | p03502 | u923279197 | 1569035130 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38384 | 137 | def solve(n):
m = 0
while n > 0:
m += n%10
n //= 10
if m%n != 0:print("No")
else:print("Yes")
n = int(input())
solve(n)
|
s992697340 | p03502 | u923279197 | 1569035073 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38384 | 131 | def solve(n):
m = 0
while n > 0:
m += n%10
n //= 10
if m%n:print("No")
else:print("Yes")
n = int(input())
solve(n) |
s879112110 | p03502 | u296518383 | 1568840448 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | N=int(input())
F=sum(list(str(N)))
ans="Yes"
if N%F:
ans="No"
print(ans) |
s378302591 | p03502 | u482808969 | 1568661250 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 82 | x = input()
fx = sum(map(int, input()))
print("Yes" if int(x) % fx == 0 else "No") |
s011611648 | p03502 | u521866787 | 1568257127 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | n=int(input())
print('Yes' if n%sum(map(int,n))==0 else 'No') |
s638663379 | p03502 | u580362735 | 1568138308 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | N = list(input())
f_N = 0
[f_N += int(i) for i in N]
print('Yes') if int(''.join(N))%f_N == 0 else print('No') |
s012181476 | p03502 | u464912173 | 1567658242 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | a = input()
x = 0
for i in range(len(N)):
x += int(N[i])
print("Yes" if int(a) % x == 0 else "No") |
s021815773 | p03502 | u317710033 | 1567541999 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | a = input()
number = [int(s) for s in a]
total = sum(number)
if a % total ==0:
print('Yes')
else:
print('No') |
s042738298 | p03502 | u733738237 | 1567535291 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | N = input()
sum=0
for i in range(len(N)):
sum += int(i)
print('Yes' if int(N) // sum == 0 else 'No') |
s237224261 | p03502 | u733738237 | 1567535223 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 101 | N = input()
sum=0
for i in range(int(N)):
sum += int(i)
print('Yes' if int(N) // sum == 0 else 'No') |
s810713867 | p03502 | u733738237 | 1567535155 | Python | PyPy3 (2.4.0) | py | Runtime Error | 772 | 40044 | 101 | N = input()
sum=0
for i in range(int(N)):
sum += int(i)
print('Yes' if int(N) // sum == 0 else 'No') |
s863609331 | p03502 | u317710033 | 1567468478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a = int(input())
number = a.split()
total = sum(number)
if a % total == 0:
print('Yes')
else:
print('No') |
s192672356 | p03502 | u252828980 | 1567384989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 164 | n = input()
n1 = list(input())
n1 = [int(x) for x in n]
num =0
for i in range(len(n1)):
num += int(n1[i])
if int(n)%num == 0:
print("Yes")
else:
print("No") |
s677572185 | p03502 | u252828980 | 1567384868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 164 | n = input()
n1 = list(input())
n1 = [int(x) for x in n]
num =0
for i in range(len(n1)):
num += int(n1[i])
if int(n)%num == 0:
print("Yes")
else:
print("No") |
s594538904 | p03502 | u252828980 | 1567384438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | n = input()
for i in range(len(n)):
num += int(n[i])
if n%num == 0:
print("Yes")
else:
print("No") |
s575890086 | p03502 | u455533363 | 1567012011 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | n = int(input())
nn = n
while n>0:
sum+=n%10
n= (n-n%10)/10
if nn%sum==0:
print("Yes")
else:
print("No") |
s557257094 | p03502 | u207464563 | 1567001718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | S = input()
N = int(input())
H = list(input())
harshad = 0
for i in H:
harshad += int(i)
if N % harshad == 0:
print("Yes")
else:
print("No")
|
s688321697 | p03502 | u264265458 | 1566851504 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 137 | a=int(input())
b=a
c=0
for i in range(len(str(a))):
c+=b//10**(len(str(a))-i)
b-=10**(len(str(a))-i)
print("Yes" if a%c==0 else "No") |
s062477441 | p03502 | u302292660 | 1566767792 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 104 | n = input()
wa = 0
for i in range(len(n)):
wa += int(n[i])
if n%wa:
print("No")
else:
print("Yes") |
s942595703 | p03502 | u798316285 | 1566756092 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 62 | n=int(input())
f=sum(map(int,n))
print("No" if n%f else "Yes") |
s169073829 | p03502 | u045408189 | 1566750872 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | n=map(int,input())
print('Yes' if sum(n)%n==0 else 'No') |
s217028938 | p03502 | u371530330 | 1566422978 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 98 | n = input()
f = list(n)
if int(n)%(int(f[0])+int(f[1])) == 0 :
print('Yes')
else:
print('No') |
s221005677 | p03502 | u260036763 | 1566000041 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | n = int(input())
m = n
sum = 0
while m!= 0:
sum += m % 10
m //= 10
if sum % n == 0:
print(Yes)
else:
print(No) |
s443530251 | p03502 | u181195295 | 1565924237 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 181 | def findSUM(n):
sum = 0
while( n > 0 ):
sum += n % 10
n //= 10
return sum
N = int(input().split())
f = findSUM(N)
if (N % f == 0):
print("Yes")
else:
print("No") |
s977618068 | p03502 | u318165580 | 1565908591 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 71 | a=int(input())
b=sum(map(int,a))
print("Yes" if int(a)%b==0 else "No")
|
s669687843 | p03502 | u318165580 | 1565908495 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | a=int(input())
b=sum(map(int,a))
print("Yes" if a%b==0 else "No") |
s470437583 | p03502 | u791527495 | 1565893734 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | )N = int(input())
fx = N
total = 0
while fx > 0:
total += fx % 10
fx // 10
if N % fx == 0:
print('Yes')
else:
print('No') |
s552252837 | p03502 | u256464928 | 1565842500 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | n = input()
print("Yes" if n%sum(map(int,n))==0 else "No")
|
s532176705 | p03502 | u256464928 | 1565842385 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | n = int(input())
print("Yes" if n%sum(map(int,n))==0 else "No")
|
s226817639 | p03502 | u256464928 | 1565842293 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 64 | n = int(input())
print("Yes" if sum(map(int,n))%n==0 else "No")
|
s910170642 | p03502 | u121192152 | 1565500002 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | N = int(input())
s = sum(map(int,list(N)))
if N % s == 0:
print("Yes")
else:
print("No") |
s144667693 | p03502 | u121192152 | 1565499909 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | N = int(input())
s = sum(list(N))
if N % s == 0:
print("Yes")
else:
print("No") |
s822050714 | p03502 | u385309449 | 1565331540 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | x = input()
if int(x) % (int(x[0])+int(x[1])) == 0:
print('Yes')
else:
print('No') |
s165086676 | p03502 | u037221289 | 1565236504 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | S = input()
N = int(S)
X = 0
for i in len(S):
res = S[i]
X += int(res)
if N % X == 0:
print('Yes')
else:
print('No')
|
s479818934 | p03502 | u626337957 | 1564357760 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | X = input()
sum_c = 0
for char in X:
sum_c += int(char)
if X%sum_c == 0:
print('Yes')
else:
print('No') |
s583491034 | p03502 | u952022797 | 1564077761 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38256 | 697 | # -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
... |
s352297096 | p03502 | u952022797 | 1564077731 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38896 | 695 | # -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
... |
s836710587 | p03502 | u918009437 | 1562988821 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 226 | def f(N):
res = 0
while N//10 >= 1:
res += N % 10
N = N // 10
return res
if __name__ == '__main__':
N = int(input())
if N % f(N) == 0:
print('Yes')
else:
print('No')
|
s019006945 | p03502 | u918009437 | 1562988733 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 223 | def f(N):
res = 0
while N//10 > 0:
res += N % 10
N = N // 10
return res
if __name__ == '__main__':
N = int(input())
if N % f(N) == 0:
print('Yes')
else:
print('No') |
s477374860 | p03502 | u918009437 | 1562988020 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 | def f(N):
res = 0
while N//10 > 0:
res += N % 10
N = N // 10
return res
if __name__ == '__main__':
N = int(input())
if N % f(N) == 0:
print('Yes')
else:
print('No')
|
s403398346 | p03502 | u539517139 | 1562173080 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | n=input()
i=int(n)
m=sum(list(n))
print('Yes' if i%m==0 else 'No') |
s102965028 | p03502 | u448655578 | 1561701973 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | n = int(input())
N = list(n)
sum = 0
for i in range(len(N)):
sum += N[i]
if n % sum == 0:
print("Yes")
else:
print("No")
|
s300174491 | p03502 | u448655578 | 1561701906 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | n = int(input())
N = list(int(input()))
sum = 0
for i in range(len(N)):
sum += N[i]
if n % sum == 0:
print("Yes")
else:
print("No") |
s169946820 | p03502 | u497046426 | 1561183953 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | X = input()
print('Yes' if X % sum(map(int, X)) == 0 else 'No') |
s989397591 | p03502 | u645878234 | 1560545043 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 300 | # coding: utf-8
data = input().split(" ")
N = int(data[0])
A = int(data[1])
B = int(data[2])
total_sum = 0
for i in range(N+1):
sum = 0
tmp = i
while tmp > 0:
sum += tmp % 10;
tmp = int(tmp/10)
if sum >= A and sum <= B:
total_sum += i
print(total_sum)
|
s161895580 | p03502 | u016622494 | 1560544850 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | A = input()
for i in range(A)
B = int(A)
if A % B == 0 :
print("Yes")
else:
print("No") |
s489633050 | p03502 | u193598069 | 1560386150 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | N = input()
sum = 0
tmp = N
while (N >= 1):
sum += N % 10
N /= 10
if tmp % sum == 0:
print ('Yes')
else:
print('No')
|
s092304221 | p03502 | u102461423 | 1560321678 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | N = int(input())
def F(x):
if x < 10:
return x
return x%10 + F(x//10)
answer = 'YES' if x%F(N) == 0 else 'NO'
print(answer) |
s364496982 | p03502 | u102461423 | 1560321649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | N = int(input())
def F(x):
if x < 10:
return x
return x%10 + F(x//10)
answer = 'YES' if x%F(x) == 0 else 'NO'
print(answer) |
s416923671 | p03502 | u584529823 | 1560099196 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | N = int(input())
sum = 0
tmp = N
while tmp > 0:
sum += tmp % 10
tmp =// 10
if N % sum == 0:
print("Yes")
else:
print("No") |
s284526206 | p03502 | u663014688 | 1560093291 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | N = int(input())
N_str = str(N)
N_keta = N_str[0] + N_str[1]
N_keta = int(N_keta)
if N_keta % N == 0:
print('Yes')
else:
print('No') |
s045688905 | p03502 | u677393869 | 1559359854 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N=int(input())
n=len(str(N))
ans=0
for i in range(n):
b=10**(n-i)
a=N//b
ans+=a
if 12%ans==0:
print("Yes")
else:
print("No")
|
s846706748 | p03502 | u223646582 | 1559314364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | N=input()
print('Yes' if int(N)%sum(N)==0 else 'No')
|
s788307005 | p03502 | u399721252 | 1559065827 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | n = input()
n1 = int(n)
n2 = int(sum(list(n)))
if n1 % n2 == 0:
print("YES")
else:
print("No") |
s450163147 | p03502 | u405256066 | 1559022548 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | from sys import stdin
N=(stdin.readline().rstrip())
if sum(list(map(int,list(N)))) % N == 0:
print("Yes")
else:
print("No") |
s766793657 | p03502 | u266874640 | 1558808764 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | N = input()
sum = 0
for i in N:
sum += i
if N % sum == 0:
print("Yes")
else:
print("No")
|
s548615279 | p03502 | u644778646 | 1558115376 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38384 | 124 | N = int(input())
s = 0
sN = str(N)
for i in range(len(sN)):
s += sN[i]
if N % s == 0:
print("Yes")
else:
print("No") |
s045653604 | p03502 | u856169020 | 1557169463 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | N = str(input())
L = list(N)
f = 0
for l in L:
f += l
if (int(N) % f) == 0:
print("Yes")
else:
print("No") |
s525920128 | p03502 | u020373088 | 1557100406 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | n = int(input())
fx = sum([int(i) for i in list(n)])
if n % fx == 0:
print("Yes")
else:
print("No") |
s929048847 | p03502 | u819208902 | 1555792364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 256 | def sum_digits(n):
r = 0
while n / 10 > 0:
r += n % 10
n = math.floor(n/10)
return r
if __name__ == '__main__':
n = int(input())
s = sum_digits(n)
if n % s == 0:
print('Yes')
else:
print('No')
|
s918523188 | p03502 | u819208902 | 1555792285 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 269 | def sum_digits(n):
r = 0
while n / 10 > 0:
r += n % 10
n = math.floor(n/10)
return r
if __name__ == '__main__':
n = int(input())
s = sum_digits(n)
print(s)
if n % s == 0:
print('Yes')
else:
print('No')
|
s181792210 | p03502 | u819208902 | 1555792012 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 246 | def sum_digits(n):
r = 0
while n / 10 >= 1:
r += n % 10
n /= 10
return r
if __name__ == '__main__':
n = int(input())
s = sum_digits(n)
if n % s == 0:
print('Yes')
else:
print('No')
|
s455202254 | p03502 | u001687078 | 1553956006 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | N = int(input())
temp = N
while temp > 0:
test += temp %10
temp //= 10
if N % test == 0:
print('Yes')
else:
print('No') |
s818269426 | p03502 | u001687078 | 1553955908 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 127 | N = int(input())
temp = N
while temp > 0:
test += temp %10
temp //= 10
if N % test == 0:
print('Yes')
else:
print('No') |
s178469335 | p03502 | u623819879 | 1553881248 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38384 | 119 | import time
n=int(input())
x=(n%15)*0.001*100
a=0.037
#time.sleep(x+a)
ls=[for i in range((n%100)*10**6)]
print('Yes') |
s208997463 | p03502 | u366959492 | 1553661020 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 91 | n=int(input().split())
l=list(n)
f=sum(l)
if n%f==0:
print("Yes")
else:
print("No") |
s265195878 | p03502 | u720483676 | 1553648208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | n=input();print("YNeos"[int(n)%(int(n[0])+int(n[1]))!=0::2]) |
s094760008 | p03502 | u170324846 | 1553480273 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 113 | N = input()
S = 0
for i in range(len(N)):
S += int(S[i])
if int(N) % S == 0:
print("Yes")
else:
print("No") |
s117361917 | p03502 | u280512618 | 1552917247 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | def f(x):
if x <= 0:
return 0
return (x%10)+f(x//10)
n = int(input)
fx = f(n)
ans = "Yes" if n % fx == 0 else "No"
print (ans) |
s650987070 | p03502 | u362560965 | 1552093418 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 142 | N = input()
Nint = int(input())
fN = 0
for i in range(len(N)):
fN += int(N[i])
if Nint % fN == 0:
print("Yes")
else:
print("No") |
s902842799 | p03502 | u375616706 | 1552017911 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 210 | # python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
N = input()[:-1]
dig = 0
for c in N:
dig += int(c)
if N % dig == 0:
print("Yes")
else:
print("No")
|
s644440884 | p03502 | u209918867 | 1551868300 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | def ds(n):
return sum(map(int,str(n)))
print(n%ds(n)==0) |
s439554957 | p03502 | u768152935 | 1551646490 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | N=input()
s=sum([int(i) for i in N])
print('Yes' if N%s==0 else 'No') |
s781545715 | p03502 | u768152935 | 1551646132 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | N=input()
t=N
s=0
while t>0:
s+=t%10
t/=10
if N%s==0:
print("Yes")
else:
print("No") |
s399987976 | p03502 | u763741681 | 1551640804 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | N=input()
f=0
for i in range(len(N)):
f+=int(N[i])
if N%f==0:
print("Yes")
else:
print("No") |
s596027853 | p03502 | u251123951 | 1551377753 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | N=input()
a=0
for i in N:
a+=int(i)
print("Yes") if N%a==0 else print("No") |
s210564088 | p03502 | u652081898 | 1551203706 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 125 | n = int(input())
length = len(n)
x = 0
for i in str(n):
x += int(i)
if n%x == 0:
print("Yes")
else:
print("No") |
s990913586 | p03502 | u187205913 | 1551135744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | n = input()
f_x=0
for i in range(len(n)):
f_x+=int(n[i])
if int(n)%f_n==0:
print('Yes')
else:
print('No')
|
s541596358 | p03502 | u187205913 | 1551135719 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | n = int(input())
f_x=0
for i in range(len(n)):
f_x+=int(n[i])
if int(n)%f_n==0:
print('Yes')
else:
print('No') |
s050810987 | p03502 | u977349332 | 1551103572 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | X = input()
sum = 0
for i in range(len(x)):
sum += int(x[i])
if int(x) % sum == 0
print("Yes")
else
print("No") |
s622385215 | p03502 | u518064858 | 1550980900 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | x=input()
f=0
for i in range(len(x)):
f+=int(x[i])
if x%f==0:
print("Yes")
else:
print("No")
|
s863419183 | p03502 | u518064858 | 1550980838 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | x=input()
f=0
for i in len(x):
f+=int(x[i])
if x%f==0:
print("Yes")
else:
print("No")
|
s099590968 | p03502 | u887207211 | 1550612111 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 80 | N = input()
if(N%sum(list(map(int,N))) == 0):
print("Yes")
else:
print("No") |
s008895718 | p03502 | u933214067 | 1550431360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1078 | from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
def j(q):
if q==1: print("Yes")
else:print("No")
exit(0)
def ct(x,y):
if (x>y):print("")
elif (x<y): print("")
else: print("")
def ip():
return int(input())
#n = ip() ... |
s229603004 | p03502 | u118211443 | 1550112694 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 67 | N=(input())
print("Yes"if int(N)%(int(N[0])+int(N[1]))==0 else"No") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.