結果
問題 | No.1461 しあはせや歩みゆく? |
ユーザー |
👑 |
提出日時 | 2021-05-17 12:55:24 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 11:07:32 |
合計ジャッジ時間 | 1,594 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end n = lltonumber(io.read()) r = 0LL if n <= 3LL then r = n else r = 3LL + 5LL * (n - 3LL) end r = tostring(r):gsub("LL", "") print(r)