3 solutions

  • -2
    @ 2023-4-1 21:49:08
    n = int(input(""))
    a = n // 100
    b = n % 100 // 10  
    c = n % 10  
    print(a+b+c)
    

    Information

    ID
    19
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    332
    Accepted
    258
    Uploaded By