![]() |
|
|||
File indexing completed on 2025-08-03 08:19:07
0001 /******************************************************************************* 0002 * Copyright (c) 2018-2019 LongGang Pang, lgpang@qq.com 0003 * 0004 * Permission is hereby granted, free of charge, to any person obtaining a 0005 * copy of this software and/or associated documentation files (the 0006 * "Materials"), to deal in the Materials without restriction, including 0007 * without limitation the rights to use, copy, modify, merge, publish, 0008 * distribute, sublicense, and/or sell copies of the Materials, and to 0009 * permit persons to whom the Materials are furnished to do so, subject to 0010 * the following conditions: 0011 * 0012 * The above copyright notice and this permission notice shall be included 0013 * in all copies or substantial portions of the Materials. 0014 * 0015 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0016 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0017 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 0018 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 0019 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 0020 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 0021 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 0022 ******************************************************************************/ 0023 0024 #include <cmath> 0025 #include <cstring> 0026 #include <ctime> 0027 #include