結果
| 問題 | No.128 お年玉(1) |
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-13 01:36:03 |
| 言語 | Lua (LuaJit 2.1.1787165859) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 91µs | |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 4 ms |
| コンパイル使用メモリ | 9,752 KB |
| 実行使用メモリ | 9,764 KB |
| 最終ジャッジ日時 | 2026-09-07 11:29:43 |
| 合計ジャッジ時間 | 1,382 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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