結果

問題 No.1185 完全な3の倍数
ユーザー 37zigen37zigen
提出日時 2020-08-22 18:31:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 257 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 56,700 KB
最終ジャッジ日時 2024-04-23 12:07:10
合計ジャッジ時間 13,472 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 318 ms
56,568 KB
testcase_01 AC 268 ms
56,576 KB
testcase_02 AC 250 ms
56,672 KB
testcase_03 AC 303 ms
56,572 KB
testcase_04 AC 323 ms
56,568 KB
testcase_05 AC 309 ms
56,620 KB
testcase_06 AC 307 ms
56,572 KB
testcase_07 AC 317 ms
56,696 KB
testcase_08 RE -
testcase_09 AC 252 ms
56,568 KB
testcase_10 AC 253 ms
56,572 KB
testcase_11 AC 253 ms
56,568 KB
testcase_12 AC 258 ms
56,536 KB
testcase_13 AC 258 ms
56,568 KB
testcase_14 AC 264 ms
56,572 KB
testcase_15 AC 256 ms
56,572 KB
testcase_16 AC 250 ms
56,572 KB
testcase_17 AC 258 ms
56,572 KB
testcase_18 AC 251 ms
56,568 KB
testcase_19 AC 271 ms
56,572 KB
testcase_20 AC 298 ms
56,576 KB
testcase_21 AC 295 ms
56,700 KB
testcase_22 AC 279 ms
56,568 KB
testcase_23 AC 279 ms
56,572 KB
testcase_24 AC 302 ms
56,568 KB
testcase_25 AC 259 ms
56,564 KB
testcase_26 AC 301 ms
56,696 KB
testcase_27 AC 269 ms
56,644 KB
testcase_28 AC 297 ms
56,568 KB
testcase_29 AC 289 ms
56,544 KB
testcase_30 AC 333 ms
56,700 KB
testcase_31 AC 286 ms
56,568 KB
testcase_32 AC 318 ms
56,568 KB
testcase_33 AC 265 ms
56,696 KB
testcase_34 AC 311 ms
56,700 KB
testcase_35 AC 324 ms
56,572 KB
testcase_36 AC 312 ms
56,568 KB
testcase_37 AC 311 ms
56,576 KB
testcase_38 AC 282 ms
56,680 KB
testcase_39 AC 252 ms
56,568 KB
testcase_40 AC 265 ms
56,572 KB
testcase_41 AC 253 ms
56,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N=int(input())
d=[""]
s=[]
for i in range(9):
    d=[i+j for i in d for j in "0369"]
    s+=d
a=set([])
for _ in s:
    a.add(int(_))
for i in range(12,99,3):
    a.add(i)
b=list(a)
b.sort()
p=0
while N>=int(b[p]):
    p+=1
ans=p-4
print(ans)
0