TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
print("YNeos"[int(input())%9==0::2])

print("YNeos"[int(input())%9!=0::2])

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())

sum_N = 0

while N >= 10:
  print(N)
  sum_N += N % 10
  N = N //10

if (sum_N+N) % 9 == 0:
  print('Yes')
else:
  print('No')
  


N = int(input())

if N%9 ==0:
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
s = input()
n = 0
for i in range(len(s)):
  n += int(s[i:i+1])
print(n)
if n % 9 == 0:
  print("Yes")
else:
  print("No")

s = input()
n = 0
for i in range(len(s)):
  n += int(s[i:i+1])
if n % 9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = list(input())

count = 0
for i in range(len(n)):
    count += int(n[i])
    count %= 9
if count == 0:
    print('YES')
else:
    print('NO')

n = list(input())

count = 0
for i in range(len(n)):
    count += int(n[i])
    count %= 9
if count == 0:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
ans = 0
for i in range(len(N)):
  ans += N[i]
print("Yes") if ans%9 == 0 else print("No")

N = input()
ans = 0
for i in range(len(N)):
  ans += int(N[i])
print("Yes") if ans%9 == 0 else print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a = int(input())
def getSum(n):
    s = 0
    while (n != 0):
        s = s + (n % 10)
        n = n // 10
    return s
print(getSum(a))

a = input()
s = 0
for i in a:
    s += int(i)
if s % 9 == 0 :
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
# your code goes here
n=input()
sum=0
for i in n:
	sum+=int(i)
if(sum%9==0):
	print("YES")
else:
	print("NO")
	

# your code goes here
n=input()
sum=0
for i in n:
	sum+=int(i)
if(sum%9==0):
	print("Yes")
else:
	print("No")
	

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()

num = 0
for n in N:
    num = num + int(n)

print(num)
print("Yes") if(num % 9 == 0) else print("No")


N = input()

num = 0
for n in N:
    num = num + int(n)

print("Yes") if(num % 9 == 0) else print("No")


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

import sys
input = sys.stdin.readline

n=input()

nn=0
for i in range(len(n)):
    nn+=int(n[i])

if nn%9==0:
    print("Yes")
else:
    print("No")
    

n=input()

nn=0
for i in range(len(n)):
    nn+=int(n[i])

if nn%9==0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
from sys import stdin
input = stdin.readline
N=str(input())
NN=0
for i in range(len(N)):
    NN=NN+int(N[i])
  
if NN%9==0:print('Yes')
else:print('No')

N=str(input())
NN=0
for i in range(len(N)):
    NN=NN+int(N[i])
  
if NN%9==0:print('Yes')
else:print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())
sum1 = 0
while n>0:
  sum1 += n%10
  n = n//10

if sum1%9 == 0:
  print('YES')
else:
  print('NO')

n = int(input())
sum1 = 0
while n>0:
  sum1 += n%10
  n/=10
if sum1%9 == 0:
  print('YES')
else:
  print('NO')

n = int(input())
sum1 = 0
while n>0:
  sum1 += n%10
  n= n//10
if sum1%9 == 0:
  print('YES')
else:
  print('NO')

n = int(input())
sum1 = 0
while n>0:
  sum1 += n%10
  n= int(n/10)
if sum1%9 == 0:
  print('YES')
else:
  print('NO')

n = int(input())
if n % 9 == 0:
  print('Yes')
else:
  print('No')
  

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
if n % 9 == 0:
    print("Yes")
else:
    print("No")

n = int(input())
if n % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=(int.input())
if n%9==0:
  print(Yes)
else :
  print(No)
  

n=int(input())
if n%9==0:
  print("Yes")
else:
  print("No")
  

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
map(input, N)
sum = lambda i :sum+i for i in str(N)
if sum/9 print "Yes" else "No"

def sum_i(N):
    return sum(list(int(i) for i in str(N)))


print("No") if sum_i(input()) % 9 else print("Yes")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())
t = int(input())

for i in range(len(n)):
  t += n[i]

if t % 9 == 0:
  print('Yes')
else t % 9 == 0:
  print('No')

n = input()

t = 0

for i in n:
  t += int(i)

if t % 9 == 0:
  print('Yes')
else t % 9 != 0:
  print('No')

n = input()

t = 0

for i in n:
  t += int(i)

  
if t % 9 == 0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
S = 0
for i in N:
  S+=int(i)

if i%9 == 0:
  print("Yes")
else:
  print("No")

N = input()
S = 0
for i in N:
  S+=int(i)

if S%9 == 0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()


def solve1(n: int) -> str:
    k = 0
    for i in range(len(n)):
        k += int(n[i])

    if k % 9 == 0:
        return "Yes"
    else:
        return "No"


def solve2(n: int) -> str:
    if n % 9 == 0:
        return "Yes"
    else:
        return "No"


solve2(n)


n = int(input())


def solve1(n: int) -> str:
    k = 0
    for i in range(len(n)):
        k += int(n[i])

    if k % 9 == 0:
        return "Yes"
    else:
        return "No"


def solve2(n: int) -> str:
    if n % 9 == 0:
        return "Yes"
    else:
        return "No"


print(solve2(n))


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())

n = str(N)

le = len(n)

M = []

for i in range(le):
    nn = int(n[i])
    M.append(nn)

if sum(M) % 9 == 0:
    print("Yes")
else:
    print("No")

print(M)

N = int(input())

n = str(N)

le = len(n)

M = 0

for i in range(le):
    nn = int(n[i])
    M += nn

if M % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=str(input())
L=len(N)
X=0
ans=None

for i in range(0,L):
    Y=int(N[i])
    X=X+Y

if X%9==0:
    ans="yes"
else:
    ans="no"

print(ans)

N=str(input())
L=len(N)
X=0
ans=None

for i in range(0,L):
    Y=int(N[i])
    X=X+Y

if X%9==0:
    ans="Yes"
else:
    ans="No"

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
check = 0
for i in N:
  check += i
if check % 9 == 0:
  print("Yes")
else:
  print("No")


N = input()
check = 0
for i in N:
  check += int(i)
if check % 9 == 0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a = input()
for i in range(len(a)):
  total = total + int(a[i])
print("Yes" if total % 9 == 0 else "No")

a = int(input())
print("Yes" if a % 9 == 0 else "No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def digitSum(n):
    s = str(n)
    array = list(map(int, s))
    return sum(array)
a= int(input())
if digitsum(a) % 9 == 0:
    print(Yes)
else:
    print(No)

N=int(input())
if N%9==0:
    print(Yes)
else:
    print(No)

def digitSum(n):
    s = str(n)
    array = list(map(int, s))
    return sum(array)
a= int(input())
if digitSum(a) % 9 == 0:
    print(Yes)
else:
    print(No)

def digitSum(n):
    s = str(n)
    array = list(map(int, s))
    return sum(array)
N = int(input())
if digitSum(N) % 9 == 0:
    print("Yes")
else:
    print("No")
    

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
if N % 9 == 0:
  print('Yse')
else:
  print('No')

N = int(input())
if N % 9 == 0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = s()
memo = 0
for i in range(len(n)):
	memo += int(n[i])
if memo%9 == 0:
	print("Yes")
else:
	print("No")


print(len(n))

def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = s()
memo = 0
for i in range(len(n)):
	memo += int(n[i])
if memo%9 == 0:
	print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def digital_root(n):
  return n % 9 or n and 9


if __name__ == "__main__" :
  num = input()
  if(digital_root(num)%9==0):
    print("Yes")
  else:
    print("No")

def digital_root(n):
  return n if n < 10 else digital_root(sum(map(int,str(n))))

n = input()
if(digital_root(n) % 9 == 0):
  print("Yes")
else:
  print("No")

def digital_root(n):
  	return n if n < 10 else digital_root(sum(map(int,str(n))))
 
num = input()
if(digital_root(n)%9==0):
  print("Yes")
else:
  print("No")

def digital_root(n):
  return n if n < 10 else digital_root(sum(map(int,str(n))))
 
n = int(input())
if(digital_root(n) % 9 == 0):
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()

n_list = list(n)
ans = sum(n_list)

print("Yes" if (ans % 9) == 0 else "No")

import math

n = input()

n_list = map(int, list(n))
ans = sum(n_list)

print("Yes" if (ans % 9) == 0 else "No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = list(map(int, input().split()))
result = "YES" if sum(n) % 9 == 0 else "NO"
print(result)


n = list(map(int, input().split()))
result = "Yes" if sum(n) % 9 == 0 else "No"
print(result)

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a=0
n=input()
n=list(n)
n=list(map(int,n))
a=sum(n)
if a%9==0:
    print("YES")
else:
    print("No")

a=0
n=input()
n=list(n)
n=list(map(int,n))
a=sum(n)
if a%9==0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
ifn%9 == 0:
  print('Yes')
else:
  print('No')

n = input()
if n%9 == 0:
  print('Yes')
else:
  print('No')

n = int(input())
if n%9 == 0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a = input()

a = int(a)

b = a

b = int(b)

if a % 9 == 0:

    for i in range(a):
        b += b % pow(10, i)

else:
    print("No")
    exit()

if b % 9 == 0:
    print("Yes")
else:
    print("No")


a = input()

a = int(a)

if a % 9 == 0:
    print("Yes")
else:
    print("No")


Verdicts: Time Limit Exceeded

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=int(input())
if(N%9==0):
  print('YES')
else:
  print('NO')

N=int(input())
if(N%9==0):
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=int(imput())
if N%9 == 0:
  print("Yes")
else:
  print("No")

N=int(input())
if N%9 == 0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
sum = 0
for i in N:
  sum = sum + int(i)
if (sum%9):
  print('NO')
else:
  print('YES')

N = input()
sum = 0
for i in N:
  sum = sum + int(i)
if (sum%9):
  print('No')
else:
  print('Yes')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
for i in range(len(n)):
    count += int(n[i])
if count%9 == 0:
    print("Yes")
else:
    print("No")

import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = input()
for i in range(len(n)):
    count += int(n[i])
if count%9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = str(input())

s = list(map(int,N))

S = sum(s)

if S % 9 = 0:
  print(Yes)
else:
  print(No)

N = str(input())
M = list(map(int, N))
S = sum(M)

if S % 9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())
A = list(map(int, input().split()))

a=0
result=0

for i in range(n-1):
  if A[i] > A[i+1]:
    a = A[i] - A[i+1]
    result += a
    
print(result)

n = int(input())

SUM = sum(list(map(int, str(n))))

if SUM % 9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=input()

if N%9==0:
	print("Yes")
else:
	print("No")

N=input()
a=[int(i) for i in N
b=sum(a)

if b%9==0:
	print("Yes")
else:
	print("No")

N=input()
a=[int(i) for i in N]
b=sum(a)

if b%9==0:
	print("Yes")
else:
	print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=input()
#lst=list(n)
#print(lst)
s=0
for i in lst:
    s+=int(i)
if s%9==0:
    print('Yes')
else:
    print('No')

n=input()
#lst=list(n)
print(lst)
s=0
for i in lst:
    s+=int(i)
if s%9==0:
    print('Yes')
else:
    print('No')

n=input()
lst=list(n)
s=0
for i in lst:
    s+=int(i)
if s%9==0:
    print('YES')
else:
    print('NO')

n=input()
lst=list(n)
#print(lst)
s=0
for i in lst:
    s+=int(i)
if s%9==0:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
num = input()

count = 0
for i in range(len(num)):
    count += int(num[i])

if count % 9 == 0:
    print('yes')
else:
    print('no')

num = input()
count = 0
for i in range(len(num)):
    count += int(num[i])
if count % 9 == 0:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n,t=input(),0

for i in range(len(n)):
  t+=int(n[i])

 print('No' if t%9 else 'Yes')


n,t=input(),0

for i in range(len(n)):
  t+=int(n[i])

print('No' if t%9 else 'Yes')


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()

sum_of_digits = 0
for digit in str(N):
    sum_of_digits += int(digit)
if sum_of_digits % 9 == 0:
    print("yes")
else:
    print("No")

N = input()

sum_of_digits = 0
for digit in str(N):
    sum_of_digits += int(digit)
if sum_of_digits % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
if N / 9 == 0:
    print("Yes")
else :
    print("No")

N=int(input())
if N%9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
summation = sum([int(i) for i in s])
is_mul = summation%9
if is_mul == 0:
  print("Yes")
else:
  print("No")


s = input()
is_mul = sum([int(i) for i in s])%9
if is_mul:
  print("Yes")
else:
  print("No")

s = input()
summation = sum([int(i) for i in s])
is_mul = summation%9
if is_mul == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=input()
sm=0
for i in n:
  sm+=int(i)
return sm%9

n=int(input())
if n%9==0:
  print("Yes")
else:
  print("No")



Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N_st = input()
num = 0
for i in N_st:
    num += int(i)

if num % 9 == 0:
    print('yes')
else:
    print('No')


N_st = input()
num = 0
for i in N_st:
    num += int(i)

if num % 9 == 0:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
l=[int(x) for x in list(str(n))]
print(sum(l))

n=int(input())
l=[int(x) for x in list(str(n))]
result=sum(l)
if result%9==0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=int(input());tt=0
while(N>1):
    tt+=(N%10);N//=10
print("No" if tt%9 else "Yes")

N=int(input());tt=0
while(N):tt+=(N%10);N//=10
print("NO" if tt%9 else "YES")

N=int(input());tt=0
while(N>1):tt+=(N%10);N//=10
print("NO" if tt%9 else "YES")

print("No"if int(input())%9 else "Yes")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
number = int(input("enter your no"))

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("yes")
else:
    print("No")




number = int(input("enter your no"))

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("Yes")
else:
    print("No")




number = int(input())

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("Yes")
else:
    print("No")




Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def main():
    n = input()
    

    if n%9==0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

def main():
    n = int(input())
    

    if n%9==0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
digsum(n):
  if(n==0):
    return 0
  if(n%9==0):
    return 9
  else:
  	return n%9
n=int(input())
d=digsum(n)
if(d==9 or d==0):
  print("Yes")
else:
  print("No");

def digsum(n):
  if(n==0):
    return 0
  if(n%9==0):
    return 9
  else:
  	return n%9
n=int(input())
d=digsum(n)
if(d==9 or d==0):
  print("Yes")
else:
  print("No");

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
str_n = input()
n = int(str_n)

if sum(map(int, list(str_n))) % 9 == 0:
    print('yes')
else:
    print("no")


str_n = input()

if sum(map(int, list(str_n))) % 9 == 0:
    print('Yes')
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=input()
s=0
for i in n:
  s+=int(i)
if s%9==0:
  print(Yes)
else:
  print("No")
  

n=input()
s=0
for i in n:
  s+=int(i)
  s=s%9
if s%9==0:
  print(Yes)
else:
  print("No")
  

n=input()
s=0
for i in n:
  s+=int(i)
  s=s%9
if s%9==0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys
import math
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

s = sys.stdin.readline()
ans = 0
for i in s:
  ans += int(i)
  ans %= 9

print('Yes' if ans%9 == 0 else 'No')

import sys
import math
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

s = sys.stdin.readline()
ans = 0
for i in s:
  ans += int(i)
  ans %= 9

print('Yes' if ans%9 == 0 else 'No')

import sys
import math
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

s = sys.stdin.readline()
ans = 0
for i in s:
  ans += int(i)
  ans %= 9

print('Yes' if ans%9 == 0 else 'No')


import sys
import math
def Ii():return int(sys.stdin.readline().rstrip())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

s = sys.stdin.readline().rstrip()
ans = 0
for i in s:
	ans += int(i)
	ans %= 9

print('Yes' if ans%9 == 0 else 'No')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
if (int(input())%9 == 0:
    print("Yes")
else:
    print("No")

if (int(input()))%9 == 0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
N_len = len(N)
num = 0

for i in range(N_len):
  num += int(N(i))
  
if (num % 9 == 0):
  print("yes")
else:
  print("no")


N = input()

num = 0

for n in N:
  num += int(n)
  
if num % 9 == 0:
  print("yes")
else:
  print("no")

N = input()

num = 0

for n in N:
  num += int(n)
  
if num % 9 == 0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
S = 0
for i in range(2*10**5)
  digit = N%10
  S += digit
  N = N//10
T = 0
while S > 0:
  digit = S%10
  T += digit
  S = S//10
if T%9 == 0:
  print('Yes')
else:
  print('No')


N = int(input())
S = 0
while N > 9:
  digit = N%10
  S += digit
  N = N//10
if S%9 == 0:
  print('Yes')
else:
  print('No')


N = int(input())
if N%9 ==0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
num = int(input())
ans = num%9

if ans == 0:
  print("YES")
else:
  print("NO")

num = int(input())
ans = num%9

if ans == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
for i in range(10):
  cnt += i * N.count(str(i))
print("Yes" if cnt % 9 == 0 else "No")

N = input()
cnt = 0
for i in range(10):
  cnt += i * N.count(str(i))
print("Yes" if cnt % 9 == 0 else "No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=input()
sum_of_num=0
for i in N:
  sum_of_num+=int(i)
if sum_of_num/9==0:
  print("Yes")
else:
  print("No")
  

N=input()
sum_of_num=0
for i in N:
  sum_of_num+=int(i)
if sum_of_num%9==0:
  print("Yes")
elif N==0:
  print("No")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

numberString = input()
print(numberString)
sumNumber = 0


for i in range(len(numberString)):
  sumNumber += int(numberString[i])


if sumNumber % 9 == 0:
  print("Yes")
else:
  print("No")


numberString = input()
sumNumber = 0


for i in range(len(numberString)):
  sumNumber += int(numberString[i])
  
  

if sumNumber % 9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
l = list(map(int, input()))
s = 0
for i in l:
    s += i
if s % 9 == 0:
    print('yes')
else:
    print('no')


l = list(map(int, input()))
s = 0
for i in l:
    s += i
if s % 9 == 0:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
N_list = []
for i in range(N):
  N_list.append(N[i])
if sum(N_list) %9 == 0:
  print("Yes")
else:
  print("No")

N = int(input())
if N%9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()

sum = sum([int(i) for i in N])
if sum % 9 == 0:
  print('YES')
else:
  print('NO')


N = int(input())

if N % 9 == 0:
  print('YES')
else:
  print('NO')

N = input()

sum = sum([int(i) for i in N])
if sum % 9 == 0:
  print('Yes')
else:
  print('No')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
s = int(input())
q = []
for i in s:
  q.append(i)
if sum(q)%9 == 0:
  print('Yes')
else:print('No')

s = input()
q = []
for i in s:
  q.append(int(i))
if sum(q)%9 == 0:
  print('Yes')
else:print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import numpy as np

N = str(input())
array = np.array(list(map(int, s)))

s = np.sum(array)
if s % 9 == 0:
  print('Yes')
else:
  print('No')

import numpy as np

N = str(input())
array = np.array(list(map(int, N)))

s = np.sum(array)
if s % 9 == 0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
s=str(n)
array = list(map(int,s))
if array%9==0:
    print("Yes")
else:
    print("No")

n=int(input())
str(n)
array = list(map(int,s))
if array%9==0:
    print("Yes")
else:
    print("No")

n=int(input())
s=str(n)
array = list(map(int,s))
if sum(array)%9==0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())

if n%9:
    print("Yes")
else:
    print("No")

n=int(input())

if n%9==0:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
s = input()
suma = 0
for x in s:
	suma += int(x)
if suma % 9 == 0:
	print("YES")
else: print("NO")

x = input("")
for i in range(3):
    alist = list(map(int,x))
    result = sum(alist)
    x = str(result)
if result % 9 == 0 :
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
if __name__ == "__main__":
    x = input()
    x = int(x)

    digits = 200000
    index = 200000

    tmp1 = []
    for i in range(digits):
        tmp2 = pow(2,index)

        if(tmp2>x):
            continue
        tmp3 = x%tmp2
        if tmp2 != 0:
            x -= tmp3*index
            tmp1.append(tmp3)
        index -= 1
    result1 = sum(tmp1)

    if(result1%9 ==0):
        print("Yes")
    else:
        print("No")



def check(st) : 
  
    # Compute sum of digits 
    n = len(st) 
    digitSum = 0
      
    for i in range(0,n) : 
        digitSum = digitSum + (int)(st[i]) 
  
    # Check if sum of digits 
    # is divisible by 9. 
    return (digitSum % 9 == 0) 
  
# Driver code 
x = input()
st= str(x)
  
if(check(st)) : 
    print("Yes") 
else :  
    print("No") 

Verdicts: Time Limit Exceeded

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a = rr()
b = 0
for　i in a:
  b += int(i)
  b = b%9
if b == 0:
  print('Yes')
else:
  print('No')













import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

a = rr()
b = 0
for i in a:
  b += int(i)
  b = b%9
if b == 0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = str(input())
ans = 0
for i in n: ans = (ans + int(i - '0')) % 9
if ans: print ("No")
else: print("Yes")



n = str(input())
ans = 0
for i in range(len(n)): 
	ans = (ans + int(ord(i) - ord('0'))) % 9
if ans: print ("No")
else: print("Yes")



n = str(input())
ans = 0
for i in range(len(n)):
	ans = (ans + ord(n[i]) - ord('0')) % 9
if ans: print("No")
else: print("Yes")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

n = int(input())
if n % 9 == 0:
    print('YES')
else:
    print('NO')


n = int(input())
if n % 9 == 0:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
a=0
while n%10!=0:
  a=a+n%10
if a%9==0:
  print("Yes")
else:
  print("No")

n=input()
a=len(n)
b=0
for i in range(a):
  b=b+int(n[i])
print(b)


n=input()
a=len(b)
b=0
for i in range(a):
  b=b+int(n[i])
if b%9==0:
  print("Yes")
else:
  print("No")


n=input()
a=len(n)
b=0
for i in range(a):
  b=b+int(n[i])
if b%9==0:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
print('Yes' if int(input())%9 else 'No')


print('No'if int(input())%9 else'Yes')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = list(map(int, input()))
ans = 0
for i in n:
    ans += i * (i+1)//2
    continue

if ans % 9 == 0:
    print("YES")
else:
    print("NO")

n = list(map(int, input()))
ans = 0
for i in n:
    ans = i * (i+1)//2
    continue

if ans % 9 == 0:
    print("YES")
else:
    print("NO")

n = list(map(int, input()))
ans = 0
for i in n:
    ans = i * (i+1)/2
    continue

if ans % 9 == 0:
    print("YES")
else:
    print("NO")

n = int(input())
if n % 9 == 0:
    print("YES")
else:
    print("NO")

n = list(map(int, input()))
ans = 0
for i in n:
    ans += i * (i+1)//2
    continue

if ans % 9 == 0:
    print("Yes")
else:
    print("No")

N=int(input())
if N%9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
print("Yws"if int(input())%9==0 else"No")

n = int(input())

if n % 2 == 0:
    print("Yes")
else:
    print("No")

print("Yws"if int(input())%9==0else"No")

n = int(input())

if n % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
if n%9==o:
  print('Yes')
else:
  print('No')

n=int(input())
if n%9==0:
  print('Yes')
else:
  print('No')


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(nput())
if n%9==0:
  print("Yes")
else:
  print("No")

n=int(input())
if n%9==0:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input().strip())

ans = 0
N = str(N)

for i in range(len(N)):
    ans = int(N[i]) + ans
if ans % 9 == 0:
    print('yes')
else:
    print('no')


N = int(input().strip())

ans = 0
N = str(N)

for i in range(len(N)):
    ans = int(N[i]) + ans
if ans % 9 == 0:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
ls=[int(s) for s in input()]
sm = sum(ls)
if sm%9 == 0:
  print("YES")
else:
  print("NO")

ls=[int(s) for s in input()]
sm = sum(ls)
if sm%9 == 0:
  print("YES")
else:
  print("NO")

ls=[int(s) for s in input()]
sm = sum(ls)
if sm%9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = str(input())

if n%9 == 0:
  print("Yes")
else:
  print("No")

n = str(input())

totL = 0
for i in n:
  total += int(i)
if total % 9 == 0:
  print("Yes")
else:
  print("No")

n = int(input())
 
if n%9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
x = input()
for i in range(5):

    alist = list(map(int,x))
    result = sum(alist)
    x = str(result

if result%9 == 0 :
    print("yes")
else:
    print("no")

x = input()
for i in range(3):
    alist = list(map(int,x))
    result = sum(alist)
    x = str(result)
print(result)
if result % 9 == 0 :
    print("yes")
else:
    print("no")

m = input("")
s = m.split(".")
sum = 0
if len(s) == 1 and int(m)>=0 and int(m)<10**200000:
    for i in m :
        sum = sum+int(i)
    if sum % 9 == 0:
        print("Yes")
    else:
        print("No")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())

hantei = 0

while N != 0 or N < 1:
    hantei += N % 10
    N = N // 10

if hantei % 9 == 0:
    ans = "Yes"
else:
    ans = "No"

print(ans)


N = input()

hantei = 0

for i in range(len(N)):
    hantei += int(N[i])

if hantei % 9 == 0:
    ans = "Yes"
else:
    ans = "No"

print(ans)


Verdicts: Time Limit Exceeded

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = Int(input())
print("Yes" if N % 9 == 0 else "No")

N = int(input())
print("Yes" if N % 9 == 0 else "No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = str(input())
sum = 0

for i in range(len(n)):
    sum += int(n[i])

if sum % 9 == 0:
    print("yes")
else:
    print("no")

n = str(input())
sum = 0

for i in range(len(n)):
    sum += int(n[i])

if sum % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())

if n % 9 == 0:
    print('YES')
else:
    print('No')


n = int(input())

if n % 9 == 0:
    print('YES')
else:
    print('No')


n = int(input())

if n % 9 == 0:
    print('YES')
else:
    print('No')


n = list(input())

if n % 9 == 0:
    print('YES')
else:
    print('No')


N = list(input())

s = 0

for i in range(len(N)):
    s += int(N[i])

if s % 9 == 0:
    print('YES')
else:
    print('No')

N = int(input())

if N % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a=int(input())/9

if str(b)[-1]=='0':
  print('Yes')
else:
  print('NO')
    

a=int(input())%9
if a==0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
#abc176b
N=input()
s=0
for i in range(len(N)):
 s+=int(N[i])
print(s)
if s%9==0:
 print('Yes')
else:
 print('No')


#abc176b
N=input()
s=0
for i in range(len(N)):
 s+=int(N[i])
if s%9==0:
 print('Yes')
else:
 print('No')


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
if n%9==0
 print('Yes')
else:
  print('No')

n=int(input())
if n%9==0:
 print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted