結果
問題 | No.666 1000000007で割るだけ |
ユーザー |
![]() |
提出日時 | 2018-04-12 18:24:22 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 28 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 21:29:35 |
合計ジャッジ時間 | 787 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
local ffi = require 'ffi'local C = ffi.Cffi.cdef [[long atol(const char *);int printf(const char *, ...);]]C.printf("%ld\n", (function (s, n)local a, b = C.atol(s:match("(%d+)%s")), C.atol(s:match("%s(%d+)"))return ((a%n) * (b%n)) % nend)(io.stdin:read("*l"), 1000000007LL))