結果

問題 No.1849 Three Times Value
ユーザー 👑 obakyanobakyan
提出日時 2022-02-24 20:57:07
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 13:55:19
合計ジャッジ時間 2,218 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

local n = io.read("*n")
local nl = 1LL * n
local c = 0
for i = 1, 99999 do
  local str = tostring(i):rep(3)
  local z = 1LL * tonumber(str)
  if z <= n then
    c = c + 1
  end
end
print(c)
0