Submission #19723513


Source Code Expand

Copy
N = int(input())
ans = 0
for i in range(1, N+1):
    if('7' not in str(i)) and ('7' not in oct(i)):
        # https://note.nkmk.me/python-bin-oct-hex-int-format/
        ans += 1
print(ans)

Submission Info

Submission Time
Task C - Unlucky 7
User smn7
Language Python (3.8.2)
Score 300
Code Size 195 Byte
Status AC
Exec Time 55 ms
Memory 8816 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.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, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 18 ms 8692 KB
hand_02.txt AC 53 ms 8648 KB
hand_03.txt AC 42 ms 8768 KB
random_01.txt AC 41 ms 8788 KB
random_02.txt AC 22 ms 8636 KB
random_03.txt AC 28 ms 8816 KB
random_04.txt AC 53 ms 8772 KB
random_05.txt AC 30 ms 8580 KB
random_06.txt AC 48 ms 8640 KB
random_07.txt AC 32 ms 8612 KB
random_08.txt AC 47 ms 8644 KB
random_09.txt AC 19 ms 8756 KB
random_10.txt AC 35 ms 8564 KB
random_11.txt AC 22 ms 8780 KB
random_12.txt AC 52 ms 8704 KB
random_13.txt AC 37 ms 8780 KB
random_14.txt AC 19 ms 8556 KB
random_15.txt AC 47 ms 8704 KB
sample_01.txt AC 17 ms 8704 KB
sample_02.txt AC 55 ms 8560 KB