結果
問題 | No.111 あばばばば |
ユーザー |
![]() |
提出日時 | 2018-04-12 01:05:21 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 47 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 21:18:39 |
合計ジャッジ時間 | 530 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
local ffi = require 'ffi' local C = ffi.C ffi.cdef [[ long atol(const char *); int printf(const char *, ...); ]] C.printf("%ld\n", (function (f, s) return f(s) end)(function (s) local n = C.atol(s) return (n - 1LL) ^ 2LL / 4LL end, io.stdin:read("*l")))