結果

問題 No.1185 完全な3の倍数
ユーザー Noah CollinsNoah Collins
提出日時 2022-11-24 13:04:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 283 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 70,420 KB
最終ジャッジ日時 2023-10-26 03:46:57
合計ジャッジ時間 42,162 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,124 ms
70,420 KB
testcase_01 AC 462 ms
42,484 KB
testcase_02 AC 1,078 ms
70,420 KB
testcase_03 AC 1,113 ms
70,420 KB
testcase_04 AC 1,121 ms
70,416 KB
testcase_05 AC 1,130 ms
70,420 KB
testcase_06 AC 1,127 ms
70,420 KB
testcase_07 AC 1,120 ms
70,420 KB
testcase_08 RE -
testcase_09 AC 463 ms
42,484 KB
testcase_10 AC 459 ms
42,484 KB
testcase_11 AC 463 ms
42,484 KB
testcase_12 AC 462 ms
42,484 KB
testcase_13 AC 462 ms
42,484 KB
testcase_14 AC 464 ms
42,484 KB
testcase_15 AC 460 ms
42,484 KB
testcase_16 AC 460 ms
42,484 KB
testcase_17 AC 468 ms
42,484 KB
testcase_18 AC 462 ms
42,484 KB
testcase_19 AC 1,088 ms
70,420 KB
testcase_20 AC 1,125 ms
70,420 KB
testcase_21 AC 1,120 ms
70,420 KB
testcase_22 AC 1,093 ms
70,420 KB
testcase_23 AC 1,095 ms
70,416 KB
testcase_24 AC 1,136 ms
70,420 KB
testcase_25 AC 1,097 ms
70,420 KB
testcase_26 AC 1,107 ms
70,420 KB
testcase_27 AC 1,089 ms
70,420 KB
testcase_28 AC 1,102 ms
70,416 KB
testcase_29 AC 1,123 ms
70,420 KB
testcase_30 AC 1,105 ms
70,420 KB
testcase_31 AC 1,087 ms
70,420 KB
testcase_32 AC 1,126 ms
70,416 KB
testcase_33 AC 1,088 ms
70,416 KB
testcase_34 AC 1,115 ms
70,416 KB
testcase_35 AC 1,130 ms
70,416 KB
testcase_36 AC 1,117 ms
70,420 KB
testcase_37 AC 1,143 ms
70,420 KB
testcase_38 AC 1,107 ms
70,420 KB
testcase_39 AC 469 ms
42,484 KB
testcase_40 AC 1,073 ms
70,420 KB
testcase_41 AC 1,079 ms
70,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy import*

n=int(input())
if n<100:
    print(n//3-3)
elif n==100000000:
    print(65550)
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