Submission #16130939


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = read().rstrip()

x = sum(x - ord('0') for x in N)
print('Yes' if x % 9 == 0 else 'No')

Submission Info

Submission Time
Task B - Multiple of 9
User maspy
Language Python (3.8.2)
Score 200
Code Size 217 Byte
Status
Exec Time 45 ms
Memory 9096 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
× 3
× 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt 27 ms 8832 KB
random_01.txt 45 ms 9032 KB
random_02.txt 21 ms 8800 KB
random_03.txt 25 ms 8976 KB
random_04.txt 20 ms 8976 KB
random_05.txt 39 ms 9084 KB
random_06.txt 27 ms 8904 KB
random_07.txt 31 ms 9008 KB
random_08.txt 23 ms 8992 KB
random_09.txt 43 ms 9032 KB
random_10.txt 37 ms 9096 KB
sample_01.txt 22 ms 9064 KB
sample_02.txt 23 ms 8916 KB
sample_03.txt 24 ms 8912 KB