結果

問題 No.3157 Nabeatsu
ユーザー nani3dot14
提出日時 2025-05-23 19:57:24
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 129 bytes
コンパイル時間 956 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 61,108 KB
最終ジャッジ日時 2025-05-23 19:57:30
合計ジャッジ時間 4,951 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 TLE * 1 -- * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
i = int(n)
while True:
  dig = list(str(i))
  if "3" in dig or i % 3 == 0:
    i -= 1

  else:
    print(i)
    break
0