結果
| 問題 | 
                            No.2246 1333-like Number
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-03-17 22:03:37 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 42 ms / 2,000 ms | 
| コード長 | 267 bytes | 
| コンパイル時間 | 460 ms | 
| コンパイル使用メモリ | 81,920 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-09-18 11:03:27 | 
| 合計ジャッジ時間 | 2,356 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
ソースコード
N = int(input())
if 1:
  
  s = N //36
 
  t = N%36
  if t == 0:
    print('8'+'9'*s)
    exit()
    
  count = 0
  for i in range(1,9):
    if count + 9-i < t:
      count += 9-i
    else:
      a = i
      b = t-count+i
      break
  print(str(a)+str(b)*(s+1))