Submission #16130939


Source Code Expand

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 AC
Exec Time 45 ms
Memory 9096 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 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 AC 27 ms 8832 KiB
random_01.txt AC 45 ms 9032 KiB
random_02.txt AC 21 ms 8800 KiB
random_03.txt AC 25 ms 8976 KiB
random_04.txt AC 20 ms 8976 KiB
random_05.txt AC 39 ms 9084 KiB
random_06.txt AC 27 ms 8904 KiB
random_07.txt AC 31 ms 9008 KiB
random_08.txt AC 23 ms 8992 KiB
random_09.txt AC 43 ms 9032 KiB
random_10.txt AC 37 ms 9096 KiB
sample_01.txt AC 22 ms 9064 KiB
sample_02.txt AC 23 ms 8916 KiB
sample_03.txt AC 24 ms 8912 KiB