1 solutions

  • 0
    @ 2024-8-24 16:27:52
    def asd(n):
        count = 0
        for i in range(1, n - 1):
            for j in range(i + 1, n - i):
                k = n - i - j
                if k > j and i!= j and j!= k and i!= k and '3' not in str(i) and '3' not in str(j) and '3' not in str(k) and '7' not in str(i) and '7' not in str(j) and '7' not in str(k):
                    count += 1
        return count
    n=int(input())
    print(asd(n))
    
    
    
    • 1

    Information

    ID
    699
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    9
    Tags
    # Submissions
    10
    Accepted
    4
    Uploaded By