結果
| 問題 | 
                            No.1185 完全な3の倍数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             wagasa2
                         | 
                    
| 提出日時 | 2020-08-23 16:50:14 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 223 bytes | 
| コンパイル時間 | 209 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 21,376 KB | 
| 最終ジャッジ日時 | 2024-10-15 18:46:15 | 
| 合計ジャッジ時間 | 7,054 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 3 | 
| other | TLE * 1 -- * 38 | 
ソースコード
no3times = {"1", "2", "4", "5", "7", "8"}
N = int(input())
ids = range(1, N+1)
Xs = [i for i in ids if (i % 3 == 0) and (len(str(i)) == 2 or (len(str(i)) > 2 and set(str(i)).isdisjoint(no3times)))]
#print(Xs)
print(len(Xs))
            
            
            
        
            
wagasa2