Submission #11796585


Source Code Expand

Copy
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    n=int(input())
    sum=0
    for i in range(1,n+1):
        if i%3!=0 and i%5!=0:sum+=i

    print(sum)
if __name__=='__main__':
    main()

Submission Info

Submission Time
Task B - FizzBuzz Sum
User charter
Language Python (3.8.2)
Score 200
Code Size 226 Byte
Status
Exec Time 107 ms
Memory 9176 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01, sample_02
All 200 / 200 hand_01, hand_02, random_01, random_02, random_03, random_04, random_05, random_06, random_07, random_08, random_09, random_10, random_11, sample_01, sample_02
Case Name Status Exec Time Memory
hand_01 107 ms 9176 KB
hand_02 18 ms 8884 KB
random_01 58 ms 8988 KB
random_02 93 ms 9040 KB
random_03 53 ms 9040 KB
random_04 32 ms 8984 KB
random_05 71 ms 8872 KB
random_06 23 ms 8872 KB
random_07 23 ms 8980 KB
random_08 44 ms 9048 KB
random_09 34 ms 9036 KB
random_10 36 ms 8888 KB
random_11 56 ms 8872 KB
sample_01 17 ms 8980 KB
sample_02 106 ms 9036 KB