結果

問題 No.1185 完全な3の倍数
ユーザー Keroru
提出日時 2020-08-22 16:23:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 148,632 KB
最終ジャッジ日時 2024-11-24 09:42:55
合計ジャッジ時間 6,979 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import*;d=[''];s=[]
for _ in'x'*9:
 d=[i+j for i in d for j in'0369'];s+=d
s+=range(9,99,3);print(bisect(sorted(set([int(i)for i in s])),int(input()))-4)
0