結果

問題 No.1185 完全な3の倍数
ユーザー Noah CollinsNoah Collins
提出日時 2022-11-24 13:12:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,172 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 11,848 KB
実行使用メモリ 70,340 KB
最終ジャッジ日時 2023-10-26 03:53:19
合計ジャッジ時間 41,742 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,135 ms
70,340 KB
testcase_01 AC 466 ms
42,424 KB
testcase_02 AC 1,094 ms
70,340 KB
testcase_03 AC 1,129 ms
70,340 KB
testcase_04 AC 1,123 ms
70,340 KB
testcase_05 AC 1,135 ms
70,340 KB
testcase_06 AC 1,128 ms
70,340 KB
testcase_07 AC 1,123 ms
70,276 KB
testcase_08 AC 466 ms
42,424 KB
testcase_09 AC 466 ms
42,424 KB
testcase_10 AC 464 ms
42,424 KB
testcase_11 AC 463 ms
42,424 KB
testcase_12 AC 462 ms
42,424 KB
testcase_13 AC 458 ms
42,424 KB
testcase_14 AC 458 ms
42,424 KB
testcase_15 AC 465 ms
42,424 KB
testcase_16 AC 464 ms
42,424 KB
testcase_17 AC 466 ms
42,424 KB
testcase_18 AC 467 ms
42,424 KB
testcase_19 AC 1,103 ms
70,340 KB
testcase_20 AC 1,130 ms
70,340 KB
testcase_21 AC 1,172 ms
70,340 KB
testcase_22 AC 1,101 ms
70,340 KB
testcase_23 AC 1,097 ms
70,340 KB
testcase_24 AC 1,123 ms
70,340 KB
testcase_25 AC 1,091 ms
70,272 KB
testcase_26 AC 1,118 ms
70,340 KB
testcase_27 AC 1,088 ms
70,340 KB
testcase_28 AC 1,115 ms
70,340 KB
testcase_29 AC 1,127 ms
70,340 KB
testcase_30 AC 1,121 ms
70,340 KB
testcase_31 AC 1,102 ms
70,340 KB
testcase_32 AC 1,137 ms
70,340 KB
testcase_33 AC 1,093 ms
70,340 KB
testcase_34 AC 1,130 ms
70,340 KB
testcase_35 AC 1,158 ms
70,340 KB
testcase_36 AC 1,145 ms
70,276 KB
testcase_37 AC 1,135 ms
70,340 KB
testcase_38 AC 1,116 ms
70,340 KB
testcase_39 AC 475 ms
42,424 KB
testcase_40 AC 1,085 ms
70,276 KB
testcase_41 AC 1,095 ms
70,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy import*

n=int(input())
if n<100:
    print(n//3-3)
elif n>999999998:
    print(262158)
else:
    l=[]
    for i in range(2**4,2**18):
        l+=[str(base_repr(i,4))]
    l=[int(i)*3 for i in l]
    k=0
    a=0
    while l[k]<=n:
        a+=1
        k+=1
    print(a+30)
0