結果
問題 |
No.976 2 の 128 乗と M
|
ユーザー |
👑 |
提出日時 | 2020-02-09 11:38:44 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 05:48:45 |
合計ジャッジ時間 | 1,866 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 50 |
ソースコード
local function lltonumber(str) local ret = 0LL for i = 1, #str do ret = ret * 10LL + str:sub(i, i):byte() - 48 end return ret end local a = lltonumber(io.read()) local r = 1LL for i = 1, 128 do r = (r * 2) % a end local ret = tostring(r):gsub("LL", "") print(ret)