結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-13 01:36:03 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 281 bytes |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 10:47:52 |
| 合計ジャッジ時間 | 1,033 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
local ffi = require 'ffi'
local C = ffi.C
ffi.cdef [[
long atol(const char *str);
int printf(const char *fmt, ...);
]]
C.printf("%ld\n", (function (n, m)
if n < m * 1000LL then return 0LL end
return n/m - n/m%1000
end)(C.atol(io.stdin:read("*l")), C.atol(io.stdin:read("*l"))))
nobigomu