Submission #19723522


Source Code Expand

Copy
n=int(input())
seven_cnt=0
for i in range(1,n+1):
    s_num=str(i)
    s_e_num=str(oct(i))
    if '7' in s_num or '7' in s_e_num:
        seven_cnt+=1
print(n-seven_cnt)

Submission Info

Submission Time
Task C - Unlucky 7
User tokumaru_y
Language Python (3.8.2)
Score 300
Code Size 176 Byte
Status AC
Exec Time 72 ms
Memory 9112 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 8936 KB
hand_02.txt AC 72 ms 9108 KB
hand_03.txt AC 61 ms 9072 KB
random_01.txt AC 55 ms 8956 KB
random_02.txt AC 31 ms 9000 KB
random_03.txt AC 43 ms 9112 KB
random_04.txt AC 64 ms 9108 KB
random_05.txt AC 48 ms 8848 KB
random_06.txt AC 66 ms 9072 KB
random_07.txt AC 40 ms 9064 KB
random_08.txt AC 70 ms 9100 KB
random_09.txt AC 19 ms 9072 KB
random_10.txt AC 48 ms 9068 KB
random_11.txt AC 25 ms 9000 KB
random_12.txt AC 67 ms 8940 KB
random_13.txt AC 57 ms 8820 KB
random_14.txt AC 24 ms 8852 KB
random_15.txt AC 58 ms 8848 KB
sample_01.txt AC 23 ms 9100 KB
sample_02.txt AC 72 ms 8996 KB