blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
151436e227554f978d37c2e217468506947c2406
0c8ca41403a6f030fbc3818d24e67326f0254aba
/robot/proto_code/proto_read.cpp
692b9cc5d38232c68982aec8b1fc1fe9df6aa671
[]
no_license
buzhengya/C-Code
44b51d77916c897f12782eb4d765d7fecc2d0a85
e213374502f70ef4637c37d5acf421c3ac228d4a
refs/heads/master
2022-04-01T04:51:25.861444
2020-01-21T10:32:10
2020-01-21T10:32:10
141,689,949
1
0
null
null
null
null
GB18030
C++
false
false
2,600
cpp
proto_read.cpp
#include "proto_read.h" #include "tool.h" #include <iostream> using namespace std; bool CProtoRead::GetProto(string strFile, vector<string> & vecProto) { m_strFile = strFile; if (!_OpenFile()) { cout << "open file : " << strFile << " failed." << endl; return false; } string strMsg = ""; while (_ReadOneMsg(strMsg)) { vecProto.push_back(strMsg); strMsg = ""; } for (auto & it : strMsg) { if (!IsSpace(it)) { return false; } } _CloseFile(); return true; } CProtoRead::CProtoRead() { m_nCurIndex = INVALID_32BIT; } CProtoRead::~CProtoRead() { _CloseFile(); } bool CProtoRead::_OpenFile() { if (m_fStream.is_open()) { _CloseFile(); } m_fStream.open(m_strFile.c_str()); return m_fStream.is_open(); } void CProtoRead::_CloseFile() { if (m_fStream.is_open()) { m_fStream.close(); } } bool CProtoRead::_ReadOneMsg(string & strMsg) { string strLine = ""; while (GetNextLine(strLine)) { if (strLine.find("message") != string::npos) { strMsg = strLine.substr(strLine.find("message")); break; } strLine = ""; } strLine = ""; while (GetNextLine(strLine)) { if (strLine.find("}") != string::npos) { strMsg += strLine.substr(0, strLine.find("}") + 1); break; } strMsg += strLine; strLine = ""; } return strMsg.size() > 0 && strMsg[0] == 'm' && strMsg[strMsg.size() - 1] == '}'; } bool CProtoRead::GetNextLine(string & strLine) { if (m_nCurIndex < m_strCurLine.size()) { strLine = m_strCurLine.substr(m_nCurIndex); m_nCurIndex = INVALID_32BIT; return true; } if (!getline(m_fStream, m_strCurLine)) { return false; } m_strCurLine = DelComment(m_strCurLine); if (m_strCurLine.find("/*") == string::npos) { strLine = m_strCurLine; return true; } string strTmp = m_strCurLine; m_strCurLine = m_strCurLine.substr(0, m_strCurLine.find("/*")); do { if (strTmp.find("*/") != string::npos) { m_nCurIndex = strTmp.find("*/") + 2; strLine = m_strCurLine + strTmp.substr(m_nCurIndex); m_strCurLine = strTmp; //这个是为了防止 */ 注释的最后一行没有数据了 m_nCurIndex却不是最大值 if (m_nCurIndex >= m_strCurLine.size()) { m_nCurIndex = INVALID_32BIT; } return true; } } while (getline(m_fStream, strTmp)); return false; } string CProtoRead::DelComment(string strSrc) { size_t nPos = strSrc.find("//"); if (nPos == strSrc.npos) { return strSrc; } return strSrc.substr(0, nPos); }
e86e8ef669ef9ebefadcd7ff5d952c78f1e12d3b
4b2a3003d807c30387cbddc0342452cb53d83251
/main.cpp
6971272cef9b4de22f5fb3e50cf916c86e382b67
[]
no_license
EddyBer16/YumpuToPDFConverter
a263551703568269c57e2c160a38860ea2ce94ab
b12a1fcad9372f3d29adb9a7b1bc334dd87ed2de
refs/heads/main
2023-02-26T09:21:12.844413
2021-02-04T00:02:25
2021-02-04T00:15:17
335,789,332
1
1
null
null
null
null
UTF-8
C++
false
false
1,705
cpp
main.cpp
#include <iostream> #include <stdlib.h> #include <string> #define pagesTotal 200 using std::cout; using std::to_string; using std::string; void concatenateURL(string *pURL, int page); void downloadPage(string URL, int page); void convertToPdf(); void deleteAllJPGs(); string getAllPagesString(); int main() { string URL = "", *pURL = &URL; int page; for (page = 1; page <= pagesTotal; page++) { concatenateURL(pURL, page); downloadPage(URL, page); } cout << "\nConverting..."; convertToPdf(); cout << "Deleting residual files...\n"; deleteAllJPGs(); return 0; } void concatenateURL(string *pURL, int page) { string urlPath1 = "https://img.yumpu.com/62283426/"; string urlPath2 = "/1215x1600/composicion-escrita.jpg"; *pURL = urlPath1 + to_string(page) + urlPath2; } string getAllPagesString() { string allPagesSeparatedBySpaces = ""; for (int page = 1; page <= pagesTotal; page++) { string filename = "page" + to_string(page) + ".jpg"; allPagesSeparatedBySpaces += filename + " "; } return allPagesSeparatedBySpaces; } void downloadPage(string URL, int page) { string filename = "page" + to_string(page) + ".jpg"; system("clear || cls"); cout << "=== Downloading page " << page << " as " << filename << " ===" << std::endl; string concatenatedCommand = "curl " + URL + " --output " + filename; system(concatenatedCommand.c_str()); } void convertToPdf() { string concatenatedCommand = "convert " + getAllPagesString() + " composicion-escrita.pdf"; system(concatenatedCommand.c_str()); } void deleteAllJPGs() { string concatenatedCommand = "rm " + getAllPagesString(); system(concatenatedCommand.c_str()); }
e34b3cac13bf2a480c680499eb78060aaa29d0f0
61690117232423251b57e3bc044346499f723b65
/components/win32/Win32Module.cpp
a95ef3f49d513c278fbfb9ac2793209bb4b65d60
[]
no_license
taf2/xulmusic
6038e5918d65fad89bd3147864f7aba95fd34923
cb7b3a8ce451206fc1c6af8bfbe32710267f8d49
refs/heads/master
2016-09-05T17:44:32.653165
2009-07-20T16:20:48
2009-07-20T16:20:48
256,060
1
0
null
null
null
null
UTF-8
C++
false
false
1,445
cpp
Win32Module.cpp
/* * "The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * * The Original Code is Todd A. Fisher code. * * The Initial Developer of the Original Code is Todd A. Fisher. * Portions created by the Initial Developer are Copyright (C) 2005 * the Initial Developer. All Rights Reserved. * * Contributor(s): * */ #include "Module.h" #include "Win32Track.h" #include "Win32Player.h" #include "xmPlaylist.h" GENERIC_MODULE_SPEC(Win32Track) GENERIC_MODULE_SPEC(Win32Player) GENERIC_MODULE_SPEC(xmPlaylist) static const nsModuleComponentInfo components[] = { XM_COMPONENT_SPEC( "Media Track Playback Interface", XM_TRACK_CID, XM_TRACK_CONTRACTID, Win32Track), XM_COMPONENT_SPEC( "Singleton Player Interface", XM_PLAYER_CID, XM_PLAYER_CONTRACTID, Win32Player), XM_COMPONENT_SPEC( "Singleton Playlist Interface", XM_PLAYLIST_CID, XM_PLAYLIST_CONTRACTID, xmPlaylist) }; NS_IMPL_NSGETMODULE(xMModule, components)
9803c317d47313137786238dbfd2772af455e687
793c8848753f530aab28076a4077deac815af5ac
/src/dskphone/ui/t48/metaswitchui/mtswvoicemaillistdelegate.cpp
780a600bd47526da20d9b23f5f0900a0a294eac8
[]
no_license
Parantido/sipphone
4c1b9b18a7a6e478514fe0aadb79335e734bc016
f402efb088bb42900867608cc9ccf15d9b946d7d
refs/heads/master
2021-09-10T20:12:36.553640
2018-03-30T12:44:13
2018-03-30T12:44:13
263,628,242
1
0
null
2020-05-13T12:49:19
2020-05-13T12:49:18
null
UTF-8
C++
false
false
8,853
cpp
mtswvoicemaillistdelegate.cpp
#if IF_FEATURE_METASWITCH_VOICEMAIL #include "mtswvoicemaillistdelegate.h" #include "settingui/src/settingitemfactory.h" #include "dlgmtswvoicemail.h" #include "dsklog/log.h" #include "metaswitchui/mtswvoicemaillistitem.h" #include "include/uicommon.h" #include "baseui/t4xpicpath.h" #include "uicommon/qtcommon/qmisc.h" #define ITEM_HIGHT 56 #define MAX_ITEM_CNT 6 MTSWVoicemailListDelegate::MTSWVoicemailListDelegate() : SubpageListDeleagate() , m_pVoicemailFramelist(NULL) , m_pItemPat(NULL) { m_iTotal = 0; } MTSWVoicemailListDelegate::~MTSWVoicemailListDelegate() { m_vecWgtPair.clear(); UnBindFramelist(); m_pItemPat = NULL; } void MTSWVoicemailListDelegate::PreCreateItem() { m_pFramelist->SetMaxPageItemCount(MAX_ITEM_CNT); int iPageItemCount = (NULL == m_pVoicemailFramelist) ? MAX_ITEM_CNT : m_pVoicemailFramelist->GetMaxPageItemCount(); QWidgetPair qPair; qPair.first = ""; qPair.second = NULL; SettingItemList & m_vecNorItem = GetSetItemList(); for (int i = 0; i < iPageItemCount; ++i) { qPair.bAddIndex = false; qPair.iIndex = i; //创建Item CSettingItem * pItem = g_SettingItemManger->CreateItemByType(VOICEMAIL_LIST_ITEM, m_pItemPat, qPair); if (NULL != pItem) { pItem->setObjectName(QString("CSettingItem%1").arg(i)); pItem->hide(); pItem->setFixedHeight(ITEM_HIGHT); m_vecNorItem.push_back(pItem); ((CListItemPtr)pItem)->SetAction(this); } } } void MTSWVoicemailListDelegate::OnItemAction(CFrameListBase * pFrameList, CListItem * pItem, int nAction) { if (NULL == pItem || !(pItem->inherits("CVoiceMailListItem")) || !IsFrameListAttach(pFrameList)) { return; } if (nAction == MTSW_VOICE_MAIL_MORE) { emit ItemMoreAction(pItem); return; } else if (nAction == MTSW_VOICE_MAIL_STOP) { emit ItemStopAction(pItem); return; } else if (nAction == MTSW_VOICE_MAIL_FINISH) { emit ItemFinishAction(pItem); return; } return SubpageListDeleagate::OnItemAction(pFrameList, pItem, nAction); } void MTSWVoicemailListDelegate::BindFramelist(CFrameList * pList) { if (NULL != pList) { m_pVoicemailFramelist = pList; m_pVoicemailFramelist ->SetDelegate(this); } SubpageListDeleagate::BindFramelist(pList); } void MTSWVoicemailListDelegate::UnBindFramelist() { m_pVoicemailFramelist = NULL; SubpageListDeleagate::UnBindFramelist(); } // set widget pair void MTSWVoicemailListDelegate::SetItemsData(QWPVector vecWgtpair, int iTotal) { m_vecWgtPair.clear(); m_vecWgtPair = vecWgtpair; m_iTotal = iTotal; } void MTSWVoicemailListDelegate::HideItem() { SettingItemList & m_vecNorItem = GetSetItemList(); for (int i = 0; i < m_vecNorItem.size(); i++) { if (NULL != m_vecNorItem[i]) { if (NULL != m_vecNorItem[i]->ContentWgt()) { m_vecNorItem[i]->ContentWgt()->setParent(m_pItemPat); m_vecNorItem[i]->ContentWgt()->hide(); } m_vecNorItem[i]->hide(); } } } void MTSWVoicemailListDelegate::ReloadData(int nDataIndex, int nDataCount) { CDlgMTSWVoicemail * pMTSWVoicemail = qobject_cast<CDlgMTSWVoicemail *>(UIManager_GetPrivateDlg( DLG_CDlgMTSWVoicemail)); if (NULL == pMTSWVoicemail || !pMTSWVoicemail->IsTopPage()) { return ; } pMTSWVoicemail->LoadVoicemailList(nDataIndex, nDataCount); } void MTSWVoicemailListDelegate::OnLoadData(CFrameListBase * pFrameList, int nDataIndex, int nDataCount) { HideItem(); int iCurrentIndex = GetCurrentIndex(); ReloadData(nDataIndex, nDataCount); SettingItemList & m_vecNorItem = GetSetItemList(); if (NULL != m_pVoicemailFramelist && m_iTotal >= nDataIndex) { //先清空当前数据 m_pVoicemailFramelist->DetachAllItem(true); m_pVoicemailFramelist->SetTotalDataCount(m_iTotal); m_pVoicemailFramelist->SetItemAttach(); int iPageItemCount = m_pVoicemailFramelist->GetMaxPageItemCount(); //重新添加数据 for (int i = nDataIndex, j = 0; i < nDataIndex + nDataCount && i < m_iTotal && j < iPageItemCount; i++, j++) { if (NULL == m_vecNorItem[j]) { continue; } ((CListItemPtr)m_vecNorItem[j])->SetDataIndex(i); if (NULL != m_vecWgtPair[j].first) { m_vecNorItem[j]->SetLabText(m_vecWgtPair[j].first); } if (m_vecWgtPair[j].second != NULL) { m_vecNorItem[j]->SetContentWgt(m_vecWgtPair[j].second); } if (NULL != m_vecWgtPair[j].third) { m_vecNorItem[j]->SetClickAction(m_vecWgtPair[j].third); } if (NULL != m_vecNorItem[j] && m_vecNorItem[j]->inherits("CVoiceMailListItem")) { VoiceMsgItemDetailData VMIDD; MTSWVM_GetMessageDetail(&VMIDD, i); //初始或stop状态 if (strcmp(m_vecWgtPair[j].third.toUtf8().data(), DM_SOFTKEY_MTSW_PLAY) == 0) { sys_Time_t timer; sys_get_systime(&timer); yl::string strDate = GetData(VMIDD.m_tTime + timer.sys_tm.tm_gmtoff, true); yl::string strTime = GetHourMinute(VMIDD.m_tTime, true); ((CVoiceMailListItem *)m_vecNorItem[j])->SetDate(toQString(strDate)); ((CVoiceMailListItem *)m_vecNorItem[j])->SetTime(toQString(strTime)); ((CVoiceMailListItem *)m_vecNorItem[j])->SetPlayStatus(false); //Stop状态关闭定时器 if (strcmp(m_vecWgtPair[j].strIcon.c_str(), PIC_USB_BROWSE_ITEM_STOP_PRESS) == 0) { m_vecWgtPair[j].strIcon = PIC_USB_BROWSE_ITEM_PLAY; ((CVoiceMailListItem *)m_vecNorItem[j])->StopPlayTimer(); ((CVoiceMailListItem *)m_vecNorItem[j])->ResetTime(); } } //Play或Resume状态 else if (strcmp(m_vecWgtPair[j].third.toUtf8().data(), DM_SOFTKEY_MTSW_PAUSE) == 0) { //Play状态关闭定时器 if (strcmp(m_vecWgtPair[j].strIcon.c_str(), PIC_USB_BROWSE_ITEM_PLAY_PRESS) == 0) { m_vecWgtPair[j].strIcon = PIC_USB_BROWSE_ITEM_PAUSE; CloseAllTimer(m_vecNorItem); } ((CVoiceMailListItem *)m_vecNorItem[j])->SetPlayStatus(true); ((CVoiceMailListItem *)m_vecNorItem[j])->StartPlayTimer(); } //Pause状态 else if (strcmp(m_vecWgtPair[j].third.toUtf8().data(), DM_SOFTKEY_MTSW_RESUME) == 0) { ((CVoiceMailListItem *)m_vecNorItem[j])->SetPlayStatus(true); ((CVoiceMailListItem *)m_vecNorItem[j])->StopPlayTimer(); } ((CVoiceMailListItem *)m_vecNorItem[j])->SetReadStatus(VMIDD.m_eStatus == STATUS_READ); ((CVoiceMailListItem *)m_vecNorItem[j])->SetShowUrgent(VMIDD.m_bUrgent); ((CVoiceMailListItem *)m_vecNorItem[j])->AddIcon(m_vecWgtPair[j].strIcon.c_str()); } //翻页时纠正选中项 if (m_vecNorItem[j]->IsFocus() && m_vecNorItem[j]->GetDataIndex() != GetCurrentIndex()) { m_vecNorItem[j]->FocusItem(false); } ((CListItemPtr)m_vecNorItem[j])->SetAction(this); m_pVoicemailFramelist->AddItem(m_vecNorItem[j]); m_vecNorItem[j]->Relayout(); } if (iCurrentIndex >= nDataIndex && iCurrentIndex < nDataIndex + m_pVoicemailFramelist->GetTotalItemCount()) { m_pVoicemailFramelist->SetItemFocusByIndex(m_pVoicemailFramelist->GetIndexByDataIndex( iCurrentIndex)); } else { m_pVoicemailFramelist->SetItemFocusByIndex(0); } m_pVoicemailFramelist->setFocus(); } } void MTSWVoicemailListDelegate::CloseAllTimer(SettingItemList & m_vecNorItem) { for (int j = 0; j < m_vecNorItem.size(); j++) { if (NULL == m_vecNorItem[j]) { continue; } ((CVoiceMailListItem *)m_vecNorItem[j])->StopPlayTimer(); ((CVoiceMailListItem *)m_vecNorItem[j])->ResetTime(); } } #endif
ce871e2132985543f7ece6551ae85663e4e36908
8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a
/3rdParty/boost/1.78.0/libs/math/example/ooura_fourier_integrals_multiprecision_example.cpp
f2ac131941350773ca51816a072eb208f1b476c2
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause", "ICU", "Zlib", "GPL-1.0-or-later", "OpenSSL", "ISC", "LicenseRef-scancode-gutenberg-2020", "MIT", "GPL-2.0-only", "CC0-1.0", "LicenseRef-scancode-autoconf-simple-exception", "LicenseRef-scancode-pcre", "Bison-exception-2.2", "LicenseRef-scancode-public-domain", "JSON", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-4-Clause", "Python-2.0", "LGPL-2.1-or-later" ]
permissive
arangodb/arangodb
0980625e76c56a2449d90dcb8d8f2c485e28a83b
43c40535cee37fc7349a21793dc33b1833735af5
refs/heads/devel
2023-08-31T09:34:47.451950
2023-08-31T07:25:02
2023-08-31T07:25:02
2,649,214
13,385
982
Apache-2.0
2023-09-14T17:02:16
2011-10-26T06:42:00
C++
UTF-8
C++
false
false
5,236
cpp
ooura_fourier_integrals_multiprecision_example.cpp
// Copyright Paul A. Bristow, 2019 // Copyright Nick Thompson, 2019 // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606L) # error "This example requires a C++17 compiler that supports 'structured bindings'. Try /std:c++17 or -std=c++17 or later." #endif //#define BOOST_MATH_INSTRUMENT_OOURA // or -DBOOST_MATH_INSTRUMENT_OOURA etc for diagnostic output. #include <boost/math/quadrature/ooura_fourier_integrals.hpp> #include <boost/multiprecision/cpp_bin_float.hpp> // for cpp_bin_float_quad, cpp_bin_float_50... #include <boost/math/constants/constants.hpp> // For pi (including for multiprecision types, if used.) #include <cmath> #include <iostream> #include <limits> #include <iostream> #include <exception> int main() { try { typedef boost::multiprecision::cpp_bin_float_quad Real; std::cout.precision(std::numeric_limits<Real>::max_digits10); // Show all potentially significant digits. using boost::math::quadrature::ooura_fourier_cos; using boost::math::constants::half_pi; using boost::math::constants::e; //[ooura_fourier_integrals_multiprecision_example_1 // Use the default parameters for tolerance root_epsilon and eight levels for a type of 8 bytes. //auto integrator = ooura_fourier_cos<Real>(); // Decide on a (tight) tolerance. const Real tol = 2 * std::numeric_limits<Real>::epsilon(); auto integrator = ooura_fourier_cos<Real>(tol, 8); // Loops or gets worse for more than 8. auto f = [](Real x) { // More complex example function. return 1 / (x * x + 1); }; double omega = 1; auto [result, relative_error] = integrator.integrate(f, omega); //] [/ooura_fourier_integrals_multiprecision_example_1] //[ooura_fourier_integrals_multiprecision_example_2 std::cout << "Integral = " << result << ", relative error estimate " << relative_error << std::endl; const Real expected = half_pi<Real>() / e<Real>(); // Expect integral = 1/(2e) std::cout << "pi/(2e) = " << expected << ", difference " << result - expected << std::endl; //] [/ooura_fourier_integrals_multiprecision_example_2] } catch (std::exception const & ex) { // Lacking try&catch blocks, the program will abort after any throw, whereas the // message below from the thrown exception will give some helpful clues as to the cause of the problem. std::cout << "\n""Message from thrown exception was:\n " << ex.what() << std::endl; } } // int main() /* //[ooura_fourier_integrals_example_multiprecision_output_1 `` Integral = 0.5778636748954608589550465916563501587, relative error estimate 4.609814684522163895264277312610830278e-17 pi/(2e) = 0.5778636748954608659545328919193707407, difference -6.999486300263020581921171645255733758e-18 `` //] [/ooura_fourier_integrals_example_multiprecision_output_1] //[ooura_fourier_integrals_example_multiprecision_diagnostic_output_1 `` ooura_fourier_cos with relative error goal 3.851859888774471706111955885169854637e-34 & 15 levels. epsilon for type = 1.925929944387235853055977942584927319e-34 h = 1.000000000000000000000000000000000, I_h = 0.588268622591776615359568690603776 = 0.5882686225917766153595686906037760, absolute error estimate = nan h = 0.500000000000000000000000000000000, I_h = 0.577871642184837461311756940493259 = 0.5778716421848374613117569404932595, absolute error estimate = 1.039698040693915404781175011051656e-02 h = 0.250000000000000000000000000000000, I_h = 0.577863671186882539559996800783122 = 0.5778636711868825395599968007831220, absolute error estimate = 7.970997954921751760139710137450075e-06 h = 0.125000000000000000000000000000000, I_h = 0.577863674895460885593491133506723 = 0.5778636748954608855934911335067232, absolute error estimate = 3.708578346033494332723601147051768e-09 h = 0.062500000000000000000000000000000, I_h = 0.577863674895460858955046591656350 = 0.5778636748954608589550465916563502, absolute error estimate = 2.663844454185037302771663314961535e-17 h = 0.031250000000000000000000000000000, I_h = 0.577863674895460858955046591656348 = 0.5778636748954608589550465916563484, absolute error estimate = 1.733336949948512267750380148326435e-33 h = 0.015625000000000000000000000000000, I_h = 0.577863674895460858955046591656348 = 0.5778636748954608589550465916563479, absolute error estimate = 4.814824860968089632639944856462318e-34 h = 0.007812500000000000000000000000000, I_h = 0.577863674895460858955046591656347 = 0.5778636748954608589550465916563473, absolute error estimate = 6.740754805355325485695922799047246e-34 h = 0.003906250000000000000000000000000, I_h = 0.577863674895460858955046591656347 = 0.5778636748954608589550465916563475, absolute error estimate = 1.925929944387235853055977942584927e-34 Integral = 5.778636748954608589550465916563475e-01, relative error estimate 3.332844800697411177051445985473052e-34 pi/(2e) = 5.778636748954608589550465916563481e-01, difference -6.740754805355325485695922799047246e-34 `` //] [/ooura_fourier_integrals_example_multiprecision_diagnostic_output_1] */
5118fd4a4f27f26df4cca1aa7c7627d3f5ede03e
b4925f354c0236406d07cdab4e47667f12f58067
/3.- SEGURIDAD/Cliente.cpp
ab3ec8404409e7ec99b8f41e90a7e0aba50809d8
[]
no_license
MauricioCerv10/schoolhistory
93be0e0adc57a79e5feea4665cac92d925edd9d8
7e5ef296909cc1e6daa54846e595b299e4be4e6e
refs/heads/master
2023-07-01T16:14:25.918824
2021-07-30T03:12:15
2021-07-30T03:12:15
390,902,375
0
0
null
null
null
null
UTF-8
C++
false
false
2,324
cpp
Cliente.cpp
#include <iostream> #include <fstream> #include <sstream> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include "Solicitud.h" /* Variables foráneas: ->LIMITE_ARCHIVO ->Ubicación: Mensaje.h Entidades foráneas: ->struct mensaje ->Ubicación: Mensaje.h ->Solicitud ->Ubicación: Solicitud.h */ int flipBit(int bit); using namespace std; struct registro{ char celular[11]; char CURP[19]; char partido[4]; }; int main(int argc, char* argv[]){ if(argc != 3){ cout << "Modo de uso: " << argv[0] << " direccion_ip_del_servidor nombre_del_archivo" << endl; return 0; } else if(strlen(argv[1])>16){ cout << "--!! ERROR: IP inválida. Inténtelo de nuevo." << endl; return 0; } Solicitud s; struct registro reg; struct mensaje mensajeEnvio; struct mensaje mensajeRecibo; int archivoLeer; mensajeEnvio.messageType = 0; mensajeEnvio.requestId = 0; if((archivoLeer = open(argv[2], O_RDONLY)) == -1){ cout << "--!! ERROR: Error al leer." << endl; exit(-1); } for(int j = 0; j < 1000; j++){ read(archivoLeer, &reg, sizeof(reg)); memcpy(&mensajeEnvio.archivo,(char*)&reg,sizeof(reg)); memcpy((char*)&mensajeRecibo, s.doOperation(argv[1], 7200, (char*)(&mensajeEnvio)), sizeof(struct mensaje)); //if(mensajeRecibo.messageType != flipBit(mensajeEnvio.messageType) ){cout << "Ups, error de messageType en iteración: " << j << endl; break;} //if(mensajeRecibo.requestId != mensajeEnvio.requestId){cout << "Ups, error de requestId en iteración: " << j << endl; break;} //if(mensajeRecibo.pesos != verificar){cout << "Ups, error de pesos en iteración: " << f << endl; break;} cout << ";;========================================" << endl; cout << "Mensaje recibido dentro de Cliente.cpp." << endl; cout << "IP de quién lo envió: " << s.getIP() << endl; cout << "Tipo de mensaje: " << mensajeRecibo.messageType << endl; cout << "ID: " << mensajeRecibo.requestId << endl; cout << ";;========================================" << endl; mensajeEnvio.requestId = (mensajeRecibo.requestId)+1; /*read(archivoLeer, &reg, sizeof(reg)); cout << reg.celular << endl; cout << reg.CURP << endl; cout << reg.partido << endl; s.doOperation(argv[1],7200,(char*)&reg);*/ } return 0; } int flipBit(int bit){ if(bit == 0) return 1; else return 0; }
0a207aaf1bccae1fe167b509ab8feb66944e81a7
fed831589a6414430544759f79fed0677098c391
/source/OctaneEngine/EntityID.h
7ee8764656561e01a024ff2581819d40dd6cc55f
[]
no_license
zachrammell/octane-engine
42be2466d028588efd0e78fd51b233a3e8783538
0725cff58b2ce55b923996c5f20064a8ab9ef35c
refs/heads/master
2023-02-26T05:49:57.169095
2020-12-10T00:07:54
2020-12-10T00:07:54
335,762,774
0
0
null
null
null
null
UTF-8
C++
false
false
200
h
EntityID.h
#pragma once #include <EASTL/numeric_limits.h> namespace Octane { using EntityID = uint32_t; static constexpr EntityID INVALID_ENTITY = (eastl::numeric_limits<EntityID>::max)(); } // namespace Octane
e80ed15e566b3538df7355f8783dc7a0400c8b2b
16a67d50c0fdfed550966abf340b080eae69d781
/engine/src/imgui/imguiwindow.h
2e71ece212e64e91568b531c74b972ea5c0debc4
[ "MIT" ]
permissive
anujv99/GameEngine
f3e2a03e6e8cbb51c6b46105f852313a20764909
644cb6667800cfecaa429666e5610e27f923e953
refs/heads/master
2023-07-04T12:41:02.015462
2021-07-23T11:20:22
2021-07-23T11:20:22
225,782,838
0
0
null
null
null
null
UTF-8
C++
false
false
793
h
imguiwindow.h
#pragma once #include "../math/math.h" #include "../common/handledobject.h" #include "../common/types.h" namespace prev { struct ImGuiWindow : public HandledObject<ImGuiWindow> { pvstring Name; // Name Vec2i Pos; // Center Position Vec2i Dimen; // Dimension of window Vec2i DimenAutoSize; // Autosize Vec2i DimenAutoSizePrev; // Autosize of last frame Vec2i ScrollPos; // Scroll position pvint TitleBarMinWidth; // Minimum title bar width; pvfloat BackgroundAlpha; // Background alpha pvbool AutoSize; // Autosize on/off pvbool IsMinimized; // Is minimized pvbool IsNewWindow; // True for new window pvbool IsLocked; // Lock window on/off pvint FramesSinceUpdate; // >=1 means window is not active ImGuiWindow(); }; }
a39a8df69168086bd4b2d2f0c75c96743cd39f6b
2c555b82ce9e068b5cd01aa83fef77f6ca9d9747
/Angry Birds/SlingLine.h
2e590bb0c3705bbb2a7ecfa1910831e03f9832b7
[]
no_license
LEChaney/Angry-Birds
4fd08cc673c36e994753849c91580a99d904c73e
8bce5f13d2326016b8809e061712f1549850f38c
refs/heads/master
2020-03-07T13:36:48.081401
2018-04-09T22:30:14
2018-04-09T22:30:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
228
h
SlingLine.h
#pragma once #include <Box2D\Box2D.h> class Birb; struct NVGcontext; class SlingLine { public: SlingLine(b2Vec2 slingPos, Birb*& grabbedBirb); void draw(NVGcontext*); private: b2Vec2 m_slingPos; Birb*& m_grabbedBirb; };
b523b2f11032f1874708033d338118e9decc8aa0
a5b566fe7906ec05fa0e638eab99d623eac8564e
/sources/AASubSelSubMatrix.cpp
02266590d0afc3f813335463e398c7c43bb92377
[]
no_license
bayesiancook/bayescode
6d44f97ee617164538ac977cb5219ae670135674
855ac3b331267b9626d2ac25952d36a6a9374bdd
refs/heads/master
2023-08-29T03:37:01.202960
2022-10-05T16:06:57
2022-10-05T16:06:57
92,596,965
4
4
null
2022-04-14T08:36:06
2017-05-27T12:20:15
C++
UTF-8
C++
false
false
1,492
cpp
AASubSelSubMatrix.cpp
#include "AASubSelSubMatrix.hpp" #include <iostream> using namespace std; // --------------------------------------------------------------------------- // AASubSelSubMatrix // --------------------------------------------------------------------------- AASubSelSubMatrix::AASubSelSubMatrix(int inNstate, const std::vector<double> &rr, const std::vector<double> &stat, bool innormalise) : SubMatrix(inNstate, innormalise), mRelativeRate(rr) { Nrr = Nstate * (Nstate - 1) / 2; CopyStationary(stat); } void AASubSelSubMatrix::CopyStationary(const std::vector<double> &instat) { for (int k = 0; k < Nstate; k++) { mStationary[k] = instat[k]; } } // --------------------------------------------------------------------------- // ComputeArray // --------------------------------------------------------------------------- void AASubSelSubMatrix::ComputeArray(int i) const { double total = 0; for (int j = 0; j < Nstate; j++) { if (i != j) { Q(i, j) = RelativeRate(i, j); double S = log(GetFitness(j)) - log(GetFitness(i)); if ((fabs(S)) < 1e-30) { Q(i, j) *= 1 + S / 2; } else if (S > 50) { Q(i, j) *= S; } else if (S < -50) { Q(i, j) = 0; } else { Q(i, j) *= S / (1.0 - exp(-S)); } total += Q(i, j); } } Q(i, i) = -total; }
a8e00333c3098a1294acd500c8fd5b0de09fbf36
0201c254e64b49736f1a3098fb73d09466b75e26
/ZPar-Meishan-master/src/include/linguistics/disconstituent.h
4326c088bccf6525ea3db117803c4a9344f874b1
[]
no_license
zenRRan/ZPar_Example
d53c9a448e59ccb22111e02e28183954216082c9
020b67aec0c008ca9db3b39151ae8c770446ff2a
refs/heads/master
2020-04-06T06:25:04.218308
2017-02-23T06:16:08
2017-02-23T06:16:08
82,891,161
0
0
null
null
null
null
UTF-8
C++
false
false
8,622
h
disconstituent.h
// Copyright (C) University of Oxford 2010 /**************************************************************** * * * constituent.h - the constituent tree * * * * Author: Yue Zhang * * * * Computing Laboratory, Oxford. 2008.11 * * * ****************************************************************/ #ifndef _DISCONSTITUENT_H #define _DISCONSTITUENT_H #include "definitions.h" #include "utils.h" #include "cfg.h" namespace TARGET_LANGUAGE { /*============================================================== * * CDISTreeNode * *==============================================================*/ class CDISTreeNode { public: bool is_leaf; // bool single_child; // single or double bool head_left; bool temp; // fields for constituents std::string constituent; // if constituent tree, false; if discourse tree, true bool type; // unsigned long constituent; int left_child; int right_child; // fields for tokens and constituents int token_start; int token_end; int head_start; int head_end; public: CDISTreeNode() : head_start(-1), head_end(-1), token_start(-1), token_end(-1), left_child(-1), right_child(-1), is_leaf(false), single_child(false), head_left(true), temp(false), type(false), constituent("") { } virtual ~CDISTreeNode() {} public: bool operator ==(const CDISTreeNode &item) const { throw("Can't compare directly because the contents are flexible indice. Compare trees!"); } std::string str() const { std::ostringstream os; if (!is_leaf) os << "Constituent(left=" << left_child << ", right=" << right_child << ")"; else os << "Leaf"; return os.str(); } }; /*============================================================== * * CDISTree * * Note that we must define the constituent as sentencetemplate * in order to use the standard reading and writing functions * defined by the sentence template. Inheritance does not work * with template because the generic programming idea does not * mix well with the object-oriented programming ideologies. * *==============================================================*/ class CDISTree { public: CTwoStringVector words; std::vector<CDISTreeNode> syn_nodes; std::vector<unsigned long> syn_roots; std::vector<unsigned long> syn_starts; std::vector<unsigned long> syn_ends; std::vector< unsigned long > edu_starts; std::vector< unsigned long > edu_ends; std::vector<CDISTreeNode> dis_nodes; int dis_root; public: CDISTree() : dis_root (-1) {} virtual ~CDISTree() {} public: int newNode(bool is_syn) { if(is_syn){syn_nodes.push_back(CDISTreeNode()); return syn_nodes.size()-1; } else{dis_nodes.push_back(CDISTreeNode()); return dis_nodes.size()-1;} } int newWord(const std::string &word, const std::string &pos) { words.push_back(std::make_pair(word, pos)); return(words.size()-1); } int newEdu(const unsigned long &startId, const unsigned long &endId) {edu_starts.push_back(startId); edu_ends.push_back(endId);return(edu_starts.size()-1); } bool empty() const {return dis_nodes.empty()&&syn_nodes.empty()&&words.empty();} void clear() {dis_root=-1;dis_nodes.clear();syn_roots.clear();syn_nodes.clear(); syn_starts.clear(); syn_ends.clear(); words.clear();edu_starts.clear();edu_ends.clear();} int readNode(std::istream &is, bool is_syn); std::string writeNode(int node, bool is_syn) const; std::string debugNode(int node, bool is_syn) const; std::string writeNodeUnbin(int node, bool is_syn) const; bool nodesEqual(const CDISTree &tree, int i, int tree_i, bool is_syn) const ; std::string str() const { if (dis_root == -1) return ""; std::ostringstream oss; static int i; for(i=0; i<words.size();i++) { if(words[i].second == "-NONE-" ) oss << words[i].first << std::endl; else oss << words[i].first << "_" << words[i].second << " "; } for(i=0; i<syn_roots.size();i++) oss << writeNode(syn_roots[i], true) << std::endl; oss << writeNode(dis_root, false) << std::endl; return oss.str(); } std::string str_unbinarized() const { if (dis_root == -1) return ""; std::ostringstream oss; static int i; for(i=0; i<words.size();i++) { if(words[i].second == "-NONE-" ) oss << words[i].first << std::endl; else oss << words[i].first << "_" << words[i].second << " "; } for(i=0; i<syn_roots.size();i++) oss << "(ROOT " << writeNodeUnbin(syn_roots[i], true) << ")" << std::endl; oss << writeNodeUnbin(dis_root, false) << std::endl; return oss.str(); } bool operator == (const CDISTree &tree) const { static int i; if(words.size() != tree.words.size()) return false; if(syn_roots.size() != tree.words.size()) return false; for(i=0; i<words.size();i++) { if(words[i].first != tree.words[i].first || words[i].second != tree.words[i].second) { return false; } } for(i=0; i<syn_roots.size();i++) { if(!nodesEqual(tree, syn_roots[i], tree.syn_roots[i], true)) return false; } return nodesEqual(tree, dis_root, tree.dis_root, false); } int parent(const int &node, bool is_syn) const { if(is_syn) { int sent_id = 0; while(syn_ends[sent_id] < node) sent_id++; for (int i=node+1; i<=syn_ends[i]; ++i) { if (syn_nodes[i].left_child==node || syn_nodes[i].right_child==node) return i; } } else { for (int i=node+1; i<dis_nodes.size(); ++i) { if (dis_nodes[i].left_child==node || dis_nodes[i].right_child==node) return i; } } return -1; } }; //============================================================== inline std::istream & operator >> (std::istream &is, CDISTree &tree) { tree.clear(); std::vector<std::string> lines; std::string line; std::string word_pos, curword, curpos; int i, j; getline(is, line); while(is && !line.empty()) { lines.push_back(line); getline(is, line); } int line_count = lines.size(); if(line_count == 0) return is; if(line_count%2!=1) { assert(0); } int sent_num = line_count/2; for(i=0; i < sent_num; i++) { std::istringstream iss_sent(lines[i]); while(iss_sent) { iss_sent >> word_pos; curword = ""; curpos = ""; j=word_pos.length()-1; while(j>=0) { if(word_pos[j] == '_')break; curpos = word_pos[j]+curpos; j--; } if(j==-1) { curword=curpos; curpos = "-NONE-"; assert(curword=="<S>"||curword=="<P>"); tree.words.push_back(std::make_pair(curword, curpos)); break; } else { j--; while(j>=0) { curword = word_pos[j]+curword; j--; } tree.words.push_back(std::make_pair(curword, curpos)); } } std::istringstream iss_cfg(lines[sent_num+i]); tree.syn_starts.push_back(tree.syn_nodes.size()); tree.syn_roots.push_back(tree.readNode(iss_cfg, true)); tree.syn_ends.push_back(tree.syn_nodes.size()-1); } std::istringstream iss_dis(lines[2*sent_num]); tree.dis_root = tree.readNode(iss_dis, false); /* std::cout << "syn trees:" << std::endl; for(i=0; i<tree.syn_starts.size();i++) { std::cout << "start: " << tree.syn_starts[i] << "\tend: " << tree.syn_ends[i] << "\tend: " << tree.syn_roots[i] << std::endl; } std::cout << "edus:" << std::endl; for(i=0; i<tree.edu_starts.size();i++) { std::cout << "start: " << tree.edu_starts[i] << "\tend: " << tree.edu_ends[i] << std::endl; } */ return is ; } inline std::ostream & operator << (std::ostream &os, const CDISTree &tree) { os << tree.str() << std::endl; return os ; } //============================================================== inline void UnparseSentence(const CDISTree *parsed, CTwoStringVector *tagged) { (*tagged) = parsed->words; } } #endif
cf3fa669cd65c9b5d95791f257177bf6b35ca33a
7fa5f9c40ad60e7cdafabec84421e9f2dd5665fa
/src/httpclient.h
2680371f9309ba7f806a9178a8ff3a8cbcb32eb6
[ "MIT" ]
permissive
d80y6/OpenWx
3bf58cdc82089dad2dc0b34806e8ec39b6c3f4b1
976a6891c0919ff56ad9fe758b71251b0e4c3aeb
refs/heads/master
2022-12-20T14:52:31.503140
2020-09-14T21:57:18
2020-09-14T21:58:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
521
h
httpclient.h
#ifndef HTTPCLIENT_H #define HTTPCLIENT_H #include <functional> #include <list> #include <string> typedef void CURLM; class HttpClient { public: HttpClient(); virtual ~HttpClient(); void get(const std::string& url, std::function<void(std::string)> callback); private: void perform(); static float flightLoop(float inElapsedSinceLastCall, float inElapsedTimeSinceLastFlightLoop, int inCounter, void *inRefcon); CURLM* m_curl = nullptr; int m_handleCount = 0; }; #endif // HTTPCLIENT_H
340b7b0cb77559b4fe17d263cad457a093a6e766
a2803c12762066961d16ac53c2d55899e557c3f4
/src/Epsilon.cxx
00f9ecf30b8adb2c1e5901749567c0cdc9b08852
[ "MIT" ]
permissive
nilsalex/tensor-trees
f16210330b7f854d32ca7c815c1894ee17f39ce6
48b5b4f6932705bac7160bb3379f6066222f9b70
refs/heads/master
2020-03-15T04:35:09.278891
2018-08-03T21:29:39
2018-08-03T21:29:39
131,969,210
0
0
null
null
null
null
UTF-8
C++
false
false
9,815
cxx
Epsilon.cxx
#include <sstream> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/serialization/base_object.hpp> #include <boost/serialization/export.hpp> #include "Epsilon.hxx" BOOST_CLASS_EXPORT(Epsilon) #include "eval.hxx" Epsilon::Epsilon(char const i1, char const i2, char const i3, char const i4) : i1(i1), i2(i2), i3(i3), i4(i4) {} template<class Archive> void Epsilon::serialize (Archive & ar, unsigned int const) { ar & boost::serialization::base_object<Node>(*this); ar & i1; ar & i2; ar & i3; ar & i4; } void Epsilon::exchangeTensorIndices (std::map<char, char> const & exchange_map) { auto it = exchange_map.find(i1); if (it != exchange_map.end()) { i1 = it->second; } it = exchange_map.find(i2); if (it != exchange_map.end()) { i2 = it->second; } it = exchange_map.find(i3); if (it != exchange_map.end()) { i3 = it->second; } it = exchange_map.find(i4); if (it != exchange_map.end()) { i4 = it->second; } } int Epsilon::sortIndices() { int ret = 1; bool swapped = true; do { swapped = false; if (i1 == i2) { ret = 0; } else if (i1 > i2) { std::swap (i1, i2); swapped = true; ret *= -1; } if (i2 == i3) { ret = 0; } else if (i2 > i3) { std::swap (i2, i3); swapped = true; ret *= -1; } if (i3 == i4) { ret = 0; } else if (i3 > i4) { std::swap (i3, i4); swapped = true; ret *= -1; } } while (swapped); return ret; } char Epsilon::order () const { return 0; } std::string Epsilon::print () const { std::stringstream ss; ss << "Epsilon {" << i1 << i2 << i3 << i4 << "}"; return ss.str(); } std::string Epsilon::printMaple () const { std::stringstream ss; ss << "LeviCivita[~" << i1 << ", ~" << i2 << ", ~" << i3 << ", ~" << i4 << "]"; return ss.str(); } int Epsilon::evaluate(std::map <char, char> const & eval_map) const { return (- 1 * epsilon_eval.at(64 * eval_map.at(i1) + 16 * eval_map.at(i2) + 4 * eval_map.at(i3) + eval_map.at(i4))); } mpq_class Epsilon::symmetrize() { return sortIndices(); } bool Epsilon::containsIndex (char i) const { return (i == i1 || i == i2 || i == i3 || i == i4); } int Epsilon::applyTensorSymmetries (int parity) { int epsilon_parity = sortIndices(); return (parity * epsilon_parity); } bool Epsilon::lessThan(Node const * other) const { auto other_eps = static_cast<Epsilon const *>(other); if (i1 < other_eps->i1) { return true; } else if (i1 > other_eps->i1) { return false; } else if (i2 < other_eps->i2) { return true; } else if (i2 > other_eps->i2) { return false; } else if (i3 < other_eps->i3) { return true; } else if (i3 > other_eps->i3) { return false; } else if (i4 < other_eps->i4) { return true; } else { return false; } } bool Epsilon::equals(Node const * other) const { if (other == nullptr) { return false; } else if (typeid(*this) != typeid(*other)) { return false; } else { auto other_eps = static_cast<Epsilon const *> (other); return (i1 == other_eps->i1 && i2 == other_eps->i2 && i3 == other_eps->i3 && i4 == other_eps->i4); } } std::unique_ptr<Node> Epsilon::clone () const { return std::unique_ptr<Node>(new Epsilon(*this)); } std::tuple<int, char, std::map<char, char>> Epsilon::multiplyWithOther3 (char j1, char j2, char j3) const { assert (j1 != j2 && j1 != j3 && j2 != j3); bool const is_contained_j1 = containsIndex (j1); bool const is_contained_j2 = containsIndex (j2); bool const is_contained_j3 = containsIndex (j3); std::vector<char> contained; if (is_contained_j1) { contained.push_back (j1); } if (is_contained_j2) { contained.push_back (j2); } if (is_contained_j3) { contained.push_back (j3); } if (contained.size() == 0) { return {-24, i1, {{j1, i2}, {j2, i3}, {j3, i4}}}; } else if (contained.size() == 3) { std::vector<char> i_vec {i1, i2, i3, i4}; int parity = 1; if (std::find (contained.cbegin(), contained.cend(), i_vec[0]) == contained.cend()) { // do nothing } else if (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()) { std::iter_swap (i_vec.begin(), i_vec.begin() + 1); parity *= -1; } else if (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()) { std::iter_swap (i_vec.begin(), i_vec.begin() + 2); parity *= -1; } else { assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin(), i_vec.begin() + 3); parity *= -1; } if ( (i_vec[1] == j1 && i_vec[2] == j2 && i_vec[3] == j3) || (i_vec[2] == j1 && i_vec[3] == j2 && i_vec[1] == j3) || (i_vec[3] == j1 && i_vec[1] == j2 && i_vec[2] == j3) ) { // sorted } else { // unsorted assert ( (i_vec[1] == j1 && i_vec[3] == j2 && i_vec[2] == j3) || (i_vec[3] == j1 && i_vec[2] == j2 && i_vec[1] == j3) || (i_vec[2] == j1 && i_vec[1] == j2 && i_vec[3] == j3)); parity *= -1; } return {-6 * parity, i_vec[0], { }}; } else if (contained.size() == 2) { std::vector<char> i_vec {i1, i2, i3, i4}; std::vector<char> j_vec {j1, j2, j3}; int parity = 1; if (!is_contained_j1) { // nothing } else if (!is_contained_j2) { j_vec = {j2, j1, j3}; parity *= -1; } else { assert (!is_contained_j3); j_vec = {j3, j1, j2}; } if (std::find (contained.cbegin(), contained.cend(), i_vec[0]) == contained.cend()) { if (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()) { // do nothing } else if (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()) { std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 2); parity *= -1; } else { assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 3); parity *= -1; } } else if (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()) { std::iter_swap (i_vec.begin(), i_vec.begin() + 1); parity *= -1; if (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()) { std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 2); parity *= -1; } else { assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 3); parity *= -1; } } else { assert (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin(), i_vec.begin() + 2); std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 3); } if (i_vec[2] == contained[0]) { // sorted } else { assert (i_vec[2] == contained[1]); parity *= -1; } return { -4 * parity, i_vec[0], {{j_vec[0], i_vec[1]}} }; } else if (contained.size() == 1) { std::vector<char> i_vec {i1, i2, i3, i4}; std::vector<char> j_vec {j1, j2, j3}; int parity = 1; if (!is_contained_j1) { if (!is_contained_j2) { // nothing } else { assert (!is_contained_j3); j_vec = {j1, j3, j2}; parity *= -1; } } else { assert (!is_contained_j2); assert (!is_contained_j3); j_vec = {j2, j3, j1}; } if (std::find (contained.cbegin(), contained.cend(), i_vec[0]) != contained.cend()) { assert (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin(), i_vec.begin() + 1); std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 2); std::iter_swap (i_vec.begin() + 2, i_vec.begin() + 3); parity *= -1; } else if (std::find (contained.cbegin(), contained.cend(), i_vec[1]) != contained.cend()) { assert (std::find (contained.cbegin(), contained.cend(), i_vec[0]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin() + 1, i_vec.begin() + 2); std::iter_swap (i_vec.begin() + 2, i_vec.begin() + 3); } else if (std::find (contained.cbegin(), contained.cend(), i_vec[2]) != contained.cend()) { assert (std::find (contained.cbegin(), contained.cend(), i_vec[0]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[3]) == contained.cend()); std::iter_swap (i_vec.begin() + 2, i_vec.begin() + 3); parity *= -1; } else if (std::find (contained.cbegin(), contained.cend(), i_vec[3]) != contained.cend()) { assert (std::find (contained.cbegin(), contained.cend(), i_vec[0]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[1]) == contained.cend()); assert (std::find (contained.cbegin(), contained.cend(), i_vec[2]) == contained.cend()); // nothing } return { -6 * parity, i_vec[0], {{j_vec[0], i_vec[1]}, {j_vec[1], i_vec[2]}} }; } else { assert (false); return {0, 0, {}}; } }
51518d3b93c21353f2f97637dbc2efac138fb8ac
c62710853eaaaaa554fe2ef348db1b615ec814fb
/c/niuhongli/chapter07/ex7.26.cpp
e88d0b09ab25b4c4c8666df3db02899850b51cb7
[]
no_license
CodingWD/course
e38d75871e17627d1ce24beef6700ef65e606640
e80eeba61be9c0960002259a452babce44ee84a1
refs/heads/master
2023-04-06T21:47:54.940420
2021-04-15T10:25:30
2021-04-15T10:25:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
463
cpp
ex7.26.cpp
#include<iostream> #include<string> using namespace std; string make_plural(size_t ctr, const string &word, const string &ending="s") { return (ctr==1)? word: word+ending; } int main() { cout << "Singular version: " << make_plural(1,"sucess","es") << "\t \t Plural version: " << make_plural(0,"sucess","es") << endl; cout << "Singular version: " << make_plural(1,"failure") << "\t \t Plural version: " << make_plural(0,"failure") << endl; return 0; }
1596b7eb0c2c470b85cc0df515ee1b53f283200d
2779cd67e38f7498306720f59c5dbd570b49081c
/selfdrive/ui/replay/replay.hpp
6ca042612bc2f3ed96a30467d2ae45833e95034a
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
BogGyver/openpilot
f1c68f3a0d253aa39bbf401f63cda4b72c77d208
501c7de91b59c70510e9dc1585acfde9b7102c93
refs/heads/tesla_unity_dev
2023-07-15T21:05:53.083579
2023-03-23T20:57:33
2023-03-23T20:57:33
143,180,647
55
66
MIT
2023-01-07T01:03:19
2018-08-01T16:19:40
Python
UTF-8
C++
false
false
811
hpp
replay.hpp
#pragma once #include <QFile> #include <QQueue> #include <QJsonArray> #include <QJsonObject> #include <QJsonDocument> #include <capnp/dynamic.h> #include "qt/api.hpp" #include "Unlogger.hpp" #include "FileReader.hpp" #include "FrameReader.hpp" #include "visionipc_server.h" #include "common/util.h" class Replay : public QObject { Q_OBJECT public: Replay(QString route_, int seek); void stream(SubMaster *sm = nullptr); void addSegment(int i); QJsonArray camera_paths; QJsonArray log_paths; QQueue<int> event_sizes; public slots: void parseResponse(QString response); protected: Unlogger *unlogger; private: QString route; QReadWriteLock events_lock; Events events; QMap<int, LogReader*> lrs; QMap<int, FrameReader*> frs; HttpRequest *http; int current_segment; };
3b9ba11bf1923d6c075f27ad6248042663bad6e9
1120f23bf7808c565595edc1b0d65b660d738093
/xx/luogu/1105/1.cpp
09e8447c09f38e3b3296a968c612a05d1df78830
[]
no_license
nn020701/OIER
f61cfdbcb406bc3a0e5111c5540378c798afd969
43f5a2987e2080c8f356edafb6875e4d0b707d99
refs/heads/master
2021-07-15T00:44:27.398058
2017-10-21T10:34:09
2017-10-21T10:34:09
104,617,028
0
0
null
null
null
null
UTF-8
C++
false
false
974
cpp
1.cpp
#include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; #define ll long long #define N 1005 inline int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} return x*f; } struct node{ int l,r,h; int num; }a[N]; int n; int l[N],r[N]; bool cmp(node a,node b){ return a.h > b.h || ( a.h == b.h && a.l < b.l); } int main(){ n = read(); for(int i = 1;i <= n;i++){ a[i].h = read(); a[i].l = read(); a[i].r = read(); a[i].num = i; } sort(a+1,a+n+1,cmp); for(int i = 1;i <= n;i++){ for(int j = i+1;j <= n;j++) if(a[i].h > a[j].h && a[i].l > a[j].l && a[i].l < a[j].r){ l[a[i].num] = a[j].num; break; } for(int j = i+1;j <= n;j++) if(a[i].h > a[j].h && a[i].r > a[j].l && a[i].r < a[j].r){ r[a[i].num] = a[j].num; break; } } for(int i = 1;i <= n;i++) printf("%d %d\n",l[i],r[i]); return 0; }
0536fb84c9d9fdcc2da9dfa3e825ec50c19c8473
464367c7180487bba74097d6b229174b53246676
/unit_tests/tests/base/StateElement/StateElement_test.cc
08166cb9fe0c490e8c02dac40ba0631af3875f2e
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
openhwgroup/force-riscv
5ff99fd73456b9918a954ef1d29997da2c3f2df7
144fb52a99cde89e73552f88c872c05d2e90b603
refs/heads/master
2023-08-08T14:03:54.749423
2023-06-21T02:17:30
2023-06-21T02:17:30
271,641,901
190
53
NOASSERTION
2023-09-14T01:16:08
2020-06-11T20:36:00
C++
UTF-8
C++
false
false
18,383
cc
StateElement_test.cc
// // Copyright (C) [2020] Futurewei Technologies, Inc. // // FORCE-RISCV is licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR // FIT FOR A PARTICULAR PURPOSE. // See the License for the specific language governing permissions and // limitations under the License. // #include "StateElement.h" #include <memory> #include "lest/lest.hpp" #include "Defines.h" #include "Enums.h" #include "Log.h" #include ARCH_ENUM_HEADER using text = std::string; using namespace Force; const lest::test specification[] = { CASE("Test MemoryStateElement") { SETUP("Setup MemoryStateElement") { MemoryStateElement state_elem(0x3298, 0xFFC3298577B8D920, MAX_UINT64, 1); SECTION("Test cloning") { std::unique_ptr<MemoryStateElement> clone_state_elem(dynamic_cast<MemoryStateElement*>(state_elem.Clone())); std::vector<uint64> expected_values = {0xFFC3298577B8D920}; EXPECT(clone_state_elem->GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(clone_state_elem->GetMasks() == expected_masks); EXPECT(clone_state_elem->GetStartAddress() == 0x3298ull); } SECTION("Test converting to a string") { EXPECT(state_elem.ToString() == "0x3298"); } SECTION("Test getting a string describing the type") { EXPECT(state_elem.Type() == "MemoryStateElement"); } SECTION("Test getting the name") { EXPECT(state_elem.GetName() == "0x3298"); } SECTION("Test getting the StateElement type") { EXPECT(state_elem.GetStateElementType() == EStateElementType::Memory); } SECTION("Test getting the values") { std::vector<uint64> expected_values = {0xFFC3298577B8D920}; EXPECT(state_elem.GetValues() == expected_values); } SECTION("Test getting the masks") { std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(state_elem.GetMasks() == expected_masks); } SECTION("Test getting the priority") { EXPECT(state_elem.GetPriority() == 1u); } SECTION("Test merging with another MemoryStateElement") { MemoryStateElement state_elem_a(0xF5B20, 0x00009987C34B0000, 0x0000FFFFFFFF0000, 1); MemoryStateElement state_elem_b(0xF5B20, 0x0000000000008564, 0x000000000000FFFF, 2); EXPECT(state_elem_a.CanMerge(state_elem_b)); EXPECT(state_elem_b.CanMerge(state_elem_a)); state_elem_a.Merge(state_elem_b); std::vector<uint64> expected_values = {0x00009987C34B8564}; EXPECT(state_elem_a.GetValues() == expected_values); std::vector<uint64> expected_masks = {0x0000FFFFFFFFFFFF}; EXPECT(state_elem_a.GetMasks() == expected_masks); EXPECT(state_elem_a.GetPriority() == 1u); } SECTION("Test merging with another MemoryStateElement of higher priority (lower priority number)") { MemoryStateElement state_elem_a(0xC9278, 0x53276F0000000000, 0xFFFFFF0000000000, 3); MemoryStateElement state_elem_b(0xC9278, 0x000000007600009B, 0x00000000FF0000FF, 2); EXPECT(state_elem_a.CanMerge(state_elem_b)); EXPECT(state_elem_b.CanMerge(state_elem_a)); state_elem_a.Merge(state_elem_b); std::vector<uint64> expected_values = {0x53276F007600009B}; EXPECT(state_elem_a.GetValues() == expected_values); std::vector<uint64> expected_masks = {0xFFFFFF00FF0000FF}; EXPECT(state_elem_a.GetMasks() == expected_masks); EXPECT(state_elem_a.GetPriority() == 2u); } SECTION("Test merging with another MemoryStateElement with an overlapping mask") { MemoryStateElement state_elem_a(0xFFFFFF70, 0x0037FF0000000000, 0x00FFFF0000000000, 1); MemoryStateElement state_elem_b(0xFFFFFF70, 0x00054020900C015A, MAX_UINT64, 1); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test merging with a MemoryStateElement with a different address") { MemoryStateElement state_elem_a(0x39C2D0, 0xF285C3D905840000, 0xFFFFFFFFFFFF0000, 1); MemoryStateElement state_elem_b(0x3958F8, 0x0000000000001289, 0x000000000000FFFF, 2); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test getting the starting address") { EXPECT(state_elem.GetStartAddress() == 0x3298ull); } SECTION("Test identifying a MemoryStateElement as a duplicate") { MemoryStateElement duplicate_state_elem(0x3298, 0xA7132930ED11F959, MAX_UINT64, 2); EXPECT(state_elem.IsDuplicate(duplicate_state_elem)); } SECTION("Test identifying a MemoryStateElement as not a duplicate") { MemoryStateElement different_state_elem(0xB86E362854FC, 0xFFC3298577B8D920, MAX_UINT64, 1); EXPECT_NOT(state_elem.IsDuplicate(different_state_elem)); } } }, CASE("Test RegisterStateElement") { SETUP("Setup RegisterStateElement") { RegisterStateElement state_elem(EStateElementType::VectorRegister, "V5", 5, {0xDFEC0437F47B4887, 0x08CFB21FA0EB7F0F}, {MAX_UINT64, MAX_UINT64}, 10); SECTION("Test cloning") { std::unique_ptr<RegisterStateElement> clone_state_elem(dynamic_cast<RegisterStateElement*>(state_elem.Clone())); std::vector<uint64> expected_values = {0xDFEC0437F47B4887, 0x08CFB21FA0EB7F0F}; EXPECT(clone_state_elem->GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64, MAX_UINT64}; EXPECT(clone_state_elem->GetMasks() == expected_masks); EXPECT(clone_state_elem->GetRegisterIndex() == 5u); } SECTION("Test converting to a string") { EXPECT(state_elem.ToString() == "V5"); } SECTION("Test getting a string describing the type") { EXPECT(state_elem.Type() == "RegisterStateElement"); } SECTION("Test getting the name") { EXPECT(state_elem.GetName() == "V5"); } SECTION("Test getting the StateElement type") { EXPECT(state_elem.GetStateElementType() == EStateElementType::VectorRegister); } SECTION("Test getting the values") { std::vector<uint64> expected_values = {0xDFEC0437F47B4887, 0x08CFB21FA0EB7F0F}; EXPECT(state_elem.GetValues() == expected_values); } SECTION("Test getting the masks") { std::vector<uint64> expected_masks = {MAX_UINT64, MAX_UINT64}; EXPECT(state_elem.GetMasks() == expected_masks); } SECTION("Test getting the priority") { EXPECT(state_elem.GetPriority() == 10u); } SECTION("Test merging with another RegisterStateElement") { // The Q extension is not currently supported by Force. However, this test does not depend on // that support and covers a valuable case. RegisterStateElement state_elem_a(EStateElementType::FloatingPointRegister, "Q17", 17, {0x40EC0872FA5D6012, 0x0}, {MAX_UINT64, 0x0}, 7); RegisterStateElement state_elem_b(EStateElementType::FloatingPointRegister, "Q17", 17, {0x0, 0x1E1A5E31090EB737}, {0x0, MAX_UINT64}, 4); EXPECT(state_elem_a.CanMerge(state_elem_b)); EXPECT(state_elem_b.CanMerge(state_elem_a)); state_elem_a.Merge(state_elem_b); std::vector<uint64> expected_values = {0x40EC0872FA5D6012, 0x1E1A5E31090EB737}; EXPECT(state_elem_a.GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64, MAX_UINT64}; EXPECT(state_elem_a.GetMasks() == expected_masks); EXPECT(state_elem_a.GetPriority() == 4u); } SECTION("Test merging with a RegisterStateElement with a different type") { RegisterStateElement state_elem_a(EStateElementType::GPR, "x3", 3, {0x56E7762C00000000}, {0xFFFFFFFF00000000}, 2); // This RegisterStateElement has an incongruous name in order to validate the type-checking // logic in Merge() RegisterStateElement state_elem_b(EStateElementType::SystemRegister, "x3", 0x100, {0x000000009F8252C0}, {0x00000000FFFFFFFF}, 2); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test merging with a RegisterStateElement with a different name") { RegisterStateElement state_elem_a(EStateElementType::GPR, "x21", 21, {0xC2F95D884FCF9F4A}, {MAX_UINT64}, 5); RegisterStateElement state_elem_b(EStateElementType::GPR, "x19", 19, {0xAEDBBCA106618434}, {MAX_UINT64}, 11); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test merging with a RegisterStateElement with a different number of values") { // The Q extension is not currently supported by Force. However, this test does not depend on // that support and covers a valuable case. RegisterStateElement state_elem_a(EStateElementType::FloatingPointRegister, "Q11", 11, {0x0000008A00F714FA, 0x17CEC5D84EB45ADE}, {0x000000FFFFFFFFFF, MAX_UINT64}, 4); // This RegisterStateElement has an incongruous number of values in order to validate the // value count logic in Merge() RegisterStateElement state_elem_b(EStateElementType::FloatingPointRegister, "Q11", 11, {0x78D2A30000000000}, {0xFFFFFF0000000000}, 67); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test merging with empty RegisterStateElements") { RegisterStateElement state_elem_a(EStateElementType::SystemRegister, "mtvec", 0x305, {}, {}, 9); RegisterStateElement state_elem_b(EStateElementType::SystemRegister, "mtvec", 0x305, {}, {}, 15); EXPECT(state_elem_a.CanMerge(state_elem_b)); EXPECT(state_elem_b.CanMerge(state_elem_a)); state_elem_a.Merge(state_elem_b); std::vector<uint64> expected_values = {}; EXPECT(state_elem_a.GetValues() == expected_values); std::vector<uint64> expected_masks = {}; EXPECT(state_elem_a.GetMasks() == expected_masks); EXPECT(state_elem_a.GetPriority() == 9u); } SECTION("Test getting the register index") { EXPECT(state_elem.GetRegisterIndex() == 5u); } SECTION("Test identifying a RegisterStateElement as a duplicate") { RegisterStateElement duplicate_state_elem(EStateElementType::VectorRegister, "V5", 5, {0xD8094D1B2880629E, 0xE63AC01A9EA5DD7C}, {MAX_UINT64, MAX_UINT64}, 5); EXPECT(state_elem.IsDuplicate(duplicate_state_elem)); } SECTION("Test identifying a RegisterStateElement as not a duplicate due to a different type") { // This RegisterStateElement has an incongruous name in order to validate the type-checking // logic in IsDuplicate() RegisterStateElement different_state_elem(EStateElementType::FloatingPointRegister, "V5", 5, {0xDFEC0437F47B4887, 0x08CFB21FA0EB7F0F}, {MAX_UINT64, MAX_UINT64}, 10); EXPECT_NOT(state_elem.IsDuplicate(different_state_elem)); } SECTION("Test identifying a RegisterStateElement as not a duplicate due to a different name") { RegisterStateElement different_state_elem(EStateElementType::VectorRegister, "V11", 11, {0xDFEC0437F47B4887, 0x08CFB21FA0EB7F0F}, {MAX_UINT64, MAX_UINT64}, 10); EXPECT_NOT(state_elem.IsDuplicate(different_state_elem)); } } }, CASE("Test VmContextStateElement") { SETUP("Setup VmContextStateElement") { VmContextStateElement state_elem("satp", "MODE", 0x9, 5); SECTION("Test cloning") { std::unique_ptr<VmContextStateElement> clone_state_elem(dynamic_cast<VmContextStateElement*>(state_elem.Clone())); std::vector<uint64> expected_values = {0x9}; EXPECT(clone_state_elem->GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(clone_state_elem->GetMasks() == expected_masks); EXPECT(clone_state_elem->GetRegisterName() == "satp"); EXPECT(clone_state_elem->GetRegisterFieldName() == "MODE"); } SECTION("Test converting to a string") { EXPECT(state_elem.ToString() == "satp.MODE"); } SECTION("Test getting a string describing the type") { EXPECT(state_elem.Type() == "VmContextStateElement"); } SECTION("Test getting the name") { EXPECT(state_elem.GetName() == "satp.MODE"); } SECTION("Test getting the StateElement type") { EXPECT(state_elem.GetStateElementType() == EStateElementType::VmContext); } SECTION("Test getting the values") { std::vector<uint64> expected_values = {0x9}; EXPECT(state_elem.GetValues() == expected_values); } SECTION("Test getting the masks") { std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(state_elem.GetMasks() == expected_masks); } SECTION("Test getting the priority") { EXPECT(state_elem.GetPriority() == 5u); } SECTION("Verify that VmContextStateElements can't be merged") { VmContextStateElement state_elem_a("satp", "MODE", 0x0, 20); VmContextStateElement state_elem_b("satp", "MODE", 0x8, 25); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test getting the register name") { EXPECT(state_elem.GetRegisterName() == "satp"); } SECTION("Test getting the register field name") { EXPECT(state_elem.GetRegisterFieldName() == "MODE"); } SECTION("Test identifying a VmContextStateElement as a duplicate") { VmContextStateElement duplicate_state_elem("satp", "MODE", 0x9, 5); EXPECT(state_elem.IsDuplicate(duplicate_state_elem)); } } }, CASE("Test PrivilegeLevelStateElement") { SETUP("Setup PrivilegeLevelStateElement") { PrivilegeLevelStateElement state_elem(EPrivilegeLevelType::S, 3); SECTION("Test cloning") { std::unique_ptr<PrivilegeLevelStateElement> clone_state_elem(dynamic_cast<PrivilegeLevelStateElement*>(state_elem.Clone())); std::vector<uint64> expected_values = {0x1}; EXPECT(clone_state_elem->GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(clone_state_elem->GetMasks() == expected_masks); } SECTION("Test converting to a string") { EXPECT(state_elem.ToString() == "S"); } SECTION("Test getting a string describing the type") { EXPECT(state_elem.Type() == "PrivilegeLevelStateElement"); } SECTION("Test getting the name") { EXPECT(state_elem.GetName() == "S"); } SECTION("Test getting the StateElement type") { EXPECT(state_elem.GetStateElementType() == EStateElementType::PrivilegeLevel); } SECTION("Test getting the values") { std::vector<uint64> expected_values = {0x1}; EXPECT(state_elem.GetValues() == expected_values); } SECTION("Test getting the masks") { std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(state_elem.GetMasks() == expected_masks); } SECTION("Test getting the priority") { EXPECT(state_elem.GetPriority() == 3u); } SECTION("Verify that PrivilegeLevelStateElements can't be merged") { PrivilegeLevelStateElement state_elem_a(EPrivilegeLevelType::M, 10); PrivilegeLevelStateElement state_elem_b(EPrivilegeLevelType::U, 7); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test identifying a PrivilegeLevelStateElement as a duplicate") { PrivilegeLevelStateElement duplicate_state_elem(EPrivilegeLevelType::H, 4); EXPECT(state_elem.IsDuplicate(duplicate_state_elem)); } } }, CASE("Test PcStateElement") { SETUP("Setup PcStateElement") { PcStateElement state_elem(0xC3A5D885B2E8, 30); SECTION("Test cloning") { std::unique_ptr<PcStateElement> clone_state_elem(dynamic_cast<PcStateElement*>(state_elem.Clone())); std::vector<uint64> expected_values = {0xC3A5D885B2E8}; EXPECT(clone_state_elem->GetValues() == expected_values); std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(clone_state_elem->GetMasks() == expected_masks); } SECTION("Test converting to a string") { EXPECT(state_elem.ToString() == "PC"); } SECTION("Test getting a string describing the type") { EXPECT(state_elem.Type() == "PcStateElement"); } SECTION("Test getting the name") { EXPECT(state_elem.GetName() == "PC"); } SECTION("Test getting the StateElement type") { EXPECT(state_elem.GetStateElementType() == EStateElementType::PC); } SECTION("Test getting the values") { std::vector<uint64> expected_values = {0xC3A5D885B2E8}; EXPECT(state_elem.GetValues() == expected_values); } SECTION("Test getting the masks") { std::vector<uint64> expected_masks = {MAX_UINT64}; EXPECT(state_elem.GetMasks() == expected_masks); } SECTION("Test getting the priority") { EXPECT(state_elem.GetPriority() == 30u); } SECTION("Verify that PcStateElements can't be merged") { PcStateElement state_elem_a(0x902939FEC3CE, 33); PcStateElement state_elem_b(0x3EB90AA0D408, 12); EXPECT_NOT(state_elem_a.CanMerge(state_elem_b)); EXPECT_NOT(state_elem_b.CanMerge(state_elem_a)); EXPECT_FAIL(state_elem_a.Merge(state_elem_b), "state-element-merge-failure"); } SECTION("Test identifying a PcStateElement as a duplicate") { PcStateElement duplicate_state_elem(0x5B9557B5A8EA, 8); EXPECT(state_elem.IsDuplicate(duplicate_state_elem)); } } }, }; int main(int argc, char* argv[]) { Force::Logger::Initialize(); int ret = lest::run(specification, argc, argv); Force::Logger::Destroy(); return ret; }
ad82f7b9822901efab395563a787ac029b832fcb
dc29086e666691d3d1f1371708ca860c7393fd8f
/libWorld/include/LibEngine/DWriteFont.h
3a618868ebcbc69fdf0520fd165d4033d78d353d
[]
no_license
preboy/9DayGame
acb9ee02500a7a6a8b3470d4c6adbfbd517c442a
4947b402e5e9e9cd430ea178b8bf6debc05abbf4
refs/heads/master
2021-01-11T14:11:59.060933
2017-02-10T14:46:12
2017-02-10T14:46:12
81,573,914
0
0
null
null
null
null
UTF-8
C++
false
false
392
h
DWriteFont.h
#pragma once #include <D2D1.h> #include <dwrite.h> namespace LibEngine { class DWriteFont { public: DWriteFont(); ~DWriteFont(); bool Init(); void Release(); private: ID2D1RenderTarget* m_pRenderTarget; ID3D11Texture2D* m_pTexture2D; }; }
230a4624c8ffc69161d5e254c5ff6977ebf30413
d6f49ffb3d50133d28601e41338203fae6403bbc
/core/modules/etherswitch.cc
ba8e084f4899656912ad46b876d7d009d73995f1
[ "BSD-3-Clause" ]
permissive
fabricioufmt/dyscobess
16e0f195b99951b149451d2e3b471386e4eb1ed0
bb26c1bfdd58d5b3a88b7881cf694139af148e8c
refs/heads/master
2018-12-22T07:03:04.423831
2018-11-27T11:16:29
2018-11-27T11:16:29
108,544,440
0
0
null
null
null
null
UTF-8
C++
false
false
1,856
cc
etherswitch.cc
#include "etherswitch.h" const Commands EtherSwitch::cmds = { {"add", "EtherSwitchCommandAddArg", MODULE_CMD_FUNC(&EtherSwitch::CommandAdd), Command::THREAD_UNSAFE}, {"del", "EtherSwitchCommandDelArg", MODULE_CMD_FUNC(&EtherSwitch::CommandDel), Command::THREAD_UNSAFE}, }; CommandResponse EtherSwitch::Init(const bess::pb::EtherSwitchArg&) { return CommandSuccess(); } void EtherSwitch::DeInit() { _entries.clear(); } CommandResponse EtherSwitch::CommandAdd(const bess::pb::EtherSwitchCommandAddArg&) { //TODO return CommandSuccess(); } CommandResponse EtherSwitch::CommandDel(const bess::pb::EtherSwitchCommandDelArg&) { //TODO return CommandSuccess(); } bool EtherSwitch::isBroadcast(bess::Packet* pkt, gate_idx_t igate, gate_idx_t* ogate) { Ethernet* eth = pkt->head_data<Ethernet*>(); _entries[eth->src_addr] = igate; auto search = _entries.find(eth->dst_addr); if(search != _entries.end()) { *ogate = search->second; return false; } return true; } /*bool EtherSwitch::isModified(bess::Packet* pkt) { uint32_t val = get_attr_with_offset<uint32_t>(0, pkt); return val == 1; }*/ void EtherSwitch::ProcessBatch(bess::PacketBatch* batch) { size_t ngates_; gate_idx_t ogate; gate_idx_t igate = get_igate(); ngates_ = ogates().size(); bess::PacketBatch out_gates[ngates_]; for(uint32_t i = 0; i < ngates_; i++) out_gates[i].clear(); bess::Packet* pkt; for(int i = 0; i < batch->cnt(); i++) { pkt = batch->pkts()[i]; if(isBroadcast(pkt, igate, &ogate)) { for(uint32_t j = 0; j < ngates_; j++) { if(j == igate) continue; out_gates[j].add(bess::Packet::copy(pkt)); } } else out_gates[ogate].add(bess::Packet::copy(pkt)); } for(uint32_t i = 0; i < ngates_; i++) RunChooseModule(i, &(out_gates[i])); } ADD_MODULE(EtherSwitch, "etherswitch", "ethernet switch learning switch")
1e0702409104ccc5c4133187bb5f2c0b53d2eb02
459caaebf3c9d6355ca19cc3893062912ea7df26
/copt/examples/bbmcsp_init_lb.cpp
41758e831bed596b4e043cc2d22de074ef39000c
[]
no_license
rafa-hub/converter
4ada07932a4f9dba5d3790148b681ba5ba6a14ab
a9bec4a01fa91bf10285b800288c511307452197
refs/heads/master
2023-05-30T10:54:46.669505
2019-02-20T11:36:37
2019-02-20T11:36:37
106,400,987
0
0
null
null
null
null
UTF-8
C++
false
false
1,671
cpp
bbmcsp_init_lb.cpp
//example of simple BBMCSP (exact maximum clique for large and massive graphs) execution from cmd line: //Cmd line info: <binary> <filename> <lower bound> //author:pablo san segundo //date: 20/12/14 #include <iostream> #include <stdlib.h> #include "utils/prec_timer.h" #include "../clique/clique.h" using namespace std; int main(int argc, char** argv){ PrecisionTimer pt; double time_in_sec; if(argc!=3){ cerr<<"incorrect number of arguments"<<endl; return -1; } //parse cmd lin params string filename(argv[1]); cout<<"READING-------------------------------"<<filename<<endl; pt.wall_tic(); sparse_ugraph usg(filename); time_in_sec=pt.wall_toc(); usg.print_data(); cout<<"[t:"<<time_in_sec<<"]"<<endl<<endl; //launch serial version Clique<sparse_ugraph> cusg(&usg, clqo::param_t()); cusg.hint_lb(atoi(argv[2])); //suggests initial clique size cout<<"SETUP----------------------------------"<<endl; //note that the setup step will modify the graph in the general case (explicit reordering) pt.wall_tic(); int sol=cusg.set_up_unrolled(clqo::search_alloc_t()); time_in_sec=pt.wall_toc(); cout<<"[t:"<<time_in_sec<<"]"<<endl<<endl; //check is trivial solution is found and there is no need for the NP-hard search step if(sol!=0){ cout<<usg.get_name()<<" FOUND TRIVIAL SOLUTION DURING SETUP: "<<sol<<endl; return 0; } //search cout<<"SEARCH---------------------------------"<<endl; pt.wall_tic(); cusg.run_unrolled(); time_in_sec=pt.wall_toc(); cout<<"[t:"<<time_in_sec<<"]"<<"[w: "<<cusg.get_max_clique()<<"]"<<endl; cusg.tear_down(); cout<<"---------------------------------------------"<<endl; }
cc3c38233e9acf98e79a8d7c479542062dd00097
b6f5e9ea853a5d213ab1c90eea070a2de6fb1c77
/Morgue app STL, console UI/repository/CSVassistantRepository.h
5005d433534379b282baa06fd868bf6c2cb044ea
[]
no_license
StefanCsPurge/Object-Oriented-Programming
a1c354d32144f8a175cb829dde8ee360d025026a
d9650b26e4a94e40bf72ccde5f8b8b8cd83e4895
refs/heads/master
2022-11-15T08:31:40.356419
2020-06-28T08:29:49
2020-06-28T08:29:49
262,393,847
0
0
null
null
null
null
UTF-8
C++
false
false
314
h
CSVassistantRepository.h
#pragma once #include "repository.h" class CSVassistantRepo : public AssistantRepository { private: void writeVictimsToFile() const override; public: CSVassistantRepo(string filePath = ""); void addVictim(const Victim& v) override; void openInApplication() override; ~CSVassistantRepo() {} };
a2a3d4bdcb1ec74b577d8ab6735938d5de15f0c1
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
/PWGLF/RESONANCES/AliRsnLoopEvent.h
cfa094d847e7cb0ef0c2c3314929fe6229b3c4ce
[]
permissive
alisw/AliPhysics
91bf1bd01ab2af656a25ff10b25e618a63667d3e
5df28b2b415e78e81273b0d9bf5c1b99feda3348
refs/heads/master
2023-08-31T20:41:44.927176
2023-08-31T14:51:12
2023-08-31T14:51:12
61,661,378
129
1,150
BSD-3-Clause
2023-09-14T18:48:45
2016-06-21T19:31:29
C++
UTF-8
C++
false
false
715
h
AliRsnLoopEvent.h
#ifndef ALIRSNLOOPEVENT_H #define ALIRSNLOOPEVENT_H // // Computator for events. // The simplest loop, // which is filled once per event. // #include "AliRsnLoop.h" class AliRsnLoopEvent : public AliRsnLoop { public: AliRsnLoopEvent(const char *name = "default"); AliRsnLoopEvent(const AliRsnLoopEvent &copy); AliRsnLoopEvent &operator=(const AliRsnLoopEvent &copy); ~AliRsnLoopEvent(); virtual void Print(Option_t *opt = "") const; virtual Bool_t Init(const char *prefix, TList *list); virtual Int_t DoLoop(AliRsnEvent *main, AliRsnDaughterSelector *smain = 0, AliRsnEvent *mix = 0, AliRsnDaughterSelector *smix = 0); private: ClassDef(AliRsnLoopEvent, 1) }; #endif
ca68faf67be91ec879716fc625b11cd4b8a60d1c
f5d87ed79a91f17cdf2aee7bea7c15f5b5258c05
/cuts/unite/presentation/gnuplot/Gnuplot_Presentation_Service.inl
e89fd327fb568996b0b8675ffb7acf08dea96f11
[]
no_license
SEDS/CUTS
a4449214a894e2b47bdea42090fa6cfc56befac8
0ad462fadcd3adefd91735aef6d87952022db2b7
refs/heads/master
2020-04-06T06:57:35.710601
2016-08-16T19:37:34
2016-08-16T19:37:34
25,653,522
0
3
null
null
null
null
UTF-8
C++
false
false
342
inl
Gnuplot_Presentation_Service.inl
// -*- C++ -*- // $Id$ // // CUTS_Gnuplot_Presentation_Service // CUTS_INLINE CUTS_Gnuplot_Presentation_Service::CUTS_Gnuplot_Presentation_Service (void) : output_ ("."), has_group_titles_ (true) { } // // CUTS_Console_Presentation_Service // CUTS_INLINE CUTS_Gnuplot_Presentation_Service::~CUTS_Gnuplot_Presentation_Service (void) { }
2a49cfa88a86a704ba825aef2d38d9a06fcb7355
0e3a227cdc555d9e5e5fa6117a2b0faa898dd5b4
/Day31-C 预编译指令/ex1.cpp
84fc622953d877996bdd88fed32e9d4b15527fcd
[]
no_license
wangmin668899/iosClassNotes
873fac1355e963a5471e89287e3f094d25bcc711
4a46c7e3f7c07214b6f6bd36938653b271d9abd2
refs/heads/master
2021-01-18T07:28:34.482462
2013-09-18T07:30:23
2013-09-18T07:30:23
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
639
cpp
ex1.cpp
// ex1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #define FOR(COUNT)\ {\ for(int i = 0; i < COUNT; i++) #define LINE(COUNT) \ FOR(COUNT)\ printf("©¤");\ } #define SPACE(COUNT) \ FOR(COUNT)\ printf(" ");\ } #define RECTANGLE(LENGTH,WIDTH)\ printf("©°");\ LINE(LENGTH);\ printf("©´\n");\ FOR(WIDTH)\ {\ printf("©¦");\ SPACE(LENGTH);\ printf("©¦");\ printf("\n");\ }\ }\ printf("©¸");\ LINE(LENGTH);\ printf("©¼");\ int main(int argc, char* argv[]) { RECTANGLE(10,10); printf("\n"); return 0; }
c2e2514330e98e93bc8d5cfd1e10733bf7f3d086
36b9decf14d266d6babaf1c44085c2ba869c03ce
/Remnant-main/Remnant/SDK/Widget_HUD_Survival_TraitList_functions.cpp
844dfd5fc501d88c26f881265f088a58288600cb
[]
no_license
RoryGlenn/RemnantLootSwitcher
6e309a7b2b7bac88a166b552b640c830b863eb2d
85c4cb6839b7c0f60cf8143c571d64ca12439a63
refs/heads/master
2022-12-29T08:47:15.713546
2020-10-23T22:01:45
2020-10-23T22:01:45
305,910,400
0
0
null
null
null
null
UTF-8
C++
false
false
6,689
cpp
Widget_HUD_Survival_TraitList_functions.cpp
// Name: Remnant, Version: 6 #include "../SDK.h" #ifdef _MSC_VER #pragma pack(push, 0x01) #endif /*!!HELPER_DEF!!*/ /*!!DEFINE!!*/ namespace UFT { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.Initialize // (Public, BlueprintCallable, BlueprintEvent) void UWidget_HUD_Survival_TraitList_C::Initialize() { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.Initialize"); UWidget_HUD_Survival_TraitList_C_Initialize_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.AnimationPlay // (Public, BlueprintCallable, BlueprintEvent) void UWidget_HUD_Survival_TraitList_C::AnimationPlay() { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.AnimationPlay"); UWidget_HUD_Survival_TraitList_C_AnimationPlay_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.BuildTraitList // (Public, HasDefaults, BlueprintCallable, BlueprintEvent) void UWidget_HUD_Survival_TraitList_C::BuildTraitList() { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.BuildTraitList"); UWidget_HUD_Survival_TraitList_C_BuildTraitList_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.ShowTraitNotification // (Public, HasOutParms, BlueprintCallable, BlueprintEvent, BlueprintPure) // Parameters: // class UClass* Class (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) // bool Out (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor) void UWidget_HUD_Survival_TraitList_C::ShowTraitNotification(class UClass* Class, bool* Out) { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.ShowTraitNotification"); UWidget_HUD_Survival_TraitList_C_ShowTraitNotification_Params params; params.Class = Class; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; if (Out != nullptr) *Out = params.Out; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.GetRelevantCharacter // (Public, HasOutParms, BlueprintCallable, BlueprintEvent, BlueprintPure) // Parameters: // class ACharacterGunfire* Character (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWidget_HUD_Survival_TraitList_C::GetRelevantCharacter(class ACharacterGunfire** Character) { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.GetRelevantCharacter"); UWidget_HUD_Survival_TraitList_C_GetRelevantCharacter_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; if (Character != nullptr) *Character = params.Character; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.Construct // (BlueprintCosmetic, Event, Public, BlueprintEvent) void UWidget_HUD_Survival_TraitList_C::Construct() { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.Construct"); UWidget_HUD_Survival_TraitList_C_Construct_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.OnTraitAdded // (BlueprintCallable, BlueprintEvent) // Parameters: // class UClass* Trait (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWidget_HUD_Survival_TraitList_C::OnTraitAdded(class UClass* Trait) { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.OnTraitAdded"); UWidget_HUD_Survival_TraitList_C_OnTraitAdded_Params params; params.Trait = Trait; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.OnTraitLevelChanged // (BlueprintCallable, BlueprintEvent) // Parameters: // class UClass* Trait (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) // int PreviousLevel (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWidget_HUD_Survival_TraitList_C::OnTraitLevelChanged(class UClass* Trait, int PreviousLevel) { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.OnTraitLevelChanged"); UWidget_HUD_Survival_TraitList_C_OnTraitLevelChanged_Params params; params.Trait = Trait; params.PreviousLevel = PreviousLevel; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.ExecuteUbergraph_Widget_HUD_Survival_TraitList // (Final) // Parameters: // int EntryPoint (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWidget_HUD_Survival_TraitList_C::ExecuteUbergraph_Widget_HUD_Survival_TraitList(int EntryPoint) { static auto fn = UObject::FindObject<UFunction>("Function Widget_HUD_Survival_TraitList.Widget_HUD_Survival_TraitList_C.ExecuteUbergraph_Widget_HUD_Survival_TraitList"); UWidget_HUD_Survival_TraitList_C_ExecuteUbergraph_Widget_HUD_Survival_TraitList_Params params; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
55f8bfb1c80106408974cc3bf481f56be456b7f7
e5613489d002d0c7f4c0270f5e2255c92e8e6bf7
/src/jace/source/jace/JNIException.cpp
73ef618958e338c9cbcecb410e4c10dd95a12359
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jkschneider/SilverKing
f59baf39b80737aa1859587809b228cf3d2d67cb
0e2544ba48e9f5c7bab05d5e5d9a137fd1b85c3c
refs/heads/master
2023-05-23T23:26:25.906550
2021-05-27T22:51:48
2021-05-27T22:51:48
373,652,271
0
0
Apache-2.0
2021-06-03T22:02:32
2021-06-03T22:02:31
null
UTF-8
C++
false
false
478
cpp
JNIException.cpp
#include "jace/JNIException.h" #include <string> using std::string; BEGIN_NAMESPACE(jace) JNIException::JNIException(const string& value) throw (): BaseException(value) {} JNIException::JNIException(const JNIException& rhs) throw (): BaseException(rhs) {} JNIException& JNIException::operator=(const JNIException& rhs) throw () { if (this == &rhs) return *this; ((BaseException&) *this) = (BaseException&) rhs; return *this; } END_NAMESPACE(jace)
9f68b914b15548c180cd57ede2b6fca66aa19b4f
370e6f99b6180939322c67629c62b5cae0b2f2d5
/data/leetcode/739.cpp
d3267f411d7456bbb29e4f02829ecde979bb8e95
[]
no_license
zhuwenboa/data_struct
40e5625af67080855d1ea27b45e8b51c0df279b9
0511b01a59117fad6966e98a839b687cb31c9900
refs/heads/master
2021-06-10T15:16:11.586819
2021-03-23T07:02:45
2021-03-23T07:02:45
150,682,316
2
0
null
null
null
null
UTF-8
C++
false
false
754
cpp
739.cpp
#include<iostream> #include<algorithm> #include<vector> #include<stack> using namespace std; class Solution { public: vector<int> dailyTemperatures(vector<int>& T) { if(T.size() == 0) return {}; vector<int> res(T.size(), 0); stack<pair<int, int>> st; st.push({0, T[0]}); for(int i = 1; i < T.size(); ++i) { while(!st.empty()) { auto temp = st.top(); if(T[i] > temp.second) { res[temp.first] = i - temp.first; st.pop(); } else break; } st.push({i, T[i]}); } return res; } };
fcfb7366921d8a264746aaead883379a7b5836a3
baa201e4b6c215a563c72bb765d1f8748c8e309b
/Limbitless_Elbow.ino
f0039d5a2e22fc14982b0bc3941882909de7a565
[]
no_license
Limbitless/Limbitless_Elbow
d24e236ececaf3c933a4fac745296fd3c7bf2e9a
84638e680daa8d57bd91218e64ff53ed795fee95
refs/heads/master
2021-01-01T17:22:04.624602
2015-02-21T22:15:40
2015-02-21T22:15:40
31,143,183
0
0
null
null
null
null
UTF-8
C++
false
false
1,981
ino
Limbitless_Elbow.ino
/** * Limbitless Solutions * EMG Pulse Flex Test * * Josh Kaplan <jk@joshkaplan.org> * October 25, 2014 * * Takes an analog input from an EMG sensor * and prints out which pulse it read. * * Current code supports two types of pulses: * 1. Long Pulse * 2. Two short Pulses */ #define EMG_THRESH 40 // Higher? Lower? Dependent on person? #define SHORT_PULSE_MIN 3 // Length of time for a short pulse in terms of "threshold_count" #define LONG_PULSE_MIN 9 // Length of time for a long pulse in terms of "threshold_count" // vars int emg_pin = 0; // EMG signal pin int val = 0; // EMG value int thresh_count = 0; // threshold counter int short_pulse_count = 0; // number of short pulses detected int short_pulse_interval = 0; // tracks time between short pulses void setup() { Serial.begin(9600); } void loop() { // reset the counter outside the while loop thresh_count = 0; Serial.println("Interval"); Serial.println(short_pulse_interval); delay(500); while ((val = analogRead(emg_pin)) > EMG_THRESH) { Serial.println("Val"); Serial.println(val); Serial.println("Thresh count"); Serial.println(thresh_count); delay(800); // long pulse detection if(thresh_count > LONG_PULSE_MIN) { short_pulse_count = 0; thresh_count = 0; Serial.println("Long Pulse"); break; } thresh_count++; delay(10); } // short pulse detections if(thresh_count > SHORT_PULSE_MIN) { if(++short_pulse_count == 2) // if two pulses are recognized { short_pulse_count = 0; short_pulse_interval = 0; Serial.println("Short Pulse"); } } if (short_pulse_count > 0) short_pulse_interval++; if (short_pulse_interval > SHORT_PULSE_MIN) { short_pulse_count = 0; short_pulse_interval = 0; } }
c130b463d75970f20fefddc75f0ef7c011d8e04b
d97cb5fc79855d9e33cb23225855696102071ba0
/DES203_Project/Source/DES203_Project/RangedWeapon.cpp
f06ea9b131192143b4c33f9472fb803aebbf4e01
[]
no_license
andreamin97/interactive-media-production-project
0910120f475be124045b8c61ee283e6c4df47879
ce2b6b6cd9b9a56bc9f92e53f5ae75ae78867cfb
refs/heads/master
2022-06-06T10:29:39.894873
2020-05-04T18:45:53
2020-05-04T18:45:53
234,117,108
0
0
null
null
null
null
UTF-8
C++
false
false
2,621
cpp
RangedWeapon.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "DES203_ProjectCharacter.h" #include "DES203_ProjectPlayerController.h" #include "Kismet/GameplayStatics.h" #include "UObject/ConstructorHelpers.h" #include "DrawDebugHelpers.h" #include "Components/ArrowComponent.h" #include "Math/TransformNonVectorized.h" #include "Math/Vector.h" #include "Particles/ParticleSystem.h" #include "Particles/ParticleSystemComponent.h" #include "RangedWeapon.h" ARangedWeapon::ARangedWeapon() { PrimaryActorTick.bCanEverTick = true; range = 300.0f; aimArrow = CreateDefaultSubobject<UArrowComponent>(TEXT("AimArrow")); aimArrow->SetupAttachment(InteractableMesh); //aimArrow->RelativeLocation = ShootPoint; laserPointer = CreateDefaultSubobject<UParticleSystemComponent> (TEXT("AimLaser")); laserPointer->SetupAttachment(aimArrow); } void ARangedWeapon::Tick(float DeltaTime) { } void ARangedWeapon::Use_Implementation() { if (ADES203_ProjectCharacter* MyCharacter = Cast<ADES203_ProjectCharacter>(UGameplayStatics::GetPlayerCharacter(this, 0))) { ADES203_ProjectPlayerController* PC = Cast<ADES203_ProjectPlayerController>(GetWorld()->GetFirstPlayerController()); GLog->Log("Equipped Weapon"); MyCharacter->MainWeapon = this; PC->AttackSpeed = 1 / attacksPerSecond; MyCharacter->MainWeapon->AttachToComponent(MyCharacter->GetMesh(), FAttachmentTransformRules::SnapToTargetIncludingScale, FName("WeaponSocket")); InteractableMesh->SetVisibility(true); } } void ARangedWeapon::Shoot_Implementation() { ADES203_ProjectPlayerController* PC = Cast<ADES203_ProjectPlayerController>(GetWorld()->GetFirstPlayerController()); FHitResult hitResult; FCollisionQueryParams CollisionParams; FVector Start = aimArrow->GetComponentLocation(); FVector End = aimArrow->GetComponentLocation() + (aimArrow->GetForwardVector() * range); if (GetWorld()->LineTraceSingleByChannel(hitResult, Start, End, ECC_Visibility, CollisionParams)) { //DrawDebugLine(GetWorld(), Start, hitResult.Location, FColor::Red, false, 1.0f, 10.0f); if (AActor * target = Cast<AActor>(hitResult.Actor)) { if (target->ActorHasTag(FName("Enemy"))) { FDamageEvent DamageEvent; target->TakeDamage(damage, DamageEvent, PC, this); } } } else { //DrawDebugLine(GetWorld(), Start, End, FColor::Blue, false, 1.0f, 10.0f); } UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), shootEffect, aimArrow->GetComponentTransform()); UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), shootHit, hitResult.Location); } void ARangedWeapon::OnPickedUp() { Super::OnPickedUp(); }
06ec683b16377da8833c9e2d718294edb2a89832
1a20961af3b03b46c109b09812143a7ef95c6caa
/ZGame/DX11/hieroglyph3/trunk/Hieroglyph3/Applications/TessellationParams/App.cpp
ac94f2b1a0a9fd07490a07acb1501da60112d91a
[ "MIT" ]
permissive
JetAr/ZNginx
eff4ae2457b7b28115787d6af7a3098c121e8368
698b40085585d4190cf983f61b803ad23468cdef
refs/heads/master
2021-07-16T13:29:57.438175
2017-10-23T02:05:43
2017-10-23T02:05:43
26,522,265
3
1
null
null
null
null
UTF-8
C++
false
false
26,508
cpp
App.cpp
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.php // // Copyright (c) Jason Zink //-------------------------------------------------------------------------------- #include "App.h" #include "Log.h" #include <sstream> #include "EventManager.h" #include "EvtFrameStart.h" #include "EvtChar.h" #include "EvtKeyUp.h" #include "EvtKeyDown.h" #include "ScriptManager.h" #include "SwapChainConfigDX11.h" #include "Texture2dConfigDX11.h" #include "RasterizerStateConfigDX11.h" using namespace Glyph3; //-------------------------------------------------------------------------------- App AppInstance; // Provides an instance of the application //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- App::App() { m_bGeometryMode = QUAD_MODE; m_bEdgeOrInsideMode = EDGE_MODE; } //-------------------------------------------------------------------------------- bool App::ConfigureEngineComponents() { // The application currently supplies the int width = 640; int height = 480; bool windowed = true; // Set the render window parameters and initialize the window m_pWindow = new Win32RenderWindow(); m_pWindow->SetPosition( 25, 25 ); m_pWindow->SetSize( width, height ); m_pWindow->SetCaption( GetName() ); m_pWindow->Initialize( this ); // Create the renderer and initialize it for the desired device // type and feature level. m_pRenderer11 = new RendererDX11(); if ( !m_pRenderer11->Initialize( D3D_DRIVER_TYPE_HARDWARE, D3D_FEATURE_LEVEL_11_0 ) ) { Log::Get().Write( L"Could not create hardware device, trying to create the reference device..." ); if ( !m_pRenderer11->Initialize( D3D_DRIVER_TYPE_REFERENCE, D3D_FEATURE_LEVEL_11_0 ) ) { ShowWindow( m_pWindow->GetHandle(), SW_HIDE ); MessageBox( m_pWindow->GetHandle(), L"Could not create a hardware or software Direct3D 11 device - the program will now abort!", L"Hieroglyph 3 Rendering", MB_ICONEXCLAMATION | MB_SYSTEMMODAL ); RequestTermination(); return( false ); } // If using the reference device, utilize a fixed time step for any animations. m_pTimer->SetFixedTimeStep( 1.0f / 10.0f ); } // Create a swap chain for the window that we started out with. This // demonstrates using a configuration object for fast and concise object // creation. SwapChainConfigDX11 Config; Config.SetWidth( m_pWindow->GetWidth() ); Config.SetHeight( m_pWindow->GetHeight() ); Config.SetOutputWindow( m_pWindow->GetHandle() ); m_iSwapChain = m_pRenderer11->CreateSwapChain( &Config ); m_pWindow->SetSwapChain( m_iSwapChain ); // We'll keep a copy of the render target index to use in later examples. m_RenderTarget = m_pRenderer11->GetSwapChainResource( m_iSwapChain ); // Next we create a depth buffer for use in the traditional rendering // pipeline. Texture2dConfigDX11 DepthConfig; DepthConfig.SetDepthBuffer( width, height ); m_DepthTarget = m_pRenderer11->CreateTexture2D( &DepthConfig, 0 ); // Bind the swap chain render target and the depth buffer for use in // rendering. m_pRenderer11->pImmPipeline->ClearRenderTargets(); m_pRenderer11->pImmPipeline->OutputMergerStage.DesiredState.RenderTargetViews.SetState( 0, m_RenderTarget->m_iResourceRTV ); m_pRenderer11->pImmPipeline->OutputMergerStage.DesiredState.DepthTargetViews.SetState( m_DepthTarget->m_iResourceDSV ); m_pRenderer11->pImmPipeline->ApplyRenderTargets(); // Create a view port to use on the scene. This basically selects the // entire floating point area of the render target. D3D11_VIEWPORT viewport; viewport.Width = static_cast< float >( width ); viewport.Height = static_cast< float >( height ); viewport.MinDepth = 0.0f; viewport.MaxDepth = 1.0f; viewport.TopLeftX = 0; viewport.TopLeftY = 0; int ViewPort = m_pRenderer11->CreateViewPort( viewport ); m_pRenderer11->pImmPipeline->RasterizerStage.DesiredState.ViewportCount.SetState( 1 ); m_pRenderer11->pImmPipeline->RasterizerStage.DesiredState.Viewports.SetState( 0, ViewPort ); return( true ); } //-------------------------------------------------------------------------------- void App::ShutdownEngineComponents() { if ( m_pRenderer11 ) { m_pRenderer11->Shutdown(); delete m_pRenderer11; } if ( m_pWindow ) { m_pWindow->Shutdown(); delete m_pWindow; } } //-------------------------------------------------------------------------------- void App::Initialize() { // Create the necessary resources CreateQuadResources(); CreateTriangleResources(); // We'll be using a static view for this sample; animation/viewpoints aren't // the focus of this demo. Initialize and store these variables here. Matrix4f mView; Vector3f vLookAt = Vector3f( 0.0f, 0.0f, 0.0f ); Vector3f vLookFrom = Vector3f( -2.0f, 2.0f, -2.0f ); Vector3f vLookUp = Vector3f( 0.0f, 1.0f, 0.0f ); mView = Matrix4f::LookAtLHMatrix( vLookFrom, vLookAt, vLookUp ); Matrix4f mWorld; mWorld.MakeIdentity(); Matrix4f mProj; mProj = Matrix4f::PerspectiveFovLHMatrix( static_cast< float >(GLYPH_PI) / 4.0f, 640.0f / 480.0f, 0.1f, 50.0f ); // Composite together for the final transform Matrix4f mViewProj = mView * mProj; // H3 engine requires no transposing of matrices... m_pRenderer11->m_pParamMgr->SetWorldMatrixParameter( &mWorld ); m_pRenderer11->m_pParamMgr->SetViewMatrixParameter( &mView ); m_pRenderer11->m_pParamMgr->SetProjMatrixParameter( &mProj ); //m_pRenderer11->m_pParamMgr->SetMatrixParameter( std::wstring( L"mWorld" ), &mWorld ); //m_pRenderer11->m_pParamMgr->SetMatrixParameter( std::wstring( L"mViewProj" ), &mViewProj ); // Set up the default tessellation params SetEdgeWeight( 0, 1.0f ); SetEdgeWeight( 1, 1.0f ); SetEdgeWeight( 2, 1.0f ); SetEdgeWeight( 3, 1.0f ); SetInsideWeight( 0, 1.0f ); SetInsideWeight( 1, 1.0f ); SetPartitioningMode(Integer); // Create the text rendering m_pFont = SpriteFontLoaderDX11::LoadFont( std::wstring( L"Consolas" ), 12.0f, 0, true ); m_pSpriteRenderer = new SpriteRendererDX11(); m_pSpriteRenderer->Initialize(); } //-------------------------------------------------------------------------------- void App::Update() { // Update the timer to determine the elapsed time since last frame. This can // then used for animation during the frame. m_pTimer->Update(); // Send an event to everyone that a new frame has started. This will be used // in later examples for using the material system with render views. EvtManager.ProcessEvent( EvtFrameStartPtr( new EvtFrameStart( m_pTimer->Elapsed() ) ) ); // Clear the window to white m_pRenderer11->pImmPipeline->ClearBuffers( Vector4f( 1.0f, 1.0f, 1.0f, 1.0f ), 1.0f ); // Draw the main geometry if( QUAD_MODE == m_bGeometryMode ) { //m_pQuadEffect->ConfigurePipeline( m_pRenderer11->pImmPipeline, m_pRenderer11->m_pParamMgr ); m_pRenderer11->pImmPipeline->Draw( *m_pQuadEffect, m_pQuadGeometry, m_pRenderer11->m_pParamMgr ); } else if( TRI_MODE == m_bGeometryMode ) { //m_pTriangleEffect->ConfigurePipeline( m_pRenderer11->pImmPipeline, m_pRenderer11->m_pParamMgr ); m_pRenderer11->pImmPipeline->Draw( *m_pTriangleEffect, m_pTriangleGeometry, m_pRenderer11->m_pParamMgr ); } // Draw the UI text if( !m_bSaveScreenshot ) { // Don't draw text if we're taking a screenshot - don't want the images // cluttered with UI text! std::wstringstream out; out << L"Hieroglyph 3 : Tessellation Parameters\nFPS: " << m_pTimer->Framerate(); // Screenshot out << L"\nS : Take Screenshot"; // Geometry toggle out << L"\nG : Toggle Geometry"; // Edge weights // 3 of 4 if( QUAD_MODE == m_bGeometryMode ) out << L"\nEdge Weights: [" << m_fEdgeWeights[0] << ", " << m_fEdgeWeights[1] << ", " << m_fEdgeWeights[2] << ", " << m_fEdgeWeights[3] << "]"; else if( TRI_MODE == m_bGeometryMode ) out << L"\nEdge Weights: [" << m_fEdgeWeights[0] << ", " << m_fEdgeWeights[1] << ", " << m_fEdgeWeights[2] << "]"; out << L"\nE : Toggle Edge"; // Inside weights // 1 or 2 if( QUAD_MODE == m_bGeometryMode ) out << L"\nInside Weights: [" << m_fInsideWeights[0] << ", " << m_fInsideWeights[1] << "]"; else if( TRI_MODE == m_bGeometryMode ) out << L"\nInside Weight: [" << m_fInsideWeights[0] << "]"; out << L"\nI : Toggle Inner Weight"; out << L"\n+/- : Change Weight of "; if(EDGE_MODE == m_bEdgeOrInsideMode) out << L"Edge " << m_iEdgeIndex; else out << L"Inside " << m_iInsideIndex; // Partitioning mode // int // pow2 // fractional_odd // fractional_even out << L"\nP : Change Partitioning Mode "; switch(m_pmPartitioningMode) { case Power2: out << L"('pow2')"; break; case Integer: out << L"('integer')"; break; case FractionalOdd: out << L"('fractional_odd')"; break; case FractionalEven: out << L"('fractional_even')"; break; } m_pSpriteRenderer->RenderText( m_pRenderer11->pImmPipeline, m_pRenderer11->m_pParamMgr, m_pFont, out.str().c_str(), Matrix4f::Identity(), Vector4f( 1.f, 0.f, 0.f, 1.f ) ); } // Present the final image to the screen m_pRenderer11->Present( m_pWindow->GetHandle(), m_pWindow->GetSwapChain() ); } //-------------------------------------------------------------------------------- void App::Shutdown() { // Safely dispose of our rendering resource m_pQuadGeometry = NULL; SAFE_DELETE( m_pQuadEffect ); m_pTriangleGeometry = NULL; SAFE_DELETE( m_pTriangleEffect ); SAFE_DELETE( m_pSpriteRenderer ); // Print the framerate out for the log before shutting down. std::wstringstream out; out << L"Max FPS: " << m_pTimer->MaxFramerate(); Log::Get().Write( out.str() ); } //-------------------------------------------------------------------------------- void App::TakeScreenShot() { if ( m_bSaveScreenshot ) { m_bSaveScreenshot = false; m_pRenderer11->pImmPipeline->SaveTextureScreenShot( 0, GetName() ); } } //-------------------------------------------------------------------------------- bool App::HandleEvent( EventPtr pEvent ) { eEVENT e = pEvent->GetEventType(); if ( e == SYSTEM_KEYBOARD_KEYDOWN ) { EvtKeyDownPtr pKeyDown = std::static_pointer_cast<EvtKeyDown>( pEvent ); unsigned int key = pKeyDown->GetCharacterCode(); } else if ( e == SYSTEM_KEYBOARD_KEYUP ) { EvtKeyUpPtr pKeyUp = std::static_pointer_cast<EvtKeyUp>( pEvent ); unsigned int key = pKeyUp->GetCharacterCode(); if ( 'G' == key ) { m_bGeometryMode = !m_bGeometryMode; } else if ( 'P' == key ) { // Change partitioning mode switch(m_pmPartitioningMode) { case Power2: SetPartitioningMode( Integer ); break; case Integer: SetPartitioningMode( FractionalOdd ); break; case FractionalOdd: SetPartitioningMode( FractionalEven ); break; case FractionalEven: SetPartitioningMode( Power2 ); break; } } else if ( 'E' == key ) { // Set to 'edge' mode // if already in mode, toggle which to use if(EDGE_MODE == m_bEdgeOrInsideMode) { m_iEdgeIndex = (m_iEdgeIndex + 1) % (TRI_MODE == m_bGeometryMode ? 3 : 4); } else { m_bEdgeOrInsideMode = EDGE_MODE; } } else if ( 'I' == key ) { // Set to 'inside' mode // if already in mode, toggle which to use (if quad) if(INSIDE_MODE == m_bEdgeOrInsideMode) { m_iInsideIndex = (m_iInsideIndex + 1) % (TRI_MODE == m_bGeometryMode ? 1 : 2); } else { m_bEdgeOrInsideMode = INSIDE_MODE; } } else if ( VK_ADD == key ) { // Increase weight if(EDGE_MODE == m_bEdgeOrInsideMode) { SetEdgeWeight( m_iEdgeIndex, m_fEdgeWeights[m_iEdgeIndex] + 0.1f ); } else { SetInsideWeight( m_iInsideIndex, m_fInsideWeights[m_iInsideIndex] + 0.1f ); } } else if ( VK_SUBTRACT == key ) { // Decrease weight if(EDGE_MODE == m_bEdgeOrInsideMode) { SetEdgeWeight( m_iEdgeIndex, m_fEdgeWeights[m_iEdgeIndex] - 0.1f ); } else { SetInsideWeight( m_iInsideIndex, m_fInsideWeights[m_iInsideIndex] - 0.1f ); } } } // Call the parent class's event handler if we haven't handled the event. return( Application::HandleEvent( pEvent ) ); } //-------------------------------------------------------------------------------- std::wstring App::GetName( ) { return( std::wstring( L"Direct3D 11 Tessellation Parameters Demo" ) ); } //-------------------------------------------------------------------------------- void App::CreateQuadResources() { m_pQuadGeometry = NULL; m_pQuadGeometry = GeometryPtr( new GeometryDX11() ); // Create only four vertices and no index buffer // Position Data VertexElementDX11 *pPositions = new VertexElementDX11( 3 /* components - xyz */, 4 /* elements */ ); pPositions->m_SemanticName = "CONTROL_POINT_POSITION"; pPositions->m_uiSemanticIndex = 0; pPositions->m_Format = DXGI_FORMAT_R32G32B32_FLOAT; pPositions->m_uiInputSlot = 0; pPositions->m_uiAlignedByteOffset = 0; pPositions->m_InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; pPositions->m_uiInstanceDataStepRate = 0; Vector3f *pPositionData = pPositions->Get3f( 0 ); pPositionData[0] = Vector3f( -1.0f, 0.0f, -1.0f ); pPositionData[1] = Vector3f( -1.0f, 0.0f, 1.0f ); pPositionData[2] = Vector3f( 1.0f, 0.0f, -1.0f ); pPositionData[3] = Vector3f( 1.0f, 0.0f, 1.0f ); // Colour Data VertexElementDX11 *pColours = new VertexElementDX11( 4 /* components - argb */, 4 /* elements */ ); pColours->m_SemanticName = "COLOUR"; pColours->m_uiSemanticIndex = 0; pColours->m_Format = DXGI_FORMAT_R32G32B32A32_FLOAT; pColours->m_uiInputSlot = 0; pColours->m_uiAlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; pColours->m_InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; pColours->m_uiInstanceDataStepRate = 0; Vector4f *pColourData = pColours->Get4f( 0 ); pColourData[0] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); pColourData[1] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); pColourData[2] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); pColourData[3] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); // Finally build the actual geometry buffer m_pQuadGeometry->AddElement( pPositions ); m_pQuadGeometry->AddElement( pColours ); m_pQuadGeometry->AddIndex( 0 ); m_pQuadGeometry->AddIndex( 1 ); m_pQuadGeometry->AddIndex( 2 ); m_pQuadGeometry->AddIndex( 3 ); m_pQuadGeometry->LoadToBuffers(); m_pQuadGeometry->SetPrimitiveType( D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST ); Log::Get().Write( L"Created quad geometry" ); // Create the appropriate shaders SAFE_DELETE( m_pQuadEffect ); m_pQuadEffect = new RenderEffectDX11(); m_pQuadEffect->SetVertexShader( m_pRenderer11->LoadShader( VERTEX_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"vsMain" ), std::wstring( L"vs_5_0" ) ) ); _ASSERT( -1 != m_pQuadEffect->GetVertexShader() ); D3D_SHADER_MACRO hsPow2Mode[2] = { "POW2_PARTITIONING", "1", NULL, NULL }; m_QuadHullShaders[Power2] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsQuadMain" ), std::wstring( L"hs_5_0" ), hsPow2Mode ); _ASSERT( -1 != m_QuadHullShaders[Power2] ); D3D_SHADER_MACRO hsIntMode[2] = { "INTEGER_PARTITIONING", "1", NULL, NULL }; m_QuadHullShaders[Integer] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsQuadMain" ), std::wstring( L"hs_5_0" ), hsIntMode ); _ASSERT( -1 != m_QuadHullShaders[Integer] ); D3D_SHADER_MACRO hsFracOddMode[2] = { "FRAC_ODD_PARTITIONING", "1", NULL, NULL }; m_QuadHullShaders[FractionalOdd] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsQuadMain" ), std::wstring( L"hs_5_0" ), hsFracOddMode ); _ASSERT( -1 != m_QuadHullShaders[FractionalOdd] ); D3D_SHADER_MACRO hsFracEvenMode[2] = { "FRAC_EVEN_PARTITIONING", "1", NULL, NULL }; m_QuadHullShaders[FractionalEven] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsQuadMain" ), std::wstring( L"hs_5_0" ), hsFracEvenMode ); _ASSERT( -1 != m_QuadHullShaders[FractionalEven] ); m_pQuadEffect->SetDomainShader( m_pRenderer11->LoadShader( DOMAIN_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"dsQuadMain" ), std::wstring( L"ds_5_0" ) ) ); _ASSERT( -1 != m_pQuadEffect->GetDomainShader() ); m_pQuadEffect->SetGeometryShader( m_pRenderer11->LoadShader( GEOMETRY_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"gsMain" ), std::wstring( L"gs_5_0" ) ) ); _ASSERT( -1 != m_pQuadEffect->GetGeometryShader() ); m_pQuadEffect->SetPixelShader( m_pRenderer11->LoadShader( PIXEL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"psMain" ), std::wstring( L"ps_5_0" ) ) ); _ASSERT( -1 != m_pQuadEffect->GetPixelShader() ); RasterizerStateConfigDX11 RS; RS.FillMode = D3D11_FILL_WIREFRAME; m_pQuadEffect->m_iRasterizerState = m_pRenderer11->CreateRasterizerState( &RS ); Log::Get().Write( L"Created quad shaders" ); } //-------------------------------------------------------------------------------- void App::CreateTriangleResources() { m_pTriangleGeometry = NULL; m_pTriangleGeometry = GeometryPtr( new GeometryDX11() ); // Create only three vertices and no index buffer // Position Data VertexElementDX11 *pPositions = new VertexElementDX11( 3 /* components - xyz */, 3 /* elements */ ); pPositions->m_SemanticName = "CONTROL_POINT_POSITION"; pPositions->m_uiSemanticIndex = 0; pPositions->m_Format = DXGI_FORMAT_R32G32B32_FLOAT; pPositions->m_uiInputSlot = 0; pPositions->m_uiAlignedByteOffset = 0; pPositions->m_InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; pPositions->m_uiInstanceDataStepRate = 0; Vector3f *pPositionData = pPositions->Get3f( 0 ); pPositionData[0] = Vector3f( -1.0f, 0.0f, -1.0f ); pPositionData[1] = Vector3f( -1.0f, 0.0f, 1.0f ); pPositionData[2] = Vector3f( 1.0f, 0.0f, -1.0f ); // Colour Data VertexElementDX11 *pColours = new VertexElementDX11( 4 /* components - argb */, 3 /* elements */ ); pColours->m_SemanticName = "COLOUR"; pColours->m_uiSemanticIndex = 0; pColours->m_Format = DXGI_FORMAT_R32G32B32A32_FLOAT; pColours->m_uiInputSlot = 0; pColours->m_uiAlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; pColours->m_InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; pColours->m_uiInstanceDataStepRate = 0; Vector4f *pColourData = pColours->Get4f( 0 ); pColourData[0] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); pColourData[1] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); pColourData[2] = Vector4f( 0.0f, 0.0f, 0.0f, 1.0f ); // Finally build the actual geometry buffer m_pTriangleGeometry->AddElement( pPositions ); m_pTriangleGeometry->AddElement( pColours ); m_pTriangleGeometry->AddIndex( 0 ); m_pTriangleGeometry->AddIndex( 1 ); m_pTriangleGeometry->AddIndex( 2 ); m_pTriangleGeometry->LoadToBuffers(); m_pTriangleGeometry->SetPrimitiveType( D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST ); Log::Get().Write( L"Created triangle geometry" ); // Create the appropriate shaders SAFE_DELETE( m_pTriangleEffect ); m_pTriangleEffect = new RenderEffectDX11(); m_pTriangleEffect->SetVertexShader( m_pRenderer11->LoadShader( VERTEX_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"vsMain" ), std::wstring( L"vs_5_0" ) ) ); _ASSERT( -1 != m_pTriangleEffect->GetVertexShader() ); D3D_SHADER_MACRO hsPow2Mode[2] = { "POW2_PARTITIONING", "1", NULL, NULL }; m_TriangleHullShaders[Power2] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsTriangleMain" ), std::wstring( L"hs_5_0" ), hsPow2Mode ); _ASSERT( -1 != m_TriangleHullShaders[Power2] ); D3D_SHADER_MACRO hsIntMode[2] = { "INTEGER_PARTITIONING", "1", NULL, NULL }; m_TriangleHullShaders[Integer] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsTriangleMain" ), std::wstring( L"hs_5_0" ), hsIntMode ); _ASSERT( -1 != m_TriangleHullShaders[Integer] ); D3D_SHADER_MACRO hsFracOddMode[2] = { "FRAC_ODD_PARTITIONING", "1", NULL, NULL }; m_TriangleHullShaders[FractionalOdd] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsTriangleMain" ), std::wstring( L"hs_5_0" ), hsFracOddMode ); _ASSERT( -1 != m_TriangleHullShaders[FractionalOdd] ); D3D_SHADER_MACRO hsFracEvenMode[2] = { "FRAC_EVEN_PARTITIONING", "1", NULL, NULL }; m_TriangleHullShaders[FractionalEven] = m_pRenderer11->LoadShader( HULL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"hsTriangleMain" ), std::wstring( L"hs_5_0" ), hsFracEvenMode ); _ASSERT( -1 != m_TriangleHullShaders[FractionalEven] ); m_pTriangleEffect->SetDomainShader( m_pRenderer11->LoadShader( DOMAIN_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"dsTriangleMain" ), std::wstring( L"ds_5_0" ) ) ); _ASSERT( -1 != m_pTriangleEffect->GetDomainShader() ); m_pTriangleEffect->SetGeometryShader( m_pRenderer11->LoadShader( GEOMETRY_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"gsMain" ), std::wstring( L"gs_5_0" ) ) ); _ASSERT( -1 != m_pTriangleEffect->GetGeometryShader() ); m_pTriangleEffect->SetPixelShader( m_pRenderer11->LoadShader( PIXEL_SHADER, std::wstring( L"TessellationParameters.hlsl" ), std::wstring( L"psMain" ), std::wstring( L"ps_5_0" ) ) ); _ASSERT( -1 != m_pTriangleEffect->GetPixelShader() ); RasterizerStateConfigDX11 RS; RS.FillMode = D3D11_FILL_WIREFRAME; m_pTriangleEffect->m_iRasterizerState = m_pRenderer11->CreateRasterizerState( &RS ); Log::Get().Write( L"Created triangle shaders" ); } //-------------------------------------------------------------------------------- void App::SetEdgeWeight(unsigned int index, float weight) { // Check index is in range if(index > (unsigned)(TRI_MODE == m_bGeometryMode ? 2 : 3)) return; // Check weight is in range if( (weight < 1.0f) || (weight > 64.0f) ) return; // Store internal state m_fEdgeWeights[ index ] = weight; // Update shader state Vector4f v = Vector4f( m_fEdgeWeights[0], m_fEdgeWeights[1], m_fEdgeWeights[2], m_fEdgeWeights[3] ); m_pRenderer11->m_pParamMgr->SetVectorParameter( std::wstring( L"vEdgeWeights" ), &v ); } //-------------------------------------------------------------------------------- void App::SetInsideWeight(unsigned int index, float weight) { // Check index is in range if(index > (unsigned)(TRI_MODE == m_bGeometryMode ? 0 : 1)) return; // Check weight is in range if( (weight < 1.0f) || (weight > 64.0f) ) return; // Store internal state m_fInsideWeights[ index ] = weight; // Update shader state Vector4f v = Vector4f( m_fInsideWeights[0], m_fInsideWeights[1], 0.0f, 0.0f ); m_pRenderer11->m_pParamMgr->SetVectorParameter( std::wstring( L"vInsideWeights" ), &v ); } //-------------------------------------------------------------------------------- void App::SetPartitioningMode( const PartitioningMode& mode ) { m_pmPartitioningMode = mode; // Update the tri HS m_pTriangleEffect->SetHullShader( m_TriangleHullShaders[ m_pmPartitioningMode ] ); // Update the quad HS m_pQuadEffect->SetHullShader( m_QuadHullShaders[ m_pmPartitioningMode ] ); } //--------------------------------------------------------------------------------
20c50c1ffa30abd85230e448a597d59e4894df56
09191649a78f77b3bddf289879eb440ce636c7a8
/ExecuteStage.h
48805a462cb5f8222d9923419af37a54bb1192da
[]
no_license
jwosborne/Y86
fcf33a7e3522b5d88dfb1e7ed9cdf8a7e62d0d66
7697fc6b7e0e6489b35308ac4a575beaefb48fe0
refs/heads/master
2020-04-05T09:55:04.156720
2018-11-08T23:07:13
2018-11-08T23:07:13
156,780,659
0
0
null
null
null
null
UTF-8
C++
false
false
1,593
h
ExecuteStage.h
/* File: ExecuteStage.h Desc: Declares ExecuteStage class and associated constants */ #ifndef EXECUTESTAGE_H #define EXECUTESTAGE_H #include "Sim.h" #include "PipeStage.h" #include "Register.h" #include "MemoryStage.h" #include "Forward.h" #include "ProgRegisters.h" class ExecuteStage : public PipeStage { /* Pointers to Execute Stage and Program Registers object */ MemoryStage *memoryStage; ProgRegisters *regs; Forward *forward; /* signals produced within the stage */ Register<uint64_t> valC; Register<uint64_t> valA; Register<uint64_t> valB; Register<uint64_t> dstE; Register<uint64_t> dstM; Register<uint64_t> srcA; Register<uint64_t> srcB; int zf; int sf; int of; uint64_t e_stat; uint64_t e_icode; uint64_t e_ifun; uint64_t e_valE; uint64_t e_valA; uint64_t e_dstE; uint64_t e_dstM; bool e_cnd; int64_t aluA; int64_t aluB; uint64_t aluFun; public: void reset(MemoryStage *, ProgRegisters *, Forward *); void updateERegister(uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t); void getALUA(); void getALUB(); void getALUFunction(); bool setsCC(); void setCCodes(int, int, int); void selectDstE(); bool isOverflow(); bool setCnd(); bool getCnd(){return e_cnd;} uint64_t getDstM(){return e_dstM;} uint64_t highBit(uint64_t); /* (Virtual) Functions of superclass */ void clockP0(); void clockP1(); void trace(); }; #endif
e658c0fa960f5df6a6867bb32001ed3b339d1f8b
7524106d9776f24311be4e6050cedd2a10e31282
/problems/spoj/x_cstreet_prim/main_ctreet_prim.cpp
b1c6222ca1e230bc610566e45f278bf224ec79cc
[]
no_license
Exr0nProjects/learn_cpp
f0d0ab1fd26adaea18d711c3cce16d63e0b2a7dc
c0fcb9783fa4ce76701fe234599bc13876cc4083
refs/heads/master
2023-04-11T08:19:42.923015
2021-01-27T02:41:35
2021-01-27T02:41:35
180,021,931
1
0
null
null
null
null
UTF-8
C++
false
false
2,935
cpp
main_ctreet_prim.cpp
/* * Problem cstreet_prim (spoj/cstreet_prim) * Create time: Mon 02 Nov 2020 @ 11:39 (PST) * Accept time: [!meta:end!] * */ #include <set> #include <queue> #include <cstdio> #include <cstdlib> #include <utility> #include <cstring> #include <iostream> #include <algorithm> #define ll long long #define dl double #define gpq(T) priority_queue<T, deque<T>, greater<T> > #define CMA , // https://stackoverflow.com/q/13842468/10372825 #define pii pair<int, int> #define pb push_back #define mp make_pair #define f first #define s second #define lb(x) ((x)&-(x)) #define F(i,b) for (ll i=1; i<=(b); ++i) #define R(i,b) for (ll i=(b); i>=1; --i) //struct Edge { int u, v, n; } eg[MX]; int hd[MX], ecnt=0; inline ll pow(ll b, ll e, ll m) { ll ret=1; for (; e; e>>=1, (b*=b)%=m) if (e&1) (ret *= b)%=m; return ret; } void setIO(const std::string &name = "ctreet_prim") { //ios_base::sync_with_stdio(0); cin.tie(0); if (fopen((name + ".in").c_str(), "r") != 0) freopen((name + ".in").c_str(), "r", stdin), freopen((name + ".out").c_str(), "w+", stdout); } #define _gc getchar_unlocked inline bool sc(ll &n) { int neg = 1; register char c; do c = _gc(); while (isspace(c)); if (c == '-') neg = -1, c = _gc(); for (n=0; c >= '0' && c <= '9'; c=_gc()) (n *= 10) += (c-'0'); n *= neg; return c != EOF; } inline ll sc() { ll x; sc(x); return x; } #define _ilb inline bool _ilb sc(int&a){ll x;bool b=sc(x);a=x;return b;} _ilb sc(int&a,int&b){return sc(a)&&sc(b);} _ilb sc(int&a,int&b,int&c){return sc(a,b)&&sc(c);} _ilb sc(int&a,int&b,int&c,int&d){return sc(a,b)&&sc(c,d);} _ilb sc(ll&a,ll&b){return sc(a)&&sc(b);} _ilb sc(ll&a,ll&b,ll&c){return sc(a,b)&&sc(c);} _ilb sc(ll&a,ll&b,ll&c,ll&d){return sc(a,b)&&sc(c,d);} #define gcd(_a, _b) ({auto a=_a;auto\ b=_b;while(b)(a)%=(b),(a)^=(b)^=(a)^=(b);a;}) using namespace std; const int MX = 1101; const int MXE = 3e5+10; struct Edge { int t, w, n; } eg[MXE]; int hd[MX], ecnt=2; int T, P, N, M; bool vis[MX]; void addEdge(int a=sc(), int b=sc(), int w=sc()*P, bool n=1) { eg[ecnt].t = b; eg[ecnt].w = w; eg[ecnt].n = hd[a]; hd[a] = ecnt++; if (n) addEdge(b, a, w, 0); // FIX: two way streets } int main() { sc(T); while (T--) { sc(P, N, M); memset(vis, 0, sizeof vis); memset(hd, 0, sizeof hd); ecnt=2; while (M--) addEdge(); gpq(pii) pq; pq.push(mp(0, 1)); int tot=0; while (!pq.empty()) { pii c = pq.top(); pq.pop(); //printf("cur %d w/ %d\n", c.s, c.f); if (vis[c.s]) continue; vis[c.s] = 1; //printf(" seems legit\n"); tot += c.f; for (int e=hd[c.s]; e; e=eg[e].n) if (!vis[eg[e].t]) pq.push(mp(eg[e].w, eg[e].t)); } printf("%d\n", tot); } }
4171e97b7e074237b685fca665b278601411a056
62e744795a2d8e1e3587cdef33ee176d7e564b7b
/Seagull-Core/src/Platform/DirectX/DirectXHelper.cpp
07eb690861e9701cef078d8c368564b047f27db8
[ "MIT" ]
permissive
Catddly/Seagull-Engine-Discarded
49bde4b8d3d16d6d519c2372176eb97b7c0a9931
fb51b66812eca6b70ed0e35ecba091e9874b5bea
refs/heads/main
2023-06-16T15:10:49.754971
2020-11-15T11:26:26
2020-11-15T11:26:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
602
cpp
DirectXHelper.cpp
#include "sgpch.h" #include "DirectXHelper.h" #include <comdef.h> namespace SG { DxException::DxException( HRESULT hr, const std::wstring& functionName, const std::wstring& filename, int lineNumber) :m_ErrorCode(hr), m_FunctionName(functionName), m_Filename(filename), m_LineNumber(lineNumber) {} std::wstring DxException::ToString() const { // Get the string description of the error code. _com_error err(m_ErrorCode); std::wstring msg = err.ErrorMessage(); return m_ErrorCode + L" failed in " + m_Filename + L"; line " + std::to_wstring(m_LineNumber) + L"; error: " + msg; } }
0c810b2cc3dfd9e5e25b9fa0c165da6e37a1b2c3
77c0b69b3da92c46278da9cab9979b1f8efe01c3
/mpllibs/metamonad/v1/impl/compose.hpp
21783973d8ce23964ca2b6a1a2bc0f0ad144dd27
[ "BSL-1.0" ]
permissive
sabel83/mpllibs
6e670ab0c23422c4ab80ccbe1ba0c2531619fbf5
8e245aedcf658fe77bb29537aeba1d4e1a619a19
refs/heads/master
2021-01-21T12:31:50.702386
2016-05-13T19:45:07
2016-05-13T19:45:07
691,824
82
7
null
2014-05-04T08:29:15
2010-05-28T21:13:03
C++
UTF-8
C++
false
false
2,159
hpp
compose.hpp
#ifndef MPLLIBS_METAMONAD_V1_IMPL_COMPOSE_HPP #define MPLLIBS_METAMONAD_V1_IMPL_COMPOSE_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <mpllibs/metamonad/limit_compose_size.hpp> #include <mpllibs/metamonad/limit_compose_arg_size.hpp> #include <boost/preprocessor/comma_if.hpp> #include <boost/preprocessor/repetition/repeat.hpp> #include <boost/preprocessor/repetition/repeat_from_to.hpp> #include <boost/preprocessor/repetition/enum_params.hpp> #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp> #include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/tuple/eat.hpp> #include <boost/mpl/apply.hpp> #if MPLLIBS_LIMIT_COMPOSE_ARG_SIZE >= BOOST_MPL_LIMIT_METAFUNCTION_ARITY # error MPLLIBS_LIMIT_COMPOSE_ARG_SIZE >= BOOST_MPL_LIMIT_METAFUNCTION_ARITY #endif namespace mpllibs { namespace metamonad { namespace v1 { namespace impl { #ifdef MPLLIBS_COMPOSE # error MPLLIBS_COMPOSE already defined #endif #define MPLLIBS_COMPOSE(z, n, unused) \ template <BOOST_PP_ENUM_PARAMS(n, class F)> \ struct BOOST_PP_CAT(compose, n) \ { \ template < \ BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( \ MPLLIBS_LIMIT_COMPOSE_ARG_SIZE, \ class A, \ boost::mpl::na \ ) \ > \ struct apply \ { \ typedef \ BOOST_PP_ENUM_PARAMS(n, typename boost::mpl::apply<F) \ BOOST_PP_COMMA_IF(n) \ BOOST_PP_ENUM_PARAMS(MPLLIBS_LIMIT_COMPOSE_ARG_SIZE, A) \ BOOST_PP_REPEAT(n, >::type BOOST_PP_TUPLE_EAT(3), ~) \ type; \ }; \ }; BOOST_PP_REPEAT_FROM_TO( 1, MPLLIBS_LIMIT_COMPOSE_SIZE, MPLLIBS_COMPOSE, ~ ) #undef MPLLIBS_COMPOSE } } } } #endif
6dbee9e7067c0c94d195b6e5b26ac7d46ba78a6c
c3f15201deec4787164e2a965512602abdc01566
/RaymarcherVR/RaymarcherCave.h
2441e1b31d906a5decb56c8acd53d33fc67ffdd8
[ "MIT" ]
permissive
iebeid/RaymarcherVR
d7c82ef501c30047bfbfb0dde5b855b8268dfff5
c1977e1e9db37f7a4aec1acf5c5ec378c7bcffbb
refs/heads/master
2021-01-17T06:12:14.638600
2017-02-17T17:16:00
2017-02-17T17:16:00
68,488,197
0
0
null
null
null
null
UTF-8
C++
false
false
982
h
RaymarcherCave.h
#ifndef RAYMARCHER_CAVE_H #define RAYMARCHER_CAVE_H 1 #include <vrj/vrjConfig.h> #include <iostream> #include <iomanip> #include <vrj/Draw/OpenGL/App.h> #include <gadget/Type/PositionInterface.h> #include <gadget/Type/DigitalInterface.h> #include <GL/glew.h> using namespace vrj; class CaveApp : public opengl::App { public: CaveApp() : mCurTime(0.0f) { ; } virtual ~CaveApp(void) { ; } public: virtual void init(); virtual void apiInit(); public: virtual void bufferPreDraw(); virtual void preFrame(); virtual void intraFrame(); virtual void postFrame(); virtual void latePreFrame(); virtual void contextPostDraw(); virtual void contextPreDraw(); public: virtual void contextInit() { initGLState(); } virtual void draw(); private: void initGLState(); public: float mCurTime; gadget::PositionInterface mWand; gadget::PositionInterface mHead; gadget::DigitalInterface mButton0; gadget::DigitalInterface mButton1; }; #endif
c82a0590b115fa2557e3cb9db09cfb10b4a65718
cb80a8562d90eb969272a7ff2cf52c1fa7aeb084
/inletTest5/0.034/omega
33d81d5b9c77ef6e8e1bc82349fd0a0058c3c16a
[]
no_license
mahoep/inletCFD
eb516145fad17408f018f51e32aa0604871eaa95
0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2
refs/heads/main
2023-08-30T22:07:41.314690
2021-10-14T19:23:51
2021-10-14T19:23:51
314,657,843
0
0
null
null
null
null
UTF-8
C++
false
false
219,403
omega
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.034"; object omega; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 -1 0 0 0 0]; internalField nonuniform List<scalar> 24416 ( 0.0137251 0.0137252 0.0137213 0.0137213 0.0137213 0.0137213 0.0137214 0.0137214 0.0137215 0.0137215 0.0137216 0.0137217 0.0137218 0.0137219 0.013722 0.0137221 0.0137223 0.0137223 0.0137226 0.0137229 0.0137227 0.0137207 0.0137159 0.0137085 0.0136989 0.0136877 0.0136754 0.0136625 0.0136493 0.0136358 0.0136221 0.0136082 0.013594 0.0135796 0.0135649 0.0135499 0.0135346 0.0135191 0.0135034 0.0134874 0.0134714 0.0134552 0.0134389 0.0134227 0.0134065 0.0133905 0.0133748 0.0133595 0.0133449 0.0133312 0.0133189 0.0133083 0.0133003 0.0132958 0.0132959 0.0133025 0.0133179 0.0133451 0.0133887 0.0134546 0.0135508 0.0136885 0.0138828 0.0141543 0.0145309 0.0150506 0.0157651 0.016744 0.0180816 0.0199047 0.0223831 0.0257434 0.0302862 0.0364065 0.0446188 0.055584 0.0701384 0.0893222 0.114406 0.146913 0.188655 0.241774 0.308809 0.392432 0.493199 0.596321 0.595218 0.661797 0.762912 0.798597 0.71317 0.530931 0.334789 0.195427 0.0456905 0.0844732 0.551997 1.69959 4.24187 10.0964 24.7509 35.3097 30.3469 79.4052 213.815 532.837 1746.64 14649.4 78425.7 1.10214e+06 1.07471e+06 163167 37748.3 57525.5 202808 1.04713e+06 1.01509e+06 217549 69195.4 78081.7 226395 975331 945130 224665 83671 88952.6 228126 914394 896772 227807 91560.8 95013.7 231812 883556 874719 230505 96310.7 98516.9 228890 861323 851545 227307 98854.4 100126 226224 841420 834165 225166 100220 101075 224445 826202 820573 223710 101071 101729 223258 814110 809541 222732 101690 102256 222471 804145 800293 222097 102195 102704 221955 795652 792309 221689 102629 103097 221606 788217 785248 221425 103011 103446 221374 781566 778878 221246 103351 103758 221214 775511 773041 221122 103655 104038 221095 769923 767632 221018 103927 104288 221001 764717 762565 220935 104171 104515 220927 759814 757775 220866 104391 104715 220857 755164 753224 220794 104586 104894 220784 750732 748877 220719 104758 105051 220707 746490 744707 220638 104911 105189 220623 742413 740694 220550 105044 105310 220532 738482 736821 220454 105162 105416 220433 734681 733071 220349 105264 105508 220325 730998 729432 220236 105352 105587 220209 727419 725894 220113 105429 105655 220082 723935 722447 219979 105493 105715 219945 720537 719083 219836 105549 105765 219798 717219 715795 219681 105594 105805 219640 713972 712575 219516 105631 105837 219471 710788 709416 219339 105659 105861 219290 707662 706311 219151 105680 105879 219098 704585 703253 218951 105695 105890 218893 701552 700236 218739 105703 105894 218677 698557 697255 218514 105704 105892 218447 695595 694304 218276 105699 105884 218205 692660 691379 218025 105688 105869 217949 689747 688474 217760 105671 105848 217679 686853 685585 217481 105648 105822 217396 683971 682706 217189 105619 105790 217098 681097 679833 216882 105585 105752 216786 678226 676962 216560 105545 105709 216459 675354 674087 216223 105500 105661 216117 672476 671205 215871 105449 105607 215759 669588 668310 215503 105393 105547 215385 666684 665397 215119 105332 105482 214995 663761 662464 214718 105265 105412 214589 660815 659505 214301 105193 105336 214165 657841 656517 213866 105115 105254 213723 654836 653497 213412 105029 105166 213263 651797 650441 212939 104938 105072 212784 648720 647345 212448 104839 104970 212286 645601 644207 211938 104732 104861 211768 642437 641022 211407 104618 104744 211230 639226 637788 210857 104497 104620 210672 635963 634500 210285 104368 104490 210092 632643 631153 209691 104233 104352 209490 629262 627744 209074 104090 104206 208864 625815 624267 208432 103940 104053 208214 622300 620720 207766 103781 103892 207538 618711 617097 207073 103614 103722 206836 615044 613395 206354 103439 103544 206106 611297 609611 205607 103254 103357 205349 607465 605739 204832 103061 103160 204563 603544 601776 204029 102859 102954 203744 599529 597719 203196 102647 102739 202894 595419 593564 202331 102424 102512 202011 591208 589308 201432 102191 102275 201094 586895 584949 200498 101946 102026 200142 582476 580481 199528 101689 101765 199152 577948 575903 198520 101420 101492 198123 573307 571211 197473 101138 101204 197054 568549 566402 196384 100841 100903 195943 563674 561474 195253 100530 100586 194790 558677 556423 194078 100203 100254 193591 553555 551246 192858 99860.1 99904.8 192346 548308 545944 191590 99499.4 99537.8 191052 542934 540517 190271 99119.8 99151.5 189706 537437 534968 188900 98720.1 98744.6 188307 531819 529299 187475 98298.6 98315.2 186852 526084 523515 185992 97853.7 97862.2 185341 520235 517620 184452 97384 97383.7 183770 514279 511619 182853 96892.4 96879.6 182140 508222 505518 181193 96371.5 96346.5 180451 502071 499323 179477 95822.3 95788.3 178717 495834 493393 177761 95255.7 95223.8 177097 490641 488527 176236 94704.3 94680 175647 485909 483827 174840 94180.3 94162.5 174289 481202 479090 173503 93678.9 93663.4 172960 476433 474285 172176 93188.9 93171.2 171626 471598 469422 170824 92696.6 92672.2 170255 466714 464523 169423 92189.2 92153.8 168824 461806 459613 167955 91655.2 91604.4 167319 456901 454720 166405 91082.4 91011.9 165725 452028 449876 164758 90459 90364.8 164030 447221 445115 163006 89773 89651.5 162227 442514 440470 161143 89014.8 88863.1 160311 437941 435977 159166 88177.1 87993.2 158284 433538 431669 157080 87254.4 87037 156149 429335 427577 154890 86243.7 85992.3 153915 425363 423728 152609 85144.6 84859.8 151599 421644 420141 150248 83958.6 83644.4 149219 418197 416832 147837 82691.9 82369.6 146802 415032 413805 145404 81363.7 81020.1 144367 412149 411059 142971 79985.5 79625.4 141948 409545 408587 140565 78570.6 78200.4 139569 407210 406377 138216 77137.1 76762.9 137261 405128 404407 135949 75704 75330.1 135043 403276 402657 133787 74288.5 73921.1 132937 401635 401105 131747 72907.4 72545.2 130958 400179 399726 129841 71572.6 71228.3 129120 398888 398499 128080 70294.9 69972.1 127429 397734 397387 126470 69083.2 68785.8 125893 396688 396371 125013 67943.2 67674.3 124512 395724 395428 123711 66878.6 66641.3 123284 394819 394534 122565 65900 65695.4 122209 393947 393661 121573 65014.3 64841.7 121288 393051 392785 120626 64174.3 64257.5 120795 392333 391814 120072 63553.3 63592.6 120081 390952 390729 119889 63130.9 63267.6 120077 388976 389822 120342 63066.6 62575.3 119326 384391 375237 115540 60672.2 58810.1 112880 360668 30407.8 19992.1 15142.9 12288.9 11050.5 9713.57 8858.27 8115.86 7566.57 7076.3 6680.78 6323.77 6022.68 5749.44 5513.09 5298.18 5109.78 4938.89 4788.68 4653.76 4536.39 4433.38 4346.63 4274.38 4218.46 4178.27 4155.69 4151.45 4167.42 4205.67 4269.73 4363.1 4490.91 4659.86 4877.35 5156.08 5507.97 5958.07 6525.42 7263.18 8198.02 9447.01 11052.6 13336 15554.1 20168.5 26114.3 36760.1 61425 132947 292717 1.12054e+06 1.23908e+06 328794 148943 161136 361787 1.38555e+06 1.53517e+06 399844 178520 187386 420701 1.61831e+06 1.66812e+06 427490 189192 196632 439531 1.68884e+06 1.70309e+06 436912 194177 197239 443186 1.70067e+06 1.70578e+06 435899 194435 198051 445150 1.7083e+06 1.71079e+06 436937 195536 197988 443396 1.70742e+06 1.71009e+06 434403 195277 198719 443523 1.71276e+06 1.71569e+06 435428 196199 198548 441918 1.71246e+06 1.71353e+06 432893 195916 199364 442071 1.72027e+06 1.72161e+06 433907 196888 199256 440447 1.71846e+06 1.71985e+06 431437 196686 200168 440679 1.72664e+06 1.72834e+06 432566 197759 200172 439184 1.72526e+06 1.72697e+06 430244 197683 201221 439582 1.73378e+06 1.73587e+06 431577 198912 201401 438310 1.73284e+06 1.73493e+06 429498 199027 202664 438975 1.74175e+06 1.74429e+06 431136 200483 203078 438030 1.74133e+06 1.74388e+06 429400 200816 204623 439071 1.75073e+06 1.75385e+06 431451 202558 205345 438568 1.75099e+06 1.75411e+06 430184 203187 207301 440176 1.76102e+06 1.76489e+06 432913 205371 208577 440538 1.76221e+06 1.76816e+06 432727 206608 211333 443679 1.77134e+06 1.77881e+06 437467 209652 213278 446374 1.77707e+06 1.7863e+06 438979 211293 214926 450254 1.79291e+06 1.81184e+06 441089 211845 214388 446336 1.8087e+06 1.80921e+06 431934 209712 213064 437371 1.77735e+06 1.74432e+06 424637 210641 213614 428231 1.69196e+06 1.63526e+06 423947 214778 221436 431167 1.56045e+06 1.44351e+06 432619 224507 233266 420623 2.14835e+06 3.28193e+06 1.05138e+06 452589 258379 511669 2.3733e+06 2.04587e+06 537401 266172 245134 505907 1.92263e+06 1.89761e+06 474618 238401 168643 472149 1.0761e+06 781517 237458 125141 116406 233440 669413 627486 187537 98153.8 101008 188524 634376 611096 203545 116088 101564 184854 585033 531954 166180 92094.6 83855.5 150339 497389 456093 133750 71621.3 58412.4 116779 430757 399430 93716.7 48576.5 43538.6 77782.8 381593 332857 59314.3 34392.5 28139.9 47325.7 298435 263687 40099 26436.5 24789.4 34421.8 240329 204821 30082.8 21188.3 18859.3 25672.9 183750 161998 23156.9 17547.7 15681 21516.5 149937 146845 23114.5 16397.5 16921.9 23049.1 155042 172080 42888.3 17933.6 51946.9 122439 198635 246723 201420 144912 165127 236296 281753 344902 290964 204298 285618 347791 405249 488846 406275 292654 318364 451473 557279 681705 551316 414183 399752 577622 758090 854848 608123 411056 504167 699661 981294 1.0662e+06 691418 455812 467783 685140 1.19495e+06 1.9464e+06 1.1485e+06 644967 557243 942514 2.83004e+06 2.14876e+06 931389 577256 841854 1.53847e+06 3.24902e+06 2.43975e+06 744711 559600 539673 755319 1.91417e+06 3.14122e+06 1.33948e+06 744565 486379 658177 2.34042e+06 1.83224e+06 671296 470631 685689 1.32597e+06 3.0487e+06 2.27189e+06 605127 436127 427775 632923 1.7992e+06 3.09119e+06 1.28314e+06 663284 410652 584722 2.33293e+06 1.87603e+06 615186 404690 683494 1.39058e+06 3.36874e+06 2.68816e+06 481650 416960 583014 1.09142e+06 2.37113e+06 1.83444e+06 507190 352047 355097 550442 1.52558e+06 2.7176e+06 1.16181e+06 590349 352696 506271 2.05608e+06 1.66076e+06 558460 353802 604367 1.20167e+06 2.89903e+06 2.17158e+06 517193 354275 356325 566936 1.78875e+06 3.24158e+06 1.36396e+06 656117 395140 454312 2.64846e+06 2.41528e+06 1.08373e+06 580076 338237 511948 1.92634e+06 1.65551e+06 572918 347768 653873 1.33864e+06 3.10279e+06 2.56928e+06 452967 396248 576864 1.05814e+06 2.32336e+06 1.81389e+06 501614 334743 342076 551186 1.55765e+06 2.79238e+06 1.24693e+06 615217 358116 528171 2.18617e+06 1.85395e+06 598375 364687 704710 1.49782e+06 3.42693e+06 2.86001e+06 490826 431484 650917 1.18647e+06 2.74524e+06 2.37781e+06 470166 385902 576918 1.05103e+06 2.24484e+06 1.84622e+06 522996 341744 355820 595302 1.64753e+06 3.08276e+06 1.36858e+06 682575 410352 502076 2.58491e+06 2.42394e+06 1.11007e+06 610270 355082 537509 1.98906e+06 1.76322e+06 610610 368985 721340 1.4718e+06 3.35026e+06 2.79201e+06 519063 433920 658597 1.21735e+06 2.66893e+06 2.37402e+06 505777 398006 601167 1.10849e+06 2.28992e+06 1.8856e+06 551135 357046 375122 635225 1.68309e+06 3.18952e+06 1.50233e+06 731873 450472 535817 2.7592e+06 2.67699e+06 1.20218e+06 677081 409358 505130 2.37719e+06 2.31944e+06 1.11007e+06 617952 369634 574693 1.93811e+06 1.77436e+06 662322 390822 769355 1.53896e+06 3.42603e+06 2.90634e+06 538904 476467 715956 1.29658e+06 2.82152e+06 2.48746e+06 560599 434039 655362 1.20055e+06 2.40726e+06 1.99266e+06 603771 391530 411363 688931 1.81143e+06 3.49878e+06 1.59568e+06 802645 493326 566310 2.96941e+06 2.88651e+06 1.34494e+06 745282 455859 585625 2.55621e+06 2.55261e+06 1.25298e+06 692149 435755 562524 2.35122e+06 2.34493e+06 1.17397e+06 655261 397293 611035 1.96374e+06 1.81028e+06 722411 424891 831389 1.65073e+06 3.53867e+06 3.04047e+06 603848 523993 777988 1.33785e+06 2.98323e+06 2.67804e+06 588254 481335 732039 1.2999e+06 2.74609e+06 2.56543e+06 601310 468455 712579 1.2776e+06 2.61907e+06 2.38168e+06 587602 457773 681340 1.19661e+06 2.38068e+06 1.98908e+06 636461 417309 441204 728694 1.82537e+06 3.49887e+06 1.65802e+06 853047 533781 622946 3.05356e+06 2.97405e+06 1.37589e+06 791203 494636 621124 2.6328e+06 2.68103e+06 1.31701e+06 744174 479525 615723 2.50224e+06 2.56838e+06 1.27172e+06 720339 467082 598343 2.3371e+06 2.37043e+06 1.21256e+06 697035 431466 655397 2.01832e+06 1.87192e+06 762654 460931 881026 1.68499e+06 3.57112e+06 3.05457e+06 651166 561775 827016 1.41519e+06 3.04481e+06 2.77612e+06 639242 522576 790509 1.39089e+06 2.86858e+06 2.6306e+06 662554 513764 764792 1.3387e+06 2.67413e+06 2.42777e+06 640477 500165 739199 1.2713e+06 2.46785e+06 2.08601e+06 691104 459169 485697 791372 1.92724e+06 3.63444e+06 1.75265e+06 919181 581168 680454 3.16102e+06 3.14348e+06 1.46748e+06 856190 542429 673201 2.81531e+06 2.87896e+06 1.40997e+06 811482 528605 673959 2.63441e+06 2.71644e+06 1.36025e+06 788511 515162 656272 2.46268e+06 2.50945e+06 1.29325e+06 760912 476104 713952 2.13295e+06 2.00048e+06 833200 508405 961006 1.83763e+06 3.80723e+06 3.26038e+06 722758 606236 902707 1.5703e+06 3.2801e+06 2.90084e+06 727757 574972 853212 1.49115e+06 2.94264e+06 2.72712e+06 714248 562132 835199 1.45305e+06 2.84298e+06 2.57193e+06 707687 550523 806461 1.37015e+06 2.59502e+06 2.21125e+06 757657 504174 533240 857774 2.05163e+06 3.83417e+06 1.87613e+06 999065 638691 740205 3.32246e+06 3.32479e+06 1.60709e+06 938962 596178 743667 2.95918e+06 3.0309e+06 1.53013e+06 889092 580752 738749 2.72541e+06 2.80856e+06 1.46077e+06 859931 564930 715151 2.57137e+06 2.60725e+06 1.38184e+06 821820 516312 771707 2.20423e+06 2.07547e+06 890506 550715 1.02604e+06 1.90736e+06 3.90348e+06 3.37953e+06 775398 657095 961289 1.63643e+06 3.43713e+06 2.97336e+06 754044 617230 909135 1.55115e+06 3.04e+06 2.75354e+06 759747 598330 872270 1.45885e+06 2.76271e+06 2.33782e+06 814368 546618 578094 917722 2.18897e+06 3.96839e+06 1.963e+06 1.05936e+06 673060 806605 3.42472e+06 3.43986e+06 1.65177e+06 979881 628393 770223 2.95017e+06 3.02707e+06 1.54374e+06 920936 605264 762500 2.73872e+06 2.77687e+06 1.47327e+06 880533 551933 822936 2.29275e+06 2.16121e+06 944362 586610 1.08302e+06 1.99238e+06 3.99576e+06 3.40573e+06 827647 691867 1.00145e+06 1.682e+06 3.43211e+06 2.98541e+06 788484 643761 940979 1.56671e+06 3.00655e+06 2.44024e+06 869755 586824 615978 980983 2.27578e+06 4.17478e+06 2.0887e+06 1.13532e+06 719662 856572 3.55112e+06 3.56201e+06 1.73539e+06 1.0431e+06 664631 811927 3.04138e+06 3.04088e+06 1.58655e+06 964643 600447 888536 2.51501e+06 2.37027e+06 1.01077e+06 634179 1.16599e+06 2.14509e+06 4.31487e+06 3.60924e+06 886809 739732 1.07211e+06 1.78227e+06 3.61957e+06 3.11596e+06 842706 685095 995881 1.63643e+06 3.15071e+06 2.55441e+06 914532 617442 646823 1.02091e+06 2.36141e+06 4.19569e+06 2.13306e+06 1.16933e+06 740597 915936 3.50575e+06 3.4344e+06 1.73384e+06 1.06122e+06 645036 927541 2.72853e+06 2.5464e+06 1.02622e+06 669231 1.23448e+06 2.29738e+06 4.58269e+06 3.72151e+06 961007 771173 1.11661e+06 1.82708e+06 3.61452e+06 2.80211e+06 954041 668274 692539 1.05737e+06 2.58159e+06 4.57839e+06 2.26054e+06 1.24444e+06 780266 939156 3.75721e+06 3.68604e+06 1.85757e+06 1.13695e+06 678813 992624 2.86972e+06 2.65112e+06 1.09776e+06 703104 1.27253e+06 2.32779e+06 4.64725e+06 3.7201e+06 984451 793524 1.13945e+06 1.8263e+06 3.6506e+06 2.81555e+06 980565 673739 692142 1.05909e+06 2.54107e+06 4.17991e+06 2.15359e+06 1.20042e+06 710828 1.00472e+06 3.16502e+06 2.8206e+06 1.06177e+06 721443 1.26441e+06 2.30636e+06 4.65888e+06 3.39785e+06 1.05333e+06 732804 738348 1.11619e+06 2.96711e+06 4.81057e+06 2.3807e+06 1.30561e+06 752906 1.0906e+06 3.51719e+06 3.11203e+06 1.12142e+06 758707 1.3761e+06 2.53759e+06 5.0939e+06 3.65627e+06 1.13266e+06 778428 782385 1.19041e+06 3.18396e+06 5.09347e+06 2.51499e+06 1.38301e+06 784545 1.1284e+06 3.68263e+06 3.24389e+06 1.19503e+06 788050 1.41497e+06 2.58766e+06 5.14034e+06 3.60586e+06 1.15816e+06 784705 782700 1.17733e+06 3.15357e+06 4.98271e+06 2.47481e+06 1.36509e+06 759240 1.11151e+06 3.40472e+06 2.82098e+06 1.17928e+06 765805 796160 1.25368e+06 3.74872e+06 5.74072e+06 2.82006e+06 1.46541e+06 783389 1.19125e+06 3.73719e+06 3.03122e+06 1.21043e+06 778879 770789 1.2801e+06 3.5867e+06 4.1703e+06 1.58333e+06 823076 774648 1.46197e+06 4.57629e+06 4.99306e+06 1.85947e+06 848258 785417 1.6537e+06 5.51494e+06 7.16027e+06 3.67402e+06 1.72494e+06 820508 1.36037e+06 4.02193e+06 3.02939e+06 1.35689e+06 805451 794989 1.36846e+06 3.14279e+06 3.15637e+06 1.36402e+06 774589 752920 1.3546e+06 3.12508e+06 3.07359e+06 1.33368e+06 731418 712294 1.317e+06 3.00376e+06 2.91489e+06 1.29585e+06 694903 680174 1.28043e+06 2.82874e+06 2.74254e+06 1.26716e+06 668081 658108 1.25577e+06 2.65813e+06 2.57773e+06 1.24623e+06 650376 644576 1.23788e+06 2.50221e+06 2.43226e+06 1.23036e+06 640172 637278 1.22331e+06 2.36769e+06 2.30847e+06 1.21618e+06 634954 633678 1.20899e+06 2.25411e+06 2.20435e+06 1.20105e+06 632211 631374 1.19275e+06 2.159e+06 2.1178e+06 1.1838e+06 630419 629835 1.17438e+06 2.08051e+06 2.04685e+06 1.16422e+06 628898 628304 1.15366e+06 2.0166e+06 1.98947e+06 1.14228e+06 627125 626330 1.13069e+06 1.96524e+06 1.94367e+06 1.11826e+06 624772 623491 1.10575e+06 1.92456e+06 1.90767e+06 1.0926e+06 621584 619912 1.07952e+06 1.89279e+06 1.87975e+06 1.06576e+06 617523 615352 1.05216e+06 1.86832e+06 1.85834e+06 1.03813e+06 612588 610010 1.02442e+06 1.84962e+06 1.84208e+06 1.01028e+06 606771 603711 996577 1.83545e+06 1.82973e+06 982669 600102 596683 969355 1.82469e+06 1.82033e+06 955825 592692 588919 942972 1.81643e+06 1.81302e+06 930075 584686 580690 917965 1.80989e+06 1.80714e+06 905763 576237 572058 894388 1.80454e+06 1.8022e+06 883031 567514 563260 872559 1.79992e+06 1.79784e+06 862026 558649 554355 852376 1.79576e+06 1.79382e+06 842734 549777 545518 833988 1.79182e+06 1.78996e+06 825165 540985 536783 817186 1.78801e+06 1.78618e+06 809207 532357 528260 802002 1.7842e+06 1.78247e+06 794783 523932 519951 788201 1.78048e+06 1.77883e+06 781716 515751 511912 775783 1.7769e+06 1.77531e+06 769899 507834 504133 764527 1.77345e+06 1.77193e+06 759178 500183 496625 754316 1.77012e+06 1.76869e+06 749436 492800 489373 745013 1.76695e+06 1.76564e+06 740553 485680 482394 736542 1.76397e+06 1.76278e+06 732451 478829 475662 728780 1.76124e+06 1.76019e+06 725012 472231 469194 721664 1.75876e+06 1.75785e+06 718163 465892 462962 715061 1.75658e+06 1.75584e+06 711796 459785 456979 708956 1.75471e+06 1.75413e+06 705909 453915 451214 703239 1.75319e+06 1.75272e+06 700410 448290 445717 697984 1.75195e+06 1.75159e+06 695353 442928 440460 693106 1.75103e+06 1.75078e+06 690729 437817 435479 688712 1.75041e+06 1.75025e+06 686532 432980 430762 684684 1.75003e+06 1.74995e+06 682674 428408 426327 681003 1.7498e+06 1.74984e+06 679151 424104 422129 677587 1.74977e+06 1.74992e+06 675892 420047 418194 674474 1.7499e+06 1.75015e+06 672917 416236 414485 671602 1.75019e+06 1.75055e+06 670168 412645 411004 668982 1.75065e+06 1.75109e+06 667669 409275 407723 666572 1.75125e+06 1.7518e+06 665364 406099 404646 664385 1.75202e+06 1.75263e+06 663281 403118 401745 662381 1.75295e+06 1.75365e+06 661367 400309 399023 660574 1.75405e+06 1.7548e+06 659652 397672 396455 658924 1.75529e+06 1.75611e+06 658078 395182 394044 657448 1.75669e+06 1.75755e+06 656679 392844 391767 656104 1.75822e+06 1.75914e+06 655399 390633 389625 654909 1.75987e+06 1.76083e+06 654271 388554 387598 653827 1.76162e+06 1.76263e+06 653240 386584 385694 652870 1.76347e+06 1.76452e+06 652345 384731 383871 652002 1.7654e+06 1.7665e+06 651530 382971 382163 651247 1.7674e+06 1.76852e+06 650827 381304 380519 650570 1.76946e+06 1.77061e+06 650197 379713 378969 649988 1.77156e+06 1.77272e+06 649659 378202 377491 649476 1.77369e+06 1.77487e+06 649183 376760 376088 649044 1.77584e+06 1.77702e+06 648790 375390 374750 648671 1.77801e+06 1.7792e+06 648451 374081 373486 648365 1.78019e+06 1.78137e+06 648186 372842 372260 648115 1.78236e+06 1.78354e+06 647969 371658 371114 647923 1.78452e+06 1.7857e+06 647817 370536 369999 647782 1.78668e+06 1.78784e+06 647706 369462 368953 647693 1.78881e+06 1.78995e+06 647651 368441 367953 647649 1.79091e+06 1.79205e+06 647638 367462 367004 647659 1.79299e+06 1.7941e+06 647665 366533 366099 647700 1.79504e+06 1.79613e+06 647722 365641 365247 647790 1.79704e+06 1.79812e+06 647823 364800 364410 647906 1.79901e+06 1.80006e+06 647953 363992 363639 648068 1.80094e+06 1.80197e+06 648124 363231 362880 648250 1.80283e+06 1.80383e+06 648319 362500 362180 648472 1.80467e+06 1.80565e+06 648550 361818 361505 648713 1.80647e+06 1.80743e+06 648801 361152 360870 648988 1.80822e+06 1.80916e+06 649082 360520 360274 649280 1.80993e+06 1.81085e+06 649382 359906 359681 649598 1.8116e+06 1.81248e+06 649710 359374 359118 649936 1.81322e+06 1.81408e+06 650056 358840 358603 650300 1.81479e+06 1.81563e+06 650425 358336 358113 650675 1.81632e+06 1.81714e+06 650806 357853 357658 651070 1.81781e+06 1.8186e+06 651209 357406 357201 651472 1.81926e+06 1.82003e+06 651618 356978 356788 651895 1.82067e+06 1.82142e+06 652047 356577 356396 652327 1.82204e+06 1.82276e+06 652479 356194 356028 652776 1.82336e+06 1.82406e+06 652929 355838 355679 653273 1.82465e+06 1.82533e+06 653306 355504 355345 653804 1.82591e+06 1.82657e+06 653913 355174 355053 654234 1.82712e+06 1.82776e+06 654275 354877 354793 654607 1.82828e+06 1.8289e+06 654791 354604 354507 655108 1.82941e+06 1.83002e+06 655286 354334 354266 655607 1.83051e+06 1.8311e+06 655787 354092 354015 656103 1.83158e+06 1.83216e+06 656281 353856 353813 656601 1.83263e+06 1.83319e+06 656785 353649 353587 657101 1.83364e+06 1.83419e+06 657282 353443 353424 657603 1.83462e+06 1.83515e+06 657791 353269 353219 658105 1.83558e+06 1.83609e+06 658291 353097 353089 658610 1.83651e+06 1.83701e+06 658802 352943 352904 659113 1.83741e+06 1.83789e+06 659303 352805 352801 659618 1.83828e+06 1.83875e+06 659814 352670 352640 660120 1.83913e+06 1.83958e+06 660314 352559 352558 660624 1.83995e+06 1.84039e+06 660823 352447 352422 661124 1.84075e+06 1.84118e+06 661321 352355 352347 661624 1.84152e+06 1.84194e+06 661824 352280 352269 662123 1.84228e+06 1.84269e+06 662318 352183 352189 662613 1.84301e+06 1.84341e+06 662815 352114 352098 663102 1.84372e+06 1.8441e+06 663301 352057 352052 663586 1.84441e+06 1.84478e+06 663788 352014 352005 664068 1.84508e+06 1.84544e+06 664264 351949 351942 664538 1.84573e+06 1.84608e+06 664739 351929 351903 665008 1.84636e+06 1.8467e+06 665202 351888 351871 665469 1.84697e+06 1.8473e+06 665661 351852 351853 665928 1.84756e+06 1.84788e+06 666112 351813 351826 666375 1.84813e+06 1.84843e+06 666563 351801 351797 666819 1.84868e+06 1.84897e+06 667002 351788 351800 667257 1.84921e+06 1.84949e+06 667441 351784 351781 667688 1.84972e+06 1.84999e+06 667869 351784 351782 668114 1.85022e+06 1.85048e+06 668295 351789 351789 668537 1.85069e+06 1.85095e+06 668709 351785 351814 668952 1.85115e+06 1.8514e+06 669124 351796 351819 669359 1.8516e+06 1.85183e+06 669531 351828 351832 669760 1.85203e+06 1.85225e+06 669933 351849 351854 670159 1.85244e+06 1.85266e+06 670324 351871 351879 670549 1.85284e+06 1.85305e+06 670712 351893 351921 670938 1.85322e+06 1.85343e+06 671091 351907 351949 671312 1.85359e+06 1.85379e+06 671470 351961 351989 671689 1.85394e+06 1.85414e+06 671836 351978 352024 672051 1.85429e+06 1.85448e+06 672202 352029 352057 672413 1.85462e+06 1.8548e+06 672557 352068 352116 672766 1.85494e+06 1.85511e+06 672911 352121 352152 673115 1.85524e+06 1.85541e+06 673253 352164 352217 673457 1.85554e+06 1.8557e+06 673595 352222 352256 673792 1.85582e+06 1.85598e+06 673924 352269 352326 674122 1.85609e+06 1.85624e+06 674254 352332 352370 674445 1.85635e+06 1.8565e+06 674571 352383 352444 674764 1.8566e+06 1.85674e+06 674890 352451 352491 675076 1.85685e+06 1.85698e+06 675196 352506 352570 675384 1.85707e+06 1.85721e+06 675504 352578 352621 675684 1.8573e+06 1.85742e+06 675800 352636 352704 675981 1.85751e+06 1.85763e+06 676097 352712 352757 676271 1.85772e+06 1.85783e+06 676383 352773 352843 676556 1.85791e+06 1.85803e+06 676672 352862 352885 676836 1.8581e+06 1.85821e+06 676948 352934 352966 677112 1.85828e+06 1.85839e+06 677221 353002 353054 677388 1.85846e+06 1.85856e+06 677486 353063 353146 677655 1.85862e+06 1.85872e+06 677752 353136 353219 677916 1.85879e+06 1.85888e+06 678011 353213 353293 678169 1.85894e+06 1.85903e+06 678271 353314 353367 678424 1.85909e+06 1.85918e+06 678517 353363 353447 678665 1.85924e+06 1.85932e+06 678769 353469 353496 678906 1.85938e+06 1.85946e+06 679009 353555 353581 679144 1.85951e+06 1.85959e+06 679248 353640 353665 679380 1.85964e+06 1.85972e+06 679479 353721 353747 679611 1.85977e+06 1.85984e+06 679709 353805 353830 679837 1.85989e+06 1.85996e+06 679931 353886 353912 680059 1.86e+06 1.86007e+06 680153 353970 353995 680276 1.86011e+06 1.86018e+06 680366 354051 354077 680489 1.86022e+06 1.86029e+06 680580 354135 354161 680699 1.86032e+06 1.86039e+06 680786 354217 354244 680904 1.86042e+06 1.86048e+06 680991 354299 354331 681107 1.86052e+06 1.86058e+06 681188 354380 354408 681302 1.86061e+06 1.86067e+06 681385 354465 354497 681497 1.8607e+06 1.86076e+06 681574 354546 354574 681685 1.86078e+06 1.86084e+06 681764 354633 354658 681872 1.86087e+06 1.86092e+06 681946 354714 354740 682054 1.86095e+06 1.861e+06 682127 354796 354821 682233 1.86103e+06 1.86108e+06 682301 354876 354902 682408 1.86111e+06 1.86116e+06 682475 354958 354983 682580 1.86118e+06 1.86123e+06 682641 355033 355067 682749 1.86125e+06 1.86131e+06 682807 355106 355157 682914 1.86133e+06 1.86138e+06 682968 355172 355252 683078 1.8614e+06 1.86145e+06 683129 355260 355313 683233 1.86147e+06 1.86152e+06 683284 355328 355407 683390 1.86153e+06 1.86159e+06 683439 355414 355467 683539 1.8616e+06 1.86166e+06 683588 355481 355558 683690 1.86167e+06 1.86172e+06 683737 355565 355616 683832 1.86174e+06 1.86179e+06 683879 355630 355705 683977 1.86181e+06 1.86186e+06 684022 355723 355746 684113 1.86188e+06 1.86193e+06 684158 355793 355822 684250 1.86195e+06 1.862e+06 684294 355858 355901 684383 1.86203e+06 1.86208e+06 684425 355915 355983 684514 1.86211e+06 1.86216e+06 684556 356006 356025 684653 1.8622e+06 1.86225e+06 684603 356100 356031 684885 1.8623e+06 1.86236e+06 684783 356143 356170 684873 1.86239e+06 1.86246e+06 684911 356158 356227 684996 1.8625e+06 1.86257e+06 685035 356231 356273 685116 1.86261e+06 1.86269e+06 685154 356283 356346 685239 1.86273e+06 1.86281e+06 685277 356350 356391 685358 1.86286e+06 1.86295e+06 685398 356400 356464 685485 1.863e+06 1.86308e+06 685525 356467 356512 685609 1.86313e+06 1.86322e+06 685651 356519 356588 685742 1.86327e+06 1.86335e+06 685785 356600 356628 685875 1.8634e+06 1.86348e+06 685920 356670 356693 686015 1.86352e+06 1.86359e+06 686062 356742 356765 686156 1.86364e+06 1.8637e+06 686201 356813 356836 686292 1.86375e+06 1.8638e+06 686339 356892 356881 686417 1.86387e+06 1.86392e+06 686455 356971 356950 686521 1.86405e+06 1.86566e+06 686522 356989 356918 685923 1.8627e+06 1.86819e+06 688053 357485 357659 688679 1.8656e+06 1.87039e+06 689386 358413 351985 679567 1.8322e+06 1.78022e+06 657795 339113 323135 630754 1.71924e+06 151684 75710.2 45954.4 34267.8 28229.4 20157.1 17228.2 16375.6 13711.3 11370.5 9805.45 8487.59 7339.17 6344.4 5473.56 4721.05 4068.57 3506.43 3022.7 2607.74 2252.67 1949.61 1691.48 1471.97 1285.42 1126.9 992.088 877.284 779.331 695.561 623.734 561.972 508.713 462.65 422.698 387.95 357.651 331.168 307.972 287.62 269.737 254.009 240.171 227.998 217.299 207.91 199.694 192.52 186.296 180.908 176.34 172.502 169.466 167.156 165.587 164.643 164.208 163.847 163.137 162.074 160.676 159.029 157.183 155.218 153.157 151.031 148.849 146.621 144.352 142.048 139.712 137.349 134.962 132.551 130.117 127.661 125.183 122.684 120.162 117.619 115.05 112.456 109.837 107.189 104.512 101.801 99.0561 96.2727 93.4476 90.5745 87.6483 84.6619 81.607 78.283 74.1347 68.7061 62.1531 54.9251 47.5245 40.3566 33.692 27.6801 22.3865 17.8228 13.966 10.768 8.16626 6.08887 4.46196 3.21273 2.27342 1.58333 1.08804 0.741955 0.506736 0.351611 0.252376 0.190757 0.153578 0.131607 0.118734 0.111119 0.106441 0.103379 0.101209 0.0995436 0.0981809 0.0970121 0.0959754 0.0950329 0.0941593 0.0933366 0.0925511 0.0917922 0.0910514 0.0903222 0.0895984 0.0888757 0.0881502 0.0874184 0.0866777 0.0859255 0.08516 0.0843792 0.0835819 0.0827667 0.0819328 0.0810793 0.0802061 0.0793125 0.0783983 0.0774638 0.076509 0.0755346 0.0745408 0.0735286 0.072499 0.0714528 0.0703913 0.0693157 0.0682273 0.0671274 0.066018 0.0649006 0.0637766 0.062648 0.0615162 0.0603835 0.059251 0.0581203 0.0569935 0.0558723 0.0547579 0.0536522 0.0525564 0.0514716 0.0503994 0.0493409 0.0482972 0.047269 0.0462574 0.0452635 0.0442876 0.0433306 0.0423928 0.0414749 0.0405771 0.0396994 0.0388424 0.0380063 0.037191 0.0363965 0.0356229 0.03487 0.0341376 0.0334256 0.0327339 0.0320622 0.0314102 0.0307776 0.030164 0.0295691 0.0289926 0.028434 0.0278931 0.0273693 0.0268623 0.0263717 0.0258971 0.025438 0.0249941 0.0245649 0.02415 0.0237491 0.0233616 0.0229873 0.0226257 0.0222764 0.0219391 0.0216135 0.021299 0.0209954 0.0207024 0.0204195 0.0201465 0.019883 0.0196288 0.0193835 0.0191468 0.0189184 0.0186981 0.0184856 0.0182806 0.0180829 0.0178922 0.0177083 0.017531 0.01736 0.0171952 0.0170362 0.016883 0.0167354 0.0165931 0.0164559 0.0163238 0.0161965 0.0160738 0.0159558 0.015842 0.0157326 0.0156272 0.0155258 0.0154282 0.0153344 0.0152441 0.0151574 0.015074 0.014994 0.014917 0.0148432 0.0147724 0.0147044 0.0146393 0.0145769 0.0145172 0.0144601 0.0144055 0.0143533 0.0143036 0.0142562 0.0142111 0.0141682 0.0141276 0.0140891 0.0140527 0.0140186 0.0139865 0.0139567 0.0139291 0.0139038 0.0138808 0.01386 0.0138415 0.0138251 0.0138108 0.0137983 0.0137873 0.0137777 0.0137693 0.0137618 0.0137555 0.0137503 0.0137462 0.0137425 0.0137384 0.0137325 0.0137324 0.0137322 0.013732 0.0137318 0.0137314 0.0137308 0.0137302 0.0137296 0.0137289 0.0137282 0.0137275 0.013727 0.0137267 0.0137267 0.0137271 0.0137283 0.0137309 0.0137343 0.0137376 0.0137399 0.0137404 0.0137387 0.0137349 0.0137291 0.0137219 0.0137136 0.0137045 0.0136948 0.0136845 0.0136739 0.0136628 0.0136515 0.0136398 0.0136279 0.0136159 0.0136039 0.0135921 0.0135806 0.0135696 0.0135595 0.0135507 0.0135438 0.0135394 0.0135385 0.0135423 0.0135526 0.0135716 0.0136025 0.0136493 0.0137178 0.0138157 0.0139533 0.0141447 0.0144092 0.0147729 0.0152711 0.0159517 0.0168798 0.0181434 0.0198614 0.0221941 0.0253572 0.0296403 0.0354306 0.0432445 0.053768 0.0679077 0.0868557 0.112168 0.145861 0.190518 0.249407 0.326606 0.42712 0.557003 0.723512 0.935371 1.20329 1.54092 1.96628 2.50324 3.18137 4.02961 5.05704 6.21723 7.28577 7.8729 7.65771 6.68865 5.38754 4.18839 3.49274 4.13998 7.166 14.5985 33.734 83.5204 226.031 728.516 3060.18 7001.01 20158.9 23085.4 24819.3 27236.2 28235.9 30400.9 30950.5 32686.4 33044.9 34462.1 34691.1 35884.9 36021.4 37049.3 37119.3 38025.1 38045.5 38850.5 38836.6 39559.1 39522.3 40179.8 40123.9 40727.5 40654.6 41213 41126.8 41646.1 41548.3 42033.9 41925.3 42381.6 42263.7 42693.6 42568 42974.8 42842.1 43228.3 43090.1 43457.5 43314 43665 43516 43852.4 43698.8 44021.8 43864.3 44175.8 44015.5 44316.6 44153.7 44446 44280 44564.4 44396.3 44672.6 44502.5 44774.8 44600.6 44868.7 44690.6 44954.3 44772.6 45032.6 44848.3 45104.9 44917.7 45171.6 44982.7 45234 45042.7 45291.9 45099 45346.2 45152.2 45397.5 45202.4 45446.3 45250.3 45492.9 45296 45537.4 45339.8 45580.1 45381.8 45621.1 45422.2 45660.6 45461.2 45698.8 45498.7 45735.5 45535.1 45771 45570.3 45805.7 45605.2 45840.1 45640.3 45874.6 45675.3 45909.3 45710.7 45944.3 45746.3 45979.5 45782.1 46014.8 45818.1 46050.2 45854.1 46085.7 45890.4 46121.3 45926.7 46157.1 45963.3 46193.2 46000.3 46229.7 46037.5 46266.3 46074.8 46303 46112.5 46340 46150.7 46377.6 46189.5 46415.8 46228.9 46454.5 46268.8 46493.7 46309.2 46533.3 46350.1 46573.2 46391.6 46613.6 46433.1 46654 46474.5 46694.2 46515.7 46733.8 46556.2 46772.5 46595.6 46809.7 46633.4 46845 46669 46877.6 46701.9 46907 46730.6 46931.9 46754.8 46951.7 46773.6 46965.6 46786.3 46973.6 46794 46977.4 46798.4 46978.3 46799.8 46976.4 46797.9 46971.4 46793.3 46962.7 46783.3 46947.1 46764.5 46921.3 46734.1 46881.3 46686.9 46821.9 46617.5 46736.8 46508.2 46615.5 46361.5 46456 46172.6 46252.3 45935.1 45998.2 45643.3 45688.3 45292.8 45318.5 44880.1 44886.7 44410.8 44394.7 43883.1 43842.1 43295.2 43231.5 42652.8 42569.4 41964.6 41864.9 41239.6 41127.3 40488.3 40366.4 39714.8 39599.3 38937.4 38819.8 38167.4 38038.6 37404.5 37279.4 36660.2 36541.6 35942.3 35832.2 35255.7 35156.5 34606 34521 34008.5 33914.8 33525.1 33385.2 33053.4 32956.2 32910 32184.8 31871.4 20610.6 20990.6 15650.9 15376.2 12305.8 12337.6 12132.7 16243.8 21460.8 21835.5 16843.3 16231.6 21720.9 22132.2 17053.7 12331 12504.4 16442.3 22045.9 22487.3 17326.4 16710 22421.2 22884.9 17612.5 12693.6 12870.5 16984.5 22823.7 23305.8 17911.5 17266.6 23245.4 23745.9 18213.1 13058.2 13238.1 17553 23682.3 24192.9 18518.8 17837.9 24128.8 24645.6 18824.2 13421.1 13595.4 18120.9 24579.3 25101.1 19125.7 18398 25029.9 25548.7 19419.4 13765.8 13924.5 18665.8 25473.8 25989.9 19702.3 18921 25907.1 26416.8 19970 14073.8 14208.6 19159.7 26325.1 26824.6 20219.2 19379.1 26722.5 27211.2 20447.3 14329.5 14432.9 19588.2 27102.4 27553.2 20651.3 19764.6 27437.2 27866 20832.2 14520 14586.7 19916.3 27736.7 28138.6 20986.2 20029.9 27991 28390.1 21112.7 14634.8 14660.5 20126.5 28223.6 28607.8 21209.6 20209.4 28430.1 28760.4 21278.7 14668.9 14663 20257.2 28562.8 28872.2 21324.3 20269.3 28651.9 28965.2 21346.2 14643.4 14607.7 20270.7 28719.3 29018.5 21344.1 20252.4 28755.2 29041.9 21322.4 14557.8 14495.3 20216.7 28763.5 29039.2 21283.7 20166.2 28747.7 29014.2 21230.5 14421.8 14339 20103.1 28711.7 28970.8 21165.3 20029.6 28659.8 28914 21090.2 14248.3 14151.4 19947.5 28597.2 28849.9 21006.9 19858.5 28526.4 28778.7 20917.7 14049.7 13944.6 19778.2 28460.2 28694.1 20824 19682.7 28369.7 28602.8 20728.5 13837.8 13729.4 19571.1 28263.9 28515.3 20631.8 19484.2 28185 28419 20532.8 13619.8 13511 19385.6 28085.1 28318.9 20435.5 19273.7 27972 28224.1 20339 13402.7 13294.7 19174.7 27876.8 28130 20241.8 19076.7 27782.4 28036.8 20145.8 13188.1 13083.2 18980.1 27689.1 27944.7 20051.1 18885.3 27597.7 27854.8 19959 12980.2 12879.5 18806.6 27518.6 27758.5 19868.7 18704.7 27410.8 27669.3 19782.5 12781.5 12684.9 18616.9 27322.8 27582.5 19697 18531.3 27237.2 27498.2 19613.6 12590.4 12498.1 18448 27154.4 27416.8 19532.4 18366.6 27074.8 27338.7 19453.2 12407.9 12319.8 18287.5 26999.1 27264.9 19376.8 18224.7 26937.7 27187 19303.1 12233.9 12150.7 18152.9 26859.5 27109 19233.3 18069.7 26771 27038.9 19166 12069.2 11988.6 18000.4 26702.5 26971.6 19099.1 17933 26636.5 26906.7 19034 11909.3 11831.4 17867.4 26572.8 26844.1 18970.7 17803.4 26511.3 26783.7 18908.9 11754.7 11678.9 17740.8 26452.2 26725.6 18848.4 17679.3 26395.4 26670 18788.9 11604.1 11530 17618.5 26341.1 26617.1 18730.1 17558.3 26292.7 26573.1 18672.2 11456.6 11383.8 17512.3 26255.3 26516.6 18614.6 17455.4 26202.7 26464.9 18559.8 11312.3 11241 17399.1 26151.3 26414.2 18505.5 17343.4 26100.9 26364.4 18451.8 11169.9 11098.8 17288 26051.2 26315.4 18398.3 17232.8 26002.1 26266.9 18345 11027.4 10955.8 17177.7 25953.5 26218.8 18291.8 17122.6 25905.1 26170.9 18238.6 10883.7 10810.9 17067.5 25856.6 26122.9 18185.4 17012.2 25807.7 26074.2 18132.1 10737.4 10663 16956.5 25757.4 26023.7 18077.6 16886 25697.8 25985.2 18022.6 10587.2 10509.5 16840 25664.7 25932.5 17964.6 16781.2 25613.2 25880.6 17906.7 10431.1 10350.9 16706.8 25551.3 25839.3 17847.4 16656.2 25516.6 25785.7 17784.3 10268.3 10184.5 16592 25463.7 25732.9 17721.1 16525.8 25409 25678.3 17655.8 10098.7 10010.5 16457.3 25352.4 25621.6 17588 16386.3 25293.3 25562.5 17517.5 9919.89 9826.63 16312.6 25231.6 25500.5 17444.2 16236.1 25166.5 25434.9 17368.3 9730.5 9631.27 16157.6 25096.8 25364.1 17289.8 16063.9 25011 25295.5 17206.5 9528.41 9421.41 15976.2 24940.5 25225.4 17117.6 15898.9 24877.3 25143.1 17024.5 9310.77 9196.58 15792.7 24779.4 25062.4 16927.5 15705.2 24704.9 24968.3 16824.2 9077.86 8955 15589.2 24593.3 24872.9 16715.3 15476.4 24492.8 24771.3 16597.1 8826.95 8694.02 15356.9 24386.4 24663.9 16470.7 15242.9 24283.7 24541.3 16336.5 8556.41 8414.39 15110.4 24151.4 24405.2 16193 14953.1 23995.5 24264.7 16035 8267.38 8115.7 14806 23857.6 24105.9 15861.8 14635.5 23687.3 23931.3 15680.6 7959.86 7796.21 14442.3 23490.1 23747.8 15484.3 14245 23296.1 23550.3 15272.1 7625.26 7446.47 14034.6 23087.9 23338.6 15044.3 13822.5 22874.4 23102.2 14804.6 7259.88 7064.48 13588.6 22620 22839.8 14548.9 13323.6 22328.2 22557.9 14268.1 6855.39 6630.24 13044.7 22028.6 22250.7 13963.6 12745.2 21702.5 21916.2 13635 6392.25 6140.7 12422.4 21348.7 21554 13279.4 12086.4 20975.1 21152.4 12900.9 5874.93 5594.12 11718.7 20545.8 20708.9 12496.3 11311.3 20064 20230.9 12054.6 5296.94 4983.32 10891 19566.7 19700.4 11582.4 10435 18998.2 19110.6 11079.8 4654.81 4316.06 9937.54 18355.2 18459.2 10531.2 9405.75 17656.1 17731.1 9932.44 3959.85 3587.61 8829.17 16873.6 16913.9 9282.19 8201.26 15995.2 15995.2 8578.9 3200.05 2798.63 7514.86 14991.8 14925.8 7806.14 6767.63 13841 13693.9 6959.93 2386.23 1965.65 5953.57 12512.1 12263.3 6032.61 5062.4 10918.1 10526.5 5001.14 1539.22 1117.05 4101.08 9134.99 8435.91 3850.72 367.892 539.915 729.168 927.908 1132.03 1338.58 1544.94 1749.06 1949.48 2145.1 2336.19 2522.2 2702.6 2877.1 3045.68 3208.41 3365.38 3516.77 3662.28 3801.9 3936.25 4065.84 4190.95 4311.92 4428.79 4542.1 4652.15 4759.12 4863.22 4964.57 5063.29 5159.39 5253.05 5344.33 5433.39 5520.38 5605.33 5688.34 5769.53 5849.03 5926.97 6003.46 6078.63 6152.57 6225.48 6297.4 6368.39 6438.66 6508.26 6577.28 6645.84 6714.07 6782.07 6849.97 6917.87 6985.89 7054.15 7122.79 7191.91 7261.71 7332.33 7403.87 7476.44 7550.14 7625.1 7701.45 7779.3 7858.82 7940.07 8023.14 8108.26 8195.54 8285.06 8376.92 8471.18 8567.95 8667.12 8768.79 8872.92 8979.43 9088.18 9198.96 9311.46 9425.24 9539.96 9655.03 9769.76 9883.45 9995.3 10104.3 10209.2 10308.8 10401.9 10487.2 10563.3 10629.1 10683.2 10724.6 10753.2 10768.2 10765.9 10754.1 10728.5 10687.1 10633.4 10568 10492.1 10407.3 10314.3 10216.7 10110.9 10008.1 9892.35 9795.33 9661.09 9586.87 9357.34 9720.13 11313.1 11163.6 9720.01 8893.09 8941.57 8134.54 8128.18 7590.56 7622.5 7913.52 8028.68 8090.03 7054.68 7005 6934.32 7095.68 7087.49 6696.19 6716.97 6340.1 6332.18 6032.85 6046.96 6216.05 6266.31 6306.59 6350.34 7113.59 8175.33 8244.44 8320.17 8388.86 7268.15 7219.09 7165.92 6390.99 6430.53 6467.01 5861.09 5832.99 5802.31 5770.06 5735.91 5703.23 5664.29 5762.87 5755.77 5520.06 5529.86 5309.04 5302.94 5114.62 5121.44 5229.14 5260.08 5286.61 4927.32 4906.34 4881.99 4947.39 4942.39 4791.97 4796.57 4659.96 4656.16 4538.46 4541.24 4606.61 4624.79 4640.19 4655.92 4948.69 5313.8 5339.69 5364.08 5386.26 5006.08 4988.54 4969.22 4671.21 4685.68 4698.83 4710.1 5021.23 5405.63 5886.07 6500.29 7314.42 8456.58 8518.06 8574.81 8623.92 7421.64 7392.01 7355.83 6529.23 6553.13 6571.01 6580.66 7443.92 8665.36 8697.54 8718.65 8727.86 7458.72 7460.79 7456.35 6584.06 6581.24 6568.16 5908.28 5926.3 5936.18 5936.73 5933.05 5923.46 5907.11 5421.43 5432.53 5437.78 5043.47 5040.64 5033.3 4718.78 4723.31 4724.69 4721.71 5042.92 5439.1 5434.02 5420.81 5400.14 4997.68 5020.01 5034.96 4712.03 4695.74 4672.06 4405.12 4430.37 4448.17 4459.43 4464.96 4465.59 4463.83 4459.21 4452.29 4444.08 4435.03 4425.55 4415.95 4406.65 4394.77 4437.26 4434.78 4347.63 4348.85 4275.84 4274.81 4218.51 4218.33 4244.17 4249.22 4251.62 4149.66 4155.25 4157.39 4177.13 4177.76 4154.78 4153.43 4147.11 4149.95 4165.69 4162.98 4142.57 4132.54 4118.01 4102.7 4143.92 4254.16 4256.73 4259.15 4261.08 4125.92 4132.15 4138.1 4086.89 4070.59 4053.82 4058.76 4088.2 4116.43 4143.44 4169.19 4193.23 4210.37 4198.87 4203.1 4266.94 4262.78 4352.9 4359.33 4487.05 4481.63 4388.66 4364.35 4329.32 4643.79 4689.76 4719.17 4646.62 4655.03 4872.5 4866.22 5140.53 5150.46 5502.3 5495.69 5270.3 5241.36 5185.72 5122.25 4592.55 4291.12 4250.28 4206.81 4160.85 4409.58 4475.5 4536.47 5050.97 4971.6 4883.68 4786.44 4338.66 4112.64 4027.94 4036.61 4119.23 4261.95 4261.94 4259.85 4255.22 4092.79 4103.29 4111.89 4018.89 4000.38 3980.69 3959.02 4079.33 4246.65 4233.04 4213.17 4185.89 4004.77 4038.27 4061.67 3934.23 3904.22 3860.7 3761.54 3814.94 3856.71 3893.78 3929.06 3962.97 3995.92 4062.35 4010.16 3956.28 4096.64 4182.1 4262.82 4679.02 4560.97 4431.36 4289.64 4006.7 3900.57 3841.66 3782.95 3720.46 3751.33 3824.17 3908.04 4120.55 3980.46 3881.15 3783.82 3671.33 3646.91 3694.26 3799.35 3951.48 4144.25 4371.79 4640.54 4967.57 5371.42 5881.69 6545.78 7444.02 8730.17 8718.75 8695.35 8659.8 7338.24 7384.06 7419.35 6514.15 6473.08 6422.84 6363.79 7282.78 8612.63 8554.79 8486.43 8408.9 7062.51 7143.99 7217.68 6296.51 6221.83 6140.59 5469.41 5551.09 5623.95 5690.95 5750.9 5802.96 5846.67 5334.57 5289.6 5236.87 4826.99 4883.82 4929.55 4601.1 4547.44 4477.89 4393.11 4757.26 5176.93 5106.28 5025.53 4935.29 4479.77 4580.29 4674.47 4298.85 4197.46 4091.59 3982.65 4374.35 4836.96 5380.64 6054.73 6974.19 8323.06 8230.12 8131.26 8027.57 6678.01 6780.69 6879.88 5963.95 5867.29 5766.6 5662.97 6573.01 7920.05 7809.66 7697.17 7583.58 6249.34 6358.84 6467.03 5556.9 5449.31 5341.35 4649.63 4757.05 4865.66 4974.51 5081.19 5185.11 5285.43 4732.8 4626 4517.46 4046.38 4156.32 4265.95 3872.14 3761.32 3651.19 3542.66 3937.11 4408.13 4299.15 4191.74 4086.39 3621.36 3724.08 3829.46 3436.44 3333.05 3232.82 2904.43 3002.4 3104.06 3209.11 3317.1 3427.43 3539.26 3651.6 3763.25 3872.75 3978.6 4079.05 4172.26 4254.95 4322.94 4081.67 4003.22 3913.36 3700.59 3795.79 3880.33 3722.84 3633.2 3532.06 3421.42 3596.62 3814.76 3709.45 3599.25 3486.02 3252.71 3370.52 3485.86 3303.74 3181.73 3057.94 2897.68 3029.53 3160.56 3287.68 3407.35 3516.35 3612.42 3557.05 3450.2 3329.01 3308.9 3452.41 3572.74 3664.55 3518.74 3350.3 3165.14 3151.4 3196.03 3055.47 2911.89 2769.02 2670.03 2828.14 2989.43 2969.6 2777.88 2599.62 2431.44 2518.47 2629.71 2767.48 2934.5 3134.3 3371.38 3256.86 3143.65 3032.76 2789.65 2901.66 3016.87 2813.1 2695.02 2581.18 2472.15 2681.51 2924.93 2820.72 2720.49 2624.46 2384.14 2478.56 2577.72 2368.31 2269.8 2176.64 1996.58 2088.84 2187.11 2291.53 2402.1 2518.64 2640.7 2495.77 2368.4 2248.18 2115.82 2240.84 2375.12 2275.98 2132.95 2001.94 1882.17 1999.9 2135.32 2029.77 1931.31 1839.6 1702.15 1793.61 1892.66 1772.72 1672.7 1581.22 1497.44 1617.7 1754.28 1910.11 2088.74 2294.49 2532.75 2810.33 3136.04 3521.61 3983.47 4543.8 5233.77 6139.39 7469.59 7355.84 7242.89 7131.19 5812.88 5920.68 6029.66 5127.15 5021.95 4918.52 4817.13 5706.61 7021.12 6912.99 6807.04 6703.42 5399.43 5499.7 5602.14 4718.01 4621.28 4527.05 3872.98 3960.33 4050.58 4143.74 4239.77 4338.59 4440.01 3883.28 3786.05 3691.93 3242.13 3331.89 3425.07 3042.86 2953.37 2867.56 2785.41 3155.8 3600.98 3513.23 3428.62 3347.09 2916.76 2993.22 3072.86 2706.81 2631.66 2559.81 2491.13 2843.36 3268.5 3788.46 4435.35 5301.46 6602.28 6503.69 6407.7 6314.35 5022.28 5112.8 5205.89 4346.21 4259.58 4175.41 4093.6 4934.45 6223.65 6135.52 6049.87 5966.46 4688.43 4767.66 4849.49 4014.01 3936.37 3860.5 3262.02 3331.73 3403.12 3475.97 3550.65 3627.46 3706.67 3192.71 3119.57 3048.89 2640 2705.12 2772.86 2425.47 2362.66 2302.58 2245.08 2577.38 2980.51 2914.29 2850.18 2788.22 2403.53 2459.24 2517.16 2190.02 2137.23 2086.55 1821.75 1868.18 1916.65 1967.33 2020.42 2076.07 2134.46 2195.77 2260.16 2327.81 2398.87 2473.5 2551.86 2634.06 2720.21 2445.37 2362.27 2283.34 2053.23 2129.18 2209.55 2005.93 1928.01 1854.74 1785.86 1981.49 2208.45 2137.43 2070.1 2006.26 1789.41 1849.8 1913.76 1721.1 1660.2 1602.91 1441.59 1496.07 1554.18 1616.24 1682.54 1753.41 1829.16 1674.91 1601.08 1532.39 1400.85 1467.58 1539.69 1420.6 1350.03 1285.1 1225.25 1339.03 1468.43 1408.84 1353.25 1301.35 1178.9 1228.43 1281.69 1170 1118.9 1071.55 1027.61 1132.76 1252.84 1390.49 1548.98 1732.35 1945.73 1888.32 1833.81 1782.03 1579 1627.35 1678.4 1498.15 1450.21 1404.94 1362.13 1533.15 1732.79 1685.89 1641.16 1598.44 1408.78 1448.21 1489.61 1321.61 1283.19 1246.71 1107.48 1141.31 1177.04 1214.84 1254.89 1297.37 1342.49 1207.43 1164.87 1124.93 1011.9 1049.52 1089.72 986.755 948.708 913.213 880.043 976.641 1087.39 1052.06 1018.75 987.307 883.143 912.44 943.55 848.992 819.874 792.523 766.784 855.508 957.571 1075.41 1212.03 1371.18 1557.58 1777.21 2037.81 2349.85 2728.39 3194.38 3786.49 4611.14 5885.17 5805.92 5728.6 5653.13 4390.89 4462.45 4535.84 3714.33 3643.95 3575.32 3508.37 4321.12 5579.4 5507.32 5436.77 5367.61 4121.95 4186.7 4253.07 3443.11 3379.54 3317.77 2769.52 2825.72 2883.23 2942.17 3002.65 3064.79 3128.66 2670.53 2614.47 2560.08 2199.33 2247.91 2298.03 1990.84 1945.5 1901.63 1859.11 2152.1 2507.17 2455.58 2405.09 2355.42 2017.05 2061.11 2106.08 1817.81 1777.64 1738.56 1700.52 1973.84 2306.23 2714.44 3258.04 4058.74 5299.73 5232.96 5167.17 5102.3 3876.03 3935.94 3996.85 3200.43 3143.74 3088.05 3033.29 3817.03 5038.22 4974.83 4912.03 4849.7 3644.76 3701.46 3758.86 2979.45 2926.48 2874.39 2353.38 2402.25 2452.03 2502.71 2554.27 2606.75 2660.16 2257.29 2209.39 2162.5 1849.99 1890.26 1931.52 1663.51 1627.46 1592.27 1557.83 1810.59 2116.55 2071.48 2027.25 1983.77 1696.45 1733.96 1771.96 1524.02 1490.73 1457.85 1258.98 1287.91 1317.31 1347.21 1377.71 1408.87 1440.8 1473.58 1507.31 1542.1 1578 1615.1 1653.47 1693.2 1734.41 1518.43 1480.87 1444.78 1268.06 1300.94 1335.28 1179.01 1147.52 1117.45 1088.67 1236.52 1410.07 1376.62 1344.36 1313.18 1148.92 1177.05 1206.21 1061.09 1034.6 1009.11 889.538 912.705 936.841 962.036 988.383 1015.99 1044.95 929.403 902.677 877.273 781.239 804.677 829.395 742.522 719.611 697.937 677.398 758.974 853.082 830.007 807.955 786.843 698.302 717.59 737.788 657.898 639.352 621.682 604.816 679.847 766.596 867.262 984.539 1121.74 1283 1253.71 1225.22 1197.45 1045.05 1069.88 1095.42 960.805 937.84 915.584 893.983 1020.89 1170.34 1143.83 1117.86 1092.42 951.883 974.344 997.332 872.987 852.549 832.62 730.907 748.672 766.924 785.713 805.087 825.099 845.804 747.142 728.418 710.364 628.835 645.174 662.159 588.686 573.232 558.399 544.135 613.086 692.925 676.049 659.688 643.796 568.912 583.169 597.879 530.392 517.129 504.305 448.351 459.921 471.914 484.37 497.328 510.833 524.935 539.686 555.145 571.377 588.45 606.441 625.435 645.523 666.806 689.395 713.415 739 766.303 795.492 826.753 860.296 896.354 935.188 977.095 1022.41 1071.5 1124.81 1182.81 1246.07 1315.23 1391.01 1474.27 1565.98 1667.25 1779.35 1903.72 2041.95 2195.64 2366.91 2555.29 2768.6 2995.6 3234.6 3475.29 3700.22 3898.29 4060.56 4198.17 4366.22 4628.75 4902.11 5115.6 5301.88 5464.64 5607.77 5733.46 5843.97 5940.91 6025.48 6097.71 6156.97 6170.92 5943.88 5953.37 6522.07 6517.05 7268.38 7268.27 8213.3 8222.25 7685.45 7722.94 7684.9 10719.3 10724.3 10438.5 9581.5 9519.36 11211.9 11292.5 14480.1 13948.9 17331.7 17682.2 17147.7 17702.3 17774.8 17893 10691.4 7615.87 7526.47 7419.56 7292.27 10421 10537.6 10625.2 17931.4 17964 17957.4 34068.7 36118 33604.8 35619.2 33156.9 35151.2 32731.8 34701.5 32292.8 34259.7 31832.5 33565.8 31205.7 28377.5 25887.9 23676.2 28697.1 29614.1 43082.8 40703.1 69509.8 72708.6 78967.6 47945.6 52221.1 82554.5 81680 49441.7 54244 85724.4 83728 50285.8 54169 85923.4 84050.6 50096.8 55242 86730 84777.7 51112.6 54975.7 86869.6 84995.5 50844.5 56058.9 87739.6 85801.1 51901.9 55802.8 87925 86014.5 51639.5 56903.2 88734.7 86890.7 52726.8 56667.9 88988.8 87102.9 52459.7 57806.6 89855.4 88086.8 53598.2 57598.9 90152.4 88375.7 53351.7 58797.8 91116.7 89406.7 54557.5 58635.2 91531.4 89794.6 54337.2 59910.9 92613.5 90948.5 55641.9 36656.8 59799.9 93152.2 91469.1 55442.7 34562.8 17922.7 10271.9 7141.43 6963.9 6752.56 6499.5 9511.98 9833.79 10080.1 17837.4 17681.3 17381.5 16792.3 9089.32 6194.22 5792.97 5269.73 4900.11 6587.09 7554.31 8527.87 15951.6 13864.6 11605.7 25634.7 29896.5 29879 36083 35267.9 38621.2 35913.5 38762.9 35895.5 38338.4 35538.6 37807.8 35069.2 37227.4 56879.2 61173.2 94396.3 92789.1 95113.2 61125.1 56695.5 62596.6 96559.4 93437.2 94954.1 58265.5 62590.3 97444.2 95794.9 58036.1 64107.4 99200.5 97502.9 59673.4 64022.7 99988.1 98240.7 59280.2 65362.6 101337 99200.5 60851.1 65011.9 101511 99449.3 60273.8 66505.8 102769 101650 62240.3 66382.7 104333 103507 61574.4 66426.1 106255 102946 61040.6 61363.9 98792.3 165328 133171 78456 51315.9 53400.1 80739.5 78362.1 49454.5 48822.4 75467.9 61057.4 43113.6 41962.6 55780.5 51238 38781.9 23849.5 36355.2 47118.3 64118.8 72799.1 79427 91450.6 122724 149000 140571 57101.4 42528.3 31949.9 18072.8 8907.73 5905.02 4650.65 4398.48 4088.23 3744.84 4284.78 4890.63 5435.28 7560.24 6307.79 5250.37 4350.46 3699.2 3396.19 3072.72 2790.54 2540.62 2548.78 2846.49 3236.12 3421.49 2962.67 2570.26 2601.4 3090.16 3772.02 4918.29 6449.13 7016.57 8361.31 9188.7 11062.5 12216.2 15293.7 24865.6 29103.3 38238.8 49512.7 67693.8 75648.4 61671.2 44795.5 36749.4 54179.9 44290.2 30431.4 17788.7 14273.3 20319.9 25730.1 35146.2 25488.7 21219.3 17927.6 15862.4 11761.2 10270.8 8834.4 6763.34 8309.91 10388.4 12536.7 13257.9 14690.9 16864.3 18684.4 21673.5 25489.1 30432.1 19742 21162.6 17813.5 16861.8 15192.3 13373.5 14041.8 15441.1 13179.3 11982.8 11184.3 8722.33 11470.1 12044.7 13924.5 15450.6 13467.8 11616.1 9542.27 6548.34 9793.79 12134 13903.7 13862.5 11714 13683.4 15550.3 17968.7 39115.9 106200 80323.9 146832 239923 198463 247594 331514 283047 311017 385654 319422 352302 445204 350549 410453 485793 350954 350315 416358 301800 298240 362184 268004 268071 334731 243721 241738 325296 221012 277927 199928 202863 273328 195003 195811 270010 192073 193287 286796 184222 251321 179798 185859 284502 178801 247944 168546 175421 265477 176055 181118 291929 178225 277335 167825 251903 164937 177286 296923 173031 256491 172968 184874 313573 182487 291989 168494 263080 167625 182846 314562 179628 296876 170256 271529 176335 194613 336480 191108 319337 179101 288390 179739 198898 351685 197152 336141 186074 327042 180328 299689 185911 210178 369873 210518 361338 200680 359016 195393 350427 188714 316755 193854 218166 388577 214430 369631 203119 365629 197762 357115 193527 328104 201067 229056 404229 229508 398828 220444 397642 214541 388525 207134 352936 213940 241973 428556 236903 411598 224553 408131 218190 398412 213172 366211 222291 254247 450173 254326 441402 242923 441965 235092 431546 227168 389615 233204 265381 469824 258074 454054 244629 449518 237720 438851 231809 400141 241603 276593 485744 274000 477278 259539 469885 248024 426123 253212 286636 504692 277302 482726 259395 471222 248525 428314 257543 294095 517472 287735 497474 266874 452087 271340 305306 539187 290737 509074 268612 458998 276060 311787 552502 304367 525887 278871 471341 282390 315230 554081 299607 482868 303409 331331 576943 310933 497301 300890 328951 581814 310799 503252 313361 339918 590956 313834 500601 299731 320873 523825 317155 328255 539305 332471 341466 549846 335371 341914 562519 344310 349496 566735 340503 342768 556672 338390 337101 550034 289169 364400 373162 555245 313314 370956 374867 414838 402869 419198 396704 541051 301423 323661 337235 341123 340882 339373 337669 333239 331036 325486 322995 317148 314907 309414 307254 302632 300731 296984 295825 292873 292198 290183 289966 288913 288904 288853 289279 289484 290413 290863 292290 292873 294553 295254 297195 297909 299874 300600 302624 303270 305141 305724 307510 307957 309480 309822 311180 311361 312406 312470 313275 313202 313665 313514 313816 313451 313637 313020 313118 312271 312288 311260 311185 309988 309817 308450 308196 306687 306356 304716 304318 302649 302021 300274 299764 297913 297196 295297 294698 292645 292008 289902 289239 287173 286336 284268 283566 281407 280695 278535 277822 275679 274964 272835 272126 270027 269322 267246 266552 264513 263827 261817 261145 259177 258515 256578 255932 254040 253406 251547 250930 249173 248437 246733 246145 244463 243759 242134 241578 239918 239378 237755 237232 235650 235142 233594 233104 231654 231047 229648 229188 227808 227231 225902 225471 224102 223684 222346 221946 220642 220254 218980 218609 217427 216936 215800 215455 214332 213868 212791 212473 211380 211005 209943 209651 208585 208304 207290 206960 206046 205656 204740 204496 203531 203297 202355 202135 201278 200934 200116 199917 199045 198856 198006 197828 197001 196832 196025 195868 195113 194896 194193 193990 193346 193079 192427 192307 191657 191408 190791 190688 190073 189839 189257 189170 188587 188369 187818 187747 187195 186991 186471 186414 185892 185701 185210 185166 184672 184494 184030 183999 183501 183404 182952 182868 182470 182318 181903 181900 181450 181381 180975 180918 180535 180478 180073 180091 179658 179679 179272 179239 178925 178823 178510 178545 178191 178100 177811 177853 177478 177524 177159 177209 176884 176813 176565 176567 176282 176342 176011 176075 175754 175820 175506 175524 175282 175298 175054 175077 174862 174832 174648 174728 174453 174443 174267 174352 174086 174089 173921 174011 173756 173768 173608 173701 173458 173477 173324 173421 173189 173215 173068 173169 172946 172979 172838 172943 172728 172768 172632 172740 172535 172644 172442 172554 172357 172408 172282 172335 172212 172271 172117 172205 172085 172143 172025 172144 171965 172085 171908 172030 171856 171980 171807 171934 171764 171893 171723 171855 171687 171821 171655 171790 171626 171762 171600 171791 171489 171732 171565 171757 171455 171699 171533 171673 171515 171659 171502 171649 171495 171643 171489 171638 171485 171634 171481 171632 171507 171600 171511 171648 171511 171606 171517 171655 171520 171615 171527 171666 171532 171629 171543 171683 171527 171680 171531 171689 171574 171671 171536 171700 171558 171718 171573 171716 171629 171726 171638 171778 171643 171741 171654 171796 171664 171764 171679 171821 171690 171790 171705 171902 171658 171831 171693 171862 171723 171891 171749 171931 171708 171963 171752 171905 172004 171533 172791 166018 163660 81844.9 84483.6 50594 48700.2 36351.4 36296 35832.8 36348.3 22721.7 33796.2 17339.3 17153.7 17452.7 24541.6 26616 39264.6 55428.5 89942.7 90737.3 89124.1 55365.8 58897.6 91279.4 58653.5 55272.2 90229 91268.6 58928.7 38484.4 39681.9 55442.1 90271.7 91343.4 58816.6 55423.3 90329.8 91371.7 58967 39055.4 39663.8 55506.1 90349.5 91383.3 58922.4 55511.5 90354.9 91404.8 59045.9 39216.6 39748 55600 90397.6 91444.4 59019.5 55612.2 90450.3 91459.7 59142.5 39320.8 39824.3 55678.5 90505.2 91521.3 59106.2 55694.1 90509.6 91502.7 59207.2 39403.3 39910.4 55764.3 90542.6 91562.5 59180.7 55783.4 90565.6 91575.1 59307.5 39488.1 39994.4 55868.4 90630.4 91656.4 59285.1 55883.8 90658.3 91658.3 59400.4 39574.1 40083.1 55953.7 90702.2 91718.2 59366.2 55967.1 90716.1 91717.1 59486.9 39662.7 40174.3 56047.9 90769.8 91795.4 59468 56069.2 90804.1 91811.1 59594.6 39753.9 40267.9 56152.9 90865.5 91887.4 59571.4 56168.2 90891 91891.5 59691.8 39846.9 40362.7 56249.1 90942.9 91963.4 59667.6 56271.4 90970.4 91975.5 59796.9 39943.1 40463.4 56357.2 91033.6 92059.1 59778.9 56382.9 91070.5 92076.7 59909.8 40043.5 40566.7 56468.2 91134.8 92158.3 59890 56493.1 91168.8 92173.9 60021.3 40146.7 40674 56580.3 91233.3 92258.2 60004.3 56608.9 91272.2 92280 60140.4 40254 40785.5 56700.7 91343.2 92370.9 60129.1 56730.4 91388.2 92398 60267.8 40364.7 40900 56827.4 91463.9 92492.9 60258.3 56858.5 91511.6 92521.8 60398.6 40479 41018.4 56957.2 91588.8 92618.7 60391.2 56991.5 91639.7 92652.4 60536.3 40597.4 41141.5 57095.1 91723.4 92756.8 60533.8 57133.6 91781.7 92795.9 60682.9 40720.2 41268.9 57239.2 91902.8 92890.2 60681.4 57279.7 91932.7 92948.2 60833.4 40847.2 41400.5 57387.8 92057.2 93047.5 60833.6 57434.9 92094 93114.6 60992.3 40979.4 41538.4 57546 92193.8 93234.6 60998.2 57593.2 92267.2 93290.3 61158.9 41115.9 41680.1 57709.8 92371.9 93415.5 61166.5 57763.2 92451.3 93477.8 61333.2 41257.9 41828.3 57881.8 92562.4 93609.4 61345.9 57936.1 92647.6 93677.1 61515.7 41404.5 41980.3 58061 92764.4 93815 61531 58122.1 92856.7 93890.4 61707.5 41556.9 42138.9 58249 92981 94035.5 61726.2 58313.5 93080 94118.1 61907.3 41714.7 42303.4 58444.7 93211.9 94271.7 61930.3 58513.8 93320.3 94363.2 62117 41878.2 42473.5 58649.9 93460.2 94524.7 62145.8 58720.9 93575.8 94624 62337.1 42046.7 42648.2 58865.1 93724.4 94794.2 62371.7 58941.5 93848.9 94902.3 62569 42220.6 42828.6 59089.7 94005.5 95080 62605.2 59171.9 94137.2 95196.1 62809.1 42400.7 43016.4 59323.4 94303 95384.6 62851.5 59412.2 94446.5 95513 63062.9 42587.1 43210.3 59569 94623.5 95711 63109.1 59661 94774.9 95846.9 63325.4 42779.6 43410.5 59823.2 94960.3 96055.6 63377.8 59922.4 95124.2 96205.3 63602.9 42978.5 43617.3 60091.2 95323.2 96426.2 63660.2 60194 95497.2 96584.9 63890.2 43183.7 43830.8 60367.8 95705.2 96816.3 63953.1 60477.6 95891.6 96989.5 64192.6 43395.5 44051.1 60659.5 96114.5 97235.4 64263.8 60771.9 96313.7 97420 64507.8 43613.1 44276.4 60960.8 96547.5 97677.3 64582.4 61081.9 96759.4 97876.8 64836.5 43837.6 44510 61276.1 97009.3 98151.2 64917.8 61402.7 97237.2 98364.5 65178.5 44068.9 44750.3 61602.5 97499.3 98652.2 65266.8 61732.8 97741.4 98881.1 65535.1 44306.4 44996.3 61943 98019.6 99184.7 65630.8 62079.7 98276.5 99428.2 65906.5 44550.3 45249.3 62295.6 98569.3 99746.7 66007.5 62438.3 98841.7 100008 66292.5 44800.9 45509.3 62662.8 99153 100345 66402.1 62813.2 99443.1 100624 66696.4 45058.3 45775.9 63044.5 99771.3 100978 66810.4 63203.6 100079 101276 67114.9 45322.9 46050.6 63440.3 100427 101651 67237 63607.3 100755 101970 67551.6 45594.5 46332 63852 101124 102366 67680.7 64025.5 101473 102705 68004.6 45872.9 46620.3 64278.5 101862 103123 68143.7 64457.5 102232 103485 68476.7 46157.2 46913.8 64721.6 102644 103927 68623.8 64907.6 103039 104312 68965.9 46447.5 47213.7 65178.6 103473 104777 69118 65373.7 103889 105184 69470.5 46744.8 47521.5 65649.5 104343 105678 69629.3 65850.9 104790 106105 69990.9 47048.8 47835.9 66134.8 105260 106627 70159.4 66341.2 105740 107078 70530.1 47358.6 48155.1 66636.8 106229 107629 70707.4 66851.1 106740 108106 71088.7 47674 48480.4 67155.4 107252 108685 71274.5 67377.5 107790 109189 71666.4 47995.3 48811.3 67690 108331 109798 71858.6 67922.6 108898 110331 72262.5 48322.8 49149.1 68240.5 109466 110970 72462.5 68480.2 110063 111533 72876.5 48656.1 49492 68806.6 110662 112203 73086.7 69051.2 111288 112797 73509.8 48993.7 49838.2 69388.4 111918 113499 73726.5 69643.8 112576 114124 74159.3 49336.3 50190.3 69965.9 113236 114859 74382.7 70228.7 113920 115574 74837.1 49666.1 50549.2 70608.6 114631 116296 75065 70863.9 115353 116986 75513.9 50030.5 50900.5 71219.1 116078 117790 75752.2 71487.6 116835 118513 76209.7 50383.8 51261.6 71850.7 117593 119351 76450.5 72126 118383 120108 76915.5 50741.4 51627.5 72490.4 119174 120978 77162 72765.5 119994 121765 77630.5 51101.6 51994.5 73135.7 120816 122669 77876.9 73415.4 121668 123487 78350 51465.4 52366.2 73783.6 122520 124423 78596.5 74063.1 123403 125269 79071 51832.7 52741.1 74431.8 124283 126234 79318.5 74706.7 125192 127106 79791.4 52202.6 53117.6 75077.7 126097 128095 80036.2 75349.5 127030 128992 80506.5 52575.7 53498.2 75716.4 127960 130005 80743.3 75986.3 128913 130921 81209.9 52953.9 53885.2 76344.5 129861 131951 81440.7 76603.7 130830 132880 81898.3 53336.9 54276.1 76957.3 131791 133925 82116.1 77210.5 132771 134861 82564.3 53726.8 54677 77550 133740 135911 82767.6 77791.1 134723 136849 83202.5 54125.6 55088.4 78119 135691 137896 83391.4 78342.5 136669 138824 83809.2 54534.6 55510.8 78660.5 137628 139859 83978.6 78867.8 138590 140766 84377.5 54957 55950 79168.9 139528 141778 84522.6 79363 140464 142652 84902.2 55397.5 56412.6 79642.2 141368 143627 85021.6 79817.3 142264 144455 85379.4 55860.6 56901.7 80079.8 143122 145379 85475.3 80231.8 143964 146147 85808.4 56350.1 57420.9 80479.3 144763 147002 85875.6 80611.7 145531 147695 86185.2 56872 57979.4 80841 146257 148440 86223.3 80961.6 146886 149032 86512.5 57434.4 58586.7 81171 147510 149668 86524.3 81278.5 148026 150141 86798.7 58044.6 59249.3 81481.3 148532 150653 86792.4 81575.6 148919 150990 87053.2 58709.5 59974.5 81777 149289 151360 87029.1 81875.8 149533 151548 87291.7 59439.2 60775.9 82081.6 149759 151770 87263.6 82189.5 149856 151804 87533.9 60243.3 61661 82408.9 149933 151875 87506.9 82535.3 149883 151760 87801.4 61131 62641 82787.1 149820 151690 87795.3 82941.8 149633 151435 88125.7 62111.7 63724.1 83236.3 149443 151242 88145.9 83439.4 149145 150887 88531.7 63196.2 64925.1 83789.2 148844 150578 88602.7 84052 148466 150161 89065 64395 66220.7 84481 148068 149740 89206.7 84823.8 147632 149276 89758.9 65713.6 67630.1 85341.2 147182 148804 89990 85785.3 146714 148310 90651.5 67157.2 69174 86405.3 146253 147829 90990.9 86955.9 145795 147346 91777.7 68727.6 70844.2 87698.2 145374 146917 92238.5 88374.1 144966 146479 93163.8 70423.6 72643.3 89240.8 144661 146205 93758 90046.4 144379 145904 94836.7 72239.8 74560.6 91056.1 144262 145853 95587 92012.3 144213 145814 96848.3 74163.9 76579.6 93183.2 144379 146072 97776.3 94300.8 144661 146383 99232.4 76176 78673.2 95637.4 145182 147014 100343 96916.3 145820 147710 101997 78245.3 80802.2 98417.8 146672 148820 103293 99846.2 147798 150046 105136 80325.6 82900.9 101497 149182 151721 106599 103056 150877 153548 108605 82353.4 84894.2 104814 152857 155833 110202 106456 155157 158278 112319 84239.3 86665.2 108268 157740 161165 113993 109918 160628 164185 116134 85857.6 88059.9 111693 163758 167559 117781 113241 167091 170931 119806 87050.3 88735.1 114831 170517 174454 121292 116124 173932 177709 122985 87578.5 88434.5 117325 177158 180734 124101 118130 179970 183042 125156 87098.1 86900.7 118670 182160 184382 125631 118717 182867 184625 125854 84639.3 83458.4 118483 182474 183770 125548 117492 180027 180823 124700 79604.5 77056.6 115538 174744 173837 122055 110911 160636 151897 116558 68708.1 61581.7 104546 128650 212159 216097 124503 104100 111672 202569 215875 177516 90882.8 192040 140696 69445.8 133244 215447 195636 140617 89433.7 53013.2 93501 24975.9 45296.1 45956.6 27660.7 17930.5 27962.8 21199.9 34092.8 41111.2 23794 39212.9 45344.2 25849.6 42899.1 48502.2 27815.5 45641.7 50600.7 29283 47465.1 51855.9 30426.1 48577.5 52514.5 31343.3 49187.7 52773.4 32039.4 49446.5 52815.6 32443.3 49458.4 52605.8 32733.5 49253.9 52193.1 32923.8 48880.2 51629.1 33026.8 48380.9 50957.6 33059.6 47792.8 50213.4 33049.1 47146.7 49428.8 32977 46464.1 48624 32851.6 45761.6 47813.9 32683.1 45051.7 47010.1 32478 44344.5 46221.6 32243 43648 45455 31984.5 42968 44714.7 31707.2 42308.8 44005 31415.6 41674.2 43328.6 31113.6 41066.9 42686.9 30804.7 40488.3 42080.3 30491.9 39938.7 41508.3 30177.7 39417.9 40969.6 29863.8 38925.2 40463 29552.6 38459.7 39986.9 29245 38020.1 39539.4 28942.6 37607.4 39116.2 28645.3 37215.9 38720.1 28354.8 36845.4 38346.4 28071.4 36492 37994.9 27796.3 36157.9 37659 27529.4 35842.3 37336.8 27269.6 35539.7 37032.3 27017.5 35247.7 36742.5 26775.2 34969.3 36462.1 26539 34701.4 36191.2 26312.6 34443 35929.7 26090.9 34192.8 35675.7 25879.6 33950.4 35429.4 25671.2 33714.5 35188.7 25474.3 33485 34954.6 25277.9 33261.7 34725.2 25094.2 33041 34505.5 24910.6 32829.9 34281.9 24735.2 32619.2 34065 24564 32412.9 33851.9 24398.8 32210.5 33642.4 24237 32011.5 33436.5 24080.7 31816 33233.9 23928.2 31624.2 33034.8 23779.7 31435.7 32839 23635 31250.5 32646.3 23493.8 31068.2 32456.7 23356.1 30889.1 32270.3 23221.6 30713.1 32087.1 23090.2 30540.3 31907.1 22961.8 30370.5 31730.3 22836.2 30203.7 31556.5 22713.3 30039.9 31385.8 22593.1 29879 31218.3 22475.3 29721.1 31054 22359.9 29566.4 30893 22246.9 29414.7 30735.1 22136.2 29265.9 30580.3 22027.6 29119.9 30428.6 21921.1 28976.8 30280.2 21816.6 28838.7 30133.3 21713.9 28702.4 29991.8 21612.7 28568.8 29853.3 21513.9 28437.9 29717.8 21416.5 28309.8 29585.2 21321.7 28182.6 29457.3 21228.1 28059.3 29330.1 21137.7 27938.9 29205.8 21047.3 27822.9 29082.6 20960.2 27706.9 28966.5 20872.2 27594.4 28850.9 20789.7 27485 28738.8 20704.1 27379.8 28626.8 20625.4 27276.3 28520.9 20540.7 27172.8 28417.8 20467.7 27073.6 28317.2 20384.1 26976.3 28216.7 20316.7 26882 28121.3 20232.6 26789.1 28025.3 20172 26699.6 27935.4 20085.6 26610.8 27843 20033.8 26525.8 27758.5 19942.3 26440.5 27669 19902.2 26359.8 27590 19801.4 26277.5 27503.4 19777.3 26200 27427.7 19660 26121.4 27342.7 19656.1 26047.9 27275.3 19502.6 25964.6 27177.2 19561.9 25896.5 27118.2 19114.5 25788.4 26933.4 19470.9 25805.5 13244.7 13059.5 10404 10688.8 8890.16 8744.65 7459.77 7532.64 6436.96 6399.34 5502.87 5522.48 4747.49 4735.86 4077.72 4084.8 3516.55 3511.98 3026.09 3029.02 2611.15 2609.54 2253.26 2253.79 1948.93 1949.31 1690.57 1689.46 1468.99 1470.64 1283.87 1281.82 1122.95 1125.24 990.406 987.984 873.179 875.641 777.763 775.328 691.727 694.088 622.364 620.106 558.57 560.709 507.551 505.539 459.701 461.584 421.72 419.961 385.412 387.052 356.825 355.295 328.978 330.406 307.268 305.932 285.714 286.966 269.128 267.952 252.331 253.44 239.637 238.588 226.499 227.494 216.821 215.874 206.552 207.456 199.26 198.395 191.287 192.112 185.912 185.125 179.821 180.566 176.014 175.301 171.509 172.202 169.133 168.434 166.097 166.804 165.219 164.507 163.568 164.278 162.498 163.434 165.022 167.351 170.411 174.171 178.651 183.911 190.026 197.086 205.19 214.455 225.017 237.036 250.701 266.235 283.902 304.017 326.951 353.148 383.139 417.557 457.165 502.874 555.785 617.22 688.768 772.34 870.222 985.136 1120.3 1279.51 1467.15 1688.25 1948.53 2254.4 2613.01 3032.45 3522.13 4093.26 4760.69 5545.08 6477.22 7609.43 9039.28 10971.4 13957.9 13976 14175.8 14191 14275.8 14306.8 11269.7 11246.3 11188 11163.8 11061.5 9100.52 7647.79 6501.11 6524.59 7684.6 9160.58 9186.26 9223.31 9246.38 7751.48 7731.48 7706.19 6541.65 6559.85 6576.09 5615.76 5602.97 5589.5 5576.26 5560.66 4771.48 4100.84 3527.37 3532.81 4108.65 4782.43 4792.43 4802.57 4812.39 4130.93 4123.6 4116.06 3538.1 3543.44 3548.71 3049.92 3046.44 3042.94 3039.45 3035.93 2614.94 2255.03 1948.1 1947.67 2255.68 2616.89 2618.84 2620.8 2622.75 2257.64 2256.98 2256.33 1947.24 1946.82 1946.4 1945.98 2258.3 2624.71 3053.43 3554.02 4138.38 4822.36 5628.84 6593.23 7774.49 9278.68 11317.2 14369.6 14408.8 14465.9 14510.9 14565.7 14614.5 14668.7 14720.4 11578 11540.4 11499.7 11464 11422.5 11389.6 11346.2 9303.79 9334.58 9361.39 7839.4 7817.94 7795.38 6609.91 6626.95 6643.79 6660.87 7861.86 9391.55 9419.54 9449.57 9478.33 7928.56 7906.29 7883.76 6677.85 6695 6712.12 6729.36 7951.22 9508.74 11618.5 14775 14828.9 14884.4 14940.5 14997.1 15055 15113.2 15172.7 11907.6 11865 11822.5 11780.8 11739.2 11698.9 11657.8 9538.11 9568.74 9598.89 8019.55 7996.7 7973.81 6746.6 6763.94 6781.28 6798.68 8042.63 9629.81 9660.64 9691.97 9723.38 8112.35 8089.1 8065.76 6816.12 6833.62 6851.14 5825.79 5812.5 5799.39 5786.18 5773 5759.82 5746.63 5733.47 5720.31 5707.18 5694.06 5680.98 5667.88 5654.86 5641.78 4832.27 4842.25 4852.2 4160.68 4153.24 4145.79 3559.33 3564.66 3569.99 3575.33 4168.13 4862.19 4872.16 4882.15 4892.14 4190.5 4183.04 4175.59 3580.67 3586.02 3591.37 3078.18 3074.62 3071.07 3067.53 3063.99 3060.46 3056.94 2626.68 2628.67 2630.65 2260.33 2259.64 2258.97 1945.56 1945.15 1944.73 1944.32 2260.97 2632.65 2634.65 2636.66 2638.67 2263.07 2262.38 2261.7 1943.91 1943.48 1943.13 1942.65 2263.78 2640.69 3081.74 3596.72 4197.95 4902.13 4912.12 4922.11 4932.09 4220.29 4212.85 4205.4 3602.07 3607.42 3612.76 3618.09 4227.71 4942.06 4952.01 4961.96 4971.88 4249.9 4242.52 4235.12 3623.42 3628.74 3634.05 3106.69 3103.13 3099.56 3096 3092.44 3088.86 3085.3 2642.72 2644.76 2646.75 2265.92 2265.19 2264.49 1942.29 1941.88 1941.48 1941.09 2266.64 2648.84 2650.86 2652.91 2654.95 2268.82 2268.13 2267.35 1940.7 1940.31 1939.92 1660.81 1662.13 1663.45 1664.77 1666.09 1667.41 1668.72 1670.04 1671.33 1672.68 1673.98 1675.29 1676.6 1677.87 1679.21 1680.49 1681.78 1683.07 1684.36 1685.66 1686.97 1465.19 1277.05 1117.48 1114.6 1274.55 1463.21 1461.22 1459.25 1457.27 1267.06 1269.55 1272.05 1111.72 1108.84 1105.97 969.5 972.643 975.78 978.922 982.065 867.004 769.054 685.476 682.058 765.662 863.698 860.386 857.079 853.764 755.439 758.853 762.257 678.618 675.174 671.719 600.247 603.702 607.142 610.572 613.969 552.61 499.798 454.203 451.04 496.538 549.268 545.882 542.478 539.056 486.507 489.874 493.218 447.805 444.538 441.241 402.129 405.343 408.524 411.664 414.719 380.426 350.56 324.484 321.772 347.734 377.485 374.447 371.359 368.232 338.773 341.809 344.801 318.943 316.048 313.103 310.117 335.7 365.072 398.885 437.919 483.117 535.612 596.773 668.246 752.01 850.435 966.345 1103.08 1264.55 1455.29 1453.29 1451.33 1449.3 1256.97 1259.51 1262.04 1100.18 1097.26 1094.33 1091.39 1254.42 1447.29 1445.27 1443.24 1441.23 1246.71 1249.3 1251.86 1088.43 1085.46 1082.47 943.821 947.077 950.325 953.561 956.781 959.983 963.172 847.087 843.721 840.341 741.609 745.092 748.56 664.752 661.238 657.71 654.162 738.107 836.942 833.525 830.096 826.649 727.5 731.051 734.586 650.595 647.015 643.418 639.803 723.931 823.186 940.522 1079.49 1244.11 1439.2 1437.14 1435.08 1433.06 1236.3 1238.91 1241.52 1076.47 1073.46 1070.4 1067.37 1233.67 1430.98 1428.93 1426.84 1424.79 1225.74 1228.39 1231.03 1064.31 1061.24 1058.16 917.162 920.559 923.906 927.268 930.606 933.928 937.239 819.705 816.21 812.7 713.134 716.735 720.344 636.17 632.521 628.859 625.181 709.491 809.173 805.628 802.07 798.495 698.491 702.165 705.847 621.48 617.782 614.047 542.565 546.288 549.996 553.691 557.367 561.028 564.678 568.312 571.929 575.528 579.11 582.679 586.23 589.761 593.277 532.145 528.658 525.155 472.812 476.264 479.701 434.574 431.196 427.812 424.406 469.341 521.634 518.093 514.54 510.971 458.827 462.349 465.851 420.982 417.545 414.092 375.582 378.96 382.322 385.672 389.004 392.32 395.61 361.881 358.666 355.43 326.309 329.461 332.593 307.095 304.047 300.979 297.886 323.138 352.183 348.911 345.628 342.33 313.532 316.749 319.951 294.78 291.66 288.523 285.374 310.302 339.019 372.191 410.625 455.301 507.385 503.781 500.168 496.531 444.612 448.186 451.748 407.144 403.647 400.149 396.63 441.022 492.888 489.236 485.56 481.874 430.182 433.807 437.419 393.092 389.557 386.005 348.123 351.592 355.052 358.503 361.941 365.368 368.786 335.695 332.358 329.013 300.543 303.805 307.06 282.212 279.038 275.857 272.666 297.27 325.657 322.289 318.914 315.53 287.399 290.693 293.986 269.464 266.254 263.039 259.82 284.093 312.14 344.646 382.444 426.545 478.176 538.827 610.305 694.791 794.904 913.767 1055.06 1223.07 1422.71 1659.49 1939.54 2269.58 2657 3110.24 3639.34 4257.25 4981.77 5838.9 6868.66 8136.1 9755.14 11950.9 15232.7 15294 15355.8 15418.9 15482.7 15547.7 15613.5 15680.5 12268.6 12221.6 12175.1 12129.2 12083.8 12039.1 11994.7 9787.14 9819.43 9851.95 8206.99 8183.36 8159.48 6886.23 6903.82 6921.42 6939.04 8231.05 9884.75 9917.65 9951.03 9984.51 8303.24 8279.11 8255.03 6956.54 6974.16 6991.76 7009.25 8327.49 10018.3 12316.2 15748.5 15817.6 15887.8 15959.3 16031.9 16105.8 16180.9 16257.3 12665.6 12614 12562.7 12512.4 12462.3 12413.1 12364.3 10052.3 10086.7 10121.1 8400.36 8376.05 8351.68 7026.78 7044.22 7061.61 7078.93 8424.76 10155.9 10190.8 10225.9 10261.3 8497.88 8473.51 8449.1 7096.26 7113.29 7130.42 6030.46 6018.32 6006.06 5993.69 5981.18 5968.58 5955.89 5943.11 5930.27 5917.36 5904.38 5891.35 5878.29 5865.19 5852.08 4991.64 5001.46 5011.25 4279.15 4271.88 4264.58 3644.61 3649.84 3655.11 3660.3 4286.29 5021 5030.68 5040.31 5049.88 4307.72 4300.62 4293.54 3665.47 3670.61 3675.63 3134.76 3131.31 3127.84 3124.36 3120.83 3117.35 3113.79 2659.05 2661.09 2663.14 2271.83 2271.07 2270.32 1939.16 1938.79 1938.42 1938.06 2272.6 2665.16 2667.24 2669.26 2671.28 2274.88 2274.07 2273.32 1937.7 1937.35 1937 1936.65 2275.58 2673.29 3138.18 3680.75 4314.64 5059.37 5068.78 5078.11 5087.34 4335.29 4328.41 4321.66 3685.71 3690.65 3695.53 3700.36 4341.87 5096.47 5105.5 5114.38 5123.17 4361.34 4355 4348.48 3705.05 3709.71 3714.27 3161 3157.89 3154.74 3151.47 3148.22 3144.91 3141.56 2675.29 2677.29 2679.21 2277.88 2277.08 2276.4 1936.29 1936 1935.63 1935.29 2278.62 2681.16 2683.07 2684.96 2686.81 2280.79 2280.07 2279.35 1935 1934.64 1934.32 1933.98 2281.49 2688.62 3164.04 3718.75 4367.61 5131.73 6042.46 7147.32 8522.22 10296.8 12718.2 16335.1 16414.3 16494.9 16577 16660.7 16745.8 16832.7 16921.1 13101.5 13044.9 12989 12933.5 12878.7 12824.5 12771 10332.5 10368.3 10404.2 8594.82 8570.69 8546.49 7164.12 7180.74 7197.21 7213.51 8618.85 10440.4 10476.5 10512.6 10549 8689.93 8666.55 8642.71 7229.6 7245.43 7261.04 7276.38 8713.36 10585.1 13158.5 17011.3 17103.2 17196.8 17292.5 17389.5 17488.9 17589.7 17692.7 13570.6 13510.6 13450.9 13391.7 13332.7 13274.1 13216 10621.4 10657.5 10693.5 8781.68 8759.2 8736.37 7291.41 7306.14 7320.52 7334.51 8803.79 10729.3 10764.9 10800.3 10835.3 8867.58 8846.79 8825.5 7348.09 7361.25 7373.93 6194.85 6186.92 6178.58 6169.86 6160.77 6151.33 6141.57 6131.52 6121.19 6110.6 6099.77 6088.7 6077.41 6065.94 6054.3 5140.22 5148.57 5156.69 4385.55 4379.71 4373.73 3723.12 3727.38 3731.52 3735.53 4391.25 5164.66 5172.44 5180.01 5187.33 4407.22 4402.05 4396.7 3739.42 3743.14 3746.78 3182.92 3180.54 3178.04 3175.43 3172.72 3169.91 3167.02 2690.39 2692.11 2693.78 2283.46 2282.83 2282.17 1933.68 1933.37 1933 1932.65 2284.07 2695.38 2696.92 2698.38 2699.74 2285.62 2285.17 2284.63 1932.36 1931.95 1931.58 1931.18 2286.03 2701.09 3185.16 3750.11 4412.15 5194.44 5201.3 5207.9 5214.23 4425.66 4421.39 4416.89 3753.38 3756.41 3759.26 3761.88 4429.68 5220.25 5225.96 5231.34 5236.38 4440.05 4436.88 4433.42 3764.27 3766.42 3768.31 3196.19 3195.26 3193.99 3192.6 3191 3189.22 3187.26 2702.22 2703.3 2704.24 2286.89 2286.7 2286.42 1930.76 1930.32 1929.78 1929.24 2286.96 2705.05 2705.73 2706.14 2706.39 2286.64 2286.88 2287 1928.63 1927.92 1927.2 1620.52 1621.83 1623.07 1624.29 1625.5 1626.67 1627.88 1629.1 1630.28 1631.49 1632.63 1633.9 1635.11 1636.32 1637.56 1638.84 1640.07 1641.34 1642.57 1643.89 1645.16 1646.41 1647.74 1649.02 1650.32 1651.61 1652.95 1654.22 1655.55 1656.86 1658.18 1420.63 1418.55 1416.46 1215.04 1217.73 1220.41 1051.96 1048.84 1045.71 1042.56 1212.34 1414.42 1412.27 1410.22 1408.1 1204.22 1206.94 1209.67 1039.41 1036.25 1033.08 889.566 893.071 896.558 900.029 903.488 906.929 910.356 791.297 787.673 784.032 683.591 687.341 691.075 606.546 602.771 598.978 595.167 679.82 780.372 776.698 773.006 769.293 668.404 672.23 676.035 591.341 587.497 583.632 579.746 664.558 765.56 886.045 1029.87 1201.53 1406.03 1403.93 1401.85 1399.76 1193.33 1196.07 1198.79 1026.66 1023.46 1020.26 1017.01 1190.6 1397.67 1395.59 1393.52 1391.45 1182.38 1185.12 1187.86 1013.76 1010.51 1007.25 860.939 864.574 868.193 871.798 875.372 878.964 882.509 761.809 758.036 754.242 652.886 656.799 660.69 575.838 571.909 567.955 563.977 648.948 750.428 746.591 742.733 738.852 636.981 640.996 644.985 559.972 555.94 551.878 480.635 484.674 488.684 492.667 496.623 500.556 504.467 508.356 512.226 516.076 519.907 523.721 527.522 531.306 535.074 474.463 470.737 466.998 415.563 419.235 422.896 378.872 375.288 371.709 368.1 411.88 463.248 459.473 455.697 451.899 400.761 404.48 408.187 364.497 360.881 357.255 320.103 323.625 327.15 330.658 334.166 337.665 341.16 308.742 305.337 301.928 274.149 277.471 280.784 256.595 253.367 250.137 246.903 270.834 298.52 295.102 291.682 288.258 260.866 264.189 267.51 243.675 240.447 237.218 233.997 257.546 284.835 316.575 353.619 397.028 448.085 444.254 440.404 436.535 385.743 389.52 393.282 349.973 346.317 342.648 338.966 381.947 432.644 428.729 424.79 420.823 370.434 374.295 378.132 335.268 331.554 327.82 291.633 295.229 298.811 302.381 305.941 309.492 313.036 281.41 277.981 274.549 247.596 250.911 254.229 230.781 227.569 224.364 221.165 244.282 271.113 267.673 264.227 260.773 234.343 237.657 240.969 217.974 214.788 211.608 208.432 231.025 257.309 288.021 324.063 366.548 416.824 476.563 547.779 632.942 734.946 857.288 1003.98 1179.64 1389.38 1387.33 1385.29 1383.26 1171.46 1174.18 1176.91 1000.72 997.457 994.17 990.902 1168.75 1381.24 1379.25 1377.23 1375.28 1160.73 1163.38 1166.06 987.637 984.378 981.124 831.458 835.173 838.868 842.568 846.263 849.935 853.632 731.021 727.077 723.11 620.636 624.765 628.856 543.661 539.51 535.311 531.085 616.478 719.124 715.12 711.102 707.071 603.846 608.082 612.293 526.822 522.523 518.189 513.82 599.593 703.025 827.757 977.928 1158.06 1373.33 1371.4 1369.51 1367.59 1150.36 1152.88 1155.47 974.708 971.532 968.378 965.301 1147.83 1365.73 1363.88 1362.05 1360.21 1140.56 1142.92 1145.36 962.227 959.222 956.272 802.598 806.057 809.584 813.157 816.768 820.414 824.085 699.002 694.948 690.915 586.709 591.015 595.3 509.418 504.983 500.521 496.04 582.405 686.9 682.909 678.956 675.015 569.561 573.818 578.106 491.544 487.036 482.53 410.8 415.447 420.07 424.661 429.215 433.735 438.212 442.643 447.03 451.373 455.672 459.929 464.145 468.32 472.457 412.792 408.73 404.63 354.688 358.673 362.626 320.282 316.472 312.628 308.751 350.667 400.481 396.304 392.068 387.787 338.316 342.481 346.595 304.827 300.867 296.854 261.96 265.797 269.59 273.332 277.049 280.733 284.389 253.832 250.338 246.822 221.025 224.369 227.702 205.257 202.081 198.898 195.709 217.658 243.28 239.713 236.11 232.464 207.411 210.86 214.271 192.506 189.281 186.029 182.743 203.92 228.768 258.07 292.784 334.092 383.456 379.073 374.633 370.14 321.083 325.486 329.824 288.654 284.47 280.213 275.89 316.617 365.597 361.002 356.354 351.661 302.837 307.497 312.093 271.485 267.004 262.441 228.924 233.336 237.655 241.886 246.036 250.112 254.125 225.021 221.214 217.338 193.128 196.787 200.381 179.417 176.041 172.606 169.11 189.403 213.391 209.363 205.238 201.02 177.7 181.701 185.599 165.546 161.894 157.797 139.527 144.67 148.536 151.851 155.12 158.333 161.49 164.607 167.689 170.747 173.785 176.815 179.841 182.865 185.892 188.927 191.971 195.026 198.094 201.173 204.265 207.369 210.483 213.604 216.737 219.875 223.018 226.165 229.313 232.461 235.609 238.753 241.892 245.028 248.159 251.284 254.393 257.497 260.598 263.674 266.753 269.804 272.852 275.879 278.889 281.877 284.844 287.782 290.682 293.537 296.337 299.064 301.666 281.661 264.095 248.655 246.351 261.698 279.164 276.536 273.828 271.059 253.858 256.543 259.163 243.904 241.367 238.761 225.503 228.035 230.494 232.859 235.077 223.136 212.646 203.445 201.444 210.579 220.997 218.709 216.322 213.859 203.64 206.039 208.36 199.288 197.028 194.687 186.866 189.154 191.358 193.457 195.398 188.392 182.326 177.113 175.318 180.486 186.502 184.457 182.302 180.061 174.177 176.375 178.486 173.359 171.287 169.127 164.833 166.961 168.999 170.92 172.675 168.951 165.918 163.602 161.922 164.223 167.231 165.341 163.332 161.23 158.288 160.368 162.355 160.068 158.093 156.027 153.889 156.134 159.055 162.632 166.894 171.908 177.752 184.511 192.282 201.178 211.336 222.914 236.101 251.122 268.243 265.386 262.498 259.587 242.692 245.532 248.342 233.395 230.655 227.888 225.095 239.833 256.654 253.7 250.734 247.751 231.143 234.056 236.953 222.283 219.454 216.608 203.874 206.658 209.422 212.173 214.901 217.602 220.276 208.764 206.152 203.51 193.525 196.111 198.664 189.823 187.321 184.786 182.223 190.912 200.842 198.151 195.441 192.716 182.944 185.619 188.275 179.634 177.026 174.399 171.755 180.253 189.973 201.075 213.748 228.219 244.754 241.745 238.725 235.693 219.366 222.328 225.278 210.875 207.988 205.09 202.185 216.397 232.655 229.606 226.552 223.487 207.438 210.431 213.417 199.269 196.346 193.415 181.152 184.026 186.892 189.75 192.598 195.437 198.262 187.215 184.445 181.661 172.09 174.825 177.546 169.092 166.417 163.725 161.023 169.344 178.867 176.06 173.245 170.422 161.037 163.815 166.584 158.305 155.577 152.838 145.692 148.397 151.09 153.769 156.435 159.087 161.723 164.343 166.947 169.532 172.097 174.641 177.159 179.647 182.1 175.387 172.975 170.529 164.8 167.21 169.582 164.603 162.264 159.886 157.476 162.358 168.05 165.547 163.021 160.475 154.886 157.398 159.889 155.038 152.577 150.094 146.025 148.483 150.919 153.328 155.712 158.061 160.37 156.82 154.536 152.211 149.352 151.656 153.92 151.691 149.443 147.154 144.83 147.013 149.852 147.464 145.051 142.614 139.829 142.249 144.644 142.476 140.095 137.69 135.261 137.388 140.155 143.545 147.59 152.352 157.908 155.324 152.722 150.107 144.643 147.228 149.799 145.064 142.52 139.961 137.383 142.04 147.474 144.827 142.165 139.489 134.134 136.785 139.421 134.787 132.176 129.545 125.648 128.261 130.854 133.429 135.985 138.523 141.044 137.674 135.173 132.653 129.934 132.438 134.923 132.81 130.338 127.846 125.332 127.409 130.114 127.556 124.979 122.38 119.713 122.3 124.865 122.798 120.243 117.663 116.251 118.825 121.374 123.901 126.408 128.891 131.354 133.796 136.215 138.611 140.983 143.327 145.641 147.919 150.156 152.344 154.473 156.531 158.499 160.346 162.02 161.09 159.426 157.583 155.617 153.561 151.435 149.252 147.021 144.75 142.442 140.103 137.737 135.348 132.934 130.498 128.039 125.56 123.059 120.536 117.991 115.42 112.825 113.653 115.059 117.103 119.761 123.016 126.898 131.468 136.8 142.976 150.088 158.249 167.591 178.271 190.479 204.439 220.423 217.353 214.28 211.207 195.428 198.433 201.437 187.539 184.596 181.652 178.709 192.425 208.135 205.065 202.001 198.942 183.441 186.429 189.424 175.77 172.834 169.908 158.074 160.946 163.83 166.716 169.607 172.496 175.386 164.756 161.911 159.067 149.848 152.656 155.455 147.33 144.564 141.792 139.015 147.042 156.223 153.381 150.542 147.708 138.631 141.43 144.236 136.236 133.458 130.682 127.912 135.839 144.886 155.208 166.993 180.464 195.893 192.856 189.826 186.817 171.617 174.551 177.499 164.092 161.207 158.343 155.503 168.705 183.818 180.84 177.88 174.94 160.109 162.948 165.816 152.688 149.903 147.15 135.785 138.466 141.185 143.936 146.718 149.529 152.359 142.078 139.291 136.523 127.566 130.302 133.06 125.153 122.413 119.693 117.001 124.857 133.784 131.08 128.414 125.788 116.972 119.556 122.186 114.347 111.736 109.175 102.271 104.827 107.436 110.089 112.779 115.494 118.228 120.978 123.736 126.494 129.255 132.013 134.765 137.511 140.248 134.099 131.385 128.661 123.385 126.093 128.788 124.234 121.554 118.859 116.144 120.662 125.925 123.183 120.434 117.683 112.436 115.186 117.928 113.415 110.673 107.919 104.063 106.826 109.571 112.3 115.008 117.696 120.366 117.123 114.46 111.776 109.136 111.816 114.473 112.435 109.783 107.104 104.397 106.43 109.07 106.341 103.589 100.813 98.1457 100.935 103.696 101.659 98.8891 96.0848 93.2428 95.3228 98.0103 101.28 105.152 109.68 114.931 112.181 109.441 106.717 101.422 104.167 106.922 102.377 99.5981 96.8207 94.0526 98.6939 104.015 101.347 98.7212 96.1496 90.7242 93.3319 95.9932 91.3038 88.5872 85.9188 81.4643 84.4265 87.2181 90.0311 92.852 95.6712 98.4821 95.184 92.3361 89.4673 86.6533 89.5768 92.4661 90.3587 87.4294 84.4513 81.419 83.6959 86.5823 83.6897 80.6646 77.0367 72.5875 77.1298 80.6563 78.0904 73.874 68.4583 61.9484 66.8629 72.3617 77.8492 83.0706 88.1856 93.6476 99.7796 106.676 114.442 123.211 133.144 144.429 157.296 172.014 169.11 166.22 163.343 148.996 151.741 154.503 141.744 139.087 136.47 133.876 146.274 160.475 157.614 154.749 151.877 138.173 140.871 143.566 131.313 128.768 126.235 115.789 118.167 120.565 123 125.473 127.988 130.545 120.683 118.207 115.783 107.205 109.556 111.967 104.24 101.877 99.5873 97.3031 104.911 113.41 111.092 108.833 106.409 96.9511 100.193 102.69 94.6693 91.1179 86.1858 79.6371 92.3454 103.407 113.369 123.7 135.473 148.991 146.085 143.142 140.145 127.124 130.051 132.77 121.195 118.33 114.582 109.166 123.46 137.08 133.371 128.257 121.134 101.651 111.012 118.245 101.727 92.3064 81.3431 61.9522 73.0386 83.704 93.1598 100.806 106.486 110.478 99.1061 93.095 85.2419 68.8346 78.0484 86.0342 71.6258 62.6824 53.5091 44.7207 59.1072 75.8667 65.6252 55.2802 45.4809 32.7689 40.678 49.5545 36.692 29.5953 23.4792 16.8257 21.4965 27.0142 33.4199 40.7197 48.8175 57.4232 66.0235 73.9794 80.7121 85.9532 89.8124 92.6392 95.0356 97.3675 91.2318 88.6879 85.6074 77.7984 82.1714 85.486 79.5659 75.0056 69.2092 62.3138 72.1318 81.4857 75.9986 69.1606 61.317 49.6103 57.5427 65.242 54.7486 47.073 39.7647 31.9372 38.3776 45.4784 52.9794 60.4379 67.3172 73.1769 66.5132 59.6796 52.2962 45.4114 52.812 60.1294 54.7376 47.3272 40.1587 33.5331 38.3655 44.8818 37.8653 31.4987 25.8781 21.2839 26.2363 31.9368 27.6074 22.4197 17.9603 14.1894 17.0458 21.0045 26.2509 33.1074 41.9683 53.0617 44.9826 37.4873 30.7844 23.3031 28.7296 34.96 27.2184 22.0988 17.7053 13.9802 18.6452 24.9337 19.9029 15.6323 12.0647 8.64815 11.3769 14.6911 10.8587 8.28227 6.19626 4.4414 6.03155 8.03584 10.5081 13.5055 17.0895 21.3185 16.8333 13.3027 10.3535 8.02257 10.4766 13.4639 11.0437 8.46081 6.37634 4.7239 6.041 7.92787 5.96439 4.40423 3.1924 2.31828 3.2473 4.46959 3.43913 2.46096 1.73229 1.37049 1.96987 2.7891 3.88456 5.31673 7.15193 9.46056 12.3117 15.7701 19.9012 24.7458 30.3264 36.623 43.5388 50.8632 58.24 65.1985 71.2501 76.092 79.7803 82.9133 85.9359 88.8971 91.8034 94.662 97.4777 100.255 102.996 105.704 108.382 111.031 110.205 107.557 104.88 102.17 99.4259 96.6446 93.8227 90.9541 88.0342 85.0551 82.0104 78.7603 74.7679 69.5226 63.1169 55.9582 48.5537 41.3308 34.5866 28.4872 23.1065 18.4571 14.5163 11.2384 8.5601 6.41157 4.72116 3.41586 2.42877 1.69946 1.17264 0.802067 0.943184 1.20334 1.62928 2.27342 3.20871 4.54603 6.44705 9.13803 12.9386 18.3133 25.9288 36.6377 51.1972 69.601 90.4864 111.801 132.364 152.478 173.318 196.685 224.416 257.794 298.115 346.928 406.14 478.036 565.321 671.191 799.177 953.389 1138.2 1358.41 1619.25 1926.26 2286.21 2706.52 3196.97 3769.91 4442.89 5241.03 6202.33 7386.1 8887.82 10869.8 13630.6 17797.4 17904 18012.3 18122.3 18234.2 18347.3 18462.3 18578.2 14047.7 13989.2 13930.4 13870.9 13811.1 13751 13690.9 10903.9 10937.4 10970.3 8944.67 8926.43 8907.47 7397.59 7408.75 7419.02 7428.72 8962.12 11002.4 11033.4 11063.9 11092.9 9008.9 8994.32 8978.7 7437.63 7445.76 7453.02 7459.38 9022.37 11121 14105 18695.5 18813.4 18932.6 19051.3 19170.9 19289.5 19407.4 19524.1 14463.4 14419.4 14371.6 14322.1 14270.3 14216.6 14161.6 11147.5 11172.6 11195.7 9055.08 9045.48 9034.59 7464.77 7468.96 7472.17 7473.76 9062.73 11217.4 11236.6 11253.7 11268.2 9075.47 9073.07 9069.21 7474.33 7473.84 7471.35 6236.03 6240.14 6242.98 6244.78 6245.46 6245.26 6244.2 6242.34 6239.63 6236.17 6232.04 6227.22 6221.88 6215.79 6209.38 5245.29 5249.14 5252.54 4449.29 4447.6 4445.37 3771.3 3772.25 3772.9 3773.17 4450.71 5255.47 5257.89 5259.8 5261.11 4452.09 4452.01 4451.61 3773.2 3772.74 3771.88 3193.89 3195.36 3196.45 3197.16 3197.57 3197.57 3197.41 2706.44 2706.09 2705.49 2283.88 2284.82 2285.61 1925.37 1924.2 1922.95 1921.45 2282.65 2704.6 2703.42 2701.91 2700.05 2277.35 2279.42 2281.18 1919.82 1917.9 1915.8 1913.31 2274.94 2697.81 3192 3770.54 4451.6 5261.72 5261.89 5261.28 5259.97 4446.66 4448.93 4450.56 3768.7 3766.41 3763.49 3760 4443.73 5257.86 5254.91 5251.04 5246.33 4430.32 4435.67 4440.07 3755.87 3750.97 3745.41 3164.29 3170.09 3175.15 3179.64 3183.51 3186.83 3189.69 2695.14 2692.11 2688.58 2265.39 2268.99 2272.2 1910.56 1907.44 1904 1900.04 2261.37 2684.49 2679.9 2674.71 2668.89 2246.06 2251.72 2256.81 1895.74 1890.87 1885.53 1879.61 2239.77 2662.38 3157.75 3739 4424.26 5240.36 6230.74 7467.48 9075.7 11280.1 14505.1 19639 19750.8 19859.6 19963.9 20063.2 20156.1 20241.8 20318.8 14661.6 14657.2 14647.4 14629.5 14605.5 14576.4 14542.6 11288.5 11293.6 11294.8 9061.8 9068.82 9073.81 7461.69 7454.09 7444.55 7432.71 9051.09 11293.8 11286.3 11275.5 11258.5 9000.34 9020.73 9037.84 7418.6 7401.92 7382.59 7360.33 8975.53 11236.9 14661.2 20385.6 20440.5 20482.4 20504 20512.4 20508.1 20469.1 20413.7 14331.6 14419.6 14491.4 14549.4 14592.9 14626.4 14647.1 11208.1 11173.7 11130.9 8874.43 8913.04 8946.67 7334.92 7306.1 7273.62 7237.13 8830.15 11081.4 11022.4 10954.2 10876.1 8659.81 8723.62 8780.23 7196.25 7150.58 7099.69 5912.38 5954.31 5992.04 6025.98 6056.47 6083.81 6108.28 6130.12 6149.51 6166.65 6181.74 6194.87 6206.24 6215.88 6224.08 5233.53 5225.37 5216 4399.73 4408.99 4417.12 3731.71 3723.49 3714.25 3703.9 4389.27 5205.24 5193 5179.17 5163.61 4349.6 4364.24 4377.52 3692.33 3679.44 3665.1 3084.96 3098.92 3111.46 3122.81 3132.95 3142.19 3150.4 2655.1 2647.09 2638.15 2216.59 2225.13 2232.8 1873.08 1865.94 1857.98 1849.41 2207.23 2628.31 2617.35 2605.33 2592.16 2174.21 2185.49 2197.06 1840.44 1827.47 1810.33 1789.33 2158.11 2577.27 3069.53 3649.28 4333.15 5146.18 5126.7 5105.01 5080.89 4272.21 4294.59 4314.93 3631.59 3612.09 3590.54 3566.39 4247.23 5054.07 5024.31 4991.25 4954.59 4155.86 4188.77 4219.65 3540.81 3507.74 3463.81 2857.95 2910.71 2953.52 2987.8 3013.49 3033.56 3052.62 2561.97 2541.73 2515.09 2079.46 2111.23 2137.09 1763.48 1735.31 1704.93 1671.96 2044.57 2481.97 2441.42 2397.25 2351.03 1925.92 1967.87 2007.4 1635.96 1597.12 1555.62 1227.18 1268.94 1308.54 1345.63 1379.79 1410.87 1438.85 1464.48 1488.06 1510.35 1528.29 1542.8 1553.68 1561.08 1567.37 1573.44 1578.82 1583.77 1588.2 1592.29 1595.88 1599.21 1602.14 1604.8 1607.19 1609.39 1611.32 1613.18 1614.76 1616.41 1617.78 1356.59 1354.75 1352.89 1131.4 1133.63 1135.9 950.575 947.834 945.169 942.583 1129.19 1350.99 1349.03 1346.95 1344.74 1122.55 1124.79 1126.99 940.073 937.633 935.249 778.168 780.805 783.579 786.48 789.502 792.635 795.869 667.393 663.695 660.106 553.027 557.043 561.164 473.562 469.144 464.793 460.494 549.131 656.607 653.276 650.086 647.078 538.204 541.693 545.336 456.328 452.282 448.112 441.892 535.001 644.304 775.678 932.899 1120.25 1342.47 1339.92 1337.16 1334.19 1112.56 1115.32 1117.85 930.536 928.149 925.668 923.207 1109.63 1330.85 1327.19 1323.2 1318.64 1098.21 1103.04 1106.3 919.615 913.275 903.449 727.237 742.966 755.346 763.406 768.313 770.907 773.272 641.806 637.988 631.455 509.404 521.596 529.903 432.073 418.945 403.427 386.495 494.593 621.069 607.205 590.931 573.418 442.778 460.438 477.957 368.859 351.178 333.796 244.844 261.731 279.064 296.761 314.43 331.49 347.227 360.832 371.409 378.3 383.158 387.651 392.199 396.826 401.482 342.161 337.386 332.613 283.647 288.511 293.34 253.075 248.28 243.058 236.145 278.321 327.837 322.599 315.354 304.827 248.012 260.954 271.112 226.563 214.349 199.988 159.197 174.357 187.957 199.397 208.331 214.819 219.802 191.995 185.964 177.657 149.787 159.919 167.689 145.091 135.396 123.524 109.958 137.468 166.927 154.033 139.489 124.023 93.3892 108.487 123.463 95.4749 80.9501 67.2134 54.8525 78.9396 108.409 143.201 184.162 232.926 291.335 275.742 258.877 241.431 182.383 199.473 216.491 167.634 151.039 134.878 119.461 165.671 223.932 206.777 190.179 174.196 119.743 134.273 149.576 105.002 91.5746 79.1977 50.3086 60.0116 70.9836 83.2539 96.7984 111.501 127.107 93.363 79.3872 66.7772 44.0841 54.0812 65.7337 44.1941 35.2804 27.992 22.1218 35.6768 55.6535 46.0165 37.7736 30.802 18.3793 23.0088 28.7125 17.4393 13.7399 10.8419 8.59094 14.6607 24.9753 41.8098 67.858 105.962 158.686 228.241 316.523 425.132 555.599 709.771 889.216 1090.33 1314.11 1307.99 1298.63 1285.84 1045.24 1063.47 1078.87 872.102 853.988 835.283 815.747 1026.22 1269.43 1249.66 1228.97 1206.62 960.818 984.694 1006.16 794.564 771.486 746.025 561.371 587.434 611.572 633.796 654.26 673.431 691.785 537.571 518.982 499.402 369.27 388.705 407.231 299.087 281.189 262.622 243.439 348.773 478.512 456.051 432.063 406.765 281.444 304.621 327.16 223.725 203.715 183.588 163.446 257.948 380.443 533.546 718.211 934.506 1182.35 1155.33 1125.23 1092.26 839.65 873.727 905.388 688.165 656.262 622.813 588.101 803.633 1056.61 1018.65 978.702 936.965 686.442 727.006 766.084 552.44 515.98 478.52 313.084 346.319 378.848 410.939 442.596 473.748 504.198 353.408 326.019 298.506 187.47 210.887 234.389 143.355 123.437 104.2 86.3961 163.965 270.903 243.164 215.304 187.112 95.6881 117.106 140.275 70.9962 58.0021 47.6908 26.6065 30.7873 36.4174 43.7233 53.2455 64.9105 78.3802 93.4258 109.654 126.53 143.7 160.923 178.04 194.979 211.67 143.476 128.518 113.751 68.7118 80.3841 92.8258 57.536 48.2519 40.0568 32.9635 57.9538 99.3099 85.4215 72.3841 60.4709 32.802 39.9023 48.3003 26.9922 22.1029 18.2045 10.5166 12.5592 15.2308 18.6555 22.9432 28.1834 34.4558 20.1651 16.2559 13.1381 7.64921 9.4158 11.716 6.86515 5.55913 4.58148 3.85612 6.31195 10.7004 8.82877 7.41653 6.36022 4.00816 4.56572 5.31107 3.31797 2.91542 2.60871 2.36747 3.58385 5.56894 8.97797 15.1756 26.9842 49.9614 41.1251 33.9385 28.218 16.1194 18.8224 22.3805 12.873 11.1402 9.83651 8.84398 14.0985 23.8445 20.5793 18.1185 16.2703 10.4602 11.3984 12.5763 8.06434 7.42763 6.88721 4.58971 4.92577 5.30597 5.74859 6.28307 6.95445 7.82525 4.96892 4.50196 4.1261 2.75586 2.98204 3.25145 2.17132 2.0063 1.86346 1.73708 2.56004 3.81218 3.54099 3.30042 3.08302 2.08701 2.22984 2.38643 1.62351 1.52027 1.42576 1.33867 1.95581 2.88423 4.28544 6.41121 9.6765 14.8373 23.5668 40.3195 78.0703 158.54 279.311 439.946 644.265 893.127 1183.28 1511.96 1881.65 2303.5 2802.6 3408.18 4111.65 4913.55 5865.76 7042.97 8588.6 10786.1 14225.9 20323 20204.7 20046.5 19847.4 19597.2 19291.4 18919.8 18473.6 12797.8 13095.6 13356.2 13584.4 13782.4 13953.8 14100.9 10684.6 10568.7 10438.6 8318.67 8419.01 8508.31 6979.81 6909.4 6830.82 6739.85 8206.6 10290.8 10125.3 9938.89 9702.83 7726.28 7918.19 8081.78 6620.82 6479.28 6331.92 6174.24 7519.49 9419.95 12419.9 17947.5 17258.8 16387.3 15432.1 14422 13034.9 11623 10180.6 14365.6 12706.2 20532 36382.3 65158.7 109840 184893 165424 112911 201410 180052 102798 55584.9 94809.4 64757.5 31391.3 23461.2 39537.6 69483.2 116753 196234 170895 114271 203140 178343 102489 55698.5 99333.1 67212.8 39048.7 68220.8 113417 193504 165417 106453 192240 163894 91985.1 52230.1 94384.3 65571.8 28876.3 19279.8 27355 22221.7 14847.2 11766.2 9484.23 13742.1 21656.1 35411.5 59489.2 98668.3 173451 141522 86527.7 150628 111704 187992 156079 57830.9 75739.4 44106.9 79315.7 55492.4 25778.5 16642.1 19899.7 30101.7 24974.9 38411.2 64355.7 105746 183069 146808 82933 44689.4 58590.9 87250.3 152603 110623 185985 152515 54807.9 89766.5 151246 99554.5 173991 135715 77659.1 133503 91345.5 150770 105030 182385 143130 80485.2 50473.7 65847.8 41713.7 76435.3 54976.5 36840.4 61090.6 25635.9 16138 28683.5 22789 32718.3 50034.1 75943.9 128808 83972.1 144953 100306 170536 132947 74848.4 128576 86440.6 144286 99166.1 172096 133018 75078.7 46884.6 62212.1 41012.8 74280.2 53809.8 36830.6 57489.4 45340.2 64663.7 25085.2 20768.9 28293.8 22430.5 30360.4 46235.1 69345.9 117843 74276.5 127515 83837.2 141557 95772 164285 129220 73045.1 116387 77546.3 129545 86691.7 141060 96279.3 164585 126971 72763.6 46676.5 63374.5 42478.1 54612.8 36918.2 71459.3 63616 47540.1 34619.4 56222.8 51732.7 41655.4 25076 16133.9 26419.8 22303.7 28502.6 17649.5 30407.6 45102.3 66420.3 111084 69298 116810 75299.8 122774 79966.8 133611 91548.1 152286 117191 66900.8 110199 73193.3 114753 76298.2 124625 83959 133830 92076.4 154047 119424 70283.9 46409.1 62221.5 42548.1 55447.2 38592.2 68261.7 50653.8 35546.4 57355.1 44650.7 33389.9 52132.7 49416.1 40520.7 23639.3 18674.7 24234.8 20120.4 25186.1 21041.5 27426.2 22045.3 28457.9 23176.2 31212.5 44629.5 64687.4 105012 67089.5 110052 72622.1 115113 76425.4 124986 86836.6 141162 109909 64869.9 103890 70958 107699 73653.3 116499 80354.4 123606 87083.5 140667 110570 68196.5 46504.2 61020.1 43250.1 54601.7 38507.6 65963.2 49664.1 36460.1 56395.8 44654 33205.5 51464.2 48730.2 39747.9 24729.4 16383.7 20026.2 15281.9 18367.3 14140.7 16864.5 13201.6 9593.29 7687.21 10457.3 8186.26 11239.6 8815.51 12215.2 17864.7 28439.4 24237.5 30575.8 19515.7 32229.3 45574.9 63179.4 98473.6 65297.1 102728 70054.9 107189 73701.9 115615 82690 129459 102725 64267.7 98371 69762.1 101930 72673.8 110014 79225.9 116370 85338.6 131962 106653 69572.9 49575.9 61933 44915.5 55093.8 40715.2 65384.2 50544.3 37511.5 55860.4 45143.6 35246.4 51530.8 49281.4 41490.5 25900 20977 26863.5 22695.5 28271.4 24048.7 31141.7 25710.8 32980.3 27419.7 36685.5 49752.8 66375.6 97805.1 69924.4 103392 76454.3 110905 82985.9 125145 104713 71462.2 99510.6 76856.7 111026 87069.4 123532 104755 56634.4 73294.5 101386 76015.8 106003 82785.8 118175 101649 74042.3 99433.6 80722.9 110422 90387 124246 109504 64004.9 73874 56371.4 63339.1 48809.8 65424 55397.1 43967.3 58743.4 32688.7 22793.7 38039.2 49838.9 68355 58402.3 44916.7 69451.8 64248.4 52335 40043 58220.5 54217 45949.4 30210.9 19723 23981.9 17725 21158.4 16037.7 18941.8 14828.7 10253.3 13197.9 9419.9 7299.98 5409.52 6798.47 5092.05 6424.27 4854.61 6027.93 4566.86 5804.58 6978.1 9215.52 11741.1 8484.49 10797.9 14633.1 17920.4 13474.7 19008.7 23645.7 17365 12217.8 16033.2 8956.88 7336 9761.92 7972.37 5944.34 4582.39 5714.63 6643.06 8565.09 10574.4 14124 23791 29455.4 21648.1 25975.9 18272.6 12528.9 17094.2 9358.77 7907.75 6281.65 5293.61 4542.27 3775 3393.58 3966.93 4795.88 6202.73 5117.64 6660.22 5338.27 4485.41 3597.73 4227.9 3449.59 4129.06 3413.07 2900.15 2595.88 2938.26 2620.87 3022.73 2607.95 3032.1 3632.54 3175.55 3849.97 3219.45 3978.08 3344.18 4175.13 3457.49 4354.78 5679.26 7681.9 10765.8 8443.92 11829.5 9085.98 12919.3 9930.63 14435.4 10958.2 16900.5 25635.1 34537.6 29216.3 38136.9 31923.7 43504.6 37048.9 50203.1 70000.7 90576.7 118159 104122 81739.7 59257.4 66236.8 82368.5 105871 89093.9 116581 100227 132145 121072 92289.4 70816.9 78168.4 55771.2 76658.8 97160.4 123343 112221 93672.3 117671 103646 134890 125029 83444.7 90522.3 68326.6 89447.1 75084.4 45993 29025.9 48663.4 35784.9 23250.8 40089.5 28285 19409.2 23206.3 13552.7 9968.16 15914.9 11485.9 20373.9 35743.9 54549.7 44181.5 66251.4 93330.6 116389 144364 135896 116210 150217 142232 111501 84655.8 108162 91224.9 68530.4 95007.6 120501 152464 143719 112532 86537.4 93792.7 125616 154362 141835 182033 174743 116649 154902 196339 183469 152796 217161 206966 127335 179435 242540 223646 173489 270225 249633 130817 208305 280840 234243 163908 238773 208910 86851.7 136291 190040 139770 74440.5 101319 56598.9 25495.2 25592.4 32450.7 17722.3 13311.5 13561 10452.3 6421.87 9620.11 12203.4 12800.4 15939.1 8819.6 5818.04 7618.9 6867.05 9699.62 16414.7 12532.1 36568.7 70867.1 153726 128269 32429.1 13239 23086.3 27112.6 64756.6 90659.2 139089 135091 49898.9 20850.6 39466.8 40680.9 63519.7 50982.5 31305.6 16604.4 27317.6 25488 51483.3 44412.3 31589.5 12923.7 9373.58 6545.18 10369.5 7131.31 11955.8 7383.78 5105.6 7185.23 5044.11 4034.82 3309.95 3978.35 4707.03 3651.35 4053.06 4335.02 4411.67 4224.36 5845.46 3174.87 2645.75 2642.73 3216.39 3172.5 2595.61 2131.41 2208.26 2245.65 2267.09 2276.8 2292.29 2321.37 2131.56 1964.99 1818.45 1743.42 1899 2080.46 2037.6 1840.73 1675.78 1535.28 1608.34 1688.9 1573.82 1471.14 1379.11 1293.79 1386.11 1490.2 1414.31 1309.02 1216.61 1146.04 1238.19 1344.17 1467.41 1612.45 1786.57 1997.33 1955.95 1731.36 1550.65 1487.61 1671.37 1904.29 1837.96 1602.53 1421.52 1273.65 1338.39 1402.44 1278.02 1172.1 1080.73 1019.51 1109.44 1214.3 1151.83 1049.08 961.299 904.836 989.917 1089.62 1207.2 1350.47 1523.15 1754.79 2027.49 2468.59 3038.28 2756.07 2299.54 2108.29 2475.48 3117.11 2661.8 2223.1 1904.86 1709.85 1984.18 2308.64 2769.95 3307.12 3988.85 5182.61 4031.57 5046.1 3922.56 4752.15 6182.12 8004.59 5642.82 7424.81 5339.69 6811.2 8987.02 11843.2 8079.63 6351.41 4999.02 3868.61 4736.45 5831.08 7552.7 5482.89 7013.34 5166.03 6511.93 4836.63 6173.79 4653.7 3635.89 3021.96 3747.57 3183.6 3979.34 3308.71 4177.51 3483.05 4421.47 3685.48 3102.69 2686.36 3283.16 4106.27 3456.76 4321.47 3644.86 4583.3 3764.05 3213.37 2697.92 3267.12 2685.15 3246.05 2751.71 2326.9 1994.43 2255.77 1928.28 2237.63 2666.08 3102.98 2569.65 2978.9 2459.29 2824.46 2340.23 2053.24 1800.26 2135.89 1853.25 2206.99 1888.95 1669.97 1499.05 1724.38 1529.73 1756.05 2025.48 2354.11 2019.42 1760.44 1529.78 1363.88 1556.57 1770.95 1553.61 1372.75 1209.82 1066.38 1200.36 1339.55 1481.86 1624.1 1766.39 1905.57 1656.04 1436.7 1275.48 1195.45 1345.09 1545.99 1427.21 1246.25 1106.74 981.652 1063.89 1138.07 1025.5 929.312 846.716 784.312 863.022 955.497 880.842 794.062 720.661 657.642 725.092 804.726 897.006 1010.54 1141.46 1302.99 1177.25 1033.17 914.216 821.593 926.269 1054.81 936.333 825.495 733.789 655.094 732.248 813.29 729.659 657.591 596.27 537.293 592.645 657.281 588.433 530.807 481.14 428.038 472.373 523.514 582.501 651.429 731.82 826.323 940.571 1067.44 1207.57 1362.37 1193.47 1336.46 1168.72 1307.59 1456.51 1624.93 1415.43 1586.98 1379.63 1544.64 1741.27 1967.38 2236.54 2551.15 2963.12 2444.79 2827.45 2353.34 2701.84 2263.85 2623.61 2215.46 2516.72 2946.19 2465.35 2840.45 2403.71 2775.03 2375.95 2688.3 2314.15 2689.82 2332.75 2039.76 1844.08 2079.98 1831.95 2081 1855.96 2117.59 1872.2 2149.42 1910.06 1674.4 1482.98 1653.04 1467.89 1647.62 1465.13 1628.43 1440.37 1639.02 1817.68 2063.19 2288.85 2040.46 2302.73 2032.51 2319.65 2550.65 2937.97 3284.99 3739.62 4407.87 4963.58 6114.5 7050.18 8753.82 10717.9 7977.29 6668.5 5647.53 4939.89 4119.5 4781.11 5335.84 6396.44 7178.44 8762.33 9998.05 7627.68 9028.66 7039.4 7828.55 8658.13 9459.96 10236.4 10911.5 11451.9 11946.6 9102.76 8778.9 8393.39 6761.41 7057.31 7301.96 6003.35 5803.69 5564.41 5302.39 6424.41 7931.68 7428.84 6896.25 6336.65 5257.55 5674.05 6063.19 5018.87 4710.57 4377.63 3602.59 3880.09 4139.04 4375.47 4591.4 4791.14 4965.58 5113.82 5244.55 5365.9 5479.09 5591.43 5684.17 5756.37 5814 4868.07 4805.22 4726.49 3902.28 3981.53 4054.22 3341.06 3273.38 3203.61 3132.17 3820.38 4633.85 4539.74 4440.98 4334.38 3549.49 3645.95 3735.46 3057.86 2979.22 2892.57 2349.64 2430.19 2501.35 2566.18 2627.84 2687.51 2745.3 2253.88 2202.65 2149.16 1735.13 1786.44 1835.06 1466.07 1417.68 1365.09 1306.91 1679.16 2092.93 2031.44 1961.73 1884.45 1472.49 1546.71 1616.19 1243.33 1175.72 1103.55 1024.87 1392.71 1801.85 2260.87 2795.32 3440.99 4216.56 4081.39 3926.17 3756.15 3040.57 3184.75 3318.85 2688.32 2573.45 2448.6 2311.64 2883.12 3571.9 3369.35 3149.48 2917.07 2332.01 2526.8 2711.07 2162.75 2002.95 1831.5 1376.1 1538.03 1686.51 1823.04 1948.32 2062.34 2165.67 1712.48 1613.7 1504.61 1101.71 1208.04 1304.9 938.496 844.504 747.3 649.918 985.896 1384.92 1253.65 1112.78 973.349 642.209 751.839 868.198 556.678 468.776 387.912 314.409 539.985 839.055 1211.47 1649.1 2129.42 2675.7 3314.7 4035.48 4833.56 5775.5 5228.14 6238.48 5641.12 6919.01 5821.35 5300.46 4511 4127.93 3553.43 3094.29 3593.54 3895.94 4507.69 4909.6 4230.92 4733.46 4005.18 4411.71 3687.12 3343.6 3005.39 3608.77 3247.35 3845.95 3380.22 3081.72 2656.5 2213 2566.06 2873.69 2365 2681.44 2160.5 2439.32 2727.37 3020.16 2430.49 2184.96 1937.29 1485.24 1700.13 1918.92 1454.7 1269.52 1092.67 930.627 1282.94 1691.7 1466.46 1886.92 1636.87 2075.65 1781.59 1551.92 1955.65 2406.91 2842.57 3243.6 3648.53 4157.31 3773.44 3209.78 2929.3 2599.45 2843.5 3270.01 2840.96 2529.78 2245.68 1932.02 2244.53 2564.67 2286.94 2044.23 1778.61 1506.75 1741.91 2019.79 1702.27 1430.22 1243.71 1005.78 1164.17 1381.16 1607.39 1861.53 2184.12 2434.72 2026.71 1801.19 1499.87 1194.74 1447.79 1639.06 1304.42 1135.14 932.193 804.804 1044.43 1310.89 1100.82 934.241 792.142 603.843 729.499 859.756 650.709 548.343 440.9 307.349 390.428 471.583 594.202 702.507 861.197 1009.74 1204.51 1402 1068.75 1257.24 929.371 1098.75 784.035 651.512 534.891 779.33 646.328 903.873 750.111 625.954 503.768 336.925 427.638 527.249 343.633 431.702 268.864 337.205 423.768 523.694 636.447 761.626 900.993 1050.18 713.177 598.497 493.44 289.374 362.266 446.33 251.96 205.389 172.821 146.169 233.5 399.878 318.915 255.377 209.698 138.938 162.693 193.639 126.378 108.75 94.6634 81.8205 119.068 175.264 148.644 220.163 183.34 274.837 223.348 188.167 274.406 414.212 322.26 268.42 216.441 156.094 189.769 221.035 156.791 135.693 113.256 82.0802 96.9574 112.205 132.137 154.753 108.689 126.76 88.4131 102.636 71.2286 61.6539 53.6191 76.3818 65.8917 93.3046 80.1041 69.1528 59.2424 42.5675 49.2619 56.9596 40.3891 46.4502 32.6794 37.5948 42.946 49.4384 56.3717 64.8926 73.853 84.9575 96.6259 111.326 127.415 148.545 174.734 210.999 261.828 324.079 392.445 466.059 543.539 623.429 702.594 778.81 849.044 914.099 975.414 1033.34 1087.29 1137.01 846.702 797.518 745.412 506.068 554.187 600.199 399.945 358.679 316.673 274.464 455.588 690.669 632.727 570.844 506.914 300.362 351.51 403.775 232.879 191.921 154.822 80.2014 95.0553 115.159 143.394 176.318 210.787 245.128 130.619 105.449 85.9442 45.9182 53.2054 63.9987 34.8597 30.8206 27.8626 25.4574 40.5727 71.3463 60.4557 53.3716 47.7552 30.5959 33.3693 36.498 23.4549 21.6994 20.0771 18.5931 28.2139 43.3913 69.4406 124.901 250.766 442.059 378.83 318.239 261.359 135.01 164.021 203.929 105.513 89.9888 79.5725 71.1463 115.683 210.36 170.69 144.452 123.284 78.5679 88.9753 99.8352 63.8331 57.6786 51.7432 34.4203 38.0263 41.9449 46.0841 50.8608 55.7898 62.2343 39.6886 36.2813 33.2934 22.0025 23.9253 25.9852 17.184 15.8693 14.622 13.4473 20.1741 30.3863 27.7822 25.2685 22.9809 15.3859 16.8696 18.4823 12.3433 11.3018 10.3326 6.96315 7.59734 8.2749 8.99552 9.75902 10.57 11.4247 12.3332 13.2923 14.3146 15.4082 16.5869 17.909 19.4103 21.2362 13.6597 12.6617 11.7743 7.81776 8.37993 8.99175 5.98229 5.5881 5.22213 4.88017 7.29538 10.9629 10.2128 9.50814 8.8454 5.91287 6.34661 6.80671 4.55922 4.25695 3.97181 2.68358 2.87157 3.07083 3.28244 3.50771 3.74849 4.00654 2.70083 2.53037 2.37131 1.61607 1.72148 1.83442 1.25809 1.18301 1.11294 1.04726 1.51732 2.22238 2.08246 1.95073 1.82645 1.25477 1.33719 1.42455 0.985551 0.927416 0.872546 0.820664 1.17685 1.70898 2.50591 3.70228 5.50244 8.21948 7.62793 7.06908 6.53995 4.40206 4.74881 5.11512 3.44749 3.20666 2.97894 2.76375 4.07514 6.04093 5.56977 5.12675 4.71108 3.20224 3.47542 3.76604 2.56064 2.36921 2.1892 1.50756 1.62659 1.75308 1.88713 2.02906 2.17922 2.33794 1.59792 1.49297 1.39361 0.967472 1.03348 1.10316 0.771515 0.725069 0.681002 0.639239 0.905012 1.29965 1.21084 1.12697 1.04787 0.737271 0.790029 0.845907 0.599703 0.562241 0.526819 0.493327 0.687479 0.973477 1.39557 2.02014 2.94609 4.32157 6.36872 9.42175 13.9842 20.8234 31.1209 46.7115 70.5211 108.045 94.825 83.6974 73.911 49.5593 55.9286 62.5304 41.7398 37.5212 33.3998 29.8744 44.0748 65.0869 57.5008 50.4283 44.4882 30.4907 34.4981 39.0034 26.5155 23.6051 20.9136 14.369 16.1547 18.0694 20.2619 22.5821 25.2236 28.0039 18.8338 17.0006 15.3 10.3869 11.4925 12.6944 8.5785 7.79186 7.06733 6.39773 9.37139 13.7637 12.3373 11.0657 9.88879 6.81663 7.59317 8.43842 5.78453 5.2224 4.70861 4.24225 6.12 8.84726 12.8065 18.5453 26.8534 38.8902 34.2631 29.9084 26.3156 18.3919 20.8348 23.7174 16.4174 14.5155 12.8465 11.3383 16.1389 22.9679 20.1925 28.5812 24.8807 35.0425 30.4706 21.7576 15.507 17.6428 12.5017 14.2437 10.038 8.85554 7.84269 11.034 9.69668 13.5736 18.9836 26.5148 36.9789 51.5134 71.6345 99.2342 136.642 186.818 255.825 358.327 495.607 655.192 838.757 1050.98 1297.45 1570.3 1818.16 1598.46 1832.58 1610.75 1432.32 1236.87 1078.65 1279.83 1108.78 1294.46 1145.42 1314.28 1166.77 1326.31 1494.92 1692.29 1939.68 1732.89 2001.21 1770.94 2061.32 1826.42 2139.53 1893.18 1681 1501.18 1344.41 1178.77 1310.71 1458.29 1628.98 1421.17 1583.98 1390.43 1545.39 1362.46 1521.16 1345.52 1187.97 1055 1204.54 1079.27 1227.31 1100.79 1250.4 1125.06 1278.74 1151.19 1033.51 898.174 1008.5 872.45 984.235 844.153 958.318 813.677 931.514 783.14 899.293 1030.46 867.871 997.361 830.4 965.832 797.399 922.515 755.597 889.579 1029.99 1205.3 1389.26 1158.44 1340.06 1101.7 895.122 760.352 947.688 801.038 989.472 844.421 721.891 609.597 518.414 648.634 549.488 680.533 584.173 717.07 614.876 749.255 647.506 528.647 426.603 498.048 398.189 468.909 371.212 436.206 341.578 406.277 482.375 575.07 680.905 536.59 637.016 494.707 595.068 712.597 550.12 451.165 371.251 274.974 329.873 408.296 292.646 241.926 205.493 173.307 230.518 307.081 410.486 339.574 447.126 372.968 314.291 242.46 285.873 219.02 257.641 195.98 148.467 126.352 166.893 142.551 186.367 159.521 206.722 266.278 228.121 291.823 248.781 315.604 271.237 341.272 292.819 365.729 453.535 557.417 677.742 586.743 708.629 614.693 737.628 642.235 765.377 669.167 792.647 923.33 1059.31 1208.52 1086.13 1239.71 1114.34 1273.87 1142.26 1020.73 908.345 1043.22 924.726 1059.1 936.454 815.398 705.979 802.172 690.662 785.358 887.788 996.804 865.447 972.317 842.327 947.624 818.455 719.103 630.972 742.855 652.834 765.244 672.862 592.237 523.093 609.086 539.047 623.584 717.841 823.357 726.444 645.06 574.934 504.381 565.245 635.709 553.242 492.357 439.671 393.95 451.853 514.723 462.734 417.536 378.157 331.664 366.452 406.226 354.096 319.265 288.721 249.463 276.097 306.422 341.052 380.695 426.202 478.64 411.548 463.327 395.816 446.762 505.519 573.644 486.716 553.591 466.942 532.308 607.724 694.773 583.795 509.98 446.409 372.108 425.238 487.003 559.095 463.555 533.47 439.629 507.206 415.131 480.916 390.839 315.315 272.224 337.319 292.308 359.704 312.246 381.726 332.346 403.618 352.319 308.227 270.31 326.397 391.605 344.385 410.671 362.054 429.122 379.263 335.995 298.391 351.59 313.092 366.528 327.357 279.539 237.069 265.639 223.875 251.571 283.364 319.929 268.145 303.533 252.845 286.958 237.577 209.289 184.798 223.306 197.668 237.426 210.718 187.454 167.158 199.71 178.586 212.093 250.216 293.16 263.248 237.021 213.969 182.233 202.031 224.549 190.224 171.035 154.163 129.59 143.858 160.088 133.885 149.418 124.259 139.051 155.978 175.384 145.087 163.55 134.517 152.003 172.166 195.456 222.425 253.666 290.028 237.188 271.836 220.906 253.73 204.837 235.948 189.215 218.217 252.663 201.122 232.868 183.982 214.193 167.983 194.925 151.791 177.168 136.721 117.513 101.405 130.912 112.763 144.459 125.07 159.09 137.542 173.787 150.791 119.458 94.1033 108.22 84.6852 97.7461 75.9699 87.5513 67.6296 78.1178 90.4468 104.95 122.251 93.0805 108.504 82.1176 95.2279 111.642 130.071 153.041 180.008 212.151 154.928 134.116 113.094 83.1913 99.3201 113.224 82.7502 72.9495 61.1098 53.8767 72.6814 97.4271 83.2679 71.5796 61.7369 46.1242 53.6549 61.7164 45.5931 40.0446 34.304 25.4483 29.7178 33.6417 39.6544 44.8743 53.1769 60.4275 44.0071 38.5737 32.9013 24.0526 27.9006 31.9203 23.0599 20.148 17.5216 15.3859 21.1533 29.0172 24.7971 21.9312 18.85 13.9411 16.1151 18.2429 13.3837 11.8074 10.2891 9.10724 12.3406 16.6687 22.4218 30.0209 40.0274 53.1956 70.4959 60.9711 80.1804 69.2133 59.9001 51.9745 45.2085 58.7409 51.0865 65.9314 57.4798 73.7338 64.2444 81.8993 103.872 131.024 164.322 143.156 178.377 155.66 192.736 168.597 207.451 181.872 159.824 140.783 124.3 101.079 114.461 129.921 147.819 119.449 136.21 109.411 124.973 99.7706 114.219 90.6295 71.5348 62.5926 79.2268 69.4593 87.3997 76.7314 95.9928 84.4343 105.02 92.5505 81.7592 72.3987 89.4764 110.009 97.5922 119.325 106.101 129.013 114.993 102.743 92.0178 111.308 99.9469 120.258 108.28 89.9607 74.3386 82.6092 67.9221 75.6644 84.4888 94.5672 77.3563 86.7837 70.6158 79.3941 64.2626 57.176 50.9905 62.9571 56.2613 69.1168 61.9008 55.568 49.9984 61.1149 55.1172 67.0528 81.1644 97.7286 117.02 139.299 164.788 193.659 226.008 261.845 301.096 343.622 389.25 437.809 489.142 543.068 599.252 657.327 716.474 775.156 831.216 885.366 941.508 1001.08 1065.17 1134.89 1211.46 1296.3 1221.49 1153.68 1092.01 1011.04 1071.16 1137.64 1062.15 997.037 938.469 885.552 956.471 1035.76 984.292 937.086 893.679 819.741 861.352 906.766 837.552 793.858 753.954 695.16 733.43 775.462 821.788 873.051 930.027 993.672 931.048 869.004 813.688 759.333 812.914 873.205 819.034 760.609 708.789 662.56 711.436 764.099 719.428 679.016 642.316 594.382 629.569 668.404 621.127 583.817 550.086 519.477 562.385 608.873 660.201 717.403 781.511 853.669 816.709 782.492 750.748 683.713 713.792 746.3 683.831 652.916 624.38 597.979 655.82 721.241 693.757 668.11 644.132 583.257 605.77 629.902 573.5 550.755 529.579 482.046 502.001 523.473 546.627 571.648 598.749 628.173 578.303 550.276 524.514 481.977 506.485 533.195 491.61 466.16 442.85 421.442 459.43 500.773 478.843 458.54 439.702 401.608 419.416 438.636 401.732 383.539 366.708 333.568 349.394 366.524 385.113 405.341 427.413 451.569 478.09 507.304 539.601 575.451 615.403 660.206 710.382 766.955 713.006 658.502 610.422 560.863 606.148 657.63 602.478 554.554 512.405 475.127 520.799 567.784 529.84 495.874 465.341 424.739 453.334 485.179 441.984 412.36 385.768 348.53 373.125 400.509 431.138 465.55 504.447 548.685 496.84 456.307 420.629 377.78 410.323 447.185 399.925 366.564 337.063 310.844 348.894 389.013 360.867 335.691 313.054 279.375 300.1 323.155 287.436 266.455 247.588 230.55 260.67 292.629 326.346 361.79 398.951 437.778 412.801 390.086 369.36 335.035 354.384 375.602 340.084 320.361 302.377 285.923 317.331 350.387 332.969 316.931 302.123 272.319 286.127 301.084 270.821 256.919 244.083 217.379 229.265 242.139 256.122 271.356 288.005 306.26 274.128 257.307 241.965 214.255 228.308 243.717 215.122 201.106 188.326 176.648 201.399 227.927 215.043 203.184 192.238 168.756 178.759 189.606 165.945 156.111 147.054 138.692 159.508 182.11 206.374 232.198 259.536 288.414 318.909 351.1 385.075 422.188 463.463 509.824 562.214 621.672 600.596 580.783 562.122 506.644 524.021 542.509 491.361 474.071 457.849 442.602 490.281 544.515 527.872 512.112 497.161 446.444 460.257 474.845 428.245 414.7 401.899 362.573 374.477 387.093 400.487 414.734 429.916 446.125 405.871 390.639 376.393 341.953 355.351 369.693 336.596 323.087 310.478 298.685 329.412 363.043 350.509 338.718 327.606 296.185 306.594 317.649 287.631 277.249 267.476 258.257 286.363 317.113 351.318 389.779 433.342 482.951 469.421 456.514 444.179 397.735 409.04 420.892 378.282 367.356 356.955 347.034 386.935 432.37 421.044 410.161 399.686 357.159 366.682 376.596 337.555 328.481 319.778 286.676 294.679 303.033 311.772 320.929 330.545 340.659 307.187 297.778 288.842 259.93 268.281 277.078 249.542 241.286 233.446 225.984 251.986 280.339 272.232 264.486 257.071 230.245 237.175 244.412 218.866 212.059 205.534 182.318 188.479 194.896 201.597 208.613 215.977 223.725 231.898 240.537 249.693 259.418 269.771 280.819 292.634 305.3 275.69 263.849 252.804 226.322 236.626 247.67 221.164 210.894 201.309 192.341 216.682 242.475 232.792 223.693 215.122 191.133 199.143 207.642 183.93 176.022 168.57 147.517 154.4 161.707 169.485 177.781 186.651 196.159 172.712 163.973 155.826 135.568 142.978 150.938 130.955 123.782 117.116 110.909 128.656 148.214 141.087 134.398 128.108 110.461 116.141 122.194 105.119 99.7059 94.6368 89.8807 105.119 122.181 141.022 161.53 183.566 207.028 199.366 192.096 185.18 163.121 169.596 176.399 154.864 148.537 142.52 136.785 156.945 178.585 172.279 166.234 160.425 139.938 145.377 151.038 131.305 126.059 121.028 103.866 108.452 113.245 118.263 123.525 129.056 134.879 116.586 111.292 106.276 90.8485 95.3382 100.087 85.4103 81.201 77.2306 73.4793 86.5967 101.514 96.9845 92.6697 88.5525 75.0846 78.7313 82.5634 69.929 66.5637 63.3685 53.2561 56.032 58.9612 62.0571 65.3348 68.8107 72.5031 76.4325 80.6216 85.0954 89.8823 95.0136 100.525 106.455 112.85 119.759 127.24 135.356 144.183 153.805 164.316 175.833 188.485 202.415 217.807 234.859 253.807 274.943 298.608 325.204 355.228 313.246 286.397 262.582 229.156 250.317 274.155 238.128 217.13 198.486 181.882 210.309 241.377 222.43 205.445 190.171 164.824 178.383 193.472 167.054 153.776 141.853 121.276 131.662 143.239 156.177 170.673 186.956 205.296 175.722 159.84 145.744 123.646 135.745 149.383 126.174 114.558 104.256 95.0969 112.885 133.201 122.013 112.008 103.041 87.0381 94.7177 103.291 86.9351 79.6449 73.1177 67.2599 80.1423 94.9827 111.935 131.12 152.605 176.396 163.933 152.626 142.349 122.483 131.565 141.565 121.433 112.669 104.721 97.4972 114.213 132.977 124.413 116.572 109.373 93.4483 99.7723 106.671 90.9149 84.9021 79.4007 67.1134 71.8612 77.056 82.7521 89.0109 95.9043 103.514 87.7248 81.172 75.2419 63.2728 68.3363 73.9357 61.9905 57.2391 52.945 49.0552 58.6834 69.8629 64.9724 60.5165 56.447 47.2535 50.7179 54.514 45.5236 42.3099 39.3791 32.6744 35.1396 37.844 40.8174 44.0938 47.7124 51.718 56.1622 61.1045 66.6135 72.7687 79.662 87.3998 96.1059 105.924 88.4147 80.1751 72.8695 60.4403 66.5307 73.3997 60.6209 54.9302 49.8841 45.3995 55.0282 66.3772 60.5946 55.432 50.8123 42.054 45.9044 50.2077 41.405 37.8388 34.6479 28.4224 31.0525 33.9915 37.2831 40.9779 45.1345 49.8212 40.7537 45.0896 36.718 40.7134 45.2448 50.3951 40.8378 45.5801 36.7598 41.1076 46.0754 51.7637 58.2906 65.7963 74.4442 59.5827 67.5355 53.7566 61.0252 48.3043 54.9295 43.2401 49.2142 56.1835 43.9174 50.1525 38.9762 44.5952 34.4444 39.4032 30.2586 34.6474 39.7503 45.7331 52.6877 39.937 46.1244 34.705 25.9892 22.7222 30.1703 26.3094 34.7654 30.2695 26.4478 23.1407 20.3026 26.495 23.2438 30.1602 26.4865 34.1792 30.0192 38.5178 33.8835 26.4434 20.5531 23.3007 18.0163 20.4446 15.7234 17.845 13.6519 15.5019 17.6318 20.1099 22.9648 17.3672 19.8247 14.8846 17.0563 19.3968 14.443 12.7572 11.1439 8.32497 9.50692 10.7353 7.96474 7.06296 6.20753 5.51254 7.37596 9.84249 13.0942 11.4999 15.2334 13.3904 11.7961 8.94785 10.139 7.65569 8.65588 6.49939 4.87049 4.33168 5.76541 5.1069 6.76814 6.00226 7.91525 10.4103 9.20754 12.0514 10.6581 13.8803 12.2816 15.9156 14.0865 18.1632 23.3341 29.8643 38.063 33.5954 42.5906 37.6359 47.4618 42.0048 52.6933 46.7099 41.5033 36.9625 32.9939 26.3698 29.5241 33.1302 37.2612 29.596 33.3369 26.3465 29.7156 23.3661 26.3878 20.6446 16.0904 14.2828 18.3019 16.2624 20.7384 18.4461 23.4109 20.8492 26.3349 23.4854 20.9906 18.8016 23.6048 29.518 26.4671 32.9464 29.5946 36.6721 33.0051 29.7701 26.91 33.1874 30.0608 36.9156 33.5105 27.2859 22.1261 24.376 19.687 21.7306 24.036 26.6421 21.4183 23.7836 19.0378 21.1759 16.877 15.1813 13.6841 17.1517 15.4844 19.3289 17.4795 15.839 14.3807 17.8714 16.2551 20.124 24.8177 30.4828 27.7849 25.3755 23.2189 18.8928 20.6524 22.6177 18.3387 16.7433 15.3145 14.0322 17.3142 21.2845 26.0636 31.7862 38.6008 46.6688 42.9439 39.5875 36.5562 30.1755 32.7005 35.4969 29.214 26.8969 24.805 22.9122 27.8906 33.8124 31.3233 29.0603 26.9984 22.2192 23.9348 25.8183 21.1958 19.6362 18.216 14.8793 16.0493 17.3345 18.749 20.309 22.0333 23.9433 19.5456 17.9789 16.5646 13.4612 14.6159 15.8948 12.879 11.8396 10.901 10.0517 12.4163 15.2849 14.1247 13.0707 12.1111 9.82489 10.6084 11.469 9.2815 8.58176 7.94475 7.36373 9.11027 11.2358 13.8118 16.92 20.6533 25.1157 30.4226 36.7004 44.0853 52.7221 62.7624 74.3553 87.6424 102.75 96.645 91.0043 85.7821 72.813 77.3686 82.2988 69.7158 65.4432 61.5011 57.8542 68.5944 80.9385 76.4367 72.2446 68.3337 57.6475 61.0385 64.6789 54.4739 51.3358 48.4163 40.4888 42.9874 45.6749 48.573 51.7047 55.093 58.7672 49.3062 46.1663 43.2728 36.0593 38.5143 41.1816 34.2468 31.9947 29.9233 28.0143 33.7957 40.6023 38.1334 35.8445 33.7182 27.967 29.7652 31.7034 26.251 24.6192 23.1069 21.7022 26.2962 31.7407 38.1616 45.694 54.4822 64.6781 61.2549 58.0436 55.0257 46.1475 48.7498 51.5224 43.1516 40.7728 38.5428 36.4485 43.7009 52.1844 49.505 46.9737 44.5786 37.1685 39.2228 41.3967 34.4785 32.6221 30.8698 25.5411 27.0276 28.6042 30.2792 32.0619 33.962 35.9909 29.898 28.1768 26.5663 21.9297 23.2873 24.74 20.3945 19.1754 18.0372 16.9728 20.6591 25.0572 23.6407 22.3089 21.0545 17.2948 18.348 19.4675 15.9752 15.0387 14.1588 11.5548 12.2863 13.0656 13.8968 14.7845 15.7341 16.7519 17.8449 19.0201 20.286 21.6526 23.1305 24.7317 26.47 28.3611 23.3929 21.8133 20.3621 16.7027 17.9082 19.221 15.735 14.6493 13.6526 12.7358 15.5933 19.026 17.7936 16.6547 15.6003 12.7518 13.626 14.5706 11.891 11.111 10.3896 8.43868 9.03151 9.67273 10.3675 11.1218 11.9421 12.8359 10.4358 9.70315 9.03096 7.31065 7.85921 8.45719 6.83277 6.34664 5.90075 5.49101 6.8065 8.41305 7.84402 7.31904 6.83387 5.51871 5.91423 6.34234 5.11384 4.76605 4.4448 4.14758 5.15267 6.38471 7.88964 9.72112 11.9414 14.6221 13.7131 12.8671 12.0783 9.83644 10.4888 11.1888 9.10071 8.52393 7.98681 7.48585 9.22761 11.3414 10.6522 10.0067 9.40111 7.62673 8.126 8.65858 7.01794 6.58027 6.17027 4.97899 5.31439 5.67268 6.05596 6.46655 6.90703 7.38031 5.96822 5.58138 5.22152 4.20543 4.49835 4.81336 3.87216 3.61654 3.37894 3.15778 3.93266 4.88626 4.57347 4.28124 4.00785 3.2187 3.44078 3.6783 2.95163 2.75921 2.5794 2.41115 3.01079 3.75176 4.6646 5.78568 7.15801 8.83216 10.867 13.3309 16.3025 19.8713 24.1374 29.2134 35.2241 42.3087 50.6213 60.3301 71.609 84.6179 99.4698 116.191 134.701 154.829 176.386 199.261 223.592 249.956 278.996 311.417 347.993 389.586 437.171 491.886 555.072 628.332 713.583 813.153 929.908 1067.46 1230.48 1425.29 1659.24 1940.97 2305.52 2823.15 3588.67 4787.76 4726.08 4664.58 4603.16 3423.01 3477.92 3533.1 2772.72 2722.94 2673.56 2624.54 3368.34 4541.74 4480.26 4418.62 4356.74 3205.16 3259.48 3313.85 2575.85 2527.45 2479.33 1992.79 2036.13 2079.86 2123.99 2168.53 2213.49 2258.88 1898.74 1856.83 1815.29 1547.86 1584.73 1622.04 1392.99 1361 1329.51 1298.51 1511.48 1774.17 1733.48 1693.21 1653.38 1405.07 1440.12 1475.58 1267.94 1237.73 1207.8 1178.05 1370.4 1614.03 1949.85 2431.43 3150.84 4294.54 4231.94 4168.84 4105.2 2987.15 3041.91 3096.45 2383.72 2336.12 2288.55 2240.92 2932.11 4040.91 3975.91 3910.12 3843.48 2764.86 2821.01 2876.75 2193.21 2145.38 2097.42 1656.26 1697.94 1739.66 1781.43 1823.25 1865.17 1907.32 1575.25 1537.22 1499.72 1267.97 1301.97 1336.08 1148.32 1118.39 1088.36 1058.5 1234.09 1462.39 1425.19 1388.13 1351.22 1133.49 1166.84 1200.38 1028.87 999.454 970.257 838.451 863.336 888.388 913.647 939.135 964.837 990.641 1016.46 1042.33 1068.3 1094.46 1120.89 1147.65 1174.81 1202.42 1042.96 1018.89 995.199 866.409 887.222 908.372 794.099 775.411 757.049 738.981 845.892 971.83 948.737 925.866 903.172 785.791 805.609 825.635 721.182 703.632 686.314 601.667 616.838 632.246 647.91 663.851 680.091 696.658 613.257 598.538 584.144 515.715 528.504 541.613 479.836 468.127 456.729 445.617 503.22 570.05 556.232 542.667 529.334 467.26 479.015 490.994 434.766 424.154 413.762 403.57 455.71 516.21 586.713 669.215 766.169 880.625 858.216 835.962 813.889 708.422 727.495 746.739 652.316 635.597 619.033 602.598 689.504 792.009 770.309 748.757 727.305 633.416 652.031 670.716 586.273 570.042 553.889 486.289 500.293 514.395 528.6 542.919 557.363 571.953 503.274 490.504 477.881 422.099 433.145 444.344 393.563 383.723 374.039 364.498 411.192 465.39 453.022 440.771 428.63 379.225 389.762 400.416 355.091 345.809 336.642 327.585 368.796 416.595 472.38 537.807 614.844 705.902 813.683 941.265 1100.36 1314.45 1614.61 2049.29 2708.24 3775.9 3707.32 3637.66 3566.85 2535.06 2593.39 2651.11 2000.95 1952.37 1903.49 1854.27 2476.04 3494.85 3421.56 3346.92 3270.87 2294.5 2355.81 2416.31 1804.66 1754.65 1704.2 1321.25 1363.62 1405.8 1447.8 1489.63 1531.33 1572.97 1277.86 1241.47 1205.24 1002.94 1034.95 1067.47 912.474 883.872 855.299 826.72 971.034 1169.03 1132.78 1096.49 1060.17 875.547 907.326 939.161 798.19 769.731 741.369 713.144 843.851 1023.81 1278.67 1653.29 2232.32 3193.31 3114.19 3033.42 2950.9 2040.07 2105.17 2169.24 1601.88 1549.93 1497.39 1444.22 1973.86 2866.5 2780.11 2691.6 2600.8 1767.93 1837.86 1906.48 1390.38 1335.83 1280.55 972.628 1017.41 1061.79 1105.81 1149.48 1192.82 1235.87 987.428 951.003 914.495 749.478 780.835 812.273 685.139 657.476 630.062 602.729 718.132 877.866 841.096 804.178 767.1 624.111 655.441 686.784 575.474 548.332 521.346 445.528 469.227 493.216 517.375 541.633 565.929 590.25 614.682 639.287 664.042 688.931 713.94 739.041 764.142 788.958 684.493 663.025 641.495 559.317 577.782 596.299 521.795 505.858 489.998 474.213 540.933 620.023 598.669 577.444 556.336 486.336 504.456 522.648 458.499 442.848 427.248 377.229 390.633 404.094 417.612 431.191 444.838 458.565 404.66 392.816 381.052 338.082 348.233 358.468 318.629 309.766 300.99 292.294 328.009 369.358 357.731 346.17 334.679 298.239 308.087 318.01 283.675 275.127 266.644 258.22 288.468 323.261 363.882 411.685 468.255 535.311 514.3 493.168 471.948 413.961 432.059 450.172 396.155 380.666 365.24 349.896 395.952 450.789 429.762 408.93 388.33 342.591 360.306 378.068 334.644 319.474 304.356 272.353 285.216 298.15 311.156 324.233 337.381 350.597 311.92 300.653 289.453 259.551 269.134 278.769 249.841 241.49 233.144 224.776 250.005 278.317 267.238 256.216 245.24 221.415 230.961 240.482 216.356 207.846 199.206 190.389 211.806 234.291 259.561 289.281 324.818 367.846 422.199 494.52 592.779 729.841 927.429 1224.49 1696.65 2507.64 2411.98 2313.7 2212.67 1474.09 1549.77 1623.94 1167.61 1109.9 1051.33 991.89 1396.88 2108.79 2002.1 1892.63 1780.39 1156.27 1237.95 1318.16 931.596 870.463 808.522 597.818 646.327 694.388 741.972 789.065 835.666 881.782 692.371 654.668 616.715 498.423 529.957 561.403 467.773 441.077 414.419 387.774 466.784 578.5 540.018 501.277 462.3 371.171 403.15 435.026 361.118 334.44 307.749 281.071 339.126 423.132 548.912 745.828 1073.19 1665.39 1547.71 1427.48 1304.93 816.598 903.181 988.778 682.467 618.566 554.308 489.952 729.314 1180.39 1054.26 927.05 799.724 468.125 554.38 641.72 425.858 362.536 300.694 208.744 254.984 302.776 351.526 400.794 450.259 499.687 383.841 344.532 305.354 243.352 275.105 307.074 254.454 227.974 201.745 175.924 211.995 266.514 228.292 191.064 155.321 123.107 151.513 181.276 150.719 126.391 103.264 91.0006 110.243 130.509 151.553 173.171 195.183 217.45 239.877 262.405 285.001 307.647 330.341 353.103 375.989 399.025 347.453 327.25 307.322 272.452 289.691 307.15 274.308 259.455 244.662 229.887 255.337 287.649 268.097 248.644 229.292 204.707 221.439 238.32 215.195 200.606 186.12 170.689 183.453 196.164 208.845 221.512 234.167 246.838 223.34 212.353 201.293 182.141 192.215 202.088 181.344 172.028 162.402 152.44 171.817 190.119 178.792 167.28 155.557 139.079 150.293 161.207 142.138 131.523 120.653 109.617 127.597 143.612 157.845 171.725 188.127 210.05 190.933 171.98 153.262 139.322 155.415 171.695 157.4 143.131 128.937 114.892 123.525 134.905 117.082 99.951 83.6071 79.0809 93.4575 108.259 101.097 87.5083 74.2656 67.6314 79.9726 92.7085 105.66 118.741 131.85 144.898 131.449 119.108 106.677 92.3446 104.112 115.909 98.5311 87.5336 76.7807 66.4297 80.7715 94.2829 82.0744 70.2136 58.8892 48.9096 58.8908 69.5645 56.6255 47.4887 39.1192 31.5913 39.7631 48.3027 55.9197 61.6346 65.4503 68.4237 73.1268 81.7385 96.5508 121.679 164.825 241.278 384.102 673.621 550.549 432.749 322.901 162.037 229.051 303.799 185.494 134.768 90.7516 55.3052 105.466 224.662 143.19 62.2859 29.9922 16.569 33.0038 57.0469 87.8488 124.168 90.8606 63.6495 40.8542 33.522 51.2069 72.397 62.2394 45.1655 30.8762 19.2983 19.8392 23.2738 11.394 9.83248 10.1821 11.4467 20.1524 30.6445 42.7706 56.9593 54.6421 42.1792 30.9944 30.7167 41.2165 52.8087 49.8424 39.019 29.239 20.6207 21.4131 21.106 12.8015 13.5997 13.4217 12.2187 18.6022 26.3133 35.1609 45.051 38.6261 29.9525 22.3085 18.037 24.3193 31.5552 24.9421 19.1561 14.1857 10.0041 12.7092 15.742 10.364 8.38338 6.62441 5.19321 7.80605 11.0402 14.8965 19.4093 24.6351 30.6127 37.3459 44.8133 52.9734 61.7612 71.0846 80.8345 90.8853 101.106 111.369 121.553 131.558 141.305 150.748 159.865 168.66 177.15 185.369 193.354 201.149 208.793 216.328 223.792 231.218 238.634 246.064 253.525 261.033 268.6 276.237 283.952 291.757 299.657 307.663 315.781 324.022 332.395 340.911 349.58 358.418 367.437 376.653 386.083 395.746 405.662 415.855 426.349 379.829 370.388 361.237 322.368 330.624 339.157 303.369 295.608 288.111 280.855 314.368 352.353 343.714 335.3 327.093 291.699 299.051 306.602 273.819 266.985 260.335 232.175 238.273 244.534 250.978 257.625 264.495 271.611 243.116 236.523 230.156 205.038 211.013 217.189 193.216 187.374 181.711 176.207 199.242 223.991 218.006 212.181 206.496 182.716 188.101 193.603 170.841 165.593 160.445 155.38 177.428 200.931 226.222 253.85 284.528 319.078 311.239 303.563 296.035 263.952 270.669 277.523 247.516 241.314 235.23 229.247 257.359 288.644 281.378 274.225 267.176 238.181 244.487 250.875 223.349 217.518 211.737 187.079 192.531 197.997 203.498 209.052 214.679 220.396 195.466 190.084 184.764 161.961 167.068 172.218 150.38 145.432 140.518 135.632 156.881 179.489 174.24 168.998 163.745 141.662 146.745 151.814 130.765 125.908 121.056 102.307 106.809 111.345 115.917 120.528 125.183 129.886 134.647 139.476 144.386 149.389 154.501 159.738 165.118 170.66 149.423 144.189 139.107 120.022 124.759 129.647 111.535 107.043 102.703 98.5032 115.424 134.163 129.341 124.629 120.014 102.343 106.594 110.951 94.4339 90.486 86.6516 72.9694 76.3684 79.8821 83.5181 87.2849 91.1918 95.2495 80.8522 77.243 73.7792 62.0862 65.121 68.2917 57.4367 54.6771 52.0414 49.5208 59.1777 70.4506 67.2482 64.1637 61.1897 51.1268 53.7056 56.3868 47.1071 44.7928 42.5713 40.4365 48.6439 58.3193 69.6785 82.924 98.1923 115.488 111.041 106.668 102.362 86.2763 90.1633 94.1339 79.2973 75.7664 72.3272 68.9758 82.4697 98.1206 93.941 89.8221 85.7632 71.5121 75.0891 78.7413 65.7092 62.5246 59.4197 49.2364 51.9072 54.6556 57.4844 60.397 63.3974 66.4896 55.5466 52.866 50.2725 41.715 43.9431 46.2511 38.3831 36.4061 34.5013 32.6646 39.5626 47.7617 45.3296 42.9728 40.6879 33.5238 35.4702 37.4821 30.8927 29.1825 27.5315 25.9374 31.6406 38.4725 46.6404 56.3926 68.0096 81.7649 97.8394 116.206 136.554 158.465 181.62 205.986 231.941 260.218 253.342 246.535 239.782 213.455 219.598 225.753 200.246 194.495 188.709 182.863 207.304 233.068 226.374 219.679 212.958 188.533 194.87 201.118 176.933 170.895 164.723 141.559 147.602 153.517 159.311 165.001 170.602 176.135 153.14 147.757 142.303 121.016 126.235 131.414 111.355 106.506 101.661 96.8263 115.757 136.769 131.149 125.444 119.658 99.7895 105.132 110.46 92.0085 87.2171 82.4644 77.7624 94.4469 113.802 135.383 158.399 182.077 206.184 199.327 192.352 185.222 161.703 168.69 175.472 151.904 145.229 138.369 131.328 154.492 177.9 170.351 162.546 154.463 131.447 139.359 147.044 124.121 116.773 109.32 89.4124 96.1001 102.803 109.484 116.108 122.646 129.076 107.89 101.939 95.9713 78.5871 83.8281 89.1207 73.123 68.5579 64.0786 59.6961 73.4162 90.0088 84.0822 78.2211 72.4535 58.5122 63.3611 68.3347 55.4214 51.2647 47.2352 38.1406 41.4773 44.9319 48.4992 52.1733 55.9483 59.8184 63.7772 67.8182 71.9348 76.1199 80.3661 84.6667 89.0157 93.408 77.8285 73.9558 70.1493 57.9471 61.2269 64.5811 53.4416 50.5656 47.7636 45.0349 54.7424 66.4117 62.7461 59.1558 55.6442 45.588 48.5618 51.6137 42.3791 39.7962 37.2865 30.4276 32.5406 34.7205 36.9675 39.2821 41.665 44.1172 36.3242 34.241 32.2215 26.3499 28.0552 29.8183 24.3981 22.9123 21.4784 20.0955 24.7012 30.2645 28.3691 26.5347 24.7611 20.0877 21.5706 23.1083 18.7628 17.4795 16.2454 15.06 18.6596 23.0483 28.3817 34.8503 42.6938 52.2147 48.8705 45.615 42.4513 34.504 37.1499 39.8805 32.4885 30.2021 27.9925 25.8611 31.9448 39.383 36.4133 33.5459 30.7844 24.812 27.0962 29.4747 23.8096 21.8399 19.9539 16.0039 17.5563 19.1827 20.8819 22.6525 24.4934 26.4035 21.3966 19.8063 18.278 14.7042 15.9676 17.2862 13.9232 12.8349 11.7951 10.804 13.4963 16.8125 15.4104 14.0725 12.7996 10.209 11.2483 12.3442 9.86138 8.96743 8.12211 6.44701 7.13197 7.85836 8.62642 9.43634 10.2883 11.1825 12.1192 13.0985 14.1208 15.1866 16.2964 17.4507 18.6505 19.8968 21.1908 22.534 23.928 25.375 26.8771 28.4371 30.058 31.7433 33.4968 35.3229 37.2263 39.2127 41.2878 43.4585 45.732 48.1166 40.154 38.1057 36.1556 29.9673 31.631 33.3809 27.6451 26.1581 24.7462 23.404 28.3835 34.2965 32.522 30.826 29.2032 24.0568 25.4332 26.8738 22.1264 20.909 19.7478 16.1561 17.1308 18.1543 19.2298 20.3614 21.5532 22.8101 18.7538 17.6969 16.6959 13.6457 14.4822 15.3665 12.5506 11.8141 11.1182 10.46 12.8534 15.7468 14.8459 13.9898 13.1756 10.7128 11.3897 12.1024 9.83671 9.24601 8.6857 8.15378 10.0694 12.4006 15.2268 18.6391 22.7407 27.649 26.159 24.7294 23.3569 19.1184 20.2746 21.4811 17.5797 16.5667 15.5976 14.6701 18.0097 22.0384 20.7712 19.5531 18.3819 14.9468 15.9259 16.9462 13.782 12.9316 12.1172 9.79564 10.47 11.1755 11.9136 12.6859 13.4941 14.3404 11.6624 10.9587 10.2877 8.32019 8.87481 9.45731 7.64849 7.16825 6.71165 6.27739 7.79194 9.64767 9.03697 8.45422 7.89816 6.3526 6.8093 7.28872 5.86432 5.4714 5.09768 4.08177 4.38654 4.70744 5.04528 5.40095 5.77544 6.16983 6.58535 7.02336 7.48531 7.97283 8.48779 9.0323 9.60869 10.2194 8.29689 7.79274 7.31742 5.91253 6.30297 6.71746 5.42451 5.08498 4.76541 4.46431 5.54434 6.86882 6.445 6.04418 5.66478 4.55802 4.86845 5.1968 4.18034 3.91233 3.65922 2.93148 3.13718 3.35519 3.58641 3.83179 4.09244 4.36958 3.5116 3.28615 3.07428 2.46147 2.63315 2.81595 2.25357 2.10581 1.96713 1.83687 2.3001 2.87497 2.68733 2.51055 2.3439 1.87076 2.00538 2.14829 1.71441 1.59921 1.49078 1.38868 1.7439 2.18671 2.73729 3.42005 4.26436 5.30546 4.96503 4.64232 4.33628 3.474 3.72327 3.98643 3.1939 2.97999 2.77761 2.58611 3.23787 4.04599 3.77062 3.5094 3.26166 2.6014 2.80215 3.01413 2.40488 2.23341 2.07122 1.64654 1.77721 1.91551 2.06187 2.21672 2.38053 2.55386 2.03837 1.89834 1.76613 1.40507 1.51148 1.62428 1.29249 1.20185 1.11644 1.03594 1.3047 1.64129 1.52343 1.41217 1.30717 1.03659 1.12075 1.21002 0.960088 0.88863 0.821335 0.757992 0.957289 1.20812 1.52313 1.91786 2.41134 3.02678 3.7924 4.74231 5.91764 7.36769 9.15114 11.3373 14.0075 17.2559 16.1734 15.1332 14.1342 11.4146 12.2426 13.1065 10.5909 9.8766 9.19354 8.54081 10.6218 13.1753 12.2556 11.3746 10.5316 8.44601 9.13813 9.86319 7.91766 7.32337 6.75735 5.39443 5.85567 6.34096 6.85089 7.3861 7.94733 8.53537 6.86178 6.37954 5.92016 4.7348 5.1095 5.50354 4.40453 4.08365 3.77903 3.49011 4.3788 5.48291 5.06712 4.6722 4.2976 3.41726 3.72055 4.0409 3.21636 2.95729 2.71245 2.48142 3.13055 3.9428 4.9567 6.21902 7.78628 9.72618 8.9578 8.22613 7.53084 5.99672 6.56207 7.15845 5.70789 5.22348 4.76534 4.33302 5.462 6.87159 6.24806 5.6599 5.10676 4.03747 4.48281 4.95751 3.92609 3.54409 3.18656 2.511 2.79729 3.10385 3.43116 3.77965 4.14977 4.54197 3.60733 3.29074 2.9926 2.36563 2.60515 2.85999 2.26381 2.05923 1.86731 1.68768 2.14103 2.71246 2.44991 2.20451 1.97584 1.55277 1.735 1.93095 1.51999 1.36389 1.21899 0.95617 1.07113 1.19522 1.32876 1.47208 1.62548 1.78931 1.96388 2.14953 2.34663 2.55554 2.77667 3.01044 3.25731 3.51778 2.80421 2.59342 2.39394 1.90065 2.06138 2.23148 1.77292 1.63604 1.50687 1.3851 1.74891 2.20534 2.02722 1.85921 1.70097 1.34432 1.47106 1.60582 1.27044 1.16261 1.06136 0.837309 0.918024 1.0041 1.09576 1.19324 1.29678 1.40664 1.11474 1.02677 0.943979 0.746291 0.812347 0.882613 0.698408 0.642404 0.589816 0.540487 0.684258 0.866132 0.793025 0.724461 0.660259 0.520613 0.571577 0.626074 0.494275 0.451043 0.410664 0.373014 0.473035 0.600244 0.761752 0.966433 1.22533 1.55216 1.41247 1.2816 1.15927 0.912178 1.00952 1.11382 0.87761 0.794665 0.717379 0.645539 0.821554 1.04518 0.93906 0.840628 0.749603 0.587544 0.659478 0.737401 0.578937 0.517367 0.460624 0.361388 0.406071 0.454633 0.507246 0.564086 0.625329 0.691156 0.544247 0.492107 0.443668 0.349234 0.387478 0.428702 0.337978 0.305441 0.275296 0.247435 0.313841 0.398778 0.357288 0.31905 0.283921 0.223538 0.251116 0.281176 0.221757 0.198159 0.17654 0.156803 0.198325 0.251754 0.32041 0.408502 0.521358 0.665705 0.850019 1.08495 1.38385 1.76343 2.24451 2.853 3.62102 4.5882 5.8032 7.32532 9.22635 11.5925 14.5269 18.1537 22.6249 28.1326 34.9274 43.3418 53.8034 66.8059 82.7786 101.805 123.335 146.093 137.441 128.53 119.403 98.2561 106.681 115.062 94.2773 86.7925 79.4064 72.173 89.8587 110.121 100.766 91.4352 82.232 65.6156 73.4616 81.5675 65.1482 58.3844 51.9267 41.0563 46.2794 51.7951 57.579 63.6024 69.8334 76.2381 61.3037 55.9712 50.8298 40.656 44.8627 49.2491 39.5927 35.9957 32.5581 29.2869 36.64 45.8986 41.1949 36.7344 32.5303 25.8323 29.2195 32.8248 26.1886 23.2693 20.5344 17.988 22.67 28.5939 36.1461 45.8145 58.1013 73.2624 64.6255 56.4095 48.6944 38.1061 44.3023 50.9804 40.0796 34.7462 29.8311 25.3434 32.4179 41.5407 34.9903 29.0662 23.775 18.4824 22.609 27.2516 21.2848 17.6495 14.4261 11.3021 13.8321 16.6901 19.8871 23.4309 27.3243 31.565 24.9338 21.5557 18.4624 14.5719 17.038 19.7376 15.6332 13.4713 11.5017 9.72168 12.3376 15.6532 13.124 10.8671 8.87259 6.96648 8.54293 10.3303 8.12657 6.70958 5.46272 4.27398 5.25933 6.38201 7.64907 9.06683 10.6401 12.372 14.2641 16.3162 18.5269 20.8937 23.413 26.0808 28.8924 31.8429 25.5942 23.1731 20.8729 16.6735 18.553 20.5377 16.4412 14.8182 13.2864 11.847 14.9014 18.697 16.6487 14.7305 12.9445 10.247 11.6869 13.2387 10.5011 9.24937 8.09176 6.37422 7.302 8.30853 9.39434 10.5595 11.8038 13.1265 10.4517 9.3777 8.37075 6.6199 7.43189 8.30066 6.57692 5.87662 5.224 4.61849 5.86433 7.43088 6.55785 5.75113 5.00983 3.92939 4.52001 5.16464 4.05935 3.54566 3.07631 2.64996 3.39144 4.33271 5.52422 7.02781 8.91927 11.2921 9.77348 8.38775 7.13279 5.59784 6.59668 7.70299 6.05633 5.17543 4.38249 3.67413 4.70302 6.00521 5.00029 4.11227 3.335 2.5952 3.20692 3.90775 3.04631 2.49456 2.01429 1.55977 1.93597 2.36932 2.86376 3.42311 4.05098 4.75049 3.71815 3.16412 2.66818 2.07592 2.46677 2.90454 2.26508 1.91993 1.61255 1.34081 1.72952 2.22752 1.83903 1.49943 1.20538 0.929986 1.15934 1.42492 1.10245 0.895175 0.716632 0.564282 0.733757 0.953157 1.23627 1.6003 2.06661 2.66164 3.41815 4.37709 5.59087 7.12897 9.08708 11.6004 14.8586 19.1119 15.0569 11.5663 8.58806 6.70149 9.00954 11.7142 9.15062 7.04353 5.24471 3.73283 4.76387 6.09051 4.06835 3.1903 2.50173 1.95827 2.92458 4.10936 5.51809 7.1682 5.62005 4.32345 3.21714 2.51262 3.38205 4.4022 3.44073 2.63843 1.9558 1.38314 1.78208 2.28678 1.52774 1.1867 0.917499 0.706243 1.069 1.51666 2.05154 2.68151 2.08329 1.58975 1.17177 0.902279 1.22792 1.61358 1.2463 0.945768 0.692846 0.4834 0.631524 0.822997 0.541599 0.414185 0.316238 0.241393 0.369464 0.530926 0.726782 0.960336 0.738596 0.557566 0.406338 0.310889 0.427336 0.567302 0.435434 0.327478 0.238049 0.165451 0.215849 0.282272 0.184502 0.141453 0.109006 0.0846326 0.127347 0.182656 0.251166 0.33424 0.433764 0.551807 0.690526 0.851998 1.03816 1.25093 1.4922 1.76378 2.06737 2.40452 2.77663 3.18495 3.63058 4.11447 4.63744 5.20016 4.10376 3.65289 3.23496 2.53946 2.87262 3.23293 2.54289 2.25565 1.99068 1.7473 2.23273 2.84925 2.49494 2.17111 1.87674 1.46299 1.69539 1.95166 1.52481 1.32241 1.13929 0.88652 1.03055 1.19009 1.36586 1.55857 1.76885 1.9973 1.56681 1.3855 1.21898 0.952618 1.08423 1.22782 0.961374 0.84788 0.744068 0.649524 0.832521 1.06671 0.928107 0.802584 0.689513 0.536241 0.624856 0.723439 0.563827 0.486536 0.417204 0.355369 0.457045 0.588244 0.757245 0.974546 1.25343 1.61068 1.37168 1.15839 0.96937 0.750617 0.898443 1.06564 0.827253 0.696417 0.581009 0.479966 0.620881 0.80308 0.657943 0.532385 0.424812 0.327208 0.410476 0.50793 0.392219 0.316711 0.25237 0.195112 0.244747 0.303152 0.371204 0.449767 0.539714 0.64192 0.498103 0.418394 0.348406 0.270268 0.324639 0.386704 0.300565 0.252314 0.210138 0.173561 0.223004 0.287422 0.23473 0.189626 0.151397 0.118087 0.147487 0.182268 0.142114 0.115332 0.092753 0.0735177 0.0908365 0.111433 0.135678 0.163945 0.196614 0.234071 0.276706 0.32491 0.37907 0.439567 0.506779 0.581073 0.662811 0.752345 0.588649 0.518145 0.453901 0.354843 0.405254 0.460677 0.360796 0.3173 0.277806 0.242104 0.309192 0.395617 0.34299 0.295711 0.253468 0.198253 0.231155 0.268049 0.209984 0.181234 0.155642 0.122802 0.142685 0.16506 0.190103 0.217985 0.248881 0.282966 0.222407 0.195736 0.171599 0.135679 0.154513 0.175356 0.138848 0.122579 0.107899 0.0947131 0.118736 0.149851 0.130352 0.112957 0.0975271 0.0780966 0.0900603 0.103569 0.0829263 0.0724447 0.0631759 0.0550286 0.0675645 0.0839209 0.10524 0.132995 0.169084 0.215945 0.182824 0.153785 0.128513 0.101378 0.120904 0.143387 0.113082 0.0956941 0.0806234 0.0676681 0.0845572 0.106696 0.088027 0.0722054 0.0589356 0.0478962 0.0580547 0.0701967 0.0566315 0.0473207 0.0395489 0.0332437 0.0391873 0.0463235 0.0547999 0.06477 0.0763914 0.0898261 0.0720004 0.0616291 0.052674 0.043454 0.050351 0.0583524 0.0479135 0.0417431 0.0364325 0.0318996 0.037558 0.0450056 0.0384983 0.0330305 0.0284854 0.0248971 0.0283738 0.0325634 0.0280655 0.024854 0.0221926 0.0200129 0.0220464 0.0247529 0.0283531 0.0331395 0.0394976 0.0479354 0.0591205 0.0739278 0.0935012 0.119331 0.153355 0.198081 0.25675 0.333529 0.256813 0.193026 0.140665 0.108925 0.148857 0.197732 0.152765 0.115389 0.0849952 0.0608622 0.0770437 0.098628 0.0663788 0.0527435 0.0425816 0.0350234 0.0487582 0.0669969 0.09009 0.118621 0.0927524 0.0710083 0.0534883 0.0433685 0.0566441 0.0731931 0.0584308 0.0458502 0.0357999 0.027976 0.0329874 0.0397219 0.0294118 0.0252519 0.0221721 0.0198947 0.0242515 0.0301474 0.0377517 0.0473074 0.0389376 0.0316836 0.025931 0.022789 0.0271419 0.0326477 0.0279257 0.0237459 0.0204497 0.0179159 0.0194356 0.0214864 0.0182124 0.0169711 0.0160561 0.0153825 0.0167906 0.0187093 0.0212086 0.0243838 0.0217289 0.0193139 0.0174152 0.0164537 0.0178999 0.0197401 0.0182508 0.0168452 0.0157396 0.0148885 0.0153426 0.015958 0.0148873 0.0145241 0.0142585 0.0140651 0.0145539 0.0152099 0.0160589 0.0171362 0.0184857 0.0201552 0.0221951 0.0246588 0.0276036 0.0310893 0.0351785 0.0399362 0.04543 0.0517296 0.0589065 0.067034 0.0761866 0.0864399 0.0978707 0.110557 0.124576 0.140009 0.156935 0.175436 0.195594 0.217493 0.241219 0.266859 0.294503 0.324244 0.356181 0.390413 0.427048 0.466197 0.507979 0.552522 0.599963 0.650449 0.704138 0.761203 0.821833 0.886234 0.95463 1.02727 1.10442 1.18638 1.27348 1.36608 1.46459 1.56944 1.68114 1.80022 1.92729 2.06302 2.20816 2.36353 2.53007 2.70881 2.9009 3.10762 3.33042 3.57091 3.8309 4.11244 4.4178 4.74957 5.11065 5.50433 5.93432 6.40486 6.9207 7.48731 8.11085 8.79842 9.55806 10.399 11.3319 12.3689 13.5239 14.8131 11.9221 13.0817 10.4908 11.5303 12.6965 14.0075 11.1852 12.3595 9.83112 10.879 12.0624 13.4014 14.9196 16.6445 18.6084 14.6893 16.4433 12.9216 14.4804 11.3277 12.7068 9.89511 11.1079 12.4964 9.67306 10.8877 8.38859 9.44671 7.24397 8.1586 6.22779 7.0142 5.32926 4.74198 4.22633 5.5398 4.93702 6.44415 5.7438 7.46452 6.65515 8.6109 7.68131 5.94538 4.58944 5.12943 3.94359 4.40845 3.37583 3.77364 2.87861 3.217 3.6023 4.03938 4.54063 3.42794 3.84576 2.8914 3.24814 3.64379 4.11083 4.62065 5.23514 5.89761 6.70641 7.5755 8.63574 9.78958 11.1771 12.7223 14.5342 16.6077 11.9346 10.4726 9.2147 6.66163 7.53811 8.56162 6.13487 6.92285 4.94199 5.572 6.27255 7.07261 7.96609 8.97594 10.1119 11.3742 7.8907 7.04577 6.27751 4.39672 4.91423 5.48261 3.81704 3.43397 3.08557 2.77326 3.9365 5.59757 4.98711 4.44373 3.96052 2.81856 3.15069 3.52094 2.49066 2.23794 2.00999 1.43792 1.59431 1.76722 1.95939 2.17154 2.40642 2.66467 2.94926 3.26125 3.60297 3.97599 4.38179 4.82338 5.30004 5.81579 3.9578 3.61891 3.30415 2.27444 2.48276 2.70636 1.86167 1.71361 1.57533 1.44665 2.08097 3.01226 2.74339 2.49508 2.26729 1.58422 1.73661 1.90201 1.32729 1.21671 1.11446 0.791035 0.859901 0.934135 1.01405 1.09997 1.19205 1.29046 0.903334 0.837737 0.776069 0.555052 0.596461 0.640585 0.461714 0.431887 0.40382 0.377435 0.516205 0.718532 0.664754 0.614672 0.568084 0.414139 0.44585 0.479838 0.352644 0.3294 0.307636 0.287288 0.384601 0.524845 0.727329 1.02012 1.44401 2.05829 1.86729 1.69304 1.5343 1.09012 1.1977 1.31544 0.933312 0.853539 0.780395 0.71341 0.991989 1.39017 1.25925 1.14076 1.03339 0.747411 0.821292 0.902582 0.652172 0.596263 0.545265 0.402348 0.437704 0.476296 0.518424 0.564293 0.614237 0.668487 0.484768 0.447691 0.413428 0.307934 0.331599 0.357125 0.268289 0.25057 0.234051 0.218705 0.286007 0.381796 0.352708 0.32589 0.301256 0.229664 0.24698 0.265721 0.204433 0.191194 0.178893 0.142818 0.15167 0.16116 0.171319 0.18221 0.193856 0.206312 0.219597 0.233776 0.248868 0.264936 0.282007 0.300111 0.319303 0.339644 0.361141 0.383856 0.407828 0.433117 0.459784 0.487879 0.517458 0.548675 0.581579 0.616315 0.653024 0.691887 0.733113 0.776959 0.823717 0.873763 0.927513 0.985432 1.04831 1.11676 1.19187 1.27487 1.36759 1.47274 1.59446 1.73914 1.91717 2.14341 2.44005 2.8371 3.37542 4.10562 5.09233 6.41232 8.16022 10.456 13.4432 17.3081 22.2689 28.5749 36.4643 46.114 57.514 70.41 84.2382 98.1983 111.364 122.921 100.445 87.6857 74.3549 53.5799 65.6012 78.1765 57.8934 46.9373 37.2022 28.915 42.7351 61.3578 49.4436 39.0746 30.435 19.6297 25.7526 33.4276 22.1232 16.7188 12.5317 7.97951 10.8026 14.5217 19.3111 25.3233 32.6531 41.3243 28.9484 22.4555 17.1202 11.5607 15.3984 20.1588 14.0311 10.5561 7.80003 5.67272 8.54035 12.8484 9.5125 6.97083 5.07956 3.23701 4.49816 6.22682 4.07361 2.90472 2.07048 1.48869 2.33744 3.69949 5.87753 9.35163 14.8638 23.4799 18.0174 13.7955 10.565 6.43209 8.48467 11.2279 6.9749 5.2184 3.93071 2.99363 4.9066 8.11354 6.26285 4.87578 3.84425 2.35317 2.95511 3.7809 2.31592 1.8286 1.47925 0.958755 1.1615 1.44763 1.85207 2.42242 3.22282 4.33819 2.70937 2.00755 1.51423 0.966287 1.26774 1.70565 1.08919 0.818004 0.634771 0.510689 0.759396 1.16973 0.929525 0.761581 0.643094 0.447983 0.518021 0.617027 0.425998 0.367086 0.324998 0.246108 0.271899 0.307461 0.358258 0.432789 0.543945 0.71096 0.961795 1.33495 1.88226 2.66707 3.76438 5.25719 7.23032 9.764 6.78688 4.94532 3.54024 2.38728 3.38089 4.71207 3.27208 2.31505 1.61645 1.12146 1.66738 2.50013 1.75256 1.22967 0.873455 0.58449 0.815206 1.16126 0.780621 0.552538 0.403617 0.290049 0.386029 0.53584 0.764454 1.1037 1.59288 2.27741 1.59384 1.10502 0.763448 0.539924 0.779718 1.13058 0.828711 0.570882 0.398529 0.286638 0.380791 0.531485 0.37847 0.280219 0.218459 0.173484 0.213401 0.278044 0.216003 0.17246 0.146043 0.130092 0.149064 0.180072 0.229419 0.307879 0.433413 0.635456 0.478804 0.376128 0.308619 0.231316 0.272526 0.335651 0.246913 0.207944 0.182598 0.165592 0.203811 0.263543 0.232712 0.210866 0.194722 0.160806 0.171131 0.184818 0.153684 0.14493 0.138178 0.122924 0.127438 0.133159 0.140768 0.151437 0.167174 0.191325 0.156211 0.141127 0.131247 0.11814 0.124464 0.134002 0.120297 0.114056 0.109848 0.106807 0.11369 0.12444 0.119477 0.11565 0.11256 0.105543 0.107725 0.11036 0.104464 0.10256 0.100945 0.0995323 0.103675 0.10997 0.119217 0.132749 0.152675 0.182281 0.226658 0.293901 0.397113 0.558055 0.813748 1.22861 1.91674 3.08257 2.52392 2.11593 1.81622 1.19904 1.36954 1.60027 1.04751 0.91461 0.814586 0.736999 1.06978 1.59337 1.42376 1.2905 1.18238 0.818916 0.887076 0.968805 0.674656 0.622882 0.578818 0.419066 0.448067 0.481615 0.521228 0.569383 0.629826 0.708341 0.495355 0.447643 0.410028 0.305125 0.329129 0.358893 0.270021 0.251001 0.235356 0.222149 0.285172 0.379367 0.353618 0.331522 0.312247 0.240464 0.253414 0.268164 0.210767 0.20082 0.192016 0.184163 0.228953 0.295219 0.39369 0.540514 0.760503 1.09173 1.0137 0.945193 0.884072 0.623628 0.664207 0.70944 0.506737 0.476586 0.449465 0.424883 0.586962 0.829126 0.77914 0.733494 0.691562 0.494901 0.523001 0.553596 0.402467 0.381882 0.36291 0.27403 0.286938 0.300887 0.316055 0.33264 0.350894 0.371084 0.280032 0.266378 0.254005 0.200861 0.209332 0.218645 0.177084 0.170653 0.16478 0.159368 0.1931 0.242725 0.232377 0.222809 0.213952 0.173146 0.179324 0.185959 0.154352 0.149675 0.145286 0.126146 0.129337 0.132714 0.136301 0.140151 0.144297 0.148802 0.153729 0.159166 0.165215 0.172015 0.179731 0.1886 0.198978 0.211389 0.172307 0.164055 0.157059 0.13565 0.140447 0.146033 0.128231 0.124379 0.121028 0.118068 0.131462 0.151014 0.145708 0.140995 0.136772 0.121413 0.124425 0.127751 0.115417 0.113014 0.110815 0.103444 0.1051 0.106885 0.108828 0.11097 0.113365 0.116082 0.107737 0.105773 0.104015 0.0992289 0.100567 0.102035 0.0982674 0.0971147 0.0960472 0.0950437 0.0979939 0.102418 0.100948 0.0995782 0.0982875 0.0946978 0.0957446 0.0968391 0.0940901 0.0931738 0.0922837 0.091413 0.0936868 0.0970588 0.10189 0.108779 0.118662 0.132944 0.129447 0.126226 0.123234 0.111539 0.113758 0.116121 0.10688 0.105092 0.103392 0.101765 0.10944 0.120435 0.117797 0.115294 0.112906 0.103677 0.105526 0.107442 0.100197 0.0986764 0.0971929 0.0925965 0.0938325 0.0950857 0.0963621 0.0976704 0.0990202 0.100422 0.0958803 0.0947397 0.0936265 0.0907822 0.0917363 0.0927023 0.0905538 0.0897013 0.0888506 0.0879974 0.0898347 0.0925339 0.0914551 0.0903841 0.0893168 0.0869882 0.0879413 0.0888892 0.0871389 0.0862714 0.0853931 0.0843853 0.0852182 0.0860364 0.0868428 0.0876385 0.0884271 0.0892114 0.0899947 0.0907816 0.0915775 0.0923876 0.0932204 0.0940847 0.0949921 0.0959571 0.096999 0.0981435 0.099428 0.10091 0.102688 0.104932 0.107957 0.112352 0.11918 0.130312 0.148938 0.180128 0.231706 0.315141 0.446246 0.646414 0.548319 0.379703 0.270962 0.202833 0.161391 0.136704 0.122136 0.113492 0.108185 0.104734 0.102315 0.10048 0.0989949 0.0977335 0.0966239 0.0956211 0.0946978 0.0938327 0.0930111 0.0922207 0.0914527 0.0906995 0.0899543 0.0892125 0.0884697 0.0877223 0.0869674 0.0862021 0.0854244 0.0846324 0.0838246 0.0829996 0.0835375 0.0845027 0.086028 0.0882502 0.0913732 0.0957399 0.101888 0.110615 0.123114 0.141146 0.167351 0.205682 0.26204 0.345322 0.468874 0.65284 0.616875 0.583364 0.552021 0.400993 0.422126 0.44471 0.328935 0.313637 0.29925 0.285709 0.381119 0.522601 0.494909 0.468777 0.444063 0.327894 0.344674 0.362384 0.272909 0.260775 0.249257 0.195801 0.20383 0.212256 0.221112 0.23046 0.240337 0.250837 0.197923 0.190626 0.183724 0.15182 0.156727 0.161897 0.137221 0.13348 0.129901 0.126464 0.147136 0.177179 0.170943 0.164986 0.159283 0.134194 0.138342 0.142651 0.123152 0.119947 0.116838 0.113821 0.130191 0.153814 0.18813 0.238293 0.311964 0.420648 0.398431 0.377336 0.357283 0.268673 0.282407 0.296822 0.227836 0.217856 0.208315 0.19919 0.255581 0.338215 0.320079 0.302828 0.286446 0.219829 0.231189 0.243094 0.190456 0.182096 0.174088 0.142529 0.148297 0.154292 0.160526 0.167011 0.173761 0.180798 0.148552 0.143482 0.138593 0.118922 0.122564 0.126317 0.110879 0.108011 0.105208 0.102469 0.115384 0.133872 0.129311 0.1249 0.120633 0.105344 0.1086 0.111945 0.0997867 0.0971627 0.0945913 0.0869679 0.0890724 0.0912072 0.0933731 0.0955729 0.097808 0.100079 0.102391 0.104747 0.107153 0.109615 0.112142 0.11474 0.11743 0.120212 0.108404 0.106263 0.104176 0.0967528 0.098432 0.100141 0.0943086 0.092894 0.0914914 0.0900953 0.0950981 0.102141 0.100144 0.0981827 0.0962513 0.0902317 0.0918405 0.0934617 0.0887052 0.087316 0.0859283 0.0828242 0.0840598 0.0852885 0.0865108 0.0877284 0.0889419 0.0901563 0.08718 0.086103 0.0850187 0.0830785 0.0840744 0.0850574 0.083598 0.082677 0.0817397 0.0807851 0.0820687 0.0839245 0.0828186 0.0817013 0.0805706 0.0789441 0.0800017 0.0810431 0.0798128 0.0788222 0.0778134 0.0767869 0.0778705 0.0794268 0.0815792 0.084538 0.0886314 0.0943447 0.0924593 0.0905948 0.0887463 0.0838678 0.08545 0.0870374 0.083145 0.0817485 0.0803498 0.0789472 0.0822902 0.0869158 0.0851014 0.0833019 0.0815176 0.0775869 0.0791498 0.0807179 0.0775431 0.0761359 0.0747276 0.0726305 0.0739303 0.0752244 0.076511 0.0777905 0.0790624 0.0803255 0.0782701 0.0771004 0.0759183 0.0745572 0.0756765 0.0767811 0.0757429 0.0746821 0.0736049 0.0725127 0.0734242 0.0747254 0.0735209 0.072307 0.0710843 0.0699525 0.0711202 0.072278 0.0714063 0.0702872 0.0691564 0.0680158 0.0687756 0.0698546 0.0713267 0.073319 0.0760303 0.0797493 0.0848945 0.0920729 0.102176 0.116507 0.136982 0.166426 0.209003 0.270868 0.256088 0.242055 0.228769 0.179517 0.188861 0.198689 0.159094 0.152076 0.145373 0.138965 0.170628 0.216184 0.204282 0.193022 0.182404 0.146556 0.154161 0.16218 0.132844 0.127005 0.121436 0.103747 0.107936 0.112299 0.116852 0.121585 0.126517 0.131648 0.112516 0.108656 0.104925 0.0931759 0.0960934 0.0990943 0.0896087 0.0871944 0.0848308 0.0825183 0.0903358 0.101316 0.0978328 0.0944693 0.0912213 0.0822967 0.0848997 0.0875791 0.0802584 0.0780498 0.0758911 0.0737867 0.0797728 0.0880925 0.0997341 0.116129 0.139348 0.172391 0.162958 0.154072 0.145718 0.119954 0.126063 0.132525 0.111074 0.106266 0.101692 0.0973439 0.114187 0.137874 0.130513 0.1236 0.117118 0.0987508 0.1036 0.108741 0.0932162 0.0892954 0.0855741 0.0760793 0.0790173 0.0820941 0.0853124 0.0886821 0.0922066 0.095887 0.0850734 0.0821663 0.0793649 0.0726534 0.0749507 0.0773248 0.0717339 0.0697321 0.0677846 0.0658891 0.0704302 0.0766719 0.0740835 0.071592 0.0692012 0.0641881 0.0661982 0.0682782 0.0640452 0.062254 0.0605138 0.0578021 0.0593501 0.0609368 0.0625628 0.0642271 0.0659291 0.0676702 0.0694469 0.0712596 0.0731085 0.0749924 0.0769072 0.0788574 0.0808388 0.0828513 0.0779968 0.0762624 0.0745458 0.0714077 0.0729386 0.0744801 0.071911 0.0705057 0.0691048 0.0677087 0.0698866 0.0728485 0.0711713 0.0695163 0.0678836 0.0654038 0.0668836 0.0683779 0.0663196 0.0649396 0.0635687 0.0622017 0.063494 0.0647921 0.0660953 0.0674027 0.068711 0.0700194 0.0686195 0.0673802 0.0661387 0.0652077 0.0664015 0.0675917 0.0668666 0.0657104 0.0645492 0.0633843 0.0640112 0.0648958 0.0636541 0.0624149 0.0611793 0.0604222 0.0616168 0.0628138 0.0622174 0.0610503 0.0598847 0.0587227 0.0592328 0.0599507 0.0609186 0.0622105 0.0639416 0.0662761 0.0646938 0.0631368 0.0616087 0.0596679 0.0610721 0.0624975 0.0608655 0.0595346 0.0582203 0.0569225 0.0582858 0.0601088 0.0586379 0.0571975 0.0557872 0.0542804 0.0555912 0.056926 0.0556438 0.0543852 0.0531474 0.0522913 0.0534758 0.0546782 0.0558978 0.0571334 0.0583827 0.0596452 0.0587298 0.0575174 0.0563158 0.0557063 0.0568734 0.0580496 0.0575655 0.0564141 0.0552713 0.0541388 0.0545499 0.0551258 0.0539497 0.0527886 0.0516434 0.0511586 0.0522748 0.0534057 0.0530171 0.0519075 0.0508118 0.0505847 0.0516675 0.0527634 0.0538707 0.0549881 0.0561151 0.0572502 0.0583905 0.0595351 0.0606824 0.0618303 0.0629778 0.0641226 0.0652631 0.066398 0.0675252 0.0686429 0.0697499 0.0708451 0.0719264 0.072993 0.0740437 0.0750771 0.076093 0.0770905 0.078069 0.0790282 0.079968 0.0808884 0.0817898 0.0826727 0.0821564 0.081294 0.0804124 0.0795107 0.0785888 0.0776468 0.0766849 0.0757035 0.0747029 0.0736844 0.0726485 0.0715961 0.0705285 0.0694469 0.0683531 0.0672478 0.0661331 0.0650104 0.0638813 0.0627478 0.0616113 0.060474 0.0593369 0.0582019 0.0570711 0.0559457 0.0548273 0.0537181 0.0526188 0.0515306 0.0504551 0.0493934 0.0495158 0.0497306 0.0500584 0.0505158 0.0511264 0.0519321 0.0529965 0.0544093 0.0562947 0.0588262 0.0622481 0.0669023 0.0732735 0.0820432 0.094179 0.111043 0.13457 0.167494 0.213682 0.278611 0.370015 0.498814 0.680408 0.936479 1.2975 1.80616 2.52224 3.52894 3.14792 4.39387 3.90077 5.42325 4.8103 4.26062 5.88005 8.1113 7.14305 6.30916 5.56486 4.08049 4.60546 5.20216 3.784 3.36026 2.9889 2.18869 2.45166 2.75157 3.08693 3.47183 2.50662 2.80676 2.02185 2.25799 1.62322 1.45955 1.31314 1.8121 1.62446 2.23791 2.00153 1.79009 1.60374 1.17715 1.30919 1.45807 1.065 1.18206 0.863495 0.955172 1.05731 1.17092 0.848842 0.769851 0.69855 0.514733 0.564588 0.619622 0.45652 0.418061 0.383087 0.351299 0.469617 0.6343 0.576405 0.7812 0.707277 0.960208 0.866665 0.782889 1.05907 1.43741 1.95474 2.66105 3.62312 4.93158 4.3588 3.87426 3.43414 2.54933 2.86447 3.21646 2.37151 2.11722 1.89148 1.69353 2.27694 3.06077 2.7225 2.43226 2.17144 1.62979 1.81997 2.0324 1.5169 1.36184 1.2234 0.919291 1.01998 1.13284 1.26045 1.40369 1.5658 1.74844 1.29027 1.15933 1.04305 0.776924 0.86043 0.954161 0.708039 0.640965 0.581062 0.527387 0.702421 0.939592 0.847452 0.765466 0.692265 0.523156 0.576374 0.635852 0.479278 0.436136 0.397424 0.304091 0.332286 0.363606 0.398409 0.437106 0.480139 0.528134 0.581538 0.641066 0.477289 0.524263 0.391886 0.428781 0.322418 0.296221 0.272427 0.358522 0.328328 0.434953 0.396797 0.3624 0.33143 0.253929 0.276277 0.301011 0.231162 0.250806 0.194458 0.210021 0.227089 0.24579 0.266318 0.288808 0.313453 0.340455 0.25783 0.238754 0.22126 0.172835 0.185357 0.198942 0.156923 0.14713 0.138069 0.129686 0.16132 0.205239 0.190562 0.177105 0.164774 0.131934 0.140941 0.150713 0.121924 0.114735 0.108083 0.101926 0.123656 0.153472 0.143122 0.180248 0.167286 0.213323 0.197108 0.182377 0.23368 0.303483 0.278256 0.255473 0.234889 0.183621 0.198704 0.215335 0.168969 0.156767 0.145655 0.117539 0.125787 0.134805 0.144671 0.155463 0.124928 0.133627 0.108994 0.116025 0.0962258 0.0909432 0.0860543 0.10252 0.0965513 0.116949 0.109621 0.102892 0.0967092 0.0812638 0.0859586 0.0910426 0.0773186 0.0815214 0.0704296 0.0739357 0.0776921 0.0817335 0.0860628 0.090718 0.0957184 0.101092 0.106861 0.113059 0.119723 0.126881 0.105349 0.100018 0.0950275 0.0819843 0.0858062 0.0898688 0.0786964 0.075521 0.0725127 0.0696609 0.0783767 0.0903526 0.0859787 0.0818833 0.078049 0.0687782 0.071789 0.0749863 0.0669594 0.0643984 0.061971 0.0569533 0.0589649 0.0610744 0.0632882 0.0656088 0.0680437 0.0705961 0.0646972 0.0625807 0.0605517 0.0568273 0.0585694 0.060375 0.0571905 0.0556042 0.0540674 0.0525797 0.0551483 0.058606 0.0567396 0.0549509 0.0532368 0.0504711 0.0519708 0.0535298 0.0511396 0.0497467 0.0484015 0.0471018 0.049028 0.0515961 0.0550371 0.0596717 0.0659433 0.0744588 0.0710958 0.0679451 0.0649933 0.0583778 0.0607523 0.06327 0.057493 0.0554273 0.053467 0.0516106 0.0561393 0.0622248 0.0596291 0.0671612 0.0641126 0.0734167 0.0697961 0.0664315 0.0769252 0.0910239 0.10999 0.135528 0.16993 0.216275 0.278686 0.362667 0.475547 0.627048 0.830023 1.10139 1.46336 1.94485 2.58348 2.30868 3.05613 2.73171 2.44465 2.19209 1.96868 2.57994 2.3164 3.0252 2.71585 3.53421 3.17304 4.11392 5.32137 6.86537 8.8322 7.89962 10.1195 9.05847 11.5546 10.3535 13.1502 11.7968 10.6043 9.55141 8.61999 6.80847 7.5387 8.36323 9.29605 7.30213 8.12503 6.35677 7.07939 5.5166 6.14827 4.772 3.6945 3.32385 4.2873 3.85897 4.95927 4.46655 5.71885 5.15467 6.57531 5.93209 5.36177 4.21093 4.65474 3.64299 4.03018 3.14336 3.47972 2.70481 2.99576 2.32084 2.57136 2.85389 2.20029 2.44239 1.87687 2.08331 1.59596 1.7711 1.35291 1.50063 1.6674 1.85533 2.06838 1.56496 1.74249 1.31476 0.992479 0.896058 1.18376 1.06711 1.40701 1.26747 1.14336 1.03316 0.934996 1.22164 1.10492 1.44054 1.30239 1.69375 1.53104 1.98559 1.79487 1.38625 1.06977 1.17941 0.90821 1.00095 0.76944 0.847527 0.65068 0.716112 0.789378 0.871447 0.96362 0.733384 0.809953 0.615976 0.679387 0.750294 0.568713 0.516622 0.469953 0.360269 0.394619 0.432868 0.331422 0.303323 0.278018 0.25521 0.329412 0.428172 0.559372 0.508756 0.665039 0.604015 0.549416 0.422775 0.463422 0.357025 0.390677 0.301648 0.234632 0.216055 0.27666 0.254136 0.326773 0.299549 0.386292 0.500536 0.456705 0.592138 0.539703 0.699649 0.637179 0.825367 0.751257 0.971863 1.2572 1.62519 2.09833 1.90036 2.44637 2.21639 2.84448 2.57845 3.29882 2.99233 3.8162 4.85513 6.1605 7.79435 7.06104 8.90127 8.07453 10.1419 9.21325 8.3849 7.64456 9.56234 8.73141 10.8849 9.95526 7.98623 6.38663 6.98155 5.56551 6.09248 6.68052 7.33799 5.82656 6.40845 5.07122 5.5844 4.4042 4.00211 3.6429 4.61322 4.20369 5.30671 4.8414 4.4241 4.04916 5.09235 4.6667 5.85175 7.31663 9.12027 8.36881 7.69116 7.07886 5.67824 6.16986 6.71374 5.36993 4.93507 4.54183 4.18557 5.23302 6.52451 6.02166 5.56466 5.14853 4.12737 4.46182 4.82905 3.86221 3.56817 3.30031 2.63276 2.84657 3.0812 3.33913 3.6232 3.93662 4.28306 3.40725 3.71164 2.94474 3.21145 3.50754 3.83682 3.03313 3.3214 2.61818 2.86973 3.15051 3.46448 2.71891 2.47455 2.25578 1.76984 1.93977 2.12936 2.34124 1.82837 2.0114 1.56644 1.72393 1.339 1.47397 1.142 0.884314 0.805905 1.03901 0.946781 1.21832 1.11026 1.42561 1.29949 1.66467 1.518 1.38639 1.26808 1.61727 2.05958 1.88332 2.39241 2.18942 2.77418 2.54115 2.33106 2.14134 2.70403 2.48642 3.13222 2.88327 2.28932 1.81413 1.96969 1.55756 1.69255 1.84164 2.0066 1.58167 1.72468 1.35644 1.48006 1.16156 1.06549 0.978715 1.24489 1.14406 1.45252 1.3357 1.22985 1.13378 1.43515 1.32394 1.67291 2.1105 2.65753 2.45246 2.26584 2.09572 1.66506 1.80001 1.94798 1.54449 1.42751 1.32077 1.04633 1.13052 1.22275 0.966932 1.04645 0.826388 0.894796 0.96999 1.05277 0.829047 0.9002 0.707902 0.768894 0.836235 0.910703 0.993182 1.08468 1.18634 0.926282 1.01335 0.789768 0.864066 0.672402 0.735577 0.571773 0.625295 0.684863 0.530925 0.581185 0.450427 0.49267 0.381987 0.417358 0.323993 0.3535 0.275019 0.252891 0.232905 0.297407 0.273424 0.350151 0.321457 0.412435 0.378219 0.485749 0.445085 0.347362 0.272165 0.295563 0.232168 0.251761 0.198469 0.214832 0.170161 0.183797 0.198837 0.215446 0.23381 0.184061 0.199261 0.157854 0.170408 0.184251 0.199537 0.216426 0.235102 0.255776 0.199433 0.184179 0.170352 0.135909 0.146193 0.157496 0.126294 0.117866 0.110167 0.103128 0.126542 0.157805 0.146411 0.136057 0.126636 0.103109 0.110219 0.118006 0.0966859 0.0907876 0.08538 0.0720157 0.0761693 0.0806807 0.0855872 0.0909248 0.0967393 0.103074 0.0857903 0.0809726 0.0765348 0.0657622 0.0691976 0.0729114 0.0633027 0.0603921 0.057685 0.0551624 0.062574 0.0724393 0.0686578 0.0651649 0.0619344 0.0543214 0.0568722 0.0596173 0.0528094 0.0506141 0.048564 0.0466478 0.0519488 0.0589438 0.0681878 0.0804174 0.096609 0.118054 0.146457 0.1361 0.170291 0.1578 0.146458 0.136146 0.126761 0.157784 0.146536 0.183635 0.170171 0.214425 0.198338 0.250993 0.319497 0.408432 0.523615 0.48022 0.615568 0.564363 0.72293 0.662709 0.847948 0.777357 0.713646 0.656054 0.603915 0.474525 0.514813 0.55926 0.608368 0.47641 0.51816 0.405674 0.441061 0.345443 0.375348 0.294299 0.231811 0.214409 0.271482 0.250794 0.318374 0.293838 0.373648 0.344625 0.438628 0.404387 0.37331 0.345065 0.437952 0.556639 0.513709 0.652574 0.602307 0.764465 0.705753 0.652296 0.603549 0.764055 0.707168 0.89441 0.828167 0.655173 0.518307 0.559028 0.442075 0.476845 0.514886 0.556568 0.439106 0.474666 0.374435 0.404705 0.319356 0.295923 0.274534 0.346836 0.321637 0.40667 0.37704 0.349936 0.325105 0.410248 0.381074 0.481006 0.607576 0.767564 0.969349 1.22323 1.54179 1.94038 2.43758 3.05586 3.82222 4.76892 4.42198 4.10434 3.81299 3.05364 3.2879 3.54329 2.83238 2.62773 2.43998 2.26747 2.8384 3.54531 3.29896 3.07184 2.86214 2.2891 2.4577 2.64031 2.1087 1.96234 1.8272 1.45598 1.56397 1.68094 1.80781 1.94564 2.09563 2.25911 1.79829 1.6681 1.54864 1.23074 1.32563 1.429 1.13394 1.05208 0.97691 0.907783 1.1435 1.43883 1.33774 1.24454 1.15848 0.9207 0.989102 1.06317 0.844117 0.785397 0.73116 0.680997 0.857443 1.0789 1.35613 1.70225 2.13319 2.66819 2.48855 2.32191 2.16711 1.73052 1.85489 1.9888 1.58655 1.47925 1.37961 1.28697 1.61485 2.02312 1.88899 1.7639 1.6471 1.313 1.40673 1.50715 1.20072 1.12033 1.04531 0.831373 0.891257 0.955448 1.02433 1.09834 1.17794 1.26367 1.00522 0.936892 0.873459 0.694125 0.744552 0.798866 0.63454 0.591459 0.551461 0.514281 0.647252 0.814493 0.759614 0.708482 0.660791 0.525096 0.562993 0.603631 0.479682 0.447452 0.417397 0.332105 0.355897 0.381413 0.408803 0.438237 0.469899 0.503997 0.540764 0.580457 0.623364 0.669808 0.720149 0.774791 0.834188 0.89885 0.712036 0.661082 0.614256 0.487041 0.523877 0.56394 0.446787 0.415352 0.386434 0.359794 0.453125 0.571161 0.531444 0.494789 0.460915 0.366292 0.392982 0.421853 0.335219 0.312521 0.291528 0.232546 0.24903 0.266846 0.286125 0.307013 0.329674 0.354293 0.281402 0.302327 0.240399 0.258158 0.277501 0.298597 0.237089 0.254983 0.202869 0.218023 0.234583 0.252703 0.272559 0.294346 0.318285 0.251326 0.271568 0.214932 0.23201 0.184221 0.1986 0.158369 0.170454 0.183732 0.146802 0.157936 0.126977 0.136301 0.110406 0.118208 0.0965943 0.103124 0.110268 0.118094 0.126677 0.103087 0.110229 0.090661 0.0758586 0.0716663 0.0852123 0.0802157 0.0965605 0.09059 0.085122 0.0801086 0.0755068 0.0906199 0.085147 0.103278 0.0967604 0.118473 0.110706 0.136659 0.127407 0.103605 0.0853217 0.0907925 0.0755186 0.0801275 0.0673875 0.071278 0.0606678 0.063962 0.0675344 0.071413 0.0756287 0.0642508 0.0678071 0.0583819 0.061396 0.0646567 0.0561728 0.0536026 0.0512165 0.0457625 0.047682 0.0497401 0.0448553 0.0431771 0.0416046 0.0401299 0.0439706 0.048999 0.055593 0.0530098 0.06097 0.0579402 0.0551391 0.0483914 0.0506146 0.0450155 0.0469363 0.0422963 0.0387458 0.0374456 0.0407304 0.0392647 0.0432253 0.0415551 0.0463258 0.0525468 0.0501449 0.057627 0.0548167 0.0638041 0.0604998 0.0712817 0.0673822 0.0803006 0.0971041 0.118956 0.147354 0.137302 0.171124 0.15918 0.199384 0.185211 0.232903 0.216111 0.200787 0.186783 0.173968 0.139707 0.149625 0.160448 0.172273 0.1383 0.148273 0.119715 0.128118 0.104152 0.111228 0.0911453 0.0756867 0.0714419 0.0856768 0.0806523 0.0976646 0.0917102 0.112018 0.104958 0.12917 0.1208 0.113118 0.106058 0.130607 0.162226 0.151453 0.188982 0.176242 0.220689 0.205637 0.191805 0.179077 0.224071 0.209041 0.262153 0.244423 0.195186 0.156532 0.16735 0.134703 0.14385 0.153768 0.164536 0.132454 0.141557 0.114555 0.122246 0.0995611 0.0935762 0.0880558 0.107471 0.100939 0.12407 0.11634 0.109203 0.102607 0.126258 0.118451 0.14654 0.182399 0.22807 0.212969 0.199005 0.186079 0.149523 0.15965 0.170582 0.1373 0.128745 0.120816 0.113459 0.140133 0.174097 0.217275 0.272089 0.341586 0.429571 0.400531 0.373592 0.348575 0.277712 0.297446 0.31869 0.254067 0.23734 0.221798 0.207342 0.259362 0.325316 0.303669 0.283502 0.264697 0.211523 0.226365 0.24228 0.193882 0.181338 0.169639 0.136685 0.145897 0.155771 0.166363 0.177737 0.18996 0.203111 0.16298 0.152654 0.143051 0.115776 0.123313 0.131415 0.106625 0.10027 0.0943559 0.0888461 0.108758 0.134114 0.125787 0.118022 0.110776 0.0904191 0.0961152 0.102217 0.0837087 0.0789146 0.0744374 0.0619075 0.0654295 0.0691992 0.0732369 0.0775652 0.0822089 0.0871952 0.0925547 0.0983207 0.10453 0.111225 0.0908489 0.0965033 0.0793968 0.0841755 0.0893339 0.0949083 0.0782446 0.0829578 0.0689986 0.0729875 0.0773 0.0819677 0.087026 0.0925138 0.098475 0.0812028 0.086238 0.0717729 0.0760301 0.0639265 0.067532 0.057413 0.0604744 0.0637891 0.0546302 0.0574494 0.0498086 0.0522167 0.0458489 0.0479173 0.0426158 0.0444046 0.0399953 0.0385372 0.037173 0.0409487 0.0393934 0.0439265 0.0421377 0.0475758 0.0455032 0.0520217 0.0496055 0.0435773 0.0389182 0.0404716 0.0365832 0.0379409 0.0346976 0.0358953 0.0331918 0.0342594 0.0353948 0.0366036 0.0378914 0.0350732 0.0362233 0.0338833 0.0349228 0.0360239 0.0371911 0.0384291 0.0397432 0.0411392 0.0426232 0.044202 0.0458828 0.0476737 0.0495838 0.0516208 0.0537955 0.0561212 0.0586069 0.0612663 0.0549075 0.0571941 0.0520358 0.0540275 0.0498481 0.0481777 0.0465913 0.0501549 0.0483783 0.0527593 0.0507407 0.0488421 0.0470565 0.043612 0.0451133 0.0467 0.0436549 0.0450854 0.042602 0.0439099 0.0452818 0.0467194 0.0482273 0.04981 0.0514686 0.0532107 0.0500225 0.0485149 0.0470723 0.0450153 0.0463005 0.0476379 0.0458452 0.0446319 0.0434617 0.0423328 0.0437796 0.0456908 0.0443673 0.0430995 0.0418847 0.0403486 0.0414477 0.0425907 0.0412432 0.0401923 0.0391787 0.0382838 0.0392338 0.0402164 0.0412328 0.0422829 0.0433684 0.0444907 0.0456496 0.0468447 0.0480777 0.0493497 0.0506607 0.0520102 0.0533991 0.0548276 0.0530636 0.0517494 0.0504677 0.0493048 0.0505082 0.0517391 0.0507394 0.0495697 0.0484239 0.0473028 0.0481294 0.0492187 0.0480021 0.0468183 0.0456676 0.0447733 0.0458636 0.0469822 0.0462067 0.0451361 0.0440911 0.0435694 0.0445806 0.0456154 0.0466733 0.047754 0.0488571 0.0499816 0.0494063 0.0483155 0.0472442 0.046861 0.0479087 0.0489748 0.048665 0.0476163 0.0465854 0.0455728 0.0458325 0.0461936 0.0451641 0.0441562 0.0431704 0.0428693 0.0438362 0.044824 0.0445791 0.0436055 0.042652 0.0417191 0.0419235 0.0422069 0.0425821 0.0430719 0.0437114 0.044549 0.0434622 0.0424073 0.0413844 0.0406971 0.0416731 0.0426782 0.0420784 0.0411107 0.0401697 0.0392542 0.039749 0.0403929 0.0394309 0.0384991 0.037597 0.0370681 0.0379345 0.0388279 0.0383638 0.0374994 0.0366602 0.036345 0.0371637 0.0380063 0.0388734 0.0397641 0.0406787 0.0416184 0.0412659 0.0403475 0.0394526 0.0392166 0.0400967 0.0409993 0.040807 0.0399157 0.0390463 0.0381983 0.0383586 0.0385806 0.0377313 0.0369053 0.0361021 0.0359173 0.0367091 0.0375226 0.0373718 0.036567 0.0357833 0.035021 0.0351471 0.035321 0.0355495 0.0358453 0.036228 0.0367236 0.0373662 0.0382019 0.0392924 0.0407214 0.0396074 0.0413536 0.0401623 0.0422963 0.0410056 0.0397785 0.042192 0.0453751 0.0437909 0.0422982 0.04089 0.0383691 0.0395753 0.0408483 0.0386114 0.0375012 0.0364448 0.0349716 0.0359165 0.0369057 0.0379417 0.0390262 0.0375181 0.03854 0.0373018 0.0382775 0.0372605 0.0363531 0.0354795 0.0363648 0.0354644 0.0365392 0.0356007 0.0347016 0.03384 0.0329679 0.033767 0.0345987 0.0338268 0.0346379 0.034 0.0347974 0.0356236 0.0364798 0.0358785 0.0350607 0.0342704 0.0338622 0.0346254 0.0354141 0.0350549 0.0342882 0.0335457 0.0328263 0.0331236 0.0335064 0.0327676 0.0332301 0.0324873 0.0330457 0.0322936 0.0315694 0.0322 0.0330141 0.0340687 0.0354391 0.0372255 0.0395611 0.038306 0.03712 0.0359985 0.0341337 0.0351112 0.0361407 0.0344813 0.0335688 0.0326991 0.0318699 0.033205 0.0349374 0.0339328 0.0329811 0.0320791 0.0306847 0.0314831 0.0323224 0.031079 0.0303245 0.0296044 0.0287651 0.0294259 0.0301164 0.030838 0.0315923 0.032381 0.0332059 0.0322225 0.0314636 0.030736 0.0300714 0.0307529 0.031462 0.0308721 0.0302007 0.0295543 0.028932 0.0294166 0.0300382 0.029369 0.0287271 0.0281114 0.0276008 0.0281823 0.0287872 0.028333 0.0277563 0.0272012 0.0268877 0.0274226 0.0279777 0.0285535 0.0291509 0.0297705 0.0304132 0.0310797 0.0317708 0.0313644 0.0320538 0.0317167 0.0324084 0.0321292 0.0314544 0.0308014 0.0310479 0.0304013 0.0306985 0.0300555 0.0294348 0.0288356 0.0285889 0.0291724 0.0297763 0.0295583 0.0301695 0.0299888 0.0306094 0.0312503 0.0319122 0.0325954 0.0333001 0.0340269 0.0347768 0.0345619 0.033825 0.0331102 0.0329656 0.0336713 0.0343985 0.0342799 0.0335598 0.0328603 0.0321813 0.0322804 0.0324167 0.0317439 0.031092 0.0304603 0.0303465 0.0309712 0.0316156 0.0315224 0.0308833 0.0302637 0.0296632 0.0297412 0.0298485 0.029256 0.0293882 0.0288071 0.0289673 0.0283959 0.0278435 0.0280253 0.0282573 0.0276992 0.0271608 0.0266414 0.0264479 0.0269553 0.0274809 0.0273098 0.0267941 0.0262959 0.0261767 0.0266677 0.0271758 0.0277014 0.028245 0.0281275 0.0286825 0.0285872 0.0291549 0.0290813 0.0285178 0.0279721 0.0280376 0.0275058 0.0275906 0.0270713 0.0265691 0.0260836 0.0260122 0.0264935 0.0269912 0.0269328 0.027444 0.027403 0.0279288 0.0284718 0.0290326 0.0296115 0.030209 0.0308253 0.0314608 0.0321159 0.0327909 0.033486 0.0342016 0.0349378 0.0356949 0.0364732 0.0372724 0.0380927 0.0389342 0.0397967 0.0406804 0.0415846 0.0425092 0.0434542 0.0444187 0.0454024 0.0464046 0.0474248 0.0484623 0.0483471 0.0473161 0.0463018 0.0453054 0.0443271 0.0433678 0.0424279 0.041508 0.0406082 0.0397287 0.03887 0.0380323 0.0372154 0.0364195 0.0356445 0.0348905 0.0341569 0.0334438 0.0327511 0.0320784 0.0314255 0.030792 0.0301776 0.0295819 0.0290047 0.0284455 0.0279039 0.0273795 0.026872 0.0268942 0.0264018 0.0264384 0.0259601 0.0259256 0.0259057 0.0263809 0.0254462 0.0254649 0.0254976 0.0255469 0.0256143 0.0257022 0.0258147 0.025958 0.0261404 0.0263721 0.0266668 0.027042 0.0275206 0.0281325 0.0289168 0.0299248 0.0312235 0.0329011 0.0319726 0.0339902 0.0329696 0.032007 0.0310986 0.0302405 0.0321872 0.0312411 0.0335739 0.0325185 0.0353128 0.0341229 0.0374684 0.0417858 0.0473649 0.0545823 0.051962 0.0605976 0.0575207 0.0678472 0.0642229 0.0765641 0.0722856 0.0683347 0.064682 0.0613011 0.052238 0.0549014 0.0577731 0.060873 0.0520355 0.0546734 0.0472808 0.0495337 0.0433518 0.0452849 0.0401175 0.0361138 0.0348471 0.0385623 0.0371112 0.0415533 0.0398784 0.0451883 0.0432428 0.049589 0.0473174 0.045206 0.0397447 0.0414319 0.0368595 0.0383168 0.0344883 0.0357557 0.0325502 0.0336613 0.0309779 0.0319609 0.0330075 0.0305935 0.0315266 0.0295083 0.0303494 0.0286623 0.0294294 0.0280197 0.0287279 0.0294747 0.0302625 0.0310941 0.0296407 0.0304116 0.0292011 0.0282601 0.0276328 0.0285118 0.0278548 0.0289083 0.0282122 0.0275502 0.0269202 0.0263205 0.0273475 0.0267092 0.0279362 0.0272484 0.0287143 0.0279642 0.029715 0.0288871 0.027255 0.0259784 0.0265966 0.0255261 0.0261027 0.0252052 0.0257494 0.024997 0.0255167 0.0260609 0.026631 0.0272284 0.02646 0.0270332 0.0263908 0.0269466 0.0275267 0.0269537 0.0264096 0.0258874 0.0254919 0.0259884 0.0265048 0.0261524 0.0256573 0.0251806 0.0247218 0.0250146 0.0253861 0.0258583 0.025348 0.0259119 0.0253876 0.0248859 0.0243899 0.0248588 0.0244427 0.0249048 0.0245557 0.0242802 0.023855 0.0241144 0.0236901 0.0239989 0.0235727 0.0239402 0.0244058 0.0239461 0.0245006 0.0240262 0.0246864 0.0241917 0.0249778 0.0244559 0.0253918 0.0265842 0.0281065 0.030054 0.0291847 0.0315083 0.0305301 0.0333022 0.032191 0.0354981 0.034225 0.038171 0.0432413 0.0497652 0.0581683 0.0552623 0.0653048 0.0618806 0.073882 0.0698395 0.0660896 0.0626074 0.0749649 0.0708504 0.0856051 0.0807369 0.0670268 0.0563589 0.0593706 0.0504494 0.0530051 0.0557505 0.0587028 0.0500548 0.0525635 0.0453284 0.0474669 0.0414113 0.0397051 0.0381126 0.0433367 0.0414798 0.0477202 0.0455455 0.0435178 0.0416255 0.0480681 0.0458472 0.053554 0.0634699 0.0762128 0.0720045 0.0680862 0.0644347 0.0541929 0.0570717 0.0601581 0.0509393 0.0485 0.0462223 0.044094 0.0515058 0.0610289 0.0578499 0.0548802 0.0521042 0.0444538 0.0466489 0.0489955 0.0421038 0.0402417 0.0384982 0.0338694 0.0352619 0.0367475 0.0383333 0.0400272 0.0418377 0.0437742 0.0382056 0.039858 0.0351991 0.0366151 0.0381283 0.0397469 0.0352337 0.0366248 0.0328416 0.0340442 0.0353286 0.0367017 0.0330334 0.0319171 0.0308703 0.0283893 0.0292528 0.0301713 0.0311491 0.028747 0.0296112 0.027595 0.0283662 0.0266738 0.0273697 0.0259491 0.0248349 0.0243057 0.0253474 0.0247771 0.0260161 0.025394 0.0268676 0.0261811 0.0279338 0.0271678 0.0264458 0.0257647 0.0275769 0.0298879 0.0289651 0.0317146 0.0306576 0.0339317 0.0327121 0.0315687 0.030496 0.0338732 0.0326305 0.0366596 0.0352122 0.0314651 0.0285424 0.0294888 0.0270325 0.0278569 0.0287332 0.0296654 0.0272814 0.0280975 0.026091 0.0268119 0.0251217 0.0245143 0.0239401 0.0254112 0.0247696 0.0265129 0.025789 0.0251064 0.0244625 0.0262564 0.0255253 0.0276528 0.0303713 0.033856 0.0325845 0.0313917 0.0302721 0.0274721 0.0283793 0.0293443 0.0268158 0.0260281 0.0252863 0.0235735 0.0241865 0.0248362 0.0232808 0.0238548 0.0225385 0.0230504 0.0235915 0.0241639 0.022883 0.023397 0.0223132 0.02278 0.0232722 0.0237917 0.0243403 0.0249199 0.0255327 0.0242476 0.0248052 0.0237228 0.0242362 0.0233244 0.0238028 0.0230348 0.0234858 0.0239591 0.0232691 0.0237197 0.0231392 0.0235728 0.0230844 0.023506 0.0230951 0.0235088 0.0231633 0.02277 0.0223921 0.0226981 0.0223172 0.0226805 0.0222934 0.0227244 0.0223276 0.022839 0.0224282 0.0219479 0.0215668 0.0219225 0.0216007 0.0219517 0.0216801 0.022029 0.0217999 0.0221491 0.0225122 0.0228896 0.023282 0.0230518 0.0234458 0.0232522 0.0236498 0.0240624 0.0244907 0.0249352 0.0253965 0.0258753 0.0256571 0.025191 0.0247415 0.0245887 0.025029 0.0254853 0.02535 0.0249014 0.0244682 0.0240501 0.0241639 0.0243081 0.0238902 0.0234873 0.0230988 0.0229773 0.0233587 0.0237541 0.0236465 0.0232571 0.0228812 0.0228054 0.0231769 0.0235618 0.0239605 0.0243734 0.0248011 0.0252438 0.0251608 0.0247226 0.0242993 0.0242422 0.0246623 0.025097 0.0250504 0.0246182 0.0242005 0.0237969 0.0238364 0.0238903 0.0234954 0.0231141 0.0227458 0.0227 0.0230657 0.0234443 0.0234069 0.0230302 0.0226664 0.0223151 0.0223469 0.0223904 0.0224467 0.0225186 0.0226095 0.0227244 0.0228692 0.0225002 0.0226725 0.0223074 0.021956 0.0216176 0.0212918 0.021464 0.0211409 0.0213448 0.0210225 0.0212639 0.0209404 0.0212258 0.0215844 0.0220356 0.0226048 0.0221948 0.0228693 0.022436 0.0232353 0.0227721 0.0237192 0.0232181 0.0227426 0.0222913 0.0218626 0.0211352 0.0215145 0.021913 0.0223318 0.0216302 0.0220234 0.02143 0.0218035 0.0213018 0.0216605 0.0212363 0.0208988 0.0205852 0.0209029 0.0205835 0.0209587 0.0206306 0.0210734 0.0207328 0.0212554 0.020898 0.0205571 0.0202317 0.020774 0.0214552 0.0210679 0.0218705 0.0214503 0.0223962 0.021935 0.0214979 0.0210833 0.0220541 0.0215955 0.0227385 0.0222259 0.0211612 0.0203166 0.0206899 0.0199697 0.0203121 0.0206723 0.0210513 0.0203489 0.0206995 0.0201018 0.0204298 0.0199212 0.0196246 0.0193414 0.019789 0.0194907 0.0200153 0.0196976 0.0193949 0.0191066 0.0196441 0.0193344 0.0199622 0.0207496 0.0217411 0.0229949 0.0245874 0.0266189 0.0292209 0.0325636 0.0368651 0.0423993 0.0495076 0.0586147 0.0702531 0.0850976 0.104009 0.128084 0.158717 0.19767 0.247147 0.3099 0.389345 0.48972 0.616264 0.77545 0.975242 1.22542 1.53792 1.43575 1.34005 1.25034 0.994923 1.06679 1.14349 0.909723 0.848405 0.790972 0.737139 0.927526 1.16616 1.08713 1.01289 0.943099 0.749117 0.804899 0.864281 0.686648 0.639265 0.594779 0.472239 0.50764 0.545365 0.585585 0.628485 0.674273 0.723177 0.574655 0.535739 0.499315 0.396846 0.425764 0.456668 0.363141 0.338644 0.315728 0.294276 0.36977 0.4652 0.433229 0.403253 0.375137 0.298341 0.320631 0.344405 0.274185 0.255361 0.237718 0.221179 0.277438 0.348758 0.439008 0.552999 0.696696 0.877474 0.815746 0.757672 0.703033 0.557542 0.601096 0.647421 0.51375 0.476875 0.442229 0.409682 0.516597 0.651627 0.603272 0.5578 0.515057 0.407991 0.441952 0.478113 0.379113 0.350412 0.323478 0.256882 0.278206 0.300946 0.325184 0.351008 0.378514 0.407809 0.324004 0.300774 0.278974 0.22219 0.239439 0.257831 0.205672 0.191132 0.177502 0.164726 0.206014 0.25852 0.239334 0.221345 0.204488 0.163332 0.17664 0.190849 0.152755 0.141544 0.13105 0.105767 0.114034 0.122871 0.132312 0.142391 0.15315 0.164631 0.17688 0.18995 0.203896 0.21878 0.23467 0.25164 0.269773 0.28916 0.230755 0.215434 0.201106 0.161327 0.172637 0.184731 0.148515 0.138979 0.13006 0.121714 0.150744 0.187697 0.175145 0.16339 0.152377 0.122873 0.131561 0.140838 0.113901 0.106586 0.0997345 0.0816063 0.0870067 0.0927726 0.0989297 0.105507 0.112534 0.120047 0.0976839 0.0917696 0.086236 0.0711144 0.0754694 0.0801228 0.0663402 0.0626789 0.0592513 0.0560412 0.0670369 0.0810564 0.0762064 0.0716638 0.0674085 0.0562877 0.0596401 0.0632179 0.0530338 0.0502154 0.0475738 0.0450976 0.0531462 0.0634219 0.0765477 0.093317 0.114733 0.14206 0.132393 0.123335 0.11485 0.0932779 0.0999668 0.107109 0.0873057 0.0816757 0.0764037 0.0714685 0.0870152 0.106903 0.0994632 0.0925017 0.0859916 0.0705458 0.0756711 0.0811539 0.0668506 0.062532 0.0584958 0.0491034 0.0522837 0.0556869 0.0593263 0.063216 0.0673715 0.0718093 0.0596872 0.056189 0.052913 0.0448611 0.0474445 0.0502025 0.0427767 0.0406014 0.0385631 0.0366538 0.0424421 0.0498462 0.0469766 0.044293 0.041785 0.0360805 0.0380602 0.040178 0.0348662 0.0331933 0.0316288 0.0301669 0.0342314 0.0394431 0.0461339 0.0547266 0.0657581 0.0799083 0.0980377 0.121235 0.150877 0.188701 0.236897 0.298218 0.376114 0.474902 0.437205 0.401845 0.368711 0.291967 0.318197 0.346216 0.274546 0.252381 0.23165 0.212282 0.26744 0.337698 0.308707 0.281647 0.25643 0.203296 0.223178 0.244536 0.194213 0.17738 0.161726 0.129247 0.141558 0.154807 0.169043 0.184315 0.200677 0.218184 0.173929 0.160119 0.147223 0.118197 0.12835 0.13923 0.112062 0.103498 0.0955111 0.0880721 0.108734 0.135195 0.123993 0.113575 0.103903 0.08415 0.0917423 0.0999265 0.0811531 0.0747279 0.0687715 0.06326 0.0771201 0.0949405 0.117829 0.147194 0.184821 0.232972 0.211193 0.191018 0.172371 0.137194 0.151832 0.167687 0.133731 0.121285 0.109807 0.0992488 0.123715 0.15518 0.139375 0.124888 0.11165 0.089661 0.100004 0.111337 0.0895635 0.0807054 0.0726298 0.0594518 0.0657535 0.0726727 0.0802456 0.0885091 0.0975013 0.107261 0.0866524 0.0790047 0.0719648 0.0591259 0.0646348 0.0706241 0.0581706 0.0534815 0.0491714 0.0452199 0.0540719 0.0655011 0.059583 0.0541805 0.0492645 0.0413955 0.0452304 0.0494481 0.0416072 0.0383139 0.0353213 0.0306353 0.0329723 0.0355453 0.0383692 0.0414596 0.0448322 0.0485036 0.0524906 0.0568108 0.0614826 0.066525 0.0719581 0.0778029 0.0840818 0.0908183 0.0742288 0.0689316 0.0639967 0.0532449 0.0571242 0.06129 0.0512099 0.0479321 0.0448806 0.0420434 0.049637 0.0594052 0.0551392 0.051182 0.0475174 0.0403031 0.0431792 0.0462862 0.0394091 0.0369672 0.0347073 0.0303697 0.0321485 0.0340708 0.0361448 0.0383788 0.0407819 0.0433636 0.0372583 0.0352221 0.0333266 0.0293994 0.0308972 0.0325058 0.0288019 0.0275289 0.0263428 0.0252392 0.0280065 0.0315644 0.0299284 0.0284118 0.0270083 0.0244026 0.0255132 0.0267128 0.0242135 0.0232618 0.0223801 0.0215645 0.0233762 0.0257118 0.0287266 0.0326197 0.0376456 0.0441303 0.0410059 0.0381301 0.0354895 0.0308708 0.0329405 0.0351952 0.0306951 0.0289246 0.0272995 0.0258114 0.0289755 0.0330709 0.0308616 0.0288493 0.027022 0.0242368 0.0256682 0.0272446 0.0244524 0.0232146 0.0220903 0.0204362 0.0213223 0.0222974 0.0233676 0.0245391 0.0258183 0.0272119 0.0245162 0.023416 0.0224058 0.0207562 0.0215573 0.0224292 0.0208114 0.0201174 0.0194789 0.0188929 0.0200216 0.0214801 0.0206341 0.0198627 0.0191611 0.0181775 0.0187361 0.0193495 0.0183559 0.0178651 0.0174174 0.0168284 0.0171899 0.0175854 0.018017 0.0184874 0.0189989 0.0195541 0.0201556 0.0208063 0.0215089 0.0222663 0.0230818 0.0239585 0.0248999 0.0259094 0.0269911 0.0281488 0.0293869 0.0307101 0.0321234 0.033632 0.0352419 0.0369594 0.0387912 0.0407448 0.0428283 0.0450506 0.0474212 0.0499508 0.052651 0.0555343 0.0470775 0.0448019 0.0426701 0.0369835 0.0386729 0.0404754 0.0353345 0.0338995 0.0325535 0.0312908 0.0353996 0.0406723 0.0387994 0.0370432 0.0353961 0.0312133 0.0325206 0.033914 0.0301059 0.0289937 0.0279498 0.0254096 0.0262496 0.0271438 0.0280958 0.0291094 0.0301888 0.0313386 0.0282333 0.0273053 0.0264329 0.0243497 0.0250608 0.0258163 0.0239288 0.023308 0.0227225 0.0221704 0.0236801 0.0256128 0.0248416 0.0241164 0.0234344 0.0218967 0.0224558 0.0230496 0.0216497 0.0211584 0.0206951 0.020258 0.0213702 0.0227931 0.0246206 0.02697 0.0299866 0.0338512 0.0324022 0.0310432 0.0297688 0.0267431 0.027756 0.0288358 0.0260502 0.0251869 0.0243768 0.0236167 0.0257932 0.028574 0.0274543 0.0264054 0.0254232 0.0232857 0.0240677 0.0249025 0.0229038 0.0222353 0.0216087 0.020294 0.0208006 0.0213407 0.0219164 0.0225299 0.0231835 0.0238795 0.0221902 0.0216234 0.0210907 0.0199687 0.0204078 0.0208745 0.0198459 0.0194573 0.019091 0.0187458 0.0195556 0.0205903 0.0201202 0.0196788 0.0192646 0.0184587 0.0188019 0.0191671 0.0184206 0.0181144 0.0178263 0.017327 0.0175722 0.0178323 0.0181079 0.0184 0.0187093 0.0190369 0.0193837 0.0197507 0.0201391 0.0205502 0.0209852 0.0214456 0.0219329 0.0224487 0.0212826 0.0208487 0.0204381 0.0196392 0.0199898 0.0203596 0.0196257 0.019306 0.0190024 0.0187138 0.0193067 0.0200495 0.0196816 0.0193333 0.0190036 0.0184085 0.0186922 0.0189913 0.0184397 0.0181792 0.0179316 0.0175472 0.0177664 0.0179966 0.0182384 0.0184924 0.0187593 0.0190397 0.01857 0.0188319 0.0184282 0.0186756 0.0189347 0.0192062 0.0188122 0.0190708 0.0187336 0.0189825 0.0192427 0.0195147 0.019799 0.0200963 0.0204074 0.020016 0.0203166 0.0199843 0.0202775 0.0199955 0.0202842 0.020045 0.0203315 0.0206298 0.020415 0.0207128 0.0205309 0.02083 0.0206762 0.0209782 0.0208483 0.0211545 0.0214723 0.0218023 0.0221447 0.0220154 0.0223634 0.0222547 0.0221687 0.0218311 0.0219126 0.0215827 0.0216799 0.0213566 0.021045 0.0207446 0.0204552 0.0205533 0.0202692 0.0203855 0.0201057 0.0202432 0.0199663 0.0201287 0.0198535 0.0197 0.0195767 0.0198362 0.0197318 0.0199955 0.0199073 0.0201762 0.0201019 0.0203768 0.020662 0.0209578 0.0212645 0.0211914 0.0215055 0.0214444 0.0217667 0.0221006 0.0220472 0.021716 0.0213963 0.0213592 0.0216769 0.022006 0.0219758 0.0216483 0.021332 0.0210268 0.0210526 0.0210879 0.0211334 0.0208335 0.0208884 0.0205962 0.0203144 0.0202649 0.0205441 0.020503 0.0207902 0.0207567 0.0207322 0.0204479 0.0204712 0.0201957 0.0202259 0.0199585 0.0199956 0.0200426 0.0197806 0.0198368 0.0195813 0.0196482 0.0193985 0.0194778 0.0192332 0.0193269 0.0194436 0.0195889 0.0197698 0.0195054 0.0197185 0.0194526 0.0197032 0.0194337 0.0197283 0.0194528 0.019189 0.0189363 0.0186942 0.0184619 0.0186899 0.0189275 0.0191753 0.0189524 0.0191974 0.0190074 0.0192514 0.0190898 0.0193344 0.019197 0.0190864 0.0188549 0.0189597 0.0187313 0.0188545 0.0186283 0.0187729 0.0185476 0.0187171 0.0184913 0.0182745 0.0180662 0.0182432 0.0184622 0.0182399 0.0184953 0.0182673 0.0185651 0.0183288 0.018049 0.0178226 0.0180268 0.0178322 0.0180334 0.0178663 0.0176743 0.0174899 0.017639 0.0174537 0.0176268 0.01784 0.0181029 0.0178869 0.018192 0.0179665 0.0183203 0.0180823 0.0177512 0.0174828 0.0176804 0.0174482 0.0176398 0.0174392 0.0172593 0.0170868 0.0172647 0.0170889 0.0172939 0.0175455 0.0178553 0.0176389 0.0174326 0.0172358 0.0169823 0.0171615 0.017349 0.0171132 0.0169404 0.0167751 0.0166171 0.0168112 0.0170482 0.0173386 0.0176964 0.0181395 0.0186914 0.018396 0.0181163 0.0178517 0.0174129 0.0176423 0.0178843 0.0174729 0.0172606 0.0170589 0.0168674 0.0171955 0.0176014 0.0173646 0.0171408 0.0169293 0.0166093 0.0167942 0.0169894 0.0166856 0.0165129 0.0163491 0.0161358 0.0162829 0.0164376 0.0166003 0.0167714 0.0169511 0.0171401 0.0168693 0.0166988 0.0165363 0.0163431 0.0164919 0.0166479 0.016466 0.0163216 0.0161836 0.0160517 0.016201 0.0163814 0.0162339 0.0160933 0.0159595 0.0158129 0.0159362 0.0160655 0.0159256 0.0158052 0.0156903 0.0155806 0.0156953 0.015832 0.015996 0.0161937 0.0164342 0.0167295 0.0170958 0.0175552 0.0181365 0.0188761 0.0198192 0.0210217 0.0225534 0.0245043 0.023645 0.0228423 0.0220931 0.020629 0.0212276 0.0218683 0.020472 0.0199576 0.0194766 0.019027 0.0200702 0.0213946 0.0207441 0.020139 0.019577 0.0186121 0.0190638 0.0195492 0.0186072 0.0182156 0.0178505 0.017246 0.0175434 0.017862 0.018203 0.0185677 0.0189577 0.0193743 0.0185117 0.0181703 0.0178504 0.017284 0.0175501 0.017834 0.0173004 0.0170609 0.016836 0.0166248 0.0170346 0.017551 0.0172707 0.0170086 0.0167636 0.0163772 0.016582 0.0168009 0.0164267 0.016241 0.0160668 0.0159037 0.0161856 0.0165346 0.0169685 0.0175106 0.0181924 0.0190557 0.0185729 0.0181265 0.0177143 0.0171078 0.0174419 0.0178029 0.0171944 0.0169006 0.016628 0.0163752 0.016799 0.0173345 0.016985 0.016664 0.0163697 0.0160098 0.0162514 0.016514 0.0161411 0.0159246 0.0157245 0.0154951 0.0156622 0.0158422 0.016036 0.0162446 0.0164689 0.0167098 0.0163208 0.0161211 0.0159348 0.0156818 0.0158386 0.0160063 0.0157508 0.0156076 0.0154735 0.0153479 0.0155353 0.015761 0.015599 0.015448 0.0153072 0.0151502 0.0152701 0.0153982 0.0152302 0.0151199 0.0150165 0.0149012 0.014992 0.0150886 0.0151915 0.0153011 0.015418 0.0155425 0.0156753 0.0158167 0.0159673 0.0161277 0.0162984 0.0164799 0.0166729 0.016878 0.0165408 0.0163627 0.0161947 0.0159636 0.0161118 0.0162685 0.0160463 0.0159065 0.0157741 0.0156485 0.0158234 0.0160362 0.0158869 0.0157463 0.0156139 0.0154479 0.015566 0.015691 0.0155296 0.0154171 0.0153105 0.0151952 0.0152925 0.015395 0.0155031 0.015617 0.0157369 0.0158631 0.0157107 0.0155953 0.0154855 0.0153746 0.0154764 0.0155832 0.0154758 0.0153759 0.0152805 0.0151896 0.0152776 0.015381 0.0152816 0.0151872 0.0150974 0.0150136 0.0150974 0.0151853 0.0151029 0.0150203 0.0149415 0.0148664 0.014934 0.015012 0.0151029 0.0152096 0.0153365 0.0154893 0.015372 0.0152617 0.015158 0.0150388 0.0151323 0.0152314 0.0151142 0.015024 0.0149387 0.014858 0.0149507 0.0150605 0.0149689 0.0148826 0.0148015 0.0147155 0.0147893 0.0148676 0.0147818 0.0147097 0.0146416 0.014578 0.0146414 0.0147084 0.0147791 0.0148537 0.0149323 0.0150153 0.0149309 0.0148538 0.0147806 0.0147172 0.0147859 0.0148581 0.0147948 0.0147267 0.0146617 0.0145999 0.0146519 0.0147111 0.014645 0.0145823 0.0145227 0.0144743 0.0145305 0.0145897 0.0145409 0.0144848 0.0144314 0.0143805 0.0144207 0.0144661 0.0145178 0.0145772 0.0146459 0.0147251 0.0148159 0.0149195 0.0150381 0.0151761 0.0153402 0.0155399 0.0157878 0.0161002 0.0164985 0.0170099 0.0176701 0.0185248 0.0196333 0.0210724 0.0229411 0.0253681 0.0285197 0.0326111 0.0379203 0.0448065 0.0537321 0.0652927 0.0802534 0.0995957 0.088659 0.0787754 0.0698814 0.0571171 0.0640334 0.0717284 0.0586513 0.052663 0.0472866 0.0424811 0.0509287 0.0619139 0.054811 0.0485118 0.0429565 0.0362376 0.0405374 0.0454185 0.0382067 0.0344242 0.0310955 0.0271623 0.0297409 0.0326733 0.0359898 0.0397216 0.0439007 0.0485598 0.0407785 0.0371532 0.0339041 0.0294329 0.0319606 0.0347827 0.0301653 0.0279667 0.0259981 0.0242431 0.0271786 0.0310048 0.02843 0.0261548 0.0241551 0.0218568 0.02341 0.0251776 0.0226855 0.0213097 0.0201006 0.0190436 0.0204995 0.0224075 0.0249078 0.0281832 0.0324725 0.0380865 0.0338448 0.0301758 0.027026 0.0239376 0.0263657 0.0291965 0.0256514 0.0234652 0.0215911 0.0199969 0.0218714 0.0243438 0.0220799 0.0201872 0.018621 0.0174659 0.0186716 0.0201284 0.0186521 0.0175278 0.0165966 0.0159425 0.0166648 0.0175356 0.018576 0.0198089 0.0212581 0.0229489 0.0208894 0.019579 0.0184556 0.017428 0.0183018 0.0193202 0.0181246 0.0173303 0.0166478 0.0160649 0.0166832 0.0174992 0.0166912 0.0160138 0.0154505 0.0150806 0.0155228 0.0160528 0.01557 0.0151526 0.0148026 0.0145939 0.0148735 0.0152051 0.0155962 0.0160553 0.0165913 0.0172137 0.0179327 0.0187586 0.0197026 0.0207762 0.0219914 0.0233603 0.0248959 0.0266112 0.0238763 0.0225355 0.021335 0.0197799 0.0207213 0.0217722 0.0201535 0.0193269 0.0185858 0.0179237 0.0189398 0.0202644 0.0193137 0.0184731 0.0177331 0.0169492 0.017532 0.0181931 0.0173343 0.0168116 0.0163497 0.0158908 0.0162595 0.0166756 0.0171437 0.0176684 0.0182548 0.0189081 0.0179492 0.0174301 0.0169632 0.0164202 0.0167948 0.0172103 0.0166399 0.0163045 0.0160013 0.0157277 0.0160834 0.0165444 0.01617 0.0158361 0.0155391 0.015269 0.0155106 0.0157811 0.0154813 0.0152598 0.0150609 0.0148825 0.0150535 0.0152756 0.0155651 0.0159432 0.0164376 0.0170848 0.0165195 0.016029 0.0156053 0.0152633 0.0156009 0.0159903 0.0155866 0.0152749 0.0150033 0.0147674 0.0149717 0.015241 0.0149291 0.0146632 0.0144373 0.01432 0.0145049 0.0147205 0.0145628 0.0143856 0.0142323 0.0141668 0.0142959 0.0144435 0.0146123 0.0148055 0.0150263 0.0152783 0.0150425 0.0148365 0.0146547 0.0145395 0.0146911 0.0148617 0.0147227 0.0145795 0.0144512 0.0143361 0.0144047 0.0144945 0.0143531 0.0142284 0.014118 0.0140818 0.0141776 0.0142847 0.0142326 0.0141393 0.0140548 0.0139781 0.0139957 0.0140201 0.0140536 0.0140994 0.0141616 0.0142456 0.0143587 0.0145105 0.0147138 0.0149856 0.0153486 0.0158328 0.0164785 0.0173391 0.0163022 0.015473 0.0148174 0.0145271 0.0150368 0.0156785 0.0152123 0.0147125 0.0143128 0.0139969 0.014128 0.014308 0.013925 0.0138245 0.0137533 0.0137038 0.0139021 0.0141553 0.0144717 0.0148642 0.0146045 0.0142934 0.01404 0.0139563 0.0141618 0.0144111 0.0142675 0.0140651 0.013896 0.0137542 0.0137869 0.0138344 0.0136703 0.0136488 0.0136361 0.01363 0.0137327 0.0138534 0.0139946 0.0141611 0.0140827 0.0139437 0.0138238 0.0138039 0.0139073 0.0140253 0.0139836 0.0138819 0.0137913 0.0137096 0.0137123 0.0137194 0.0136287 0.0136309 0.0136357 0.0136423 0.0137102 0.0137841 0.0138646 0.0139537 0.0139325 0.0138533 0.0137807 0.0137802 0.0138464 0.0139178 0.0139078 0.0138428 0.0137817 0.0137236 0.0137178 0.0137132 0.0136502 0.0136589 0.0136681 0.0136776 0.01373 0.0137846 0.0138414 0.0139014 0.0139655 0.0140348 0.0141103 0.0141927 0.0142833 0.0143831 0.0144933 0.0146152 0.0147502 0.0148998 0.0150656 0.0152492 0.0154524 0.015677 0.0159249 0.016198 0.015854 0.0156292 0.0154244 0.0152261 0.0153972 0.015584 0.0153696 0.0152127 0.0150682 0.0149352 0.0150695 0.015238 0.0150684 0.0149143 0.0147743 0.0146754 0.0147952 0.0149262 0.0148128 0.0147001 0.0145962 0.0145314 0.0146224 0.0147204 0.0148262 0.0149403 0.0150636 0.0151966 0.0150539 0.0149401 0.0148341 0.0147429 0.014835 0.0149332 0.0148283 0.0147427 0.0146622 0.0145863 0.0146567 0.0147352 0.014643 0.014557 0.0144766 0.0144282 0.0144997 0.0145757 0.0145148 0.0144472 0.0143833 0.0143228 0.0143608 0.0144014 0.0144469 0.0145005 0.0145657 0.014647 0.0145313 0.0144261 0.0143301 0.0142883 0.014373 0.0144652 0.0144121 0.0143304 0.0142546 0.0141842 0.0142102 0.0142424 0.014162 0.0140881 0.0140198 0.0140085 0.0140709 0.0141379 0.0141186 0.0140573 0.0139997 0.0139925 0.014046 0.0141026 0.0141627 0.0142267 0.0142951 0.0143683 0.0143309 0.0142648 0.0142026 0.0141805 0.0142373 0.0142973 0.0142654 0.0142108 0.0141589 0.0141093 0.0141266 0.014144 0.0140886 0.0140361 0.0139861 0.01398 0.0140266 0.0140754 0.014062 0.0140167 0.0139732 0.0139651 0.0140055 0.0140474 0.014091 0.0141364 0.0141838 0.0142334 0.0142853 0.0143399 0.0143972 0.0144576 0.0145213 0.0145887 0.01466 0.0147356 0.0146531 0.0145852 0.0145211 0.0144595 0.0145182 0.0145802 0.0145164 0.0144588 0.0144043 0.0143527 0.014404 0.0144605 0.0144031 0.0143486 0.0142968 0.0142542 0.0143016 0.0143515 0.0143039 0.0142575 0.0142135 0.0141759 0.0142174 0.0142611 0.0143071 0.0143556 0.0144068 0.0144608 0.0144124 0.0143614 0.0143129 0.0142753 0.0143214 0.0143698 0.014332 0.0142859 0.014242 0.0142002 0.0142316 0.0142669 0.0142232 0.0141818 0.0141424 0.0141128 0.0141504 0.0141899 0.0141604 0.0141226 0.0140866 0.0140525 0.0140771 0.0141049 0.0141365 0.0141716 0.0142091 0.0142474 0.0142003 0.0141552 0.014112 0.0140854 0.0141249 0.014166 0.0141318 0.0140937 0.0140574 0.0140226 0.0140475 0.0140705 0.0140306 0.0139921 0.013955 0.0139421 0.013976 0.0140111 0.0139893 0.0139573 0.0139265 0.0139089 0.013937 0.0139665 0.0139973 0.0140296 0.0140635 0.0140991 0.0140694 0.0140357 0.0140036 0.0139805 0.014011 0.0140432 0.0140201 0.0139894 0.0139602 0.0139327 0.0139516 0.0139732 0.0139444 0.013917 0.013891 0.0138742 0.0138985 0.0139243 0.0139068 0.0138823 0.0138594 0.0138381 0.0138514 0.0138664 0.0138821 0.0138968 0.0139094 0.0139191 0.0139263 0.0139314 0.0139353 0.0139386 0.0139417 0.0139454 0.0139501 0.0139565 0.0138974 0.0138416 0.0137884 0.0137927 0.0138429 0.0138951 0.013894 0.0138448 0.0137973 0.0137511 0.013744 0.0137369 0.0136872 0.0136967 0.0137061 0.0137151 0.013758 0.013802 0.013847 0.0138934 0.013893 0.0138492 0.0138065 0.0138105 0.013851 0.0138924 0.0138912 0.0138521 0.0138139 0.0137763 0.0137708 0.0137646 0.0137238 0.013732 0.0137396 0.0137465 0.013781 0.0138164 0.0138522 0.0138887 0.0138844 0.0138506 0.0138174 0.0138164 0.0138468 0.0138777 0.0138682 0.0138404 0.0138131 0.0137861 0.0137864 0.0137845 0.0137525 0.013757 0.0137598 0.0137604 0.0137835 0.0138073 0.0138315 0.0138563 0.0138431 0.0138209 0.0137995 0.0137909 0.01381 0.0138301 0.0138184 0.0138 0.0137826 0.013766 0.0137725 0.0137787 0.0137587 0.0137552 0.0137506 0.0137458 0.01376 0.0137753 0.0137914 0.0138084 0.0138268 0.0138468 0.0138684 0.0138916 0.0139163 0.0139425 0.0139703 0.0139997 0.0140307 0.0140634 0.0140978 0.014134 0.014172 0.014212 0.0142541 0.0142982 0.0143445 0.0143931 0.0144442 0.0144977 0.0145539 0.0146129 0.0146747 0.0147396 0.0148076 0.014879 0.0149538 0.0150321 0.0151143 0.0152004 0.0152906 0.015385 0.0154839 0.0155874 0.0156957 0.015809 0.0159275 0.0160513 0.0161808 0.0163161 0.0164575 0.0166052 0.0167595 0.0169206 0.016763 0.0169215 0.0167843 0.0169415 0.0171052 0.0172759 0.0171427 0.0173127 0.0171978 0.0173685 0.017546 0.0177307 0.0179229 0.0181229 0.018331 0.0182014 0.0184107 0.0183001 0.0185115 0.0184173 0.018632 0.0185519 0.0187705 0.0189975 0.018926 0.0191579 0.0190975 0.019335 0.0192842 0.0195279 0.0194854 0.0197359 0.0197006 0.0194518 0.0192119 0.0192438 0.0190108 0.0190493 0.0188228 0.0188687 0.0186481 0.0187026 0.0184873 0.0184355 0.0183939 0.0186044 0.0185696 0.0187862 0.0187573 0.0189805 0.0189569 0.0191872 0.0194259 0.0196733 0.0199298 0.0199087 0.0201735 0.0201587 0.0204323 0.0207159 0.0210096 0.021314 0.0216292 0.0219557 0.0222939 0.0226441 0.0230067 0.0233821 0.0237707 0.0241728 0.024589 0.0250196 0.0250018 0.0245722 0.024157 0.0237556 0.0233678 0.0229932 0.0226313 0.0222818 0.0219442 0.0216183 0.0213036 0.0209997 0.0207065 0.0204234 0.0201502 0.0198866 0.0198947 0.0196399 0.0196532 0.0194067 0.0191689 0.0189396 0.0187183 0.0187348 0.0185206 0.018542 0.0183344 0.0183607 0.0181594 0.018191 0.0182306 0.0182799 0.0183413 0.0181384 0.0182107 0.0180117 0.0180966 0.0179008 0.0180002 0.0178067 0.0176206 0.0174416 0.0172695 0.0171889 0.0173567 0.0175311 0.0177124 0.0176359 0.0178202 0.0177549 0.0179431 0.0178876 0.0180801 0.0180331 0.0179954 0.0178069 0.0178428 0.0176595 0.0177021 0.0175234 0.0175738 0.0173993 0.0174584 0.0172876 0.0171231 0.0170695 0.0172313 0.0171856 0.0173514 0.0173126 0.0174828 0.0174501 0.0176252 0.0175977 0.0177781 0.0179652 0.0179413 0.0181343 0.0181148 0.018314 0.018299 0.0185048 0.0184943 0.0187072 0.018928 0.0191568 0.019394 0.0193867 0.0196322 0.0191498 0.0189213 0.0187009 0.0184883 0.0182832 0.0182889 0.0180909 0.0181004 0.017909 0.0179227 0.0177375 0.0177552 0.0175759 0.0175589 0.0175463 0.0177244 0.0177156 0.0178998 0.0178945 0.0180853 0.0177106 0.0175331 0.017538 0.0173667 0.0173747 0.0173867 0.017403 0.0174238 0.0172562 0.0172813 0.0171187 0.0171486 0.0169906 0.017026 0.0168722 0.0169138 0.0169649 0.0170274 0.017104 0.0169449 0.0170339 0.0168763 0.0169793 0.0168225 0.0166718 0.0165272 0.0166336 0.016489 0.0166111 0.0164655 0.0163502 0.016255 0.0163883 0.0163053 0.0164396 0.0165794 0.0167249 0.0166448 0.0167919 0.0167227 0.0168721 0.0168126 0.016666 0.016525 0.016579 0.0164407 0.0165033 0.0163674 0.0162367 0.0161111 0.0161762 0.0160523 0.016127 0.0162171 0.0163259 0.0161922 0.0160641 0.0159414 0.0158498 0.0159671 0.0160895 0.0160042 0.0158864 0.0157733 0.0156649 0.0157374 0.0158239 0.0157114 0.0156038 0.0155008 0.0154276 0.0155264 0.0156296 0.0155609 0.0154613 0.0153658 0.0153135 0.0154064 0.0155032 0.0156042 0.0157094 0.0158191 0.0159333 0.0158744 0.0159904 0.0159389 0.0160571 0.01618 0.0163078 0.0162588 0.0163893 0.016347 0.0164807 0.0166196 0.0167639 0.0167242 0.0165817 0.0164445 0.0164149 0.0165508 0.0166919 0.0168385 0.0168112 0.0169621 0.0169391 0.0170948 0.0170757 0.0172363 0.0172207 0.0172092 0.0170497 0.0170608 0.0169066 0.0169208 0.0167717 0.0167892 0.0166447 0.0166658 0.0165258 0.0163909 0.016261 0.0162841 0.0163124 0.0161852 0.0162184 0.0160946 0.0161332 0.0160124 0.0158963 0.0157846 0.0158254 0.0157162 0.015763 0.015656 0.0156114 0.0155742 0.0156773 0.0156449 0.0157509 0.015861 0.0159755 0.0159451 0.0160629 0.0160369 0.0161581 0.016136 0.0160157 0.0158998 0.0159202 0.0158079 0.0158319 0.0157229 0.0156181 0.0155174 0.0155431 0.0154453 0.015475 0.0155107 0.0155533 0.0154547 0.0153601 0.0152694 0.0152321 0.0153212 0.015414 0.0153798 0.0152884 0.0152007 0.0151743 0.015261 0.0153513 0.0153275 0.0154205 0.0154 0.0154961 0.015596 0.0156999 0.015681 0.0157883 0.0157724 0.0158832 0.0159985 0.0161181 0.0162424 0.0163715 0.0165056 0.0164894 0.0166279 0.0166148 0.016758 0.0167478 0.016896 0.0168889 0.0170424 0.0172016 0.0171971 0.0173621 0.0170381 0.0168848 0.0167371 0.016741 0.0165985 0.016605 0.0164674 0.0164768 0.0163439 0.016356 0.0162275 0.0161038 0.0159846 0.0158699 0.0158595 0.0159738 0.0160925 0.0162158 0.0162072 0.0163349 0.0163288 0.0164611 0.0164575 0.0165947 0.0163253 0.016198 0.0162013 0.0160785 0.0160842 0.0159657 0.0158517 0.0157419 0.0157494 0.0157595 0.0156533 0.0156657 0.015563 0.0155778 0.0154786 0.0153831 0.0152914 0.0153077 0.015219 0.015238 0.0151522 0.0151338 0.0151185 0.0152032 0.0151903 0.015278 0.0153693 0.0154643 0.0154527 0.015551 0.0155416 0.0156435 0.0156362 0.0155345 0.0154367 0.0154435 0.0153492 0.0153581 0.0152672 0.0151798 0.0150958 0.015106 0.015025 0.0150372 0.0150519 0.0150697 0.015091 0.0151164 0.0151466 0.0151824 0.0152246 0.0152743 0.015333 0.0154022 0.015308 0.0152179 0.0151319 0.0150731 0.0151559 0.0152425 0.0151868 0.015103 0.0150228 0.0149461 0.014994 0.0150497 0.0149711 0.0148962 0.0148246 0.0147772 0.0148462 0.0149184 0.0148728 0.0148028 0.0147359 0.0146999 0.0147651 0.0148334 0.0149048 0.0149796 0.0150577 0.0151393 0.015099 0.0150191 0.0149426 0.014911 0.0149862 0.0150647 0.0150357 0.0149582 0.014884 0.014813 0.014839 0.0148694 0.0147994 0.0147324 0.0146685 0.0146413 0.0147042 0.0147701 0.014745 0.0146799 0.0146178 0.0145585 0.0145812 0.0146075 0.0146376 0.0146721 0.0147114 0.0147563 0.0146912 0.014629 0.0145697 0.0145315 0.0145887 0.0146486 0.0146111 0.014553 0.0144976 0.0144447 0.014477 0.0145132 0.0144593 0.0144079 0.0143589 0.0143282 0.0143754 0.014425 0.0143943 0.0143463 0.0143005 0.0142756 0.0143201 0.0143669 0.0144159 0.0144674 0.0145215 0.0145782 0.0145492 0.0144937 0.0144408 0.0144172 0.0144693 0.0145239 0.0145018 0.0144479 0.0143965 0.0143476 0.0143676 0.0143903 0.0143423 0.0142966 0.0142532 0.014233 0.0142756 0.0143205 0.0143011 0.0142569 0.014215 0.0141989 0.0142403 0.014284 0.01433 0.0143784 0.0144293 0.0144828 0.0145388 0.0145976 0.0146592 0.0147236 0.0147909 0.0148612 0.0149346 0.0150112 0.0149906 0.0149147 0.0148419 0.0148257 0.014898 0.0149734 0.0149591 0.0148841 0.0148122 0.0147433 0.0147565 0.0147722 0.0147054 0.0146415 0.0145804 0.0145659 0.0146266 0.0146901 0.0146773 0.0146141 0.0145537 0.0145435 0.0146038 0.0146667 0.0147325 0.0148011 0.0148727 0.0149473 0.0149377 0.0150151 0.0150072 0.0150877 0.0151714 0.0152586 0.0152521 0.0153426 0.0153381 0.0154321 0.0155298 0.0156313 0.0157368 0.0158464 0.0159603 0.0159571 0.0160753 0.0158434 0.0157339 0.0156284 0.015527 0.0154294 0.0153355 0.0152453 0.0152478 0.0151609 0.0151652 0.0150816 0.0150013 0.0149242 0.01493 0.0148558 0.0148633 0.014792 0.0147847 0.0147792 0.0148502 0.0148464 0.0149203 0.0149973 0.0150775 0.0150751 0.0151585 0.014995 0.014918 0.0148442 0.0147733 0.0147755 0.0147075 0.0147111 0.0147165 0.0147236 0.0146581 0.0145953 0.0145352 0.0145285 0.0145885 0.0146511 0.0146459 0.0145834 0.0145235 0.0144663 0.0144712 0.0144778 0.0144859 0.0144959 0.0145078 0.0145221 0.0144664 0.0144133 0.0143627 0.0143493 0.0143996 0.0144524 0.0144407 0.014388 0.0143379 0.0142902 0.0143014 0.0143146 0.014269 0.0142257 0.0141846 0.0141721 0.0142129 0.014256 0.0142449 0.014202 0.0141613 0.0141521 0.0141927 0.0142356 0.0142808 0.0143284 0.0143784 0.0144309 0.0144229 0.0143705 0.0143205 0.0143143 0.0143641 0.0144164 0.0144116 0.0143593 0.0143095 0.0142621 0.0142668 0.014273 0.0142278 0.014185 0.0141444 0.0141382 0.0141788 0.0142216 0.0142169 0.0141741 0.0141335 0.0141303 0.0141709 0.0142137 0.0142589 0.0143063 0.0143561 0.0144083 0.0144629 0.0145201 0.0145799 0.0146423 0.0146402 0.0147054 0.0145778 0.0145181 0.0144609 0.0144063 0.0143542 0.0143044 0.014257 0.0142119 0.014169 0.0141284 0.0140899 0.0140918 0.0140951 0.0140999 0.0141061 0.0141138 0.0141229 0.0141336 0.0141458 0.0141596 0.0141752 0.0141925 0.0142118 0.0142332 0.0142569 0.0142832 0.0143122 0.0142678 0.0142254 0.0141851 0.0141606 0.0141995 0.0142403 0.0142155 0.014176 0.0141384 0.0141027 0.0141237 0.0141467 0.0141101 0.0140754 0.0140424 0.0140235 0.0140551 0.0140885 0.0140688 0.0140367 0.0140062 0.0139904 0.0140198 0.0140509 0.0140837 0.0141182 0.0141546 0.014193 0.0141726 0.0141353 0.0140999 0.0140831 0.0141177 0.0141541 0.0141375 0.0141017 0.0140679 0.014036 0.0140504 0.0140663 0.0140345 0.0140044 0.013976 0.0139627 0.0139903 0.0140195 0.0140058 0.0139774 0.0139506 0.0139255 0.0139368 0.0139491 0.0139626 0.0139773 0.0139934 0.0140111 0.0139815 0.0139534 0.0139269 0.0139128 0.0139381 0.013965 0.01395 0.0139243 0.0139001 0.0138774 0.013889 0.0139019 0.0138784 0.0138564 0.013836 0.0138265 0.0138458 0.0138667 0.0138562 0.0138364 0.0138181 0.0138105 0.0138279 0.0138466 0.0138668 0.0138885 0.0139117 0.0139364 0.0139239 0.0139001 0.0138779 0.0138683 0.0138896 0.0139124 0.0139019 0.0138799 0.0138594 0.0138403 0.0138484 0.0138572 0.013838 0.0138201 0.0138036 0.0137973 0.013813 0.01383 0.0138227 0.0138065 0.0137917 0.0137867 0.0138006 0.013816 0.0138329 0.0138512 0.013871 0.0138923 0.0139151 0.0139396 0.0139656 0.0139934 0.0140229 0.0140542 0.0140873 0.0141225 0.0141091 0.0140744 0.0140417 0.0140306 0.0140629 0.0140972 0.0140867 0.0140527 0.0140207 0.0139907 0.0140002 0.014011 0.013982 0.0139549 0.0139295 0.0139202 0.0139451 0.0139718 0.0139626 0.0139363 0.0139119 0.0139044 0.0139284 0.0139544 0.0139822 0.014012 0.0140438 0.0140777 0.0140701 0.0140362 0.0140044 0.0139981 0.0140299 0.0140638 0.0140589 0.0140249 0.0139931 0.0139634 0.0139685 0.0139748 0.0139471 0.0139214 0.0138977 0.0138919 0.0139154 0.0139409 0.0139359 0.0139105 0.0138871 0.0138659 0.0138703 0.0138757 0.0138821 0.0138892 0.013897 0.0139057 0.0138835 0.0138629 0.0138438 0.013837 0.0138554 0.0138754 0.0138681 0.0138487 0.0138309 0.0138147 0.0138201 0.0138262 0.0138101 0.0137955 0.0137824 0.0137789 0.013791 0.0138048 0.0138002 0.0137873 0.0137761 0.0137739 0.0137844 0.0137964 0.0138101 0.0138255 0.0138426 0.0138615 0.0138557 0.0138374 0.0138209 0.0138172 0.013833 0.0138507 0.0138467 0.0138295 0.0138143 0.013801 0.0138032 0.0138063 0.0137934 0.0137821 0.0137722 0.013771 0.0137803 0.013791 0.0137893 0.0137791 0.0137702 0.0137624 0.013763 0.0137638 0.0137649 0.0137664 0.0137684 0.0137711 0.0137744 0.0137784 0.0137831 0.0137885 0.0137946 0.0138014 0.0138088 0.0138171 0.0137999 0.0137841 0.0137691 0.0137638 0.0137778 0.0137926 0.0137861 0.0137722 0.0137594 0.0137471 0.0137504 0.0137547 0.0137413 0.0137378 0.0137358 0.0137347 0.0137449 0.0137557 0.0137674 0.0137803 0.0137751 0.0137633 0.0137529 0.0137508 0.0137599 0.0137706 0.0137669 0.0137573 0.0137493 0.0137421 0.0137426 0.0137434 0.0137344 0.0137344 0.0137348 0.0137352 0.0137419 0.0137482 0.0137553 0.0137639 0.0137615 0.0137538 0.0137475 0.013747 0.0137527 0.0137597 0.0137584 0.0137519 0.0137467 0.013742 0.0137419 0.0137418 0.0137357 0.0137363 0.0137368 0.0137372 0.0137421 0.0137465 0.0137514 0.0137574 0.0137567 0.013751 0.0137464 0.0137463 0.0137508 0.0137562 0.0137559 0.0137506 0.0137463 0.0137424 0.0137423 0.0137422 0.0137376 0.0137379 0.0137381 0.0137382 0.0137425 0.0137462 0.0137505 0.0137557 0.0137621 0.0137697 0.0137783 0.0137882 0.0137995 0.0138124 0.0138272 0.0138439 0.0138628 0.0138837 0.0139069 0.0139323 0.0139598 0.0139896 0.0140215 0.0140556 0.0140536 0.0140195 0.0139875 0.0139577 0.0139301 0.0139048 0.0138817 0.0138609 0.0138423 0.0138258 0.0138113 0.0137986 0.0137876 0.0137779 0.0137694 0.0137619 0.0137556 0.0137504 0.0137462 0.0137425 0.0137383 89406.8 156110 148457 60238.9 34612.1 87486.4 52625.7 123737 131919 105326 111295 83623.1 19975.3 23319.8 19986.9 31469.9 27807.4 35632.1 71822.8 58991.9 27274 21904.8 25291.7 59442.1 61196.9 74245 156938 93123.8 34861.5 17473.5 14088.2 10269.7 3105.51 4509.37 5961.79 2662.49 1998.72 370.969 1380.61 719.011 1791.13 5846.52 258.411 110.621 107.502 38.4423 15.0805 6.43645 2.74628 1.00756 0.750674 1.30448 2.02511 2.84641 3.55552 3.83389 3.61505 3.10737 2.55898 2.0884 1.66822 1.31811 1.03552 0.809804 0.630289 0.488166 0.376384 0.289168 0.221694 0.169922 0.130495 0.100664 0.0782193 0.061409 0.0488673 0.0395403 0.032623 0.027505 0.0237261 0.0209412 0.0188924 0.0173877 0.0162844 0.0154771 0.0148877 0.0144585 0.0141472 0.0139225 0.0137614 0.013647 0.0135671 0.0135124 0.0134764 0.0134541 0.0134419 0.0134371 0.0134378 0.0134425 0.0134501 0.0134599 0.0134713 0.0134837 0.0134969 0.0135106 0.0135246 0.0135388 0.013553 0.0135671 0.013581 0.0135947 0.0136082 0.0136214 0.0136342 0.0136467 0.0136589 0.0136706 0.0136819 0.0136927 0.0137026 0.0137114 0.0137187 0.013724 0.0137271 0.0137278 0.0137268 0.0137251 0.0137237 0.0137232 0.013723 0.0137229 0.0137229 0.013723 0.0137232 0.0137234 0.0137237 0.013724 0.0137243 0.0137246 0.0137248 0.0137249 0.0137251 ) ; boundaryField { bottomEmptyFaces { type empty; } topEmptyFaces { type empty; } inlet { type turbulentMixingLengthFrequencyInlet; mixingLength 2000; phi phi; k k; value nonuniform List<scalar> 108 ( 0.0137213 0.0137213 0.0137213 0.0137213 0.0137214 0.0137214 0.0137215 0.0137216 0.0137217 0.0137218 0.0137219 0.013722 0.0137221 0.0137222 0.0137223 0.0137226 0.0137226 0.0137215 0.0137176 0.0137103 0.0137 0.0136875 0.0136738 0.0136595 0.013645 0.0136304 0.0136158 0.0136012 0.0135864 0.0135715 0.0135563 0.0135409 0.0135252 0.0135093 0.0134931 0.0134767 0.0134601 0.0134432 0.0134262 0.0134089 0.0133916 0.013374 0.0133563 0.0133385 0.0133206 0.0133025 0.0132844 0.0132662 0.0132479 0.0132296 0.0132112 0.0131928 0.0131744 0.013156 0.0131376 0.0131193 0.013101 0.0130827 0.0130645 0.0130465 0.0130285 0.0130106 0.0129929 0.0129753 0.0129578 0.0129405 0.0129234 0.0129065 0.0128898 0.0128733 0.0128571 0.0128411 0.0128253 0.0128099 0.0127948 0.01278 0.0127654 0.0127511 0.0127368 0.0127225 0.012708 0.0126932 0.0126781 0.0126631 0.0126491 0.0126377 0.0126301 0.0126271 0.0126278 0.0126305 0.0126338 0.0126373 0.0126407 0.012644 0.0126471 0.0126497 0.0126515 0.0126516 0.012641 0.0126477 0.0126292 0.0126078 0.0125801 0.0125444 0.0121894 0.0124272 0.0124893 0.0137213 ) ; } outlet { type inletOutlet; inletValue uniform 2000; value nonuniform List<scalar> 60 ( 164.643 165.587 167.156 169.466 172.502 176.34 180.908 186.296 192.52 199.694 207.91 217.299 227.998 240.171 254.009 269.737 287.62 307.972 331.168 357.651 387.95 422.698 462.65 508.713 561.972 623.734 695.561 779.331 877.284 992.088 1126.9 1285.42 1471.97 1691.48 1949.61 2252.67 2607.74 3022.7 3506.43 4068.57 4721.05 5473.56 6344.4 7339.17 8487.59 9805.45 11370.5 16375.6 13711.3 17228.2 20157.1 28229.4 34267.8 45954.4 75710.2 151684 164.208 1.71924e+06 630754 323135 ) ; } walls { blending binomial2; n 2; beta1 0.075; type omegaWallFunction; value nonuniform List<scalar> 988 ( 1.82712e+06 1.82776e+06 1.82828e+06 1.8289e+06 1.82941e+06 1.83002e+06 1.83051e+06 1.8311e+06 1.83158e+06 1.83216e+06 1.83263e+06 1.83319e+06 1.83364e+06 1.83419e+06 1.83462e+06 1.83515e+06 1.83558e+06 1.83609e+06 1.83651e+06 1.83701e+06 1.83741e+06 1.83789e+06 1.83828e+06 1.83875e+06 1.83913e+06 1.83958e+06 1.83995e+06 1.84039e+06 1.84075e+06 1.84118e+06 1.84152e+06 1.84194e+06 1.84228e+06 1.84269e+06 1.84301e+06 1.84341e+06 1.84372e+06 1.8441e+06 1.84441e+06 1.84478e+06 1.84508e+06 1.84544e+06 1.84573e+06 1.84608e+06 1.84636e+06 1.8467e+06 1.84697e+06 1.8473e+06 1.84756e+06 1.84788e+06 1.84813e+06 1.84843e+06 1.84868e+06 1.84897e+06 1.84921e+06 1.84949e+06 1.84972e+06 1.84999e+06 1.85022e+06 1.85048e+06 1.85069e+06 1.85095e+06 1.85115e+06 1.8514e+06 1.8516e+06 1.85183e+06 1.85203e+06 1.85225e+06 1.85244e+06 1.85266e+06 1.85284e+06 1.85305e+06 1.85322e+06 1.85343e+06 1.85359e+06 1.85379e+06 1.85394e+06 1.85414e+06 1.85429e+06 1.85448e+06 1.85462e+06 1.8548e+06 1.85494e+06 1.85511e+06 1.85524e+06 1.85541e+06 1.85554e+06 1.8557e+06 1.85582e+06 1.85598e+06 1.85609e+06 1.85624e+06 1.85635e+06 1.8565e+06 1.8566e+06 1.85674e+06 1.85685e+06 1.85698e+06 1.85707e+06 1.85721e+06 1.8573e+06 1.85742e+06 1.85751e+06 1.85763e+06 1.85772e+06 1.85783e+06 1.85791e+06 1.85803e+06 1.8581e+06 1.85821e+06 1.85828e+06 1.85839e+06 1.85846e+06 1.85856e+06 1.85862e+06 1.85872e+06 1.85879e+06 1.85888e+06 1.85894e+06 1.85903e+06 1.85909e+06 1.85918e+06 1.85924e+06 1.85932e+06 1.85938e+06 1.85946e+06 1.85951e+06 1.85959e+06 1.85964e+06 1.85972e+06 1.85977e+06 1.85984e+06 1.85989e+06 1.85996e+06 1.86e+06 1.86007e+06 1.86011e+06 1.86018e+06 1.86022e+06 1.86029e+06 1.86032e+06 1.86039e+06 1.86042e+06 1.86048e+06 1.86052e+06 1.86058e+06 1.86061e+06 1.86067e+06 1.8607e+06 1.86076e+06 1.86078e+06 1.86084e+06 1.86087e+06 1.86092e+06 1.86095e+06 1.861e+06 1.86103e+06 1.86108e+06 1.86111e+06 1.86116e+06 1.86118e+06 1.86123e+06 1.86125e+06 1.86131e+06 1.86133e+06 1.86138e+06 1.8614e+06 1.86145e+06 1.86147e+06 1.86152e+06 1.86153e+06 1.86159e+06 1.8616e+06 1.86166e+06 1.86167e+06 1.86172e+06 1.86174e+06 1.86179e+06 1.86181e+06 1.86186e+06 1.86188e+06 1.86193e+06 1.86195e+06 1.862e+06 1.86203e+06 1.86208e+06 1.86211e+06 1.86216e+06 1.8622e+06 1.86225e+06 1.8623e+06 1.86236e+06 1.86239e+06 1.86246e+06 1.8625e+06 1.86257e+06 1.86261e+06 1.86269e+06 1.86273e+06 1.86281e+06 1.86286e+06 1.86295e+06 1.863e+06 1.86308e+06 1.86313e+06 1.86322e+06 1.86327e+06 1.86335e+06 1.8634e+06 1.86348e+06 1.86352e+06 1.86359e+06 1.86364e+06 1.8637e+06 1.86375e+06 1.8638e+06 1.86387e+06 1.86392e+06 1.86405e+06 1.86566e+06 1.8627e+06 1.86819e+06 1.8656e+06 1.87039e+06 1.8322e+06 1.78022e+06 1.92724e+06 2.67804e+06 2.98323e+06 1.81028e+06 1.96374e+06 2.34493e+06 3.04047e+06 3.53867e+06 2.3371e+06 2.56838e+06 2.50224e+06 2.68103e+06 2.77612e+06 3.04481e+06 2.42777e+06 2.67413e+06 2.08601e+06 2.46785e+06 2.6306e+06 2.86858e+06 1.87192e+06 2.01832e+06 2.37043e+06 3.05457e+06 3.57112e+06 1.82537e+06 2.38168e+06 2.61907e+06 1.98908e+06 2.38068e+06 2.6328e+06 2.97405e+06 3.05356e+06 3.49887e+06 2.56543e+06 2.74609e+06 854848 1.0662e+06 981294 2.14876e+06 2.43975e+06 3.24902e+06 1.19495e+06 2.83004e+06 1.9464e+06 172080 344902 488846 405249 198635 281753 246723 155042 146845 149937 183750 161998 557279 758090 681705 204821 263687 240329 298435 332857 399430 381593 430757 456093 497389 531954 585033 634376 611096 3.03122e+06 3.5867e+06 4.1703e+06 4.57629e+06 2.37781e+06 2.74524e+06 4.99306e+06 5.51494e+06 3.02939e+06 4.02193e+06 7.16027e+06 1.8856e+06 2.28992e+06 3.14279e+06 3.15637e+06 1.76322e+06 2.79201e+06 3.35026e+06 2.37402e+06 2.66893e+06 3.12508e+06 3.07359e+06 1.64753e+06 1.98906e+06 2.42394e+06 2.58491e+06 3.08276e+06 1.84622e+06 2.24484e+06 3.00376e+06 2.91489e+06 2.82874e+06 2.74254e+06 2.65813e+06 2.57773e+06 2.50221e+06 2.43226e+06 1.52558e+06 1.66076e+06 2.05608e+06 2.7176e+06 1.78875e+06 1.92634e+06 2.41528e+06 2.64846e+06 3.24158e+06 2.17158e+06 2.89903e+06 2.36769e+06 2.30847e+06 2.25411e+06 2.20435e+06 1.83224e+06 2.27189e+06 3.0487e+06 2.159e+06 2.1178e+06 1.87603e+06 2.68816e+06 3.36874e+06 1.7992e+06 2.33293e+06 3.09119e+06 1.91417e+06 2.34042e+06 3.14122e+06 1.83444e+06 2.37113e+06 2.08051e+06 2.04685e+06 1.55765e+06 1.65551e+06 2.56928e+06 3.10279e+06 1.81389e+06 2.32336e+06 1.85395e+06 2.18617e+06 2.79238e+06 2.86001e+06 3.42693e+06 1.99266e+06 2.40726e+06 1.93811e+06 2.31944e+06 2.37719e+06 2.67699e+06 1.77436e+06 2.90634e+06 3.42603e+06 2.48746e+06 2.82152e+06 2.35122e+06 2.55261e+06 2.55621e+06 2.88651e+06 1.81143e+06 2.96941e+06 3.49878e+06 1.68309e+06 2.7592e+06 3.18952e+06 627486 669413 781517 2.0166e+06 1.0761e+06 1.98947e+06 1.89761e+06 1.92263e+06 1.96524e+06 2.04587e+06 1.94367e+06 2.3733e+06 1.92456e+06 1.90767e+06 1.89279e+06 1.87975e+06 2.14835e+06 3.28193e+06 1.44351e+06 1.56045e+06 1.63526e+06 1.86832e+06 1.69196e+06 1.74432e+06 1.85834e+06 1.84962e+06 1.77735e+06 1.84208e+06 1.80921e+06 1.8087e+06 1.81184e+06 1.83545e+06 1.79291e+06 1.7863e+06 1.82973e+06 1.82469e+06 1.82033e+06 1.77707e+06 1.77881e+06 1.77134e+06 1.76816e+06 1.76221e+06 1.76489e+06 1.76102e+06 1.75411e+06 1.75099e+06 1.75385e+06 1.81643e+06 1.75073e+06 1.74388e+06 1.81302e+06 1.80989e+06 1.80714e+06 1.80454e+06 1.8022e+06 1.79992e+06 1.79784e+06 1.79576e+06 1.79382e+06 1.74133e+06 1.79182e+06 1.74429e+06 1.78996e+06 1.74175e+06 1.73493e+06 1.73284e+06 1.73587e+06 1.78801e+06 1.78618e+06 1.73378e+06 1.7842e+06 1.72697e+06 1.78247e+06 1.72526e+06 1.72834e+06 1.72664e+06 1.71985e+06 1.71846e+06 1.72161e+06 1.72027e+06 1.71353e+06 1.71246e+06 1.71569e+06 1.71276e+06 1.71009e+06 1.70742e+06 1.71079e+06 1.7083e+06 1.70578e+06 1.70067e+06 1.70309e+06 1.68884e+06 1.66812e+06 1.61831e+06 1.53517e+06 1.38555e+06 1.23908e+06 1.78048e+06 1.77883e+06 1.7769e+06 1.77531e+06 1.77345e+06 1.77193e+06 1.77012e+06 1.76869e+06 1.76695e+06 1.76564e+06 1.76397e+06 1.76278e+06 1.76124e+06 1.76019e+06 1.75876e+06 1.75785e+06 1.75658e+06 1.75584e+06 1.75471e+06 1.75413e+06 1.75319e+06 1.75272e+06 1.75195e+06 1.75159e+06 1.75103e+06 1.75078e+06 1.75041e+06 1.75025e+06 1.75003e+06 1.74995e+06 1.7498e+06 1.74984e+06 1.74977e+06 1.74992e+06 1.7499e+06 1.75015e+06 1.75019e+06 1.75055e+06 1.75065e+06 1.75109e+06 1.75125e+06 1.7518e+06 1.75202e+06 1.75263e+06 1.75295e+06 1.75365e+06 1.75405e+06 1.7548e+06 1.75529e+06 1.75611e+06 1.75669e+06 1.75755e+06 1.75822e+06 1.75914e+06 1.75987e+06 1.76083e+06 1.76162e+06 1.76263e+06 1.76347e+06 1.76452e+06 1.7654e+06 1.7665e+06 1.7674e+06 1.76852e+06 1.76946e+06 1.77061e+06 1.77156e+06 1.77272e+06 1.77369e+06 1.77487e+06 1.77584e+06 1.77702e+06 1.77801e+06 1.7792e+06 1.78019e+06 1.78137e+06 1.78236e+06 1.78354e+06 1.78452e+06 1.7857e+06 1.78668e+06 1.78784e+06 1.78881e+06 1.78995e+06 1.79091e+06 1.79205e+06 1.79299e+06 1.7941e+06 1.79504e+06 1.79613e+06 1.79704e+06 1.79812e+06 1.79901e+06 1.80006e+06 1.80094e+06 1.80197e+06 1.80283e+06 1.80383e+06 1.80467e+06 1.80565e+06 1.80647e+06 1.80743e+06 1.80822e+06 1.80916e+06 1.80993e+06 1.81085e+06 1.8116e+06 1.81248e+06 1.81322e+06 1.81408e+06 1.81479e+06 1.81563e+06 1.81632e+06 1.81714e+06 1.81781e+06 1.8186e+06 1.81926e+06 1.82003e+06 1.82067e+06 1.82142e+06 1.82204e+06 1.82276e+06 1.82336e+06 1.82406e+06 1.82465e+06 1.82533e+06 1.82591e+06 1.82657e+06 2.27578e+06 2.98541e+06 3.43211e+06 2.44024e+06 3.00655e+06 2.97336e+06 3.43713e+06 2.33782e+06 2.76271e+06 2.18897e+06 3.42472e+06 3.96839e+06 2.75354e+06 3.04e+06 2.16121e+06 2.29275e+06 2.77687e+06 2.73872e+06 3.02707e+06 2.95017e+06 3.43986e+06 3.40573e+06 3.99576e+06 2.36141e+06 2.58159e+06 2.86972e+06 3.68604e+06 3.75721e+06 4.57839e+06 2.5464e+06 3.72151e+06 4.58269e+06 2.72853e+06 3.4344e+06 3.50575e+06 4.19569e+06 2.80211e+06 3.61452e+06 2.54107e+06 2.96711e+06 2.8206e+06 3.16502e+06 4.17991e+06 3.39785e+06 4.65888e+06 3.18396e+06 3.15357e+06 3.24389e+06 3.68263e+06 5.09347e+06 3.60586e+06 5.14034e+06 3.11203e+06 3.51719e+06 4.81057e+06 3.65627e+06 5.0939e+06 2.65112e+06 3.7201e+06 4.64725e+06 2.81555e+06 3.6506e+06 2.37027e+06 2.51501e+06 3.04088e+06 3.11596e+06 3.61957e+06 2.55441e+06 3.15071e+06 3.60924e+06 4.31487e+06 3.04138e+06 3.56201e+06 3.55112e+06 4.17478e+06 2.57137e+06 2.80856e+06 2.72541e+06 3.0309e+06 2.05163e+06 2.57193e+06 2.84298e+06 2.21125e+06 2.59502e+06 2.95918e+06 3.32479e+06 3.32246e+06 3.83417e+06 2.90084e+06 3.2801e+06 2.00048e+06 2.13295e+06 2.50945e+06 3.26038e+06 3.80723e+06 2.46268e+06 2.71644e+06 2.63441e+06 2.87896e+06 2.81531e+06 3.14348e+06 3.16102e+06 3.63444e+06 2.72712e+06 2.94264e+06 2.07547e+06 2.20423e+06 2.60725e+06 3.37953e+06 3.90348e+06 2.82098e+06 3.40472e+06 4.98271e+06 3.74872e+06 3.73719e+06 5.74072e+06 1.12054e+06 1.71924e+06 1.07471e+06 1.04713e+06 1.01509e+06 975331 945130 914394 896772 883556 874719 861323 851545 841420 834165 826202 820573 814110 809541 804145 800293 795652 792309 788217 785248 781566 778878 775511 773041 769923 767632 764717 762565 759814 757775 755164 753224 750732 748877 746490 744707 742413 740694 738482 736821 734681 733071 730998 729432 727419 725894 723935 722447 720537 719083 717219 715795 713972 712575 710788 709416 707662 706311 704585 703253 701552 700236 698557 697255 695595 694304 692660 691379 689747 688474 686853 685585 683971 682706 681097 679833 678226 676962 675354 674087 672476 671205 669588 668310 666684 665397 663761 662464 660815 659505 657841 656517 654836 653497 651797 650441 648720 647345 645601 644207 642437 641022 639226 637788 635963 634500 632643 631153 629262 627744 625815 624267 622300 620720 618711 617097 615044 613395 611297 609611 607465 605739 603544 601776 599529 597719 595419 593564 591208 589308 586895 584949 582476 580481 577948 575903 573307 571211 568549 566402 563674 561474 558677 556423 553555 551246 548308 545944 542934 540517 537437 534968 531819 529299 526084 523515 520235 517620 514279 511619 508222 505518 502071 499323 495834 493393 490641 488527 485909 483827 481202 479090 476433 474285 471598 469422 466714 464523 461806 459613 456901 454720 452028 449876 447221 445115 442514 440470 437941 435977 433538 431669 429335 427577 425363 423728 421644 420141 418197 416832 415032 413805 412149 411059 409545 408587 407210 406377 405128 404407 403276 402657 401635 401105 400179 399726 398888 398499 397734 397387 396688 396371 395724 395428 394819 394534 393947 393661 393051 392785 392333 391814 390952 390729 388976 389822 384391 375237 1.10214e+06 360668 ) ; } rightWall { type inletOutlet; inletValue uniform 2000; value nonuniform List<scalar> 55 ( 61425 36760.1 26114.3 20168.5 15554.1 13336 11052.6 9447.01 8198.02 7263.18 6525.42 5958.07 5507.97 5156.08 4877.35 4659.86 4490.91 4363.1 4269.73 4205.67 4167.42 4151.45 4155.69 4178.27 4218.46 4274.38 4346.63 4433.38 4536.39 4653.76 4788.68 4938.89 5109.78 5298.18 5513.09 5749.44 6022.68 6323.77 6680.78 7076.3 7566.57 8115.86 8858.27 9713.57 11050.5 12288.9 15142.9 19992.1 30407.8 1.12054e+06 292717 132947 360668 112880 58810.1 ) ; } symmetryLine { type symmetryPlane; } } // ************************************************************************* //
3e61d42251a868708e79aebc430f64bd43613864
227affc37b44107192f32b6003d6da4269e45b21
/bits.cpp
44f17a80db4132a31b04497036c89f51ab5008f8
[]
no_license
motomax990/lectionSem2
f347d80bb8682611c92f61cd688d2fcca63de1a8
c2b24a541ae02989aecbb042b8d07f0791ab0232
refs/heads/master
2021-05-23T09:32:25.467730
2020-08-04T11:00:14
2020-08-04T11:00:14
253,222,789
1
0
null
null
null
null
UTF-8
C++
false
false
209
cpp
bits.cpp
#include <iostream> #include <cmath> using namespace std; double f(double x); int main() { double x; cin >> x; cout << f(x) << endl; return 0; } double f(double x) { return 2*sin(x); }
eb4776494508ef650ce9dbd853fe15e127c66669
a8e5517df264ca12e84c377270574a3cc378f0c1
/LAVIDA/2378/large_dat.cpp
3087065a37261e8e85de488c65885825fed75c33
[]
no_license
wowoto9772/Hungry-Algorithm
cb94edc0d8a4a3518dd1996feafada9774767ff0
4be3d0e2f07d01e55653c277870d93b73ec917de
refs/heads/master
2021-05-04T23:28:12.443915
2019-08-11T08:11:39
2019-08-11T08:11:39
64,544,872
1
1
null
null
null
null
UTF-8
C++
false
false
296
cpp
large_dat.cpp
//#include <stdio.h> //#include <time.h> //#include <stdlib.h> // //int main() //{ // freopen("large_dat6.in", "w", stdout); // // srand(time(NULL)); // // for (int i = 1; i <= 40; i++){ // int a = rand() % 40000 + 60001; // int b = rand() % 40000 + 60001; // printf("%d %d\n", a, b); // } //}
1b5ec2fec1a3b8973b3ee7507c683078b0fd7da0
852f4f6406adc1014c4257f9cf65fdc0c4a229a5
/Proyecto-final-ciencias/controlador/ControladorGeneral.h
af56ee8e9d916dde7adc60fc8feef3460af323e7
[]
no_license
CarlosLopez98/Ciencias_Computacion_I
eb94a369c9a73b3eb5b75472331f38524d126233
f080036803c759d0dfc57d9661c8fb629ae3bf14
refs/heads/master
2020-05-22T21:33:20.500730
2019-05-14T02:31:29
2019-05-14T02:31:29
186,528,320
0
0
null
null
null
null
UTF-8
C++
false
false
822
h
ControladorGeneral.h
#include"../vista/general/MenuGeneral.h" #ifndef CONTROLADORGENERAL_H #define CONTROLADORGENERAL_H using namespace std; class ControladorGeneral { private: public: ControladorGeneral(); ~ControladorGeneral(); void menuPrincipal(string&, string&); void menuConsulta(string&, string&); void menuRegistro(string&, string&); }; ControladorGeneral::ControladorGeneral(){} ControladorGeneral::~ControladorGeneral(){} void ControladorGeneral::menuPrincipal(string& controlador, string& accion){ MenuGeneral::menuPrincipal(controlador, accion); } void ControladorGeneral::menuConsulta(string& controlador, string& accion){ MenuGeneral::menuConsulta(controlador, accion); } void ControladorGeneral::menuRegistro(string& controlador, string& accion){ MenuGeneral::menuRegistro(controlador, accion); } #endif
34dd42e67be1270585375928de5c4fb8a156fb38
9a4c07e26795891494dde93aa1281b1c06285e91
/app/src/main/jni/tango-motion-tracking/motion_tracking_app.h
aa8909c06d25f99033bdb64a8fdce0bebb58c21c
[]
no_license
hmermerkaya/cpp_motion_tracking_example
c52e28e686f00a0c2722a541cc21757ae024181a
cc414506a4be5ecbb4ca6b1a8dcfb3eef3fd4d7a
refs/heads/master
2021-01-18T17:37:23.143382
2017-08-16T13:16:42
2017-08-16T13:16:44
100,490,411
0
0
null
null
null
null
UTF-8
C++
false
false
3,969
h
motion_tracking_app.h
/* * Copyright 2014 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef CPP_MOTION_TRACKING_EXAMPLE_TANGO_MOTION_TRACKING_MOTION_TRACKING_APP_H_ #define CPP_MOTION_TRACKING_EXAMPLE_TANGO_MOTION_TRACKING_MOTION_TRACKING_APP_H_ #include <android/asset_manager.h> #include <jni.h> #include <memory> #include <mutex> #include <string> #include <tango_client_api.h> // NOLINT #include <tango-gl/util.h> #include <tango-motion-tracking/scene.h> namespace tango_motion_tracking { // MotionTrackingApp handles the application lifecycle and resources. class MotionTrackingApp { public: // Constructor and deconstructor. MotionTrackingApp(); ~MotionTrackingApp(); // OnCreate() callback is called when this Android application's // OnCreate function is called from UI thread. In the OnCreate // function, we are only checking the Tango Core's version. // // @param env, java environment parameter OnCreate is being called. // @param caller_activity, caller of this function. void OnCreate(JNIEnv* env, jobject caller_activity); // OnPause() callback is called when this Android application's // OnPause function is called from UI thread. In our application, // we disconnect Tango Service and free the Tango configuration // file. It is important to disconnect Tango Service and release // the corresponding resources in the OnPause() callback from // Android, otherwise, this application will hold on to the Tango // resources and other applications will not be able to connect to // Tango Service. void OnPause(); // Call when Tango Service is connected successfully. void OnTangoServiceConnected(JNIEnv* env, jobject iBinder); // Allocate OpenGL resources for rendering, mainly initializing the Scene. void OnSurfaceCreated(AAssetManager* aasset_manager); // Set up the viewport width and height. void OnSurfaceChanged(int width, int height); // Main render loop. void OnDrawFrame(AAssetManager* aasset_manager); // Set screen rotation index. // // @param screen_roatation: the screen rotation index, // the index is following Android screen rotation enum. // see Android documentation for detail: // http://developer.android.com/reference/android/view/Surface.html#ROTATION_0 void SetScreenRotation(int screen_roatation); private: // Setup the configuration file for the Tango Service void TangoSetupConfig(); // Connect to Tango Service. // This function will start the Tango Service pipeline, in this case, it will // start Motion Tracking. void TangoConnect(); // Disconnect from Tango Service, release all the resources that the app is // holding from Tango Service. void TangoDisconnect(); // Release all resources that allocate from the program. void DeleteResources(); // main_scene_ includes all drawable object for visualizing Tango device's // movement. Scene main_scene_; // Tango configration file, this object is for configuring Tango Service setup // before connect to service. For example, we set the flag // config_enable_auto_recovery based user's input and then start Tango. TangoConfig tango_config_; // Screen rotation index. int screen_rotation_; // Flag indicating when the Tango service can be used. bool is_service_connected_; }; } // namespace tango_motion_tracking #endif // CPP_MOTION_TRACKING_EXAMPLE_TANGO_MOTION_TRACKING_MOTION_TRACKING_APP_H_
006ba20e956a9abec592f1fbc398cb8a0f31e3a3
cd29eb13f68c68957be29690a80c8517babff0b6
/GD4SFMLGameWorld/ParticleID.hpp
80540b4b9430efbd0217e6c1d4a0d7c52d0dbfb3
[]
no_license
RaisinTheSteaks/MultiplayerCA_2
2bc9ba1eccaa3f43fc52a7e0a287951af17b52da
99fa37672decd4be77d68c2acb90ba79d107dfb1
refs/heads/master
2020-12-30T07:45:29.625381
2020-03-27T15:54:21
2020-03-27T15:54:21
238,912,965
1
1
null
2020-03-27T11:36:34
2020-02-07T12:08:44
C++
UTF-8
C++
false
false
104
hpp
ParticleID.hpp
/* Charlie Duff D00183790 */ #pragma once enum class ParticleID { Propellant, Smoke, ParticleCount };
4332b191bc1822a157f3db5c4c2c018c0b8d5c94
70ccb9c09a87b3b089ce7e494c52006b93c0ae3f
/Core/Inc/OLED_GFX.h
fb50c5622c223056fc325e0ab09e01518c554d77
[]
no_license
thaaraak/PyboardRadio
65ff368bc7a9623bf6fc8c9046c532ea5f451301
0f02b6f26b135a80ff28562348e8cdb167ec1753
refs/heads/master
2022-12-04T20:12:30.016011
2020-08-29T23:22:17
2020-08-29T23:22:17
286,315,574
3
0
null
null
null
null
UTF-8
C++
false
false
1,435
h
OLED_GFX.h
#ifndef __OLED_GFX_H #define __OLED_GFX_H #include "stm32f4xx_hal.h" #include "OLED_Driver.h" typedef enum { FONT_5X8 = 0, FONT_8X16 }FONT_SIZE; #ifdef __cplusplus extern "C" { #endif class OLED_GFX : public virtual OLED_Driver { public: OLED_GFX(void); void Set_FontSize(FONT_SIZE size); void Set_TextCoordinate(uint8_t x, uint8_t y); void Draw_Line(int16_t x0, int16_t y0, int16_t x1, int16_t y1); void Draw_Rect(int16_t x, int16_t y, int16_t w, int16_t h); void Fill_Rect(uint16_t x, uint16_t y, uint16_t w, uint16_t h); void Fill_Circle(int16_t x0, int16_t y0, int16_t r); void Draw_Circle(int16_t x0, int16_t y0, int16_t r); void Draw_RoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r); void Draw_Triangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2); void print_String(uint8_t x, uint8_t y, const uint8_t *text, FONT_SIZE size); void Display_String_5x8(uint8_t x, uint8_t y, const uint8_t *text); void Display_String_8x16(uint8_t x, uint8_t y, const uint8_t *text); private: void Write_Line(int16_t x0, int16_t y0, int16_t x1, int16_t y1); void FillCircle_Helper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta); void DrawCircle_Helper( int16_t x0, int16_t y0, int16_t r, uint8_t corner); }; #ifdef __cplusplus } #endif #endif
4cfd3cadcdf08f9bee39273a569fd97f610397bc
79b39e5a38b2b84365dac101296e627d28afd999
/Binary_Search/square_root_binary_search.cpp
427c106947c31f4033600d165201cbce602a5c1b
[]
no_license
Nikhil-Vinay/DS_And_Algo
ee2e0bd9f9b90f3412e59fde7aba552150a20568
65b657f9b02cd7b61b538d37c250016479f098e2
refs/heads/master
2022-12-24T14:43:57.223894
2020-10-08T08:54:29
2020-10-08T08:54:29
291,686,411
0
0
null
null
null
null
UTF-8
C++
false
false
1,719
cpp
square_root_binary_search.cpp
/**** Calculate square root by binary search till n decimal place *********/ /**** Fastest algorithm to calculate square root of a number *******/ #include<iostream> #include<bits/stdc++.h> using namespace std; int SqrtDecimalPartUtil(int n) { int ans = 0; int start = 0, end = n, mid = 0; // time complexity = O(logn) while(start < end) { mid = start + (end - start)/2; if(mid*mid == n) { ans = mid; break; } else if (mid*mid < n) { // ans lies in right side, current mid could be the ans ans = mid; // because (mid+1)*(mid+1) could exceed the n start = mid+1; } else { // ans lies in left side end = mid; } } return ans; } float SqrtWithFractionalPartUtil(int n, int d, int m) { float x = 0.1; float result = d + 0.0; // time complexity = O(m*9) ~ O(m) while(m >= 0) { int i; for(i = 1; i <= 9; i++) { float temp = result + (x * i); if(temp * temp > (float)n) { break; } } result += (x * (i-1)); x = (x/10); // 0.1 -> 0.01 -> 0.001 -> ... m--; } return result; } float GetSqrt(int n, int m) { // Get decimal part of square root of n // Time complexity = O(logn) int d = SqrtDecimalPartUtil(n); if (d*d == n) { return float(d); } else { // Time complexity = O(m) return SqrtWithFractionalPartUtil(n, d, m); } // Total time complexity = O(logn) + O(m) } int main() { int n, m; cout<<"Enter the number: "<<endl; cin >> n; cout<<"Enter the decimal place precision: "<<endl; cin>>m; float sqrt = GetSqrt(n, m); cout<<"Square root is: "<<sqrt<<endl; return 0; }
fb4613cb2fea6525c26c8bbab0398d64ddfc851b
1069c8c8b692ff7ea7ef447a1e08e51e3f60e30c
/bitmanip/test.cpp
7c645ca84ed3236a1e6d042a9fa7fddd59a11df4
[]
no_license
ganeshkumar269/400
ce3609e76149a7bf34643e955ab98480e909a791
d5a1e2af5fe5b22216c8b434b5e341d97bd21537
refs/heads/master
2021-07-09T22:02:01.223304
2021-06-05T15:34:38
2021-06-05T15:34:38
245,402,930
0
0
null
null
null
null
UTF-8
C++
false
false
86
cpp
test.cpp
#include <iostream> using namespace std; int main(){ cout << (1^2^4^8) << endl; }
519fa2b0f116e586cc4d16ee17f87d59d7b29f50
bd9b6a6e5613505011539667888230a4ae5bb2ef
/src/renderer/core/renderer.h
19d84874a46c4da95ec95dee3e3a7eda41c581fc
[]
no_license
szy042/GPU-Renderer
35dc42e66298e1d9b50f8a58524483d3c1ada02d
002bdcdd3c0251443768d7ebde2c5bff88b70e54
refs/heads/master
2020-11-24T11:55:56.846341
2019-12-26T07:09:04
2019-12-26T07:09:04
227,125,868
0
0
null
2019-12-10T14:04:47
2019-12-10T13:17:20
null
UTF-8
C++
false
false
303
h
renderer.h
#pragma once #ifndef __RENDERER_H #define __RENDERER_H #include "renderer/core/scene.h" #include "renderer/core/camera.h" #include "renderer/core/integrator.h" class Renderer { public: Renderer() {} Scene m_scene; Camera m_camera; Integrator m_integrator; }; #endif // !__RENDERER_H
8a986d2cadbd91715eda0791c1de290b4180c870
24ff89c4052823e31841c17a7e0de08c64c0b206
/Things Speak API Write.ino
09e1d7738108fd58acad1e9a51b43efcbc4c02c3
[]
no_license
vivekthota16/Internet-of-Things-Mission-Kitchen-Project-
141ca356260297630c995fba12101c53e78759e5
dee7d8a693d7c880fa2be5541220340090db0e78
refs/heads/master
2021-05-06T11:34:08.553302
2017-12-15T12:33:54
2017-12-15T12:33:54
114,268,905
2
0
null
null
null
null
UTF-8
C++
false
false
624
ino
Things Speak API Write.ino
#include "ThingSpeak.h" //#include <ESP8266WiFi.h> #include <WiFi.h> char ssid[] = "Vicky"; // your network SSID (name) char pass[] = " "; // your network password WiFiClient client; unsigned long myChannelNumber = 290437; const char * myWriteAPIKey = "HSXSWWJ4WWUFB6WV"; void setup() { pinMode(7,OUTPUT); WiFi.begin(ssid, pass); ThingSpeak.begin(client); Serial.begin(9600); digitalWrite(7,HIGH); } void loop() { float d=analogRead(A0); float voltage = d * (5 / 1023.00); ThingSpeak.writeField(myChannelNumber, 1, voltage, myWriteAPIKey); Serial.println(voltage); delay(1000); }
44fa6a3b6f67590958e2b3a6887c5bdc658f9ab0
8b96e94e4dc37841879098266ab92dd3b538e239
/commands/dss_core/cmd_core_context_open.h
641db58f930162b6b18c6cf8d8a010a573c4678b
[]
no_license
Renat060888/dss_client
79b327b8b58a41022f90a8dfddbca9162945c61c
4d16a4b3ccf82df5738776e8cd3ea9e433bf9588
refs/heads/master
2021-02-08T02:56:51.163175
2020-06-07T07:47:19
2020-06-07T07:47:19
244,101,498
0
0
null
null
null
null
UTF-8
C++
false
false
593
h
cmd_core_context_open.h
#ifndef CMD_CORE_CONTEXT_OPEN_H #define CMD_CORE_CONTEXT_OPEN_H #include "../i_command.h" namespace dss_client { class CommandContextOpen : public ICommand { public: CommandContextOpen( common_types::SCommandServices * _commandServices, PNetworkClient _network ); common_types::TDssClientUniqueId m_clientId; std::string m_contextName; private: virtual bool serializeRequestTemplateMethodPart() override; virtual bool parseResponseTemplateMethodPart() override; }; using PCommandContextOpen = std::shared_ptr<CommandContextOpen>; } #endif // CMD_CORE_CONTEXT_OPEN_H
43e30e828c08e82ec034e0e923cc8c8ffb725f69
a56252fda5c9e42eff04792c6e16e413ad51ba1a
/resources/home/dnanexus/root/include/TMVA/TNeuronInputAbs.h
c786df0b523d746126a8719c0eb6948057e6df0e
[ "LGPL-2.1-or-later", "LGPL-2.1-only", "Apache-2.0" ]
permissive
edawson/parliament2
4231e692565dbecf99d09148e75c00750e6797c4
2632aa3484ef64c9539c4885026b705b737f6d1e
refs/heads/master
2021-06-21T23:13:29.482239
2020-12-07T21:10:08
2020-12-07T21:10:08
150,246,745
0
0
Apache-2.0
2019-09-11T03:22:55
2018-09-25T10:21:03
Python
UTF-8
C++
false
false
3,639
h
TNeuronInputAbs.h
// @(#)root/tmva $Id$ // Author: Matt Jachowski /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA * * Class : TMVA::TNeuronInputAbs * * Web : http://tmva.sourceforge.net * * * * Description: * * TNeuron input calculator -- calculates the sum of the absolute values * * of the weighted inputs * * * * Authors (alphabetical): * * Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA * * * * Copyright (c) 2005: * * CERN, Switzerland * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted according to the terms listed in LICENSE * * (http://tmva.sourceforge.net/LICENSE) * **********************************************************************************/ #ifndef ROOT_TMVA_TNeuronInputAbs #define ROOT_TMVA_TNeuronInputAbs ////////////////////////////////////////////////////////////////////////// // // // TNeuronInputAbs // // // // TNeuron input calculator -- calculates the sum of the absolute // // values of the weighted inputs // // // ////////////////////////////////////////////////////////////////////////// // ROOT_VERSION(5,15,02) = (5<<16)+(15<<8)+2 = 364802 // we use the hardcoded number here since CINT does not easily understand macros // we tried using rootcints -p option, but that causes rootcint to pick up // things from the ROOT version of TMVA // #if ROOT_VERSION_CODE >= 364802 #include "TMathBase.h" // #else // #ifndef ROOT_TMath // #include "TMath.h" // #endif // #endif #include "TObject.h" #include "TString.h" #include "TMVA/TNeuronInput.h" #include "TMVA/TNeuron.h" namespace TMVA { class TNeuronInputAbs : public TNeuronInput { public: TNeuronInputAbs() {} virtual ~TNeuronInputAbs() {} // calculate the input value for the neuron Double_t GetInput( const TNeuron* neuron ) const { if (neuron->IsInputNeuron()) return 0; Double_t result = 0; for (Int_t i=0; i < neuron->NumPreLinks(); i++) result += TMath::Abs(neuron->PreLinkAt(i)->GetWeightedValue()); return result; } // name of the class TString GetName() { return "Sum of weighted activations (absolute value)"; } ClassDef(TNeuronInputAbs,0); // Calculates the sum of the absolute values of the weighted inputs }; } // namespace TMVA #endif
86eb34a223aec7ff39b516d412314697da74da8a
c9796a20cf56aa01ecbc2ff3985703b17bfb51fe
/leetcode/BoldWordsinString/a.cpp
07717b8fb3111b17d25db1ef0a62d3d53443a4eb
[]
no_license
iamslash/learntocode
a62329710d36b21f8025961c0ad9b333c10e973a
63faf361cd4eefe0f6f1e50c49ea22577a75ea74
refs/heads/master
2023-08-31T08:20:08.608771
2023-08-31T00:05:06
2023-08-31T00:05:06
52,074,001
7
2
null
null
null
null
UTF-8
C++
false
false
1,229
cpp
a.cpp
#include <cstdio> #include <vector> #include <string> #include <set> // painting strategy // O(WS) O(S) class Solution { public: std::string boldWords(std::vector<std::string>& W, std::string s) { // make bolds std::vector<bool> bolds(s.size()); for (auto& w : W) { int pos = s.find(w); while (pos != std::string::npos) { for (int i = 0; i < w.size(); ++i) bolds[pos+i] = true; pos = s.find(w, pos+1); } } // make rslt; std::string rslt; for (int i = 0; i < bolds.size(); ++i) { if (bolds[i]) { rslt += "<b>"; while (i < bolds.size() && bolds[i]) rslt += s[i++]; rslt += "</b>"; } if (i < bolds.size()) rslt += s[i]; } return rslt; } }; int main() { std::vector<std::string> W = {"ab", "bc"}; std::string s = "aabcd"; // std::vector<std::string> W = {"ccb","b","d","cba","dc"}; // std::string s = "eeaadadadc"; // "eeaa<b>d</b>a<b>d</b>a<b>dc</b>" // std::vector<std::string> W = {"b","dee","a","ee","c"}; // std::string s = "cebcecceab"; // "<b>c</b>e<b>bc</b>e<b>cc</b>e<b>ab</b>" Solution sln; printf("%s\n", sln.boldWords(W, s).c_str()); return 0; }
ebc57ed95ce8f949eb42f935d0df4cc4455f67ad
623450a58872631ee085ecfb45eabc246def198e
/Game/Properties.h
4ecb7d6804b30cfd52f1e67a755ee53d61a36c2a
[]
no_license
lyro41/the_legacy_of_the_mercenary
0f04e34930093867b5fcbfbffa078dba839306fd
93a2d4381858612bf24ef01c1bd985de2242dab6
refs/heads/master
2022-06-19T15:48:59.819524
2019-05-16T11:31:08
2019-05-16T11:31:08
180,413,359
0
0
null
null
null
null
UTF-8
C++
false
false
914
h
Properties.h
#pragma once #ifndef PROPERTIES_H #define PROPERTIES_H #include <SFML/Graphics.hpp> #include <unordered_map> #include <string> #include <fstream> #include <Windows.h> #include <codecvt> #include <iostream> #include <vector> #include "Geometry.h" using namespace sf; class Properties { public: Image image; Texture texture; Sprite sprite; std::string description; Point size; std::string update, interaction; int quantity = 0; std::vector<Sprite> status; Properties(std::string dir, std::string description, Point size); Properties(std::string dir, int frames, std::string interaction, Point size); }; class PropertyList { public: std::unordered_map<std::wstring, Properties*> items; std::unordered_map<std::wstring, Properties*> objects; PropertyList(std::wstring dir); void ItemFiller(std::wstring directory); void ObjectFiller(std::wstring directory); }; #endif // PROPERTIES_H
acebda4b2fdd9454b2de55fd841c42b312b47d1f
ad8970af123d028ba70985162909c1d512cd5857
/arrays/min_sum_subarray_ofsize_k.cpp
03e0d5f55532591d08c9772d2d80df1fa68a2b8b
[]
no_license
shivam2146/Data_Structures
999f1a6e4d2d37c56fa4effe6ec7dcb65250888d
f7a858aae8263299fa20c37a2b3b6d23a82cf7a5
refs/heads/master
2021-05-08T03:45:18.058308
2018-07-01T02:00:55
2018-07-01T02:00:55
108,306,243
0
2
null
2017-11-01T19:06:14
2017-10-25T18:00:45
C++
UTF-8
C++
false
false
585
cpp
min_sum_subarray_ofsize_k.cpp
#include<iostream> #include<limits.h> using namespace std; //using sliding window tech void minSumSubArray(int arr[],int n,int k){ int index = 0, minSum = INT_MAX, winSum = 0; for(int i=0; i<n ; i++){ winSum += arr[i]; if(i+1 >= k){ if(minSum > winSum){ minSum = winSum; index = i; } winSum -= arr[i-k+1]; } } printf("min sum subarray is %d,%d with sum: %d",index-k+1,index,minSum); } int main(){ int arr[] = {10,4,2,5,6,3,8,1}; int size = sizeof(arr)/sizeof(arr[0]); int k = 3; minSumSubArray(arr,size,k); return 1; }
ba717871f38584a7b6e2455593f26d1a6362a0dd
ca2a8b942e542e0c0a2d15392683a7d74228a41f
/storytime/src/system/Timer.h
c336fb6642af057bc4c46fff192e664f12a4a5f7
[]
no_license
Taardal/storytime
1480f17b92b1ff07fabd760e9af80faf50d50009
1d911dcf69d239867a214eea7872257849dba7ee
refs/heads/master
2023-05-27T18:41:17.984534
2020-09-06T08:35:34
2020-09-06T08:35:34
218,632,081
0
0
null
2020-04-28T10:37:20
2019-10-30T21:42:53
C++
UTF-8
C++
false
false
603
h
Timer.h
#pragma once #include <chrono> namespace storytime { class Timer { private: typedef std::chrono::high_resolution_clock HighResolutionClock; typedef std::chrono::duration<long, std::nano> Nanoseconds; typedef std::chrono::duration<float, std::milli> Milliseconds; template<typename T> using TimePoint = std::chrono::time_point<T>; TimePoint<HighResolutionClock> start; public: void Reset(); float ElapsedMs(); float ElapsedSec(); private: static float NsToMs(Nanoseconds nanoseconds); }; }
105c80b7274dd366cc5b0944298d0eb351535135
91934151a853b78d5438ffbbf41d9070bc469656
/Tricky Permutation.cpp
f9b10066854f7b8cb871954f80cf030385673f57
[]
no_license
hrAnand1999/Coding-Blocks-Solution
19731002e47715225e70e47116c58b9e0b894ea2
333d38ada05513a88b6e445816c4c7be847079ce
refs/heads/master
2023-06-06T10:42:34.789658
2021-06-25T05:22:45
2021-06-25T05:22:45
338,001,025
0
0
null
null
null
null
UTF-8
C++
false
false
494
cpp
Tricky Permutation.cpp
#include <iostream> #include<set> #include<string> using namespace std; void permute(string t, int i, set<string> & s) { if(t[i] == '\0') { s.insert(t); return; } for(int j = i; t[j] != '\0'; j++) { swap(t[i], t[j]); permute(t, i + 1, s); swap(t[i], t[j]); } return; } int main() { string t; cin >> t; set<string> s; permute(t, 0, s); for(auto x : s) { cout << x << endl; } return 0; }
8abc12a8ad2c88972ecc3b7467d992ebffc11a79
b36002d71971c3964d91be277d130ca6b22c44a1
/Day.cpp
3584c95385a55526008772e1266c443620b789bc
[]
no_license
SbZhechev/Calendar-Project
a7bc29c1fbe3e1df895d5303379b06d728fa0e0e
bb41c045f72f6e271b804dff37e9e3f2db08f110
refs/heads/master
2020-04-06T18:59:56.297247
2018-11-22T22:09:56
2018-11-22T22:09:56
157,721,466
0
0
null
null
null
null
UTF-8
C++
false
false
2,073
cpp
Day.cpp
#pragma once #include "Day.h" void Day::resize() { this->capacity=this->capacity*2+1; Task** temp = new Task*[this->capacity]; for(size_t i=0;i<this->size;i++) { temp[i]=this->tasks[i]; } this->destroy(); this->tasks=temp; } void Day::copy(const Day& other) { for(size_t i=0;i<this->size;i++) { this->tasks[i]= other.tasks[i]->clone(); } } void Day::destroy() { for(size_t i=0;i<this->size;i++) { delete this->tasks[i]; } delete[] this->tasks; } Day::Day() { this->size=0; this->capacity=5; this->tasks=new Task*[this->capacity]; } Day::Day(const Day& other) { this->copy(other); } Day& Day::operator=(const Day& other) { if(this!=&other) { this->destroy(); this->copy(other); } return *this; } Day::~Day() { this->destroy(); } void Day::addBusinessTask(const BusinessTask& bussiness) { if(this->size>=this->capacity) { this->resize(); } this->tasks[this->size] = new BusinessTask(bussiness); this->size++; } void Day::addStudyTask(const StudyTask& study) { if(this->size>=this->capacity) { this->resize(); } this->tasks[this->size] = new StudyTask(study); this->size++; } void Day::addRelaxTask(const RelaxTask& relax) { if(this->size>=this->capacity) { this->resize(); } this->tasks[this->size] = new RelaxTask(relax); this->size++; } void Day::removeTasks() { delete this->tasks[this->size]; size--; } void Day::printTasks() { cout<<"Number of tasks on this day : "<<this->size<<endl; for(size_t i=0;i<this->size;i++) { this->tasks[i]->print(); } }
83b060193d58462e0ea596bb3c16063f2d3d5187
9a476ad6d7620ccd9f924c020ca06a6f44755f8b
/PinConfig.hpp
9205727ff87d131c06b2a6e9a1d144f07ab060de
[ "Unlicense" ]
permissive
rautava/EspMatrix
ba5de42296815d273ee89bd82832161b8ee20bbe
92a9216ea177c49c8847c99ee2892f46b87beb84
refs/heads/master
2022-11-25T01:50:08.048194
2020-07-31T18:53:33
2020-07-31T18:53:33
282,484,647
0
0
null
null
null
null
UTF-8
C++
false
false
272
hpp
PinConfig.hpp
#pragma once #include "Arduino.h" namespace PinConfig { constexpr int PHOTO_SENSOR = A0; constexpr int MATRIX_DISPLAY = D8; constexpr int BUTTON_LEFT = D5; constexpr int BUTTON_MIDDLE = D6; constexpr int BUTTON_RIGHT = D7; } // namespace PinConfig
840f1500e1e8cb448e1ced66ddff288e187d0d4d
102beccb4a386876dfeaea493209537c9a0db742
/RexLogicModule/Communications/ScriptDialogWidget.h
8dd5743a3870165b4b076431146b952a4f5088bb
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Chiru/naali
cc4150241d37849dde1b9a1df983e41a53bfdab1
b0fb756f6802ac09a7cd9733e24e4db37d5c1b7e
refs/heads/master
2020-12-25T05:03:47.606650
2010-09-16T14:08:42
2010-09-17T08:34:19
1,290,932
1
1
null
null
null
null
UTF-8
C++
false
false
2,011
h
ScriptDialogWidget.h
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file ScriptDialogWidget.cpp * @brief Dialog Widget started by llDialog script command at server. */ #ifndef incl_RexLogicModule_ScriptDialogWidget_h #define incl_RexLogicModule_ScriptDialogWidget_h #include "ScriptDialogRequest.h" #include <QPushButton> #include <QLineEdit> class QWidget; namespace RexLogic { /** * Button for ScriptDialog selection. It emit Clicked event with * */ class SelectionButton : public QPushButton { Q_OBJECT public: //! Constructor //! @param id Id to identify button later when click event is triggered SelectionButton(QWidget *parent, const char * name = 0, QString id="" ); //! @return id given to constructor QString GetId(); private slots: void OnClicked(); private: QString id_; signals: void Clicked(QString id); }; /** * Dialog for presenting 1 to 12 labeled buttons and ignore button. * Used for requesting response for ScriptDialog network event emited by * llDialog script command on server side. * */ class ScriptDialogWidget : public QWidget { Q_OBJECT public: /// Constructor. ScriptDialogWidget(ScriptDialogRequest &request, QWidget *parent = 0); /// Destructor. virtual ~ScriptDialogWidget(); protected: void hideEvent(QHideEvent *hide_event); void InitWindow(ScriptDialogRequest &request); void showEvent(QShowEvent* show_event); private: QWidget *widget_; ScriptDialogRequest request_; QString text_value_; QLineEdit *text_input_; //UiProxyWidget *proxyWidget_; private slots: void OnButtonPressed(QString id); void OnIgnorePressed(); signals: void OnClosed(int channel, QString answer); }; } #endif // incl_RexLogic_ScriptDialogWidget_h
8e5cacdfcb716ba710e54dc88370d658dea1de66
e8282e3ae8aafa07b7f7261c639f206c4e97e0fc
/03 - Online Judges/spoj/SHUB1307.cpp
51e45e945dd42d8c044f6692124a1db9a5bd67ac
[]
no_license
irfansofyana/cp-codes
7cad844da49b901ccf678b75c31ed41e2fa9d645
9fa723129088f0e4832ecb7e012fe586b6d59e41
refs/heads/master
2023-04-04T00:48:36.334817
2021-04-12T03:07:06
2021-04-12T03:07:06
218,084,148
0
0
null
null
null
null
UTF-8
C++
false
false
1,266
cpp
SHUB1307.cpp
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define irfan using #define sofyana namespace #define putra std irfan sofyana putra; typedef long long ll; const ll INF = (ll)1e15; ll t,n,m,i,j,k; ll dp[105][105][505]; ll arr[105][105]; bool cek(ll r, ll c){ return (r >= 0 && r < n && c >= 0 && c < m); } ll cari(ll r,ll c,ll maks){ if (r == n-1 && c == m-1 && maks >= arr[r][c]) return arr[r][c]; if (r == n-1 && c == m-1) return -INF; if (dp[r][c][maks] != -1) return dp[r][c][maks]; ll Q1 = -INF; ll Q2 = -INF; ll Q3 = -INF; if (cek(r,c+1)) { if (arr[r][c] <= maks) Q1 = cari(r, c+1, maks-arr[r][c]) + arr[r][c]; } if (cek(r+1,c)) { if (arr[r][c] <= maks) Q2 = cari(r+1, c, maks-arr[r][c]) + arr[r][c]; } if (cek(r+1,c+1)) { if (arr[r][c] <= maks) Q3 = cari(r+1, c+1, maks-arr[r][c]) + arr[r][c]; } return dp[r][c][maks] = max(max(Q1,Q2), Q3); } int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> t; while (t--) { cin >> n >> m >> k; for (i = 0 ; i < n ; i++) { for (j = 0 ; j < m ; j++) cin >> arr[i][j]; } memset(dp, -1, sizeof dp); cout << (cari(0,0,k) <= 0 ? -1 : cari(0,0,k)) << '\n'; } return 0; }
82f63a4230b4824f030613d18ec5d350d73c3e43
b0e9c60f22f15705487f18d8e38fcd316d5ce949
/code/unotu/utility/tab_presets/test.h
259323ae4cfb17729245c546fbe03ee6ed72189c
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DanilaFoxPro/Unotu
09522b370be08cf5b4f4c29ca8e9336927bb957f
3d50b014ec06a0d8a0d1d07bb476368b6f443780
refs/heads/master
2023-06-22T05:56:08.761098
2021-01-05T21:13:48
2021-01-05T21:13:48
295,349,174
0
0
NOASSERTION
2021-01-05T21:13:49
2020-09-14T08:14:03
C
UTF-8
C++
false
false
413
h
test.h
#ifndef __UNOTU_UTILITY_TAB_PRESETS_TEST_H_ #define __UNOTU_UTILITY_TAB_PRESETS_TEST_H_ #include <unotu\utility\deps\unotui_includes.h> namespace unotu { namespace TabPresets { struct test : public unotui::w_tab { test(); virtual void PostConstruct(); virtual void OnEvent( std::shared_ptr<unotui::widget_event> ); }; }// namespace TabPresets } // namespace unotu #endif
d2d34718205ca2c208abba63aaa670cfddd7a711
1094f19fc564502f80ec98ee1b92d843f9c0fa50
/PenetrationInAir/src/beamDoseMaterials.cc
a5ab67d8e0875d07e1b8ccd975fd2aa0e116fa00
[]
no_license
joeharms92/Data-Dump-Plos-paper
f6877727da881cae08d6dadd5b8965d32f31f2ad
5c605f9abeeda289861ebb287050244b97bd7316
refs/heads/master
2022-01-29T04:54:49.425490
2019-07-19T19:24:46
2019-07-19T19:24:46
197,830,672
0
0
null
null
null
null
UTF-8
C++
false
false
6,007
cc
beamDoseMaterials.cc
#include "G4Isotope.hh" #include "G4Element.hh" #include "G4Material.hh" #include "G4VisAttributes.hh" #include "G4Color.hh" #include "G4OpticalSurface.hh" #include "beamDoseMaterials.hh" #include "G4NistManager.hh" #include "G4SystemOfUnits.hh" #include "G4PhysicalConstants.hh" beamDoseMaterials *beamDoseMaterials::Materials = 0; beamDoseMaterials::beamDoseMaterials() { CreateMaterials(); SetOpticalProperties(); Materials = this; } beamDoseMaterials::~beamDoseMaterials() { delete StainlessSteel; delete air; delete tungsten; delete CdWO4; delete quartz; delete lyso; delete tyvek; } beamDoseMaterials *beamDoseMaterials::GetMaterials() { return Materials; } void beamDoseMaterials::CreateMaterials() { G4NistManager* man = G4NistManager::Instance(); // Define various target materials // In order of increasing density tungsten = man->FindOrBuildMaterial("G4_W"); // Define cadmium tungstate G4Element* Cd = man->FindOrBuildElement("Cd"); G4Element* W = man->FindOrBuildElement("W"); G4Element* O = man->FindOrBuildElement("O"); CdWO4 = new G4Material("CdWO4", 7.9*g/cm3, 3); CdWO4->AddElement(Cd, 1); CdWO4->AddElement(W, 1); CdWO4->AddElement(O, 4); // Define stainless steel G4Element* C = man->FindOrBuildElement("C"); G4Element* Si = man->FindOrBuildElement("Si"); G4Element* Cr = man->FindOrBuildElement("Cr"); G4Element* Mn = man->FindOrBuildElement("Mn"); G4Element* Fe = man->FindOrBuildElement("Fe"); G4Element* Ni = man->FindOrBuildElement("Ni"); StainlessSteel = new G4Material("StainlessSteel", 8.06*g/cm3, 6); StainlessSteel->AddElement(C, 0.001); StainlessSteel->AddElement(Si, 0.007); StainlessSteel->AddElement(Cr, 0.18); StainlessSteel->AddElement(Mn, 0.01); StainlessSteel->AddElement(Fe, 0.712); StainlessSteel->AddElement(Ni, 0.09); // quartz quartz = new G4Material( "quartz", 2.2*g/cm3, 2 ); quartz->AddElement( Si, 1 ); quartz->AddElement( O, 2 ); G4Element* Y = man->FindOrBuildElement("Y"); G4Element* Lu = man->FindOrBuildElement("Lu"); // lyso lyso = new G4Material( "lyso", 7.1*g/cm3, 4 ); lyso->AddElement(Lu, 9); lyso->AddElement(Y, 1); lyso->AddElement(Si, 5); lyso->AddElement(O, 25); G4Element* H = man->FindOrBuildElement("H"); // tyvek tyvek = new G4Material( "tyvek",0.96*g/cm3,2); tyvek->AddElement( H, 2); tyvek->AddElement( C, 1); air = man->FindOrBuildMaterial("G4_AIR"); } void beamDoseMaterials::SetOpticalProperties() { G4double energy[2] = {1.034*eV,8.136*eV}; G4double photonEnergy32[] = {1.034*eV, 2.068*eV, 2.106*eV, 2.139*eV, 2.177*eV, 2.216*eV, 2.256*eV, 2.298*eV, 2.341*eV, 2.386*eV, 2.433*eV, 2.481*eV, 2.532*eV, 2.585*eV, 2.640*eV, 2.697*eV, 2.757*eV, 2.820*eV, 2.885*eV, 2.954*eV, 3.026*eV, 3.102*eV, 3.181*eV, 3.265*eV, 3.353*eV, 3.446*eV, 3.545*eV, 3.629*eV, 3.760*eV, 3.877*eV, 4.002*eV, 8.136*eV}; const G4int nEntries32 = sizeof(photonEnergy32)/sizeof(G4double); G4double refl_energy[9] ={1.034*eV,1.550*eV,1.771*eV,2.066*eV,2.480*eV,3.100*eV,4.133*eV,6.199*eV,8.136*eV}; // refl energy Gore // Quartz Material Properties G4double refractiveIndexQuartz[32] = {1.445,1.47,1.47,1.47,1.47,1.471,1.471,1.471, 1.472,1.472,1.473,1.473,1.473,1.474,1.474,1.474, 1.474,1.475,1.475,1.475,1.475,1.475,1.477,1.477, 1.479,1.479,1.485,1.49,1.49,1.495,1.495,1.5}; G4double absorptionQuartz[32] = {33.333*m,16.667*m,16.129*m,15.625*m,15.1515*m,14.70588*m,14.2857*m, 13.88889*m,13.5135*m,13.15789*m,12.8025*m,12.5*m,12.195*m,11.90476*m, 11.6279*m,11.3636*m,11.1111*m,11.1111*m,10.52632*m,10.52632*m,10.0*m, 10.0*m,9.5238*m,9.5238*m,9.0909*m,9.0909*m,9.0909*m,8.3333*m, 7.6923*m,7.1429*m,6.6667*m,0.03125*m}; G4MaterialPropertiesTable *quartzMat = new G4MaterialPropertiesTable(); quartzMat->AddProperty( "RINDEX", photonEnergy32, refractiveIndexQuartz, nEntries32 ); quartzMat->AddProperty("ABSLENGTH", photonEnergy32, absorptionQuartz, nEntries32 ); quartz->SetMaterialPropertiesTable( quartzMat ); // Tyvek Material Properties // This is used in the model as reflector G4double absorptionTyvek[2] = {0.0001*mm, 0.0001*mm}; G4MaterialPropertiesTable *tyvekMat = new G4MaterialPropertiesTable(); tyvekMat->AddProperty( "ABSORPTION", energy, absorptionTyvek, 2); tyvek->SetMaterialPropertiesTable( tyvekMat ); // Quartz-Tyvek Surface material properties G4double refl[9] = {0.98,0.98,0.988,0.99,0.995,0.995,0.995,0.7,0.0}; //Gore G4double specularlobe[2] = {0.3, 0.3}; G4double specularspike[2] = {0.2, 0.2}; G4MaterialPropertiesTable *tyvekSurfaceMat = new G4MaterialPropertiesTable(); tyvekSurfaceMat->AddProperty("REFLECTIVITY",refl_energy,refl,9); tyvekSurfaceMat->AddProperty("SPECULARLOBECONSTANT",energy, specularlobe, 2); tyvekSurfaceMat->AddProperty("SPECULARSPIKECONSTANT", energy, specularspike, 2); tyvekSurfaceMat->AddProperty("BACKSCATTERCONSTANT", energy, specularspike, 2); tyvekSurface = new G4OpticalSurface("TyvekSurface"); tyvekSurface->SetFinish(ground); tyvekSurface->SetModel(glisur); tyvekSurface->SetType(dielectric_metal); tyvekSurface->SetPolish(0.01); //guess tyvekSurface->SetMaterialPropertiesTable(tyvekSurfaceMat); G4double refl_quartz[2] = {0.96,0.96}; G4double effi_quartz[2] = {0.96,0.96}; quartzSurface = new G4OpticalSurface("QuartzSurface"); quartzSurface->SetType(dielectric_dielectric); quartzSurface->SetFinish(polished); quartzSurface->SetModel(glisur); G4MaterialPropertiesTable *quartzSurfaceMat = new G4MaterialPropertiesTable(); quartzSurfaceMat->AddProperty("REFLECTIVITY", energy,refl_quartz,2); quartzSurfaceMat->AddProperty("EFFICIENCY",energy,effi_quartz,2); quartzSurface->SetMaterialPropertiesTable(quartzSurfaceMat); }
6599be2e824b87069c820888490336ae1129253b
ac48dc874f5550d03648c28b1eda5720202eb55c
/mm-camera/mm-camera2/media-controller/modules/imglib/components/quadracfa/prebuilt/test/remosaic_test.cpp
73f7bfe03d072ab515518284030d94a6c7c121f9
[]
no_license
difr/msm8937-8953_qcom_vendor
464e478cae4a89de34ac79f4d615e5141c40cbcb
6cafff53eca7f0c28fa9c470b5211423cf47fd40
refs/heads/master
2020-03-20T09:58:48.935110
2018-05-27T04:13:22
2018-05-27T04:13:22
137,355,108
0
1
null
null
null
null
UTF-8
C++
false
false
2,048
cpp
remosaic_test.cpp
/********************************************************************** * Copyright (c) 2016 Qualcomm Technologies, Inc. * All Rights Reserved. * Confidential and Proprietary - Qualcomm Technologies, Inc. **********************************************************************/ #include <math.h> #include "remosaic_test.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define RT_UNUSED(x) (void)(x) #include "libremosaiclib.h" int main() { RT_LOGE("inside quadtest new32bit version 15 july"); FILE* fp; int m_iWidth = 4624; int m_iHeight = 3480; fp=fopen("/data/misc/camera/quadracfa_input__undefined_time__4624x3520_2_0_11" ".raw","rb"); if (!fp) { return 0; } unsigned char *m_pInputBuffer = new unsigned char[m_iWidth * m_iHeight * 5 / 4]; fread(m_pInputBuffer,sizeof(unsigned char),m_iWidth*m_iHeight*5/4,fp); fclose(fp); uint16_t* m_pOutputBuffer = new uint16_t[m_iWidth*m_iHeight]; int wb_grgain = 2.010261f*1024; int wb_rgain = 1.000000f*1024; int wb_bgain = 1.600469f*1024; int wb_gbgain = 1.0f*1024; int analog_gain = 1; int pedestal = 64; int mode = 0; int* xtalk_gain_map = NULL; int port0 = 0; int port1 = 0; int port2 = 0; int port3 = 0; int lib_status = 0; // run function Run4PixelProc((unsigned char*)m_pInputBuffer, (unsigned short*) m_pOutputBuffer, m_iWidth, m_iHeight, wb_grgain, wb_rgain, wb_bgain, wb_gbgain, analog_gain, pedestal, 0, xtalk_gain_map, mode, &lib_status, &port0, &port1, &port2, &port3); //Run4PixelProc( m_pInputBuffer,(unsigned short*) m_pOutputBuffer, m_iWidth, // m_iHeight, // wb_grgain, wb_rgain, wb_bgain, wb_gbgain, analog_gain, &port0); FILE* fp_out5; fp_out5=fopen("/data/misc/camera/quadracfa_OUTPUT__undefined_time__4624x3520_" "2_0_11.raw","wb"); if (!fp_out5) { return 0; } fwrite(m_pOutputBuffer,sizeof(uint16),m_iWidth*m_iHeight,fp_out5); fclose(fp_out5); delete [] m_pOutputBuffer; }
ce5d6bb3652042148755e8dde69a9f08eea2283c
6b40e9dccf2edc767c44df3acd9b626fcd586b4d
/NT/net/tapi/rtc/phoenix/src/core/test4/rtctest.cpp
2f380a3e6f5bc38bea0cc9fbcf99e778821db83e
[]
no_license
jjzhang166/WinNT5_src_20201004
712894fcf94fb82c49e5cd09d719da00740e0436
b2db264153b80fbb91ef5fc9f57b387e223dbfc2
refs/heads/Win2K3
2023-08-12T01:31:59.670176
2021-10-14T15:14:37
2021-10-14T15:14:37
586,134,273
1
0
null
2023-01-07T03:47:45
2023-01-07T03:47:44
null
UTF-8
C++
false
false
23,903
cpp
rtctest.cpp
#define UNICODE #include <windows.h> #include <RTCCore.h> #include <rtcerr.h> #include <stdio.h> #include "RTCTest.h" IRTCClient * g_pClient = NULL; IRTCSession * g_pSession = NULL; IRTCProfile * g_pProfile = NULL; CRTCEvents * g_pEvents = NULL; ///////////////////////////////////////////// // // WndProc // LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { HRESULT hr; switch ( uMsg ) { case WM_CREATE: { hr = CoCreateInstance( CLSID_RTCClient, NULL, CLSCTX_INPROC_SERVER, IID_IRTCClient, (LPVOID *)&g_pClient ); if ( FAILED(hr) ) { printf("CoCreateInstance failed 0x%lx\n", hr); return -1; } hr = g_pClient->Initialize(); if ( FAILED(hr) ) { printf("Initialize failed 0x%lx\n", hr); return -1; } hr = g_pClient->SetPreferredMediaTypes( RTCMT_AUDIO_SEND | RTCMT_AUDIO_RECEIVE | RTCMT_VIDEO_SEND | RTCMT_VIDEO_RECEIVE, VARIANT_FALSE ); if ( FAILED(hr) ) { printf("SetPreferredMediaTypes failed 0x%lx\n", hr); return -1; } hr = g_pClient->put_EventFilter( RTCEF_SESSION_STATE_CHANGE | RTCEF_REGISTRATION_STATE_CHANGE | RTCEF_MEDIA | RTCEF_CLIENT ); if ( FAILED(hr) ) { printf("put_EventFilter failed 0x%lx\n", hr); return -1; } g_pEvents = new CRTCEvents; hr = g_pEvents->Advise( g_pClient, hWnd ); if ( FAILED(hr) ) { printf("Advise failed 0x%lx\n", hr); return -1; } return 0; } case WM_DESTROY: { printf("Exiting...\n"); if ( g_pEvents ) { hr = g_pEvents->Unadvise( g_pClient ); if ( FAILED(hr) ) { printf("Unadvise failed 0x%lx\n", hr); } g_pEvents = NULL; } if ( g_pSession ) { g_pSession->Release(); g_pSession = NULL; } if ( g_pProfile ) { g_pProfile->Release(); g_pProfile = NULL; } if ( g_pClient ) { hr = g_pClient->Shutdown(); if ( FAILED(hr) ) { printf("Shutdown failed 0x%lx\n", hr); } g_pClient->Release(); g_pClient = NULL; } PostQuitMessage(0); return 0; } case WM_TIMER: { if ( wParam == TID_CALL_TIMER ) { KillTimer( hWnd, TID_CALL_TIMER ); if ( g_pSession ) { hr = g_pSession->Terminate( RTCTR_NORMAL ); if ( FAILED(hr) ) { printf("Terminate failed 0x%lx\n", hr); DestroyWindow(hWnd); } } } return 0; } case WM_CORE_EVENT: { switch ( wParam ) { case RTCE_SESSION_STATE_CHANGE: { IRTCSessionStateChangeEvent * pSSC; IRTCSession * pSession; RTC_SESSION_STATE enSS; IDispatch * pDisp; long lStatus; BSTR bstrStatus; pDisp = (IDispatch *)lParam; pDisp->QueryInterface( IID_IRTCSessionStateChangeEvent, (void **)&pSSC ); pDisp->Release(); hr = pSSC->get_State(&enSS); if ( FAILED(hr) ) { printf("get_State failed 0x%lx\n", hr); pSSC->Release(); return 0; } lStatus = S_OK; hr = pSSC->get_StatusCode(&lStatus); if ( FAILED(hr) ) { printf("get_StatusCode failed 0x%lx\n", hr); pSSC->Release(); return 0; } hr = pSSC->get_StatusText(&bstrStatus); if ( FAILED(hr) && (hr != E_FAIL)) { printf("get_StatusText failed 0x%lx\n", hr); pSSC->Release(); return 0; } if (HRESULT_FACILITY(lStatus) == FACILITY_SIP_STATUS_CODE) { printf("Status: %d %ws\n", HRESULT_CODE(lStatus), bstrStatus); } SysFreeString( bstrStatus ); hr = pSSC->get_Session(&pSession); if ( FAILED(hr) ) { printf("get_Session failed 0x%lx\n", hr); pSSC->Release(); return 0; } if ( (g_pSession == pSession) || (enSS == RTCSS_INCOMING) ) { switch(enSS) { case RTCSS_IDLE: printf("IDLE [0x%lx]\n", pSession); break; case RTCSS_INPROGRESS: printf("INPROGRESS [0x%lx]\n", pSession); break; case RTCSS_INCOMING: { printf("INCOMING [0x%lx]\n", pSession); if ( g_pSession ) g_pSession->Release(); g_pSession = pSession; g_pSession->AddRef(); BSTR bstrKey = SysAllocString(L"RTC"); hr = g_pSession->put_EncryptionKey( RTCMT_ALL_RTP, bstrKey ); SysFreeString( bstrKey ); if ( FAILED(hr) ) { printf("put_EncryptionKey failed 0x%lx\n", hr); DestroyWindow(hWnd); } hr = g_pSession->Answer(); if ( FAILED(hr) ) { printf("Answer failed 0x%lx\n", hr); DestroyWindow(hWnd); } } break; case RTCSS_CONNECTED: printf("CONNECTED [0x%lx]\n", pSession); SetTimer( hWnd, TID_CALL_TIMER, 30000, NULL); break; case RTCSS_DISCONNECTED: printf("DISCONNECTED [0x%lx]\n", pSession); if ( g_pSession ) { g_pSession->Release(); g_pSession = NULL; } hr = g_pClient->PrepareForShutdown(); if ( FAILED(hr) ) { printf("PrepareForShutdown failed 0x%lx\n", hr); DestroyWindow(hWnd); } break; } } pSSC->Release(); pSession->Release(); } break; case RTCE_MEDIA: { IRTCMediaEvent * pM; IDispatch * pDisp; RTC_MEDIA_EVENT_TYPE enEventType; long lMediaType; pDisp = (IDispatch *)lParam; pDisp->QueryInterface( IID_IRTCMediaEvent, (void **)&pM ); pDisp->Release(); hr = pM->get_EventType(&enEventType); if ( FAILED(hr) ) { printf("get_EventType failed 0x%lx\n", hr); pM->Release(); return 0; } hr = pM->get_MediaType(&lMediaType); if ( FAILED(hr) ) { printf("get_MediaType failed 0x%lx\n", hr); pM->Release(); return 0; } IVideoWindow * pVid = NULL; switch (lMediaType) { case RTCMT_VIDEO_SEND: hr = g_pClient->get_IVideoWindow(RTCVD_PREVIEW, &pVid); printf("RTCMT_VIDEO_SEND - "); break; case RTCMT_VIDEO_RECEIVE: hr = g_pClient->get_IVideoWindow(RTCVD_RECEIVE, &pVid); printf("RTCMT_VIDEO_RECEIVE - "); break; case RTCMT_AUDIO_SEND: printf("RTCMT_AUDIO_SEND - "); break; case RTCMT_AUDIO_RECEIVE: printf("RTCMT_AUDIO_RECEIVE - "); break; case RTCMT_T120_SENDRECV: printf("RTCMT_T120_SENDRECV - "); break; } switch (enEventType) { case RTCMET_STARTED: printf("RTCMET_STARTED\n"); if ( (pVid != NULL) && SUCCEEDED(hr) ) { pVid->put_Visible( -1 ); pVid->Release(); } break; case RTCMET_STOPPED: printf("RTCMET_STOPPED\n"); if ( (pVid != NULL) && SUCCEEDED(hr) ) { pVid->put_Visible( 0 ); pVid->Release(); } break; case RTCMET_FAILED: printf("RTCMET_FAILED\n"); break; } pM->Release(); } break; case RTCE_REGISTRATION_STATE_CHANGE: { IRTCRegistrationStateChangeEvent * pRSC; IRTCProfile * pProfile; RTC_REGISTRATION_STATE enRS; IDispatch * pDisp; pDisp = (IDispatch *)lParam; pDisp->QueryInterface( IID_IRTCRegistrationStateChangeEvent, (void **)&pRSC ); pDisp->Release(); hr = pRSC->get_State(&enRS); if ( FAILED(hr) ) { printf("get_State failed 0x%lx\n", hr); pRSC->Release(); return 0; } hr = pRSC->get_Profile(&pProfile); if ( FAILED(hr) ) { printf("get_Profile failed 0x%lx\n", hr); pRSC->Release(); return 0; } switch(enRS) { case RTCRS_NOT_REGISTERED: printf("RTCRS_NOT_REGISTERED [0x%lx]\n", pProfile); break; case RTCRS_REGISTERING: printf("RTCRS_REGISTERING [0x%lx]\n", pProfile); break; case RTCRS_REGISTERED: printf("RTCRS_REGISTERED [0x%lx]\n", pProfile); break; case RTCRS_REJECTED: printf("RTCRS_REJECTED [0x%lx]\n", pProfile); break; case RTCRS_UNREGISTERING: printf("RTCRS_UNREGISTERING [0x%lx]\n", pProfile); break; case RTCRS_ERROR: printf("RTCRS_ERROR [0x%lx]\n", pProfile); break; } pRSC->Release(); pProfile->Release(); } break; case RTCE_CLIENT: { IRTCClientEvent * pC; IDispatch * pDisp; RTC_CLIENT_EVENT_TYPE enEventType; pDisp = (IDispatch *)lParam; pDisp->QueryInterface( IID_IRTCClientEvent, (void **)&pC ); pDisp->Release(); hr = pC->get_EventType(&enEventType); if ( FAILED(hr) ) { printf("get_EventType failed 0x%lx\n", hr); pC->Release(); return 0; } if ( enEventType == RTCCET_ASYNC_CLEANUP_DONE ) { DestroyWindow(hWnd); } pC->Release(); } break; } return 0; } case WM_CREATE_SESSION: { printf("Calling %ws...\n", (BSTR)wParam); if ( lParam ) { printf("From %ws\n", (BSTR)lParam); hr = g_pClient->CreateSession( RTCST_PHONE_TO_PHONE, (BSTR)lParam, NULL, 0, &g_pSession ); SysFreeString( (BSTR)lParam ); } else { hr = g_pClient->CreateSession( RTCST_PC_TO_PC, NULL, NULL, 0, &g_pSession ); } if ( FAILED(hr) ) { printf("CreateSession failed 0x%lx\n", hr); DestroyWindow(hWnd); } BSTR bstrKey = SysAllocString(L"RTC"); hr = g_pSession->put_EncryptionKey( RTCMT_ALL_RTP, bstrKey ); SysFreeString( bstrKey ); if ( FAILED(hr) ) { printf("put_EncryptionKey failed 0x%lx\n", hr); DestroyWindow(hWnd); } hr = g_pSession->AddParticipant( (BSTR)wParam, NULL, NULL); if ( FAILED(hr) ) { printf("AddParticipant failed 0x%lx\n", hr); DestroyWindow(hWnd); } SysFreeString( (BSTR)wParam ); return 0; } case WM_LISTEN: { printf("Listening...\n"); hr = g_pClient->put_ListenForIncomingSessions( RTCLM_BOTH ); if ( FAILED(hr) ) { printf("put_ListenForIncomingSessions failed 0x%lx\n", hr); DestroyWindow(hWnd); } return 0; } case WM_CREATE_PROFILE: { printf("Creating profile...\n"); IRTCClientProvisioning * pProv; hr = g_pClient->QueryInterface( IID_IRTCClientProvisioning, (void**)&pProv ); if ( FAILED(hr) ) { printf("QueryInterface failed 0x%lx\n", hr); DestroyWindow(hWnd); } hr = pProv->CreateProfile( (BSTR)wParam, &g_pProfile ); SysFreeString( (BSTR)wParam ); if ( FAILED(hr) ) { printf("CreateProfile failed 0x%lx\n", hr); DestroyWindow(hWnd); } printf("Enabling profile...\n"); hr = pProv->EnableProfile( g_pProfile, 0 ); if ( FAILED(hr) ) { printf("EnableProfile failed 0x%lx\n", hr); DestroyWindow(hWnd); } pProv->Release(); return 0; } default: return DefWindowProc( hWnd, uMsg, wParam, lParam ); } return 0; } ///////////////////////////////////////////// // // Main // int _cdecl main(int argc, char* argv[]) { WNDCLASS wc; HWND hWnd; MSG msg; HRESULT hr; hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); if ( FAILED(hr) ) { printf("CoInitializeEx failed 0x%lx\n", hr); return 0; } ZeroMemory(&wc, sizeof(WNDCLASS)); wc.lpfnWndProc = WndProc; wc.hInstance = GetModuleHandle(NULL); wc.lpszClassName = TEXT("RTCTestClass"); if ( !RegisterClass( &wc ) ) { printf("RegisterClass failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError())); return 0; } hWnd = CreateWindow( TEXT("RTCTestClass"), TEXT("RTCTest"), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, GetModuleHandle(NULL), NULL ); if ( hWnd == NULL ) { printf("CreateWindow failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError())); return 0; } if ( argc > 2 ) { #define MAX_XML_LEN 8192 WCHAR wszFilename[MAX_PATH]; HANDLE hFile; DWORD dwBytesRead; char szXML[MAX_XML_LEN]; WCHAR wszXML[MAX_XML_LEN]; BSTR bstrXML; // // Get the filename // if ( !MultiByteToWideChar( CP_ACP, 0, argv[2], -1, wszFilename, MAX_PATH ) ) { printf("MultiByteToWideChar failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError()) ); return 0; } // // Read the XML from the file // hFile = CreateFile( wszFilename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); if ( hFile == INVALID_HANDLE_VALUE ) { printf("CreateFile failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError()) ); return 0; } if ( !ReadFile( hFile, szXML, MAX_XML_LEN, &dwBytesRead, NULL ) ) { printf("ReadFile failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError()) ); CloseHandle( hFile ); return 0; } printf("Read file '%ws' %d bytes\n", wszFilename, dwBytesRead); CloseHandle( hFile ); if ( !MultiByteToWideChar( CP_ACP, 0, szXML, dwBytesRead, wszXML, MAX_XML_LEN ) ) { printf("MultiByteToWideChar failed 0x%lx\n", HRESULT_FROM_WIN32(GetLastError()) ); return 0; } printf("%ws\n", wszXML); bstrXML = SysAllocString(wszXML); PostMessage( hWnd, WM_CREATE_PROFILE, (WPARAM)bstrXML, 0 ); } if ( argc > 1 ) { BSTR bstrURI; WCHAR szURI[256]; BSTR bstrLocalPhone = NULL; WCHAR szLocalPhone[256]; MultiByteToWideChar( CP_ACP, 0, argv[1], -1, szURI, 256 ); bstrURI = SysAllocString(szURI); if ( argc > 3 ) { MultiByteToWideChar( CP_ACP, 0, argv[3], -1, szLocalPhone, 256 ); bstrLocalPhone = SysAllocString(szLocalPhone); } PostMessage( hWnd, WM_CREATE_SESSION, (WPARAM)bstrURI, (LPARAM)bstrLocalPhone ); } else { PostMessage( hWnd, WM_LISTEN, 0, 0 ); } while ( GetMessage( &msg, NULL, 0, 0 ) > 0 ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } CoUninitialize(); return 0; }
ba9f4e4e970adde51ccf07296833bea1898552c3
124996117a11a06361a199ae551af0112f89ab41
/include/windows/GDIMouseProcessor.h
38e3659979d4b53e4d5f36d5df20cc7f09b2ebf5
[ "MIT" ]
permissive
smasherprog/screen_capture_lite
bf44ee08a6a694903b654b9d5a06a2ff333ec5f9
db80989ae79a678073e65d1a41f83ec37116c0e5
refs/heads/master
2023-07-19T17:59:23.641764
2023-07-12T13:51:34
2023-07-12T13:51:34
43,233,769
560
155
MIT
2023-08-14T13:49:22
2015-09-27T04:05:58
C
UTF-8
C++
false
false
451
h
GDIMouseProcessor.h
#pragma once #include "ScreenCapture.h" #include "internal/SCCommon.h" #include <memory> #include "GDIHelpers.h" namespace SL { namespace Screen_Capture { class GDIMouseProcessor : public BaseMouseProcessor { HDCWrapper MonitorDC; HDCWrapper CaptureDC; public: DUPL_RETURN Init(std::shared_ptr<Thread_Data> data); DUPL_RETURN ProcessFrame(); }; } }
67e5bede291f947963271c0998cc5486a7fa32a4
d50396ce3551c62f8336c981f5004b659d2b3351
/examples/subarray.cc
444f577a898ca86da4356594c2ebfa5f25f54db6
[]
no_license
wistaile/mpl
a49c8354270a96b2e994a0d950c31906f3ef2843
2f6ae1e12d072769679d959e75af03d17f68013f
refs/heads/master
2023-08-07T18:37:47.823013
2021-09-12T20:12:18
2021-09-12T20:12:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,410
cc
subarray.cc
#include <cstdlib> #include <iostream> #include <iomanip> #include <mpl/mpl.hpp> int main() { const mpl::communicator &comm_world = mpl::environment::comm_world(); // run the program with two or more processes if (comm_world.size() < 2) return EXIT_FAILURE; // test layout for a subarray // layouts on sending and receiving side may differ but must be compatible const int n0 = 20, n1 = 8; // size of two-dimensional array const int s0 = 11, s1 = 3; // size of two-dimensional subarray // process 0 sends if (comm_world.rank() == 0) { // C order matrix with two-dimensional C arrays double A[n1][n0]; for (int i1 = 0; i1 < n1; ++i1) for (int i0 = 0; i0 < n0; ++i0) A[i1][i0] = i0 + 0.01 * i1; mpl::subarray_layout<double> subarray({ {n1, s1, 2}, // 2nd dimension: size of array, size of subarray, start of subarray {n0, s0, 4} // 1st dimension: size of array, size of subarray, start of subarray }); comm_world.send(&A[0][0], subarray, 1); } // process 1 receives if (comm_world.rank() == 1) { double A[s1][s0]; mpl::contiguous_layout<double> array(s0 * s1); comm_world.recv(&A[0][0], array, 0); for (int i1 = 0; i1 < s1; ++i1) { for (int i0 = 0; i0 < s0; ++i0) std::cout << std::fixed << std::setprecision(2) << A[i1][i0] << " "; std::cout << '\n'; } } return EXIT_SUCCESS; }
e96700a961948af20cae1ed788c3921c57fd42ef
4a1b388fc7254e7f8fa2b72df9d61999bf7df341
/ThirdParty/ros/include/sensor_msgs/msg/detail/point_cloud__type_support.cpp
e1924e54ddaeefe7fb6d612a38f1e1c238c7a66f
[ "Apache-2.0" ]
permissive
rapyuta-robotics/rclUE
a2055cf772d7ca4d7c36e991ee9c8920e0475fd2
7613773cd4c1226957603d705d68a2d2b4a69166
refs/heads/devel
2023-08-19T04:06:31.306109
2023-07-24T15:23:29
2023-07-24T15:23:29
334,819,367
75
17
Apache-2.0
2023-09-06T02:34:56
2021-02-01T03:29:17
C++
UTF-8
C++
false
false
6,869
cpp
point_cloud__type_support.cpp
// generated from rosidl_typesupport_introspection_cpp/resource/idl__type_support.cpp.em // with input from sensor_msgs:msg/PointCloud.idl // generated code does not contain a copyright notice #include "array" #include "cstddef" #include "string" #include "vector" #include "rosidl_runtime_c/message_type_support_struct.h" #include "rosidl_typesupport_cpp/message_type_support.hpp" #include "rosidl_typesupport_interface/macros.h" #include "sensor_msgs/msg/detail/point_cloud__struct.hpp" #include "rosidl_typesupport_introspection_cpp/field_types.hpp" #include "rosidl_typesupport_introspection_cpp/identifier.hpp" #include "rosidl_typesupport_introspection_cpp/message_introspection.hpp" #include "rosidl_typesupport_introspection_cpp/message_type_support_decl.hpp" #include "rosidl_typesupport_introspection_cpp/visibility_control.h" namespace sensor_msgs { namespace msg { namespace rosidl_typesupport_introspection_cpp { void PointCloud_init_function( void * message_memory, rosidl_runtime_cpp::MessageInitialization _init) { new (message_memory) sensor_msgs::msg::PointCloud(_init); } void PointCloud_fini_function(void * message_memory) { auto typed_message = static_cast<sensor_msgs::msg::PointCloud *>(message_memory); typed_message->~PointCloud(); } size_t size_function__PointCloud__points(const void * untyped_member) { const auto * member = reinterpret_cast<const std::vector<geometry_msgs::msg::Point32> *>(untyped_member); return member->size(); } const void * get_const_function__PointCloud__points(const void * untyped_member, size_t index) { const auto & member = *reinterpret_cast<const std::vector<geometry_msgs::msg::Point32> *>(untyped_member); return &member[index]; } void * get_function__PointCloud__points(void * untyped_member, size_t index) { auto & member = *reinterpret_cast<std::vector<geometry_msgs::msg::Point32> *>(untyped_member); return &member[index]; } void resize_function__PointCloud__points(void * untyped_member, size_t size) { auto * member = reinterpret_cast<std::vector<geometry_msgs::msg::Point32> *>(untyped_member); member->resize(size); } size_t size_function__PointCloud__channels(const void * untyped_member) { const auto * member = reinterpret_cast<const std::vector<sensor_msgs::msg::ChannelFloat32> *>(untyped_member); return member->size(); } const void * get_const_function__PointCloud__channels(const void * untyped_member, size_t index) { const auto & member = *reinterpret_cast<const std::vector<sensor_msgs::msg::ChannelFloat32> *>(untyped_member); return &member[index]; } void * get_function__PointCloud__channels(void * untyped_member, size_t index) { auto & member = *reinterpret_cast<std::vector<sensor_msgs::msg::ChannelFloat32> *>(untyped_member); return &member[index]; } void resize_function__PointCloud__channels(void * untyped_member, size_t size) { auto * member = reinterpret_cast<std::vector<sensor_msgs::msg::ChannelFloat32> *>(untyped_member); member->resize(size); } static const ::rosidl_typesupport_introspection_cpp::MessageMember PointCloud_message_member_array[3] = { { "header", // name ::rosidl_typesupport_introspection_cpp::ROS_TYPE_MESSAGE, // type 0, // upper bound of string ::rosidl_typesupport_introspection_cpp::get_message_type_support_handle<std_msgs::msg::Header>(), // members of sub message false, // is array 0, // array size false, // is upper bound offsetof(sensor_msgs::msg::PointCloud, header), // bytes offset in struct nullptr, // default value nullptr, // size() function pointer nullptr, // get_const(index) function pointer nullptr, // get(index) function pointer nullptr // resize(index) function pointer }, { "points", // name ::rosidl_typesupport_introspection_cpp::ROS_TYPE_MESSAGE, // type 0, // upper bound of string ::rosidl_typesupport_introspection_cpp::get_message_type_support_handle<geometry_msgs::msg::Point32>(), // members of sub message true, // is array 0, // array size false, // is upper bound offsetof(sensor_msgs::msg::PointCloud, points), // bytes offset in struct nullptr, // default value size_function__PointCloud__points, // size() function pointer get_const_function__PointCloud__points, // get_const(index) function pointer get_function__PointCloud__points, // get(index) function pointer resize_function__PointCloud__points // resize(index) function pointer }, { "channels", // name ::rosidl_typesupport_introspection_cpp::ROS_TYPE_MESSAGE, // type 0, // upper bound of string ::rosidl_typesupport_introspection_cpp::get_message_type_support_handle<sensor_msgs::msg::ChannelFloat32>(), // members of sub message true, // is array 0, // array size false, // is upper bound offsetof(sensor_msgs::msg::PointCloud, channels), // bytes offset in struct nullptr, // default value size_function__PointCloud__channels, // size() function pointer get_const_function__PointCloud__channels, // get_const(index) function pointer get_function__PointCloud__channels, // get(index) function pointer resize_function__PointCloud__channels // resize(index) function pointer } }; static const ::rosidl_typesupport_introspection_cpp::MessageMembers PointCloud_message_members = { "sensor_msgs::msg", // message namespace "PointCloud", // message name 3, // number of fields sizeof(sensor_msgs::msg::PointCloud), PointCloud_message_member_array, // message members PointCloud_init_function, // function to initialize message memory (memory has to be allocated) PointCloud_fini_function // function to terminate message instance (will not free memory) }; static const rosidl_message_type_support_t PointCloud_message_type_support_handle = { ::rosidl_typesupport_introspection_cpp::typesupport_identifier, &PointCloud_message_members, get_message_typesupport_handle_function, }; } // namespace rosidl_typesupport_introspection_cpp } // namespace msg } // namespace sensor_msgs namespace rosidl_typesupport_introspection_cpp { template<> ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC const rosidl_message_type_support_t * get_message_type_support_handle<sensor_msgs::msg::PointCloud>() { return &::sensor_msgs::msg::rosidl_typesupport_introspection_cpp::PointCloud_message_type_support_handle; } } // namespace rosidl_typesupport_introspection_cpp #ifdef __cplusplus extern "C" { #endif ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC const rosidl_message_type_support_t * ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_cpp, sensor_msgs, msg, PointCloud)() { return &::sensor_msgs::msg::rosidl_typesupport_introspection_cpp::PointCloud_message_type_support_handle; } #ifdef __cplusplus } #endif
9e094844c8d24ff4e5af307b416c1e4f77852ffc
906f63c09d2bddbc8a54e63b66021cd451a01f2e
/templates/project-wp/LUNA_PROJECT_NAME/App.xaml.cpp
ef9705bdf82ab833b2a04980dae51885b710d0e6
[ "MIT" ]
permissive
stepanp/luna2d
d4b0cec0dd7045c1f5f45af7123805f66495980a
b9dbec8cabaaf4c3c0a4f99720350d25a8b42fcf
refs/heads/master
2021-01-23T20:55:44.246817
2018-10-09T09:13:12
2018-10-09T09:13:12
28,882,415
33
13
null
2016-04-28T12:51:34
2015-01-06T20:38:37
C++
UTF-8
C++
false
false
1,680
cpp
App.xaml.cpp
// // App.xaml.cpp // Implementation of the App class. // #include "pch.h" using namespace LUNA_PROJECT_NAME; using namespace Platform; using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Activation; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::UI::Xaml; using namespace Windows::UI::Xaml::Controls; using namespace Windows::UI::Xaml::Controls::Primitives; using namespace Windows::UI::Xaml::Data; using namespace Windows::UI::Xaml::Input; using namespace Windows::UI::Xaml::Interop; using namespace Windows::UI::Xaml::Media; using namespace Windows::UI::Xaml::Media::Animation; using namespace Windows::UI::Xaml::Navigation; // The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkID=391641 /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> App::App() { InitializeComponent(); } /// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used when the application is launched to open a specific file, to display /// search results, and so forth. /// </summary> /// <param name="e">Details about the launch request and process.</param> void App::OnLaunched(LaunchActivatedEventArgs^ e) { if (mPage == nullptr) { mPage = ref new luna2d::OpenGLESPage(); } // Place the page in the current window and ensure that it is active. Windows::UI::Xaml::Window::Current->Content = mPage; Windows::UI::Xaml::Window::Current->Activate(); }
47941f9e9c29fd6b631acacbcdb7bbdb41552696
df6a7072020c0cce62a2362761f01c08f1375be7
/include/oglplus/lib/images_load.hpp
72a7861435509398e307b5fcae46577f1df8a85b
[ "BSL-1.0" ]
permissive
matus-chochlik/oglplus
aa03676bfd74c9877d16256dc2dcabcc034bffb0
76dd964e590967ff13ddff8945e9dcf355e0c952
refs/heads/develop
2023-03-07T07:08:31.615190
2021-10-26T06:11:43
2021-10-26T06:11:43
8,885,160
368
58
BSL-1.0
2018-09-21T16:57:52
2013-03-19T17:52:30
C++
UTF-8
C++
false
false
635
hpp
images_load.hpp
/** * @file oglplus/lib/images_load.hpp * @brief All-in-one include file for the separatelly-built image loading functions * * @author Matus Chochlik * * Copyright 2010-2014 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #pragma once #ifndef OGLPLUS_LIB_LOAD_1208310818_HPP #define OGLPLUS_LIB_LOAD_1208310818_HPP #ifndef OGLPLUS_IMPLEMENTING_LIBRARY #define OGLPLUS_IMPLEMENTING_LIBRARY 1 #endif #include <oglplus/images/load.hpp> #undef OGLPLUS_IMPLEMENTING_LIBRARY #endif // include guard
bdb4df614608364036e9b942c7e871403c83c629
77a091c62781f6aefeebdfd6efd4bab9caa51465
/Done/Seletiva/seletiva2020-1/A.cpp
83c2d6a54b465ea0a2cc1f34d60d4be5d0929c13
[]
no_license
breno-helf/Maratona
55ab11264f115592e1bcfd6056779a3cf27e44dc
c6970bc554621746cdb9ce53815b8276a4571bb3
refs/heads/master
2021-01-23T21:31:05.267974
2020-05-05T23:25:23
2020-05-05T23:25:23
57,412,343
1
2
null
2017-01-25T14:58:46
2016-04-29T20:54:08
C++
UTF-8
C++
false
false
580
cpp
A.cpp
//If you are trying to hack me I wish you can get it, Good Luck :D. #include <bits/stdc++.h> using namespace std; #define debug(args...) fprintf (stderr,args) #define pb push_back #define mp make_pair typedef long long ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll; const int MAX = 1312; const int INF = 0x3f3f3f3f; const ll MOD = 1000000007; string s; int main() { cin >> s; int a = INF, z = -1; for (int i = 0; i < s.size(); i++) { if (s[i] == 'A') a = min(a, i); if (s[i] == 'Z') z = max(z, i); } cout << z - a + 1 << endl; }
c9e934bd2045903dfe67b37f2015c64b4a35ca0e
a7881a10dbeded9534f8c37d1655c1750d82518d
/geometry/mesh/tri_mesh.h
00f353d8592e7dcf1b2c02814d32ecac9fd2c7e6
[ "MIT" ]
permissive
aconstlink/natus
31130e7439c1bb983c35e5f8ed2e684677c6583a
8f8ad12aa71d246a10802bf5042f407de45d66d7
refs/heads/master
2023-08-17T01:58:03.578900
2023-03-29T12:45:45
2023-03-29T12:45:45
248,593,153
1
0
null
null
null
null
UTF-8
C++
false
false
1,490
h
tri_mesh.h
#pragma once #include "imesh.h" #include "flat_tri_mesh.h" namespace natus { namespace geometry { /// a mesh with triangles. Every three indices /// form a triangle. /// @note this mesh type does not have a polygon /// indirection table. The polygon's(tri's) vertices /// are indirected by the index tables. Every three /// indices make a triangle. struct NATUS_GEOMETRY_API tri_mesh : public imesh { natus_this_typedefs( tri_mesh ) ; public: /// defines triangles => /// every 3 indices represent a triangle uints_t indices ; more_uints_t texcoords_indices ; more_uints_t normals_indices ; /// x,y,z, x,y,z, ... floats_t positions ; more_floats_t texcoords ; more_floats_t normals ; vector_component_format position_format ; vector_component_format normal_format ; texcoord_component_format texcoord_format ; public: tri_mesh( void_t ) ; tri_mesh( this_cref_t ) ; tri_mesh( this_rref_t ) ; virtual ~tri_mesh( void_t ) ; this_ref_t operator = ( this_cref_t ) ; this_ref_t operator = ( this_rref_t ) ; public: natus::geometry::result flatten( flat_tri_mesh_ref_t mesh_out ) const ; }; natus_typedef( tri_mesh ) ; } }
73d89fd5be929acb6bd214851851f13885e37286
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ash/system/privacy_hub/sensor_disabled_notification_delegate.h
80e1a6f2e2f4de4a6e76892bf1249d3a6a714ed7
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
C++
false
false
1,858
h
sensor_disabled_notification_delegate.h
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_SYSTEM_PRIVACY_HUB_SENSOR_DISABLED_NOTIFICATION_DELEGATE_H_ #define ASH_SYSTEM_PRIVACY_HUB_SENSOR_DISABLED_NOTIFICATION_DELEGATE_H_ #include <string> #include <vector> #include "ash/ash_export.h" #include "base/containers/enum_set.h" namespace ash { // This delegate exists so that code relevant to sensor (microphone and camera) // disabled notifications under //ash can call back into //chrome. The actual // delegate instance is owned and constructed by code in //chrome during // startup. class ASH_EXPORT SensorDisabledNotificationDelegate { public: enum class Sensor { kCamera, kMinValue = kCamera, kLocation, kMicrophone, kMaxValue = kMicrophone, }; using SensorSet = base::EnumSet<Sensor, Sensor::kMinValue, Sensor::kMaxValue>; virtual ~SensorDisabledNotificationDelegate(); // Returns a list of names of the applications that have attempted to use the // sensor (camera or microphone), in order of most-recently-launched. If an // application is accessing the sensor but no name could be determined, the // name of that application will not be in the returned list. virtual std::vector<std::u16string> GetAppsAccessingSensor(Sensor sensor) = 0; }; // This is used to set a fake notification delegate in tests. class ASH_EXPORT ScopedSensorDisabledNotificationDelegateForTest { public: explicit ScopedSensorDisabledNotificationDelegateForTest( std::unique_ptr<SensorDisabledNotificationDelegate> delegate); ~ScopedSensorDisabledNotificationDelegateForTest(); private: std::unique_ptr<SensorDisabledNotificationDelegate> previous_; }; } // namespace ash #endif // ASH_SYSTEM_PRIVACY_HUB_SENSOR_DISABLED_NOTIFICATION_DELEGATE_H_
7aee6f82f2bd7ced54f0b1704ea8e50ab99fc7ba
83682a6f8006132cc186e845df8f558361637c35
/MTX/src/MTX/Core.h
8e05b2e5636f9b19a02d5a86da677a08db8b60b9
[]
no_license
tyler961/DirectX11-and-OpenGl-Renderer-Test
83f8ca3b42f946aba769c89f3c64c7de25b2a5d5
9df93f687151e6b79cee33313560805be4d76a0d
refs/heads/master
2023-05-31T09:44:50.233318
2021-06-08T04:52:51
2021-06-08T04:52:51
194,752,889
0
0
null
null
null
null
UTF-8
C++
false
false
1,395
h
Core.h
#pragma once // Currently only Windows is supported my MTX #ifdef MTX_PLATFORM_WINDOWS #else #error MTX only supports windows! #endif // Used to stop running the program if a critical error occurs to assist with debugging only #ifdef MTX_ENABLE_ASSERTS #define MTX_ASSERT(x, ...) { if(!(x)) { MTX_CRITICAL("Assertion Failed: {0}", __VA_ARGS__); __debugbreak(); } } #define MTX_CORE_ASSERT(x, ...) { if(!(x)) { MTX_CORE_CRITICAL("Assertion Failed: {0}", __VA_ARGS__); __debugbreak(); } } #else #define MTX_ASSERT(x, ...) #define MTX_CORE_ASSERT(x, ...) #endif // For ease of use with event.h #define BIT(x) (1 << x) // Binding event functions // std::function: // Basically it's a variable to hold a function. // placeholders let you reorder variables in std::function // example you have a function show that prints the variables // using namespace std::placeholders; // void show(const string& a, const string& b, const string& c) { cout << a << "," << b << "," << c << endl; } // function<void (string, string, string)> x = bind(show, _1, _3, _2); then do x("one, "two", "three") // Output: one, three, two // std::bind is a template function like before but it lets you bind a set of arugments to a function #define MTX_BIND_EVENT_FN(fn) std::bind(&fn, this, std::placeholders::_1) // Microsoft::WRL::ComPtr<x> // Reduce messy code #define COMPTR(x) Microsoft::WRL::ComPtr<x>
e28c9d29a4c981f3623fc696050dc7dc3cba2d25
4d52aa630c6b1ceb249cae73e44df4ec686f6d2c
/UI/Pdk/PdkApp.h
99c17c005ce5ae67eca81d90b758f703946c4bbc
[]
no_license
gezi322/WindowsPrinterDriver
25b3d4ec69a85da0013e4ea4b1d53b0236135beb
da8927f5e023ee4e85ca3d3d54006bb075b200c1
refs/heads/master
2021-05-27T05:54:50.371221
2014-08-14T14:33:01
2014-08-14T14:33:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,306
h
PdkApp.h
#ifndef PDKAPP_H_ // (make sure this is only included once) #define PDKAPP_H_ #ifndef __cplusplus #error PdkApp.h included in a non-C++ source file! #endif // -------------------------------------------------------------------- // INCLUDES // -------------------------------------------------------------------- #include "PdkBase.h" // -------------------------------------------------------------------- // #DEFINES, TYPEDEF'S, and TEMPLATES // -------------------------------------------------------------------- // -------------------------------------------------------------------- // EXPORTED CLASSES // -------------------------------------------------------------------- // .................................................................... // CLASS NAME: PdkApp // // REPONSIBILITIES: // // NOTES: // .................................................................... class CPdkApp : public CPdkBase { public: // ## Constructors / Destructor CPdkApp (); // class constructor ~CPdkApp (); // class destructor // ## Public Members // .................................................................... // METHOD NAME: InitApp // DESCRIPTION: // Initializes the application/DLL by setting the app/dll instance // handle and names. This method will also open the supplied // resource DLL by trying the array of directories until the // first successful load has been accomplished. m_hInstRes and // m_hInst will both be initialized to hInst. If a separate // DLL is required for resources, use OpenResourceDLL() below. // // szResourceDLLPath should contain the full path to the resource // DLL and m_hInstRes will be set to the return value of the // LoadLibrary call. If szResourceDLLPath is empty length or NULL, // the current value of m_hInst will be used for m_hInstRes. // // The resource DLL will not actually be loaded upon this call. // Instead, it will be loaded the first time it is needed when // accessed through GetResourceInst() // // After this call, m_hInst, m_szResourceDLLPath, m_szModName, and // m_szAppName are initialized. m_hInstRes is not initialized. // // RETURN VALUE: // Returns 0 (ERROR_SUCCESS) on success // .................................................................... int InitApp(HINSTANCE hInst, const TCHAR *szModName, const TCHAR *szAppName, const TCHAR *szResourceDLLPath); // .................................................................... // METHOD NAME: GetInst // DESCRIPTION: // Returns the instance handle of this application or DLL. // // RETURN VALUE: // .................................................................... HINSTANCE GetInst() const; #ifndef KERNEL_MODE // .................................................................... // METHOD NAME: GetResourceInst // DESCRIPTION: // Returns the instance handle of this applications resource DLL. // If m_hInstRes has not yet been set, then it will attempt to // execute LoadLibrary to load the DLL using the m_szResourceDLLPath // member. If m_szResourceDLLPath is not set, it will return // m_hInst. // // If will return NULL if the LoadLibrary call failed. // // RETURN VALUE: // .................................................................... #ifndef WIN_95 HINSTANCE GetResourceInst() const; #else HINSTANCE GetResourceInst(); #endif // .................................................................... // METHOD NAME: GetVerString // DESCRIPTION: // Returns version information in string format for each of the // fields supplied. Any of the supplied strings may be NULL if // this info is not required. Any strings that are non-NULL must // have character lengths of at least maxStrLen. // // The first language available in the version resource is used to // supply this information. // // RETURN VALUE: // The encapsulated devmode or NULL on error // .................................................................... bool GetVerString(unsigned int maxStrLen, TCHAR *szComments, TCHAR *szCompanyName, TCHAR *szFileDescription, TCHAR *szFileVersion, TCHAR *szLegalCopyright, TCHAR *szProductName, TCHAR *szProductVersion); #endif // !KERNEL_MODE // Name of this module - usually the DLL name TCHAR m_szModName[MAX_PATH]; // Name of this application, usually used for debugging TCHAR m_szAppName[MAX_PATH]; private: // ## Instance Variables // Handle to the default resources of the application / DLL #ifndef WIN_95 mutable #endif HINSTANCE m_hInstRes; // Handle to the current instance of this application. If this is a // DLL, then it is the HINSTANCE of the DLL. HINSTANCE m_hInst; // The full path to the resource DLL. If this is the empty string, // then m_hInst will be used as the instance handle to the resources. TCHAR m_szResourceDLLPath[MAX_PATH]; }; // This must be implemented once per DLL, so the PDK can // get the actual driver object. CPdkApp* GetPdkAppObj(); #endif // PDKAPP_H_
93718e314f37ae6eb9aab2fe5c8c396ad735ded7
d4b2969c221b160a5aec724cccfe8b2014306cf4
/Chapter 2/code3_2.cpp
c415d17bd5b259a4985e7cbc6f3851f485293d9f
[]
no_license
TairanHu/The_Method_of_Programming
8fd2dab165e56531356a09f8995187e737feb7a5
82b654056789e9a12ea5007ca73ecdc434528eb3
refs/heads/master
2020-05-25T07:25:10.929320
2017-04-17T08:21:55
2017-04-17T08:21:55
84,921,687
0
0
null
null
null
null
UTF-8
C++
false
false
576
cpp
code3_2.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; bool SumOf_K_Number(vector<int> &num, int pos, int sum) { if(sum == 0) { return true; } if(pos >= num.size()) { return false; } if(SumOf_K_Number(num, pos+1, sum-num[pos]) || SumOf_K_Number(num, pos+1, sum)) { return true; } return false; } int main() { int sum = -40; vector<int> num; for(int i = 0; i < 10; i++) { num.push_back(i); } cout << SumOf_K_Number(num, 0, sum); return 0; }
e1491247a6f3b7622447702fad7d66fea4c9e150
29b4050f703705cc9102e6a9d8f2800caa8459e7
/cpp/PartSumProblem/PartSumProblem/PartSumSolverZZ.h
338c8d9d59fa31a4c3abf856db9f3ecefddbc836
[]
no_license
bloodysnowx/ProgramContest
c1cf5ac2a843ed84772437557991ca1ceb519e1e
f954d4a35d1ba97f36f7deb258dc9fd179eaef2c
refs/heads/master
2021-01-18T13:58:45.668409
2015-01-28T00:33:33
2015-01-28T00:33:33
6,904,456
0
0
null
null
null
null
UTF-8
C++
false
false
640
h
PartSumSolverZZ.h
// // PartSumSolverZZ.h // PartSumProblem // // Created by 岩佐 淳史 on 2013/03/08. // Copyright (c) 2013年 岩佐 淳史. All rights reserved. // #ifndef __PartSumProblem__PartSumSolverZZ__ #define __PartSumProblem__PartSumSolverZZ__ #include <iostream> #include "IPartSumSolver.h" class PartSumSolverZZ : public IPartSumSolver { public: PartSumSolverZZ(int target, int values[], int counts[], int length); bool solve(); bool solve(int target, int values[], int counts[], int length); void print(); ~PartSumSolverZZ(); private: int* result; }; #endif /* defined(__PartSumProblem__PartSumSolverZZ__) */
c2973214edfe20f8631bbcc580ccacba0feb29c5
93eb356a59a9f7f73d250018ef4c3d6b44617333
/dataStructures1/WordSpellingChecker.cpp
e6707ff0d0d1d0bbe456325cf729a6121694a021
[]
no_license
Eilonc285/DataStructures
5694f0dc8e37158b63f0301864a2183e09ac6eb1
f004f0ddfd7865c82e4e8baee0763e7ef54f4607
refs/heads/master
2023-02-17T07:44:10.654226
2021-01-21T06:34:17
2021-01-21T06:34:17
331,538,050
1
0
null
null
null
null
UTF-8
C++
false
false
7,808
cpp
WordSpellingChecker.cpp
#define _CRT_SECURE_NO_WARNINGS #include "WordSpellingChecker.h" /* This function does the same as the search function. */ int isWordInDictionary(HashTable * dictionaryTable, char * word) { return search(dictionaryTable, word); } /* This function receives a hash table and a string(char*). Then for every index between two letters it adds a space and checks if both words exist in the hash table. It chains together in a LinkedList all the spelling alternatives it found and returns it. If no alternatives were found it returns nullptr. */ LinkedList * addSpaceCheck(HashTable * dictionaryTable, char * word) { char *pairs[500]; int counter = 0; int len = strlen(word); char subW1[50], subW2[50]; for (int div = 1; div < len; div++) { strncpy(subW1, word, div); subW1[div] = '\0'; strncpy(subW2, word + div, len - div); subW2[len - div] = '\0'; if (search(dictionaryTable, subW1) && search(dictionaryTable, subW2)) { pairs[counter * 2] = strdup1(subW1); pairs[counter * 2 + 1] = strdup1(subW2); counter++; } subW1[0] = '\0'; subW2[0] = '\0'; } if (counter == 0) { return nullptr; } LinkedList *list = (LinkedList*)malloc(sizeof(LinkedList)); list->next = nullptr; list->data = pairs[0]; strcat(list->data, " \0"); strcat(list->data, pairs[1]); LinkedList *temp1; char p[50]; for (int i = 1; i < counter; i++) { temp1 = (LinkedList*)malloc(sizeof(LinkedList)); temp1->next = list; strcpy(p, pairs[i * 2]); strcpy(p + strlen(pairs[i * 2]), " "); strcpy(p + strlen(pairs[i * 2]) + 1, pairs[i * 2 + 1]); temp1->data = strdup1(p); free(pairs[i * 2]); free(pairs[i * 2 + 1]); list = temp1; } return list; } /* This function receives a hash table and a string(char*). Then for every letter (a-z) it tries to replace it with every letter of the string and checks if the result exists in the hash table. It chains together in a LinkedList all the spelling alternatives it found and returns it. If no alternatives were found it returns nullptr. */ LinkedList * replaceCharacterCheck(HashTable * dictionaryTable, char * word) { char *words[500]; int counter = 0; int len = strlen(word); char w[50]; for (int i = 0; i < len; i++) { w[0] = '\0'; strcpy(w, word); for (int j = 97; j < 123; j++) { if (w[i] != j) { w[0] = '\0'; strcpy(w, word); w[i] = j; if (search(dictionaryTable, w)) { words[counter] = (char*)malloc((strlen(w) + 1) * sizeof(char)); strcpy(words[counter], w); counter++; } } } } if (counter == 0) { return nullptr; } LinkedList *list = (LinkedList*)malloc(sizeof(LinkedList)); list->next = nullptr; list->data = strdup1(words[0]); LinkedList *temp; for (int i = 1; i < counter; i++) { temp = (LinkedList*)malloc(sizeof(LinkedList)); temp->next = list; temp->data = words[i]; list = temp; } return list; } /* This function receives a hash table and a string(char*). Then for every letter in the string it deletes it and checks if the result exists in the hash table. It does not delete the first and last letters of the string because those spelling alternatives will be found by the function addSpaceCheck. It chains together in a LinkedList all the spelling alternatives it found and returns it. If no alternatives were found it returns nullptr. */ LinkedList * deleteCharacterCheck(HashTable * dictionaryTable, char * word) { char *words[500]; int counter = 0; int len = strlen(word); char w[50]; for (int i = 1; i < len - 1; i++) { w[0] = '\0'; strncpy(w, word, i); strcpy(w + i, word + i + 1); if (search(dictionaryTable, w)) { words[counter] = (char*)malloc((strlen(w) + 1) * sizeof(char)); strcpy(words[counter], w); counter++; } } if (counter == 0) { return nullptr; } LinkedList *list = (LinkedList*)malloc(sizeof(LinkedList)); list->next = nullptr; list->data = words[0]; LinkedList *temp; for (int i = 1; i < counter; i++) { temp = (LinkedList*)malloc(sizeof(LinkedList)); temp->next = list; temp->data = strdup1(words[i]); list = temp; } return list; } /* This function receives a hash table and a string(char*). Then for every letter (a-z) it tries to add it in every possible index of the string and checks if the result exists in the hash table. It chains together in a LinkedList all the spelling alternatives it found and returns it. If no alternatives were found it returns nullptr. */ LinkedList * addCharacterCheck(HashTable * dictionaryTable, char * word) { char *words[500]; int counter = 0; int len = strlen(word); char w[50]; char temp[2]; for (int i = 0; i <= len; i++) { for (int j = 97; j < 123; j++) { w[0] = '\0'; temp[0] = '\0'; strcpy(temp, "a\0"); temp[0] = j; strncpy(w, word, i); strcpy(w + i, temp); if (i < len) { strcpy(w + i + 1, word + i); } if (search(dictionaryTable, w)) { words[counter] = (char*)malloc((strlen(w) + 1) * sizeof(char)); strcpy(words[counter], w); counter++; } } } if (counter == 0) { return nullptr; } LinkedList *list = (LinkedList*)malloc(sizeof(LinkedList)); list->next = nullptr; list->data = strdup1(words[0]); LinkedList *temp1; for (int i = 1; i < counter; i++) { temp1 = (LinkedList*)malloc(sizeof(LinkedList)); temp1->next = list; temp1->data = words[i]; list = temp1; } return list; } /* This function receives a hash table and a string(char*). Then it tries to swap adjacent letters in the word and checks if the result exists in the given hash table. It chains together in a LinkedList all the spelling alternatives it found and returns it. If no alternatives were found it returns nullptr. */ LinkedList * switchAdjacentCharacterCheck(HashTable * dictionaryTable, char * word) { char *words[500]; int counter = 0; int len = strlen(word); char w[50]; for (int i = 1; i < len; i++) { w[0] = '\0'; strncpy(w, word, i - 1); strncpy(w, word + i, 1); strncpy(w, word + i - 1, 1); if (search(dictionaryTable, w) && strcmp(w, word)) { strcpy(words[counter], w); counter++; } } if (counter == 0) { return nullptr; } LinkedList *list = (LinkedList*)malloc(sizeof(LinkedList)); list->next = nullptr; list->data = strdup1(words[0]); LinkedList *temp; for (int i = 1; i < counter; i++) { temp = (LinkedList*)malloc(sizeof(LinkedList)); temp->next = list; temp->data = strdup1(words[i]); list = temp; } return list; } /* This function receives a hastable and a string(char*). Then it calls all the functions which provide spelling alternatives. Then it chains together all the LinkedLists it got from those functions and returns it. If the word has no spelling alterntives it returns nullptr. */ LinkedList * getWordSuggestions(HashTable * dictionaryTable, char * word) { if (strlen(word) == 0) return nullptr; LinkedList *list = addSpaceCheck(dictionaryTable, word); LinkedList *temp = list; if (temp != nullptr) { while (temp->next != nullptr) { temp = temp->next; } temp->next = replaceCharacterCheck(dictionaryTable, word); } else { temp = replaceCharacterCheck(dictionaryTable, word); list = temp; } if (temp != nullptr) { while (temp->next != nullptr) { temp = temp->next; } temp->next = deleteCharacterCheck(dictionaryTable, word); } else { temp = deleteCharacterCheck(dictionaryTable, word); list = temp; } if (temp != nullptr) { while (temp->next != nullptr) { temp = temp->next; } temp->next = addCharacterCheck(dictionaryTable, word); } else { temp = addCharacterCheck(dictionaryTable, word); list = temp; } if (temp != nullptr) { while (temp->next != nullptr) { temp = temp->next; } temp->next = switchAdjacentCharacterCheck(dictionaryTable, word); } else { temp = switchAdjacentCharacterCheck(dictionaryTable, word); list = temp; } return list; }
513b1c8d5d4ba0a3f571ef1d7a830e5f7fce240a
72d4674373c155b0909d0a9a1fb2551062aec32d
/src/main.cpp
0088731b5e3cc77792f47b53bf9ea03b28e363d1
[ "BSD-3-Clause" ]
permissive
junwzm/box_detector
6698249502cfce7ca87fd91c1bdabe4b25ae02e4
8802ee7dbb38d09b0455d9a1f341036ca10401a8
refs/heads/master
2022-01-10T10:06:38.205967
2019-05-02T17:22:46
2019-05-02T17:22:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,337
cpp
main.cpp
/** * BSD 3-Clause LICENSE * * Copyright (c) 2019, Anirudh Topiwala * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ /** * @file main.cpp * @author Anirudh Topiwala * @copyright BSD License * * @brief Implementing Plane and Box Point cloud generation * * @section DESCRIPTION * * This program is used to synthesize plane point cloud with a * resolution of 0.1 m. The random box generation is also implemented and then * both the point clouds are merged. * */ #include <iostream> #include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_ros/point_cloud.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/filters/passthrough.h> #include <pcl/filters/extract_indices.h> #include <pcl/point_types.h> #include <pcl/filters/conditional_removal.h> #include <pcl/kdtree/kdtree_flann.h> #include <unordered_map> #include <vector> #include <ctime> #include <math.h> using namespace std; #define PI 3.14159265; typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; bool dbeq(double a , double b, double eps= 0.1){ return (std::abs(a-b)< eps); } // bool dist(double x1 , double y1, double x2 , double y2, double eps= 0.01){ // double distance = sqrt( pow((x1-x2),2) + pow((y1-y2),2)); // if (distance<1) // ROS_ERROR_STREAM("Dist"<< distance); // return (std::abs(distance)< eps); // } class Generate { private: PointCloud msg_plane; PointCloud msg_box; PointCloud merged; ros::NodeHandle n; ros::Publisher pub; ros::Timer plane_pub_timer; ros::Timer box_pub_timer; // Random number generator std::random_device rand_dev; std::mt19937 generator; std::uniform_real_distribution<> xy_rnd; std::uniform_real_distribution<> yaw_rnd; std::uniform_real_distribution<> noise_rnd; /** * @brief Here I generate a plane of points with a resolution of 0.1 m * * @param None: It makes the plane as given by the constraints in the question. * * @return void pushes the cloud to the private variable of class. */ void generate_plane() { msg_plane.header.frame_id = "world"; pcl_conversions::toPCL(ros::Time::now(), msg_plane.header.stamp); for (double i = -5.0; i <= 5.0; i+=0.1) { for (double j = -5.0; j <= 5.0; j+=0.1) { pcl::PointXYZ point; point.x = i; point.y = j; point.z = 0.0; msg_plane.push_back(point); } } } /** * @brief Here I generate a cube box with random position and Orientation. * * @param x The random x position of center of cube. * @param y The random y position of center of cube. * @param yaw The random yaw angle of the cube. * * @return void pushes the cloud to the private variable of class. */ void generate_box(double x,double y, double yaw ) { // msg_box.header.frame_id = "map"; // x=0; // y=0; // yaw=10; ROS_INFO_STREAM("Angle given: " << yaw* 180 / PI;); pcl_conversions::toPCL(ros::Time::now(), msg_box.header.stamp); for (double k = 0.0; k <=1; k+=0.1) { for (double i = x+0; i <=x+1 ; i+=0.1) { for (double j = y+0; j <=y+1; j+=0.1) { if (dbeq(k,0) || dbeq(k,1)){ pcl::PointXYZ point; point.x = x + (i-x)*cos(yaw) - (j-y)*sin(yaw); point.y = y + (i-x)*sin(yaw) + (j-y)*cos(yaw); point.z = k; msg_box.push_back(point); } else{ if (dbeq(i,x+0) || dbeq(i,x+1)){ pcl::PointXYZ point1; point1.x = x + (i-x)*cos(yaw) - (j-y)*sin(yaw); point1.y = y + (i-x)*sin(yaw) + (j-y)*cos(yaw); point1.z = k; msg_box.push_back(point1); } else{ if (dbeq(j,y+0) || dbeq(j,y+1)){ pcl::PointXYZ point2; point2.x = x + (i-x)*cos(yaw) - (j-y)*sin(yaw); point2.y = y + (i-x)*sin(yaw) + (j-y)*cos(yaw); point2.z = k; msg_box.push_back(point2); } } } } } } } /** * @brief Merging the plane and box point cloud * * @param None Both the clouds are private variables of the class. * * @return void the merged variable consisting of merged point cloud is set here. */ void merging_both(){ // Removing Last Layer of Box PointCloud layer1; PointCloud::Ptr box_unfilt(new pcl::PointCloud<pcl::PointXYZ>); *box_unfilt = msg_box; pcl::PassThrough<pcl::PointXYZ> pass; pass.setInputCloud (box_unfilt); pass.setFilterFieldName ("z"); pass.setFilterLimits (0.1, 1.0); pass.filter (msg_box); pass.setFilterLimitsNegative (true); pass.filter (layer1); // Subtarcting last layer of box from plane // Creating KdTree pcl::KdTreeFLANN<pcl::PointXYZ> kdtree; // Setting cloud for plane PointCloud::Ptr plane(new pcl::PointCloud<pcl::PointXYZ>); *plane = msg_plane; kdtree.setInputCloud (plane); // Creating variables for kd tree std::vector<int> pointIdxRadiusSearch; std::vector<float> pointRadiusSquaredDistance; float radius = 0.09; // Creating Inliers for filter pcl::PointIndices::Ptr inliers(new pcl::PointIndices()); pcl::ExtractIndices<pcl::PointXYZ> extract; for (int i = 0; i < layer1.points.size(); i++) { if (kdtree.radiusSearch (layer1.points[i], radius, pointIdxRadiusSearch, pointRadiusSquaredDistance) > 0 ) { for (size_t j = 0; j < pointIdxRadiusSearch.size (); ++j){ inliers->indices.push_back(pointIdxRadiusSearch[j]); } } } extract.setInputCloud(plane); extract.setIndices(inliers); extract.setNegative(true); extract.filter(*plane); merged = msg_box + *plane ; } /** * @brief Generating Noise and Adding to merged point cloud * * @param None gets the point cloud from the private variables of the class. * * @return PointCloud return the cloud after adding noise to it. */ PointCloud make_noise() { PointCloud merged_noise; for (int i = 0; i < merged.points.size(); i++) { pcl::PointXYZ point; point.x = merged.points[i].x + noise_rnd(generator); point.y = merged.points[i].y + noise_rnd(generator); point.z = merged.points[i].z + noise_rnd(generator); merged_noise.push_back(point); } return merged_noise; } /** * @brief Callback with frequency of 5 hz for noise generation. * * @param setting the frequency to execute the callback. * * @return void publishing the cloud to topic */ void publisher_Callback(const ros::TimerEvent&) { // pub.publish(msg_plane); auto merged_noise = make_noise(); merged_noise.header.frame_id = "world"; pub.publish(merged_noise); // ROS_INFO_STREAM("Publishing"); } /** * @brief Callback for generating random box and merging them every second.This callback is executed every second as a new box is only generated every second. * * @param setting the frequency to execute the callback. * * @return void */ void box_Callback(const ros::TimerEvent&) { double x = xy_rnd(generator); double y = xy_rnd(generator); double yaw = yaw_rnd(generator); generate_box(x,y,yaw); // pub.publish(msg_box); merging_both(); msg_box.clear(); ROS_INFO_STREAM("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"); } public: Generate(): xy_rnd(-2.0, 2.0),yaw_rnd(0.0, 3.1415/2),noise_rnd(-0.0002, 0.0002),generator(rand_dev()) { pub = n.advertise<PointCloud>("/cloud",1000); plane_pub_timer = n.createTimer(ros::Duration(0.2), &Generate::publisher_Callback, this); box_pub_timer = n.createTimer(ros::Duration(1), &Generate::box_Callback, this); generate_plane(); } }; int main(int argc, char** argv) { ros::init (argc, argv, "plt"); Generate gen; ros::spin(); }
c988c5058e44f320dfb6ede72a805a4c2d93f02a
6ce8c22c227a119d606951e4d1fded9de40a1e86
/CasiaBot/Source/LurkerManager.cpp
11a4b07868a03b9e325221c38db913ddb155403e
[]
no_license
biug/Casia
3bf7da5fa8473fb010c2d2b46c00c90d1faf3c9e
a80adcf9950cbd31075077d27a4e3d401e5e4584
refs/heads/master
2021-01-01T16:47:27.591357
2017-07-31T11:48:52
2017-07-31T11:48:52
97,922,786
2
0
null
2017-08-08T08:38:34
2017-07-21T08:06:02
C++
UTF-8
C++
false
false
7,712
cpp
LurkerManager.cpp
#include "LurkerManager.h" #include "UnitUtil.h" using namespace CasiaBot; LurkerManager::LurkerManager() { } void LurkerManager::executeMicro(const BWAPI::Unitset & targets) { const BWAPI::Unitset & lurkers = getUnits(); // figure out targets BWAPI::Unitset lurkerTargets; std::copy_if(targets.begin(), targets.end(), std::inserter(lurkerTargets, lurkerTargets.end()), [](BWAPI::Unit u){ return u->isVisible() && !u->isFlying(); }); int lurkerRange = BWAPI::UnitTypes::Zerg_Lurker.groundWeapon().maxRange() - 32; // for each lurker for (auto & lurker : lurkers) { bool lurkerNearChokepoint = false; for (auto & choke : BWTA::getChokepoints()) { if (choke->getCenter().getDistance(lurker->getPosition()) < 64) { lurkerNearChokepoint = true; break; } } // if the order is to attack or defend if (order.getType() == SquadOrderTypes::Attack || order.getType() == SquadOrderTypes::Defend) { // if there are targets if (!lurkerTargets.empty()) { bool flee = false; for (auto & target : targets) { BWAPI::UnitType targetType = target->getType(); if(targetType == BWAPI::UnitTypes::Terran_Missile_Turret || targetType == BWAPI::UnitTypes::Terran_Science_Vessel || targetType == BWAPI::UnitTypes::Protoss_Photon_Cannon || targetType == BWAPI::UnitTypes::Protoss_Observer || targetType == BWAPI::UnitTypes::Zerg_Spore_Colony || targetType == BWAPI::UnitTypes::Zerg_Overlord) { if (lurker->getDistance(target) >= target->getType().sightRange() - 32) { continue; } if (lurker->canUnburrow()){ lurker->unburrow(); } BWAPI::Position fleeVector = Micro::GetKiteVector(target, lurker); BWAPI::Position moveToPosition(lurker->getPosition() + fleeVector); Micro::SmartMove(lurker, moveToPosition); flee = true; break; } } if (!flee) { // find the best target for this lurker BWAPI::Unit target = getTarget(lurker, lurkerTargets); if (target && Config::Debug::DrawUnitTargetInfo) { BWAPI::Broodwar->drawLineMap(lurker->getPosition(), lurker->getTargetPosition(), BWAPI::Colors::Purple); } // if we are within attack range, burrow if (lurker->getDistance(target) < lurkerRange && lurker->canBurrow() && !lurkerNearChokepoint) { lurker->burrow(); } // otherwise unburrow and move in else if ((!target || lurker->getDistance(target) > lurkerRange + 32) && lurker->canUnburrow()) { lurker->unburrow(); } // if we're in siege mode just attack the target if (lurker->isBurrowed()) { Micro::SmartAttackUnit(lurker, target); } // if we're not in siege mode kite the target else { // move to it Micro::SmartMove(lurker, target->getPosition()); } } } // if there are no targets else { // if we're not near the order position if (lurker->getDistance(order.getPosition()) > 160) { if (lurker->canUnburrow()) { lurker->unburrow(); } else { // move to it Micro::SmartMove(lurker, order.getPosition()); } } } } } } // get a target for the zealot to attack BWAPI::Unit LurkerManager::getTarget(BWAPI::Unit lurker, const BWAPI::Unitset & targets) { int bestPriorityDistance = 1000000; int bestPriority = 0; double bestLTD = 0; BWAPI::Unit bestTargetThreatInRange = nullptr; double bestTargetThreatInRangeLTD = 0; int highPriority = 0; double closestDist = std::numeric_limits<double>::infinity(); BWAPI::Unit closestTarget = nullptr; int lurkerRange = BWAPI::UnitTypes::Zerg_Lurker.groundWeapon().maxRange() - 32; BWAPI::Unitset targetsInSiegeRange; for (auto & target : targets) { if (target->getDistance(lurker) < lurkerRange && UnitUtil::CanAttack(lurker, target)) { targetsInSiegeRange.insert(target); } } const BWAPI::Unitset & newTargets = targetsInSiegeRange.empty() ? targets : targetsInSiegeRange; // check first for units that are in range of our attack that can cause damage // choose the highest priority one from them at the lowest health for (const auto & target : newTargets) { if (!UnitUtil::CanAttack(lurker, target)) { continue; } double distance = lurker->getDistance(target); double LTD = UnitUtil::CalculateLTD(target, lurker); int priority = getAttackPriority(lurker, target); bool targetIsThreat = LTD > 0; BWAPI::Broodwar->drawTextMap(target->getPosition(), "%d", priority); if (!closestTarget || (priority > highPriority) || (priority == highPriority && distance < closestDist)) { closestDist = distance; highPriority = priority; closestTarget = target; } } if (bestTargetThreatInRange) { return bestTargetThreatInRange; } return closestTarget; } // get the attack priority of a type in relation to a zergling int LurkerManager::getAttackPriority(BWAPI::Unit rangedUnit, BWAPI::Unit target) { BWAPI::UnitType rangedType = rangedUnit->getType(); BWAPI::UnitType targetType = target->getType(); bool isThreat = targetType.isFlyer() ? false : targetType.groundWeapon() != BWAPI::WeaponTypes::None; if (target->getType() == BWAPI::UnitTypes::Zerg_Larva || target->getType() == BWAPI::UnitTypes::Zerg_Egg) { return 0; } // if the target is building something near our base something is fishy BWAPI::Position ourBasePosition = BWAPI::Position(BWAPI::Broodwar->self()->getStartLocation()); if (target->getType() == BWAPI::UnitTypes::Terran_Marine || target->getType() == BWAPI::UnitTypes::Terran_Medic || target->getType() == BWAPI::UnitTypes::Terran_Firebat) { return 300; } if (target->getType().isWorker() && (target->isConstructing() || target->isRepairing()) && target->getDistance(ourBasePosition) < 1200) { return 100; } if (target->getType().isBuilding() && (target->isCompleted() || target->isBeingConstructed()) && target->getDistance(ourBasePosition) < 1200) { return 90; } int priority = 0; BWAPI::UnitType type(targetType); double hpRatio = (type.maxHitPoints() > 0) ? target->getHitPoints() / type.maxHitPoints() : 1.0; //low hp priority = (int)((1 - hpRatio) * 10); //Medic if (targetType == BWAPI::UnitTypes::Terran_Medic || targetType == BWAPI::UnitTypes::Terran_SCV) { return priority + 15; } //Tank, Reaver, High Templar, Bunker else if (targetType == BWAPI::UnitTypes::Terran_Siege_Tank_Tank_Mode || targetType == BWAPI::UnitTypes::Protoss_Reaver || targetType == BWAPI::UnitTypes::Protoss_High_Templar || targetType == BWAPI::UnitTypes::Terran_Bunker) { return priority + 13; } //Archon else if(targetType == BWAPI::UnitTypes::Protoss_Archon) { return priority + 12; } // next priority is worker else if (targetType.isWorker()) { return 9; } //can attack us else if (isThreat) { return priority + 11; } // next is special buildings else if (targetType == BWAPI::UnitTypes::Zerg_Spawning_Pool || targetType == BWAPI::UnitTypes::Protoss_Pylon) { return 7; } // next is buildings that cost else if (targetType.gasPrice() > 0 || targetType.mineralPrice() > 0) { return targetType.gasPrice() / 50 + targetType.mineralPrice() / 100; } // then everything else else { return 1; } } BWAPI::Unit LurkerManager::closestrangedUnit(BWAPI::Unit target, std::set<BWAPI::Unit> & rangedUnitsToAssign) { double minDistance = 0; BWAPI::Unit closest = nullptr; for (auto & rangedUnit : rangedUnitsToAssign) { double distance = rangedUnit->getDistance(target); if (!closest || distance < minDistance) { minDistance = distance; closest = rangedUnit; } } return closest; }
a7893e4dbcf50d4605aa30d94dc5955e1dcdb167
6d22e7d0f912858f87e6c4769d52a7aeee3ec0b3
/test/testhttpmultipart.cpp
c9a244d4e54ef7fbf6b914600100f5ea6faac667
[]
no_license
BooooL/candy
fe0bba723fbb887f5786dab84c50448698e8d4cf
537cfed74c63e556476a4eae95a8d3dedfbc7b72
refs/heads/master
2023-03-29T11:13:25.052038
2021-03-23T02:29:56
2021-03-23T02:29:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,519
cpp
testhttpmultipart.cpp
// // Created by Jsiyong on 2021-03-13. // #include "../src/protocol/http/httpmultipart.h" /* POST / HTTP/1.1\r\n Host: 192.168.66.66:8888\r\n Connection: keep-alive\r\n Content-Length: 591\r\n Cache-Control: no-cache\r\n User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36\r\n Content-Type: multipart/form-data; boundary=----WebKitFormBoundarySAJsB3ZsTmgE6job\r\n Accept: **\r\n Origin: chrome-extension://coohjcphdfgbiolnekdpbcijmhambjff\r\n Accept-Encoding: gzip, deflate\r\n Accept-Language: zh-CN,zh;q=0.9\r\n \r\n ------WebKitFormBoundarySAJsB3ZsTmgE6job\r\n Content-Disposition: form-data; name=\"cs1\"; filename=\"tp2.png\"\r\n Content-Type: image/png\r\n \r\n \211PNG\r\n\032\n\000\000\000\rIHDR\000\000\000%\000\000\000\027\b\002\000\000\000\003N\021\362\000\000\000\001sRGB\000\256\316\034\351\000\000\000\004gAMA\000\000\261\217\v\374a\005\000\000\000\tpHYs\000\000\022t\000\000\022t\001\336f\037x\000\000\000\245IDATHK\275\224A\016\300 \b\004\245\377\377\263%\321\030\003\270\202$̥=\310NA+\365\336[!\337|VQ\355\213͓\210\346\233\302\231\343\362\001\215\006\a\"_H\243\061\223\217\373\227\224\061f\202\355\313\313\006:ǘ'\220\275\r\177\257\362\376\017\\\003d\314u\301@\366\247?ӓ\"\000!\227\376\036d\f\250\252\276_.>p\n\000\240J\372\364(\242J\274\276\372\177\260\357\263hO\000\221o\357\037\350#\204\316\071\236\227\274Ҟ\234'74^\034\350\362-ގ\322N̗\247\366~i\355\an\315e\372\070\305u\300\000\000\000\000IEND\256B`\202\r\n ------WebKitFormBoundarySAJsB3ZsTmgE6job\r\n Content-Disposition: form-data; name=\"cs1\"; filename=\"wj1.txt\"\r\n Content-Type: text/plain\r\n \r\n1234\r\n ------WebKitFormBoundarySAJsB3ZsTmgE6job--\r\n */ int main() { std::string src; src.append("------WebKitFormBoundarySAJsB3ZsTmgE6job\r\n" "Content-Disposition: form-data; name=\"cs1\"; filename=\"tp2.png\"\r\n" "Content-Type: image/png\r\n" "\r\n" "\211PNG\r\n\123dd\r\n---WebKitFormBoud2\r\n" "------WebKitFormBoundarySAJsB3ZsTmgE6job\r\n" "Content-Disposition: form-data; name=\"cs1\"; filename=\"wj1.txt\"\r\n" "Content-Type: text/plain\r\n" "\r\n1234\r\n------WebKitFormBoundarySAJsB3ZsTmgE6job-\r\n" "------WebKitFormBoundarySAJsB3ZsTmgE6job--\r\n"); HttpMultiPart multiPart; multiPart.setBoundary("----WebKitFormBoundarySAJsB3ZsTmgE6job"); multiPart.tryDecode(src); return 0; }
05056111363e5d11d7ac04702e4ba5307dc65c43
71d2598984432dabbb464c70e1f94df734783b78
/tags/rel_0.10.0_rc1/core/plug-in/stats/StatsUDPServer.cpp
17726d0542e6a7430a666c7a6927d87af5d8ae7f
[]
no_license
BackupTheBerlios/sems-svn
f55535988e9b9a093d7c8276c326cf7d42def042
fc19cf9f112df2490770411e0974bc65764b10d9
refs/heads/master
2020-06-01T16:32:05.042325
2010-06-03T09:51:35
2010-06-03T09:51:35
40,818,829
0
0
null
null
null
null
UTF-8
C++
false
false
4,766
cpp
StatsUDPServer.cpp
#include "StatsUDPServer.h" #include "Statistics.h" #include "AmConfigReader.h" #include "AmSessionContainer.h" #include "AmUtils.h" #include "AmConfig.h" #include "log.h" #include <string> using std::string; #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <errno.h> #include <unistd.h> #include <netinet/in_systm.h> #include <netinet/ip.h> #define CTRL_MSGBUF_SIZE 2048 // int msg_get_line(char*& msg_c, char* str, size_t len) // { // size_t l; // char* s=str; // if(!len) // return 0; // for(l=len; l && (*msg_c) && (*msg_c !='\n'); msg_c++ ){ // if(*msg_c!='\r'){ // *(s++) = *msg_c; // l--; // } // } // if(*msg_c) // msg_c++; // if(l>0){ // // We need one more character // // for trailing '\0'. // *s='\0'; // return int(s-str); // } // else // // buffer overran. // return -1; // } // int msg_get_param(char*& msg_c, string& p) // { // char line_buf[MSG_BUF_SIZE]; // if( msg_get_line(msg_c,line_buf,MSG_BUF_SIZE) != -1 ){ // if(!strcmp(".",line_buf)) // line_buf[0]='\0'; // p = line_buf; // return 0; // } // return -1; // } StatsUDPServer* StatsUDPServer::_instance=0; StatsUDPServer* StatsUDPServer::instance() { if(!_instance) { _instance = new StatsUDPServer(); if(_instance->init() != 0){ delete _instance; _instance = 0; } else { _instance->start(); } } return _instance; } StatsUDPServer::StatsUDPServer() : sd(0) { sc = AmSessionContainer::instance(); } StatsUDPServer::~StatsUDPServer() { if(sd) close(sd); } int StatsUDPServer::init() { string udp_addr; int udp_port = 0; int optval; AmConfigReader cfg; if(cfg.loadFile(add2path(AmConfig::ModConfigPath,1, MOD_NAME ".conf"))) return -1; udp_port = (int)cfg.getParameterInt("monit_udp_port",(unsigned int)-1); if(udp_port == -1){ ERROR("invalid port number in the monit_udp_port parameter\n "); return -1; } if(!udp_port) udp_port = DEFAULT_MONIT_UDP_PORT; DBG("udp_port = %i\n",udp_port); udp_addr = cfg.getParameter("monit_udp_ip",""); sd = socket(PF_INET,SOCK_DGRAM,0); if(sd == -1){ ERROR("could not open socket: %s\n",strerror(errno)); return -1; } /* set sock opts? */ optval=1; if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, (void*)&optval, sizeof(optval)) ==-1){ ERROR("ERROR: setsockopt(reuseaddr): %s\n", strerror(errno)); return -1; } /* tos */ optval=IPTOS_LOWDELAY; if (setsockopt(sd, IPPROTO_IP, IP_TOS, (void*)&optval, sizeof(optval)) ==-1){ ERROR("WARNING: setsockopt(tos): %s\n", strerror(errno)); /* continue since this is not critical */ } struct sockaddr_in sa; sa.sin_family = AF_INET; sa.sin_port = htons(udp_port); if(!inet_aton(udp_addr.c_str(),(in_addr*)&sa.sin_addr.s_addr)){ // non valid address ERROR("invalid IP in the monit_udp_ip parameter\n"); return -1; } //bool socket_bound = false; //while(!socket_bound){ if( bind(sd,(sockaddr*)&sa,sizeof(struct sockaddr_in)) == -1 ){ ERROR("could not bind socket at port %i: %s\n",udp_port,strerror(errno)); //udp_port += 1; //sa.sin_port = htons(udp_port); return -1; } else{ DBG("socket bound at port %i\n",udp_port); //socket_bound = true; } //} return 0; } void StatsUDPServer::run() { struct sockaddr_in addr; socklen_t addrlen = sizeof(struct sockaddr_in); char msg_buf[MSG_BUF_SIZE]; int msg_buf_s; while(true){ msg_buf_s = recvfrom(sd,msg_buf,MSG_BUF_SIZE,0,(sockaddr*)&addr,&addrlen); if(msg_buf_s == -1){ switch(errno){ case EINTR: case EAGAIN: continue; default: break; }; ERROR("recvfrom: %s\n",strerror(errno)); break; } //printf("received packet from: %s:%i\n", // inet_ntoa(addr.sin_addr),ntohs(addr.sin_port)); string reply; struct sockaddr_in reply_addr; if(execute(msg_buf,reply,reply_addr) == -1) continue; send_reply(reply,addr); } } int StatsUDPServer::execute(char* msg_buf, string& reply, struct sockaddr_in& addr) { char buffer[CTRL_MSGBUF_SIZE]; string cmd_str,reply_addr,reply_port; char *msg_c = msg_buf; msg_get_param(msg_c,cmd_str,buffer,CTRL_MSGBUF_SIZE); if(cmd_str == "calls") reply = "Active calls: " + int2str(sc->getSize()) + "\n"; else reply = "Unknown command: '" + cmd_str + "'\n"; return 0; } int StatsUDPServer::send_reply(const string& reply, const struct sockaddr_in& reply_addr) { int err = sendto(sd,reply.c_str(),reply.length()+1,0, (const sockaddr*)&reply_addr, sizeof(struct sockaddr_in)); return (err <= 0) ? -1 : 0; }
59a0a879778cb62888d7a9017e61c6fe82c2925a
78f8badd914d95d82c9da8bc9961f2c7c6d92b9a
/Visualization/vtkCudaVisualization/vtkCuda2DInExLogicTransferFunctionInformationHandler.cxx
8869da3b6fa9bcdb6cc7157aa9c1afeacc406a24
[ "MIT" ]
permissive
jcfr/RobartsVTK
140459de6a5f5a95c4d22255dcd00810a5b52939
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
refs/heads/master
2021-01-25T13:24:01.221479
2018-03-01T18:28:20
2018-03-01T18:28:20
123,564,796
0
0
MIT
2018-03-02T10:18:50
2018-03-02T10:18:50
null
UTF-8
C++
false
false
9,248
cxx
vtkCuda2DInExLogicTransferFunctionInformationHandler.cxx
/*========================================================================= Program: Robarts Visualization Toolkit Copyright (c) John Stuart Haberl Baxter, Robarts Research Institute This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "CUDA_vtkCuda2DInExLogicVolumeMapper_renderAlgo.h" #include "vtkCuda2DInExLogicTransferFunctionInformationHandler.h" #include "vtkCuda2DTransferFunction.h" #include "vtkImageData.h" #include "vtkMatrix4x4.h" #include "vtkObjectFactory.h" #include <vtkVersion.h> #include <algorithm> vtkStandardNewMacro(vtkCuda2DInExLogicTransferFunctionInformationHandler); vtkCuda2DInExLogicTransferFunctionInformationHandler::vtkCuda2DInExLogicTransferFunctionInformationHandler() { this->Function = NULL; this->InExFunction = NULL; this->UseBlackKeyhole = false; this->TransInfo.useBlackKeyhole = false; this->FunctionSize = 512; this->LowGradient = 0; this->HighGradient = 10; this->LastModifiedTime = 0; this->InputData = NULL; this->TransInfo.alphaTransferArray2D = 0; this->TransInfo.ambientTransferArray2D = 0; this->TransInfo.diffuseTransferArray2D = 0; this->TransInfo.specularTransferArray2D = 0; this->TransInfo.specularPowerTransferArray2D = 0; this->TransInfo.colorRTransferArray2D = 0; this->TransInfo.colorGTransferArray2D = 0; this->TransInfo.colorBTransferArray2D = 0; this->TransInfo.inExLogicTransferArray2D = 0; this->Reinitialize(); } vtkCuda2DInExLogicTransferFunctionInformationHandler::~vtkCuda2DInExLogicTransferFunctionInformationHandler() { this->Deinitialize(); this->SetInputData(NULL, 0); if (this->InExFunction) { this->InExFunction->UnRegister(this); } if (this->Function) { this->Function->UnRegister(this); } } void vtkCuda2DInExLogicTransferFunctionInformationHandler::Deinitialize(bool withData /*= false*/) { this->ReserveGPU(); CUDA_vtkCuda2DInExLogicVolumeMapper_renderAlgo_unloadTextures(this->TransInfo, this->GetStream()); } void vtkCuda2DInExLogicTransferFunctionInformationHandler::Reinitialize(bool withData /*= false*/) { this->LastModifiedTime = 0; this->UpdateTransferFunction(); } void vtkCuda2DInExLogicTransferFunctionInformationHandler::SetInputData(vtkImageData* inputData, int index) { if (inputData == NULL) { this->InputData = NULL; } else if (inputData != this->InputData) { this->InputData = inputData; this->Modified(); } } void vtkCuda2DInExLogicTransferFunctionInformationHandler::SetVisualizationTransferFunction(vtkCuda2DTransferFunction* f) { if (this->Function == f) { return; } if (this->Function) { this->Function->UnRegister(this); } this->Function = f; if (this->Function) { this->Function->Register(this); } this->LastModifiedTime = 0; this->Modified(); } vtkCuda2DTransferFunction* vtkCuda2DInExLogicTransferFunctionInformationHandler::GetVisualizationTransferFunction() { return this->Function; } void vtkCuda2DInExLogicTransferFunctionInformationHandler::SetInExLogicTransferFunction(vtkCuda2DTransferFunction* f) { if (this->InExFunction == f) { return; } if (this->InExFunction) { this->InExFunction->UnRegister(this); } this->InExFunction = f; if (this->InExFunction) { this->InExFunction->Register(this); } this->LastModifiedTime = 0; this->Modified(); } vtkCuda2DTransferFunction* vtkCuda2DInExLogicTransferFunctionInformationHandler::GetInExLogicTransferFunction() { return this->InExFunction; } void vtkCuda2DInExLogicTransferFunctionInformationHandler::UpdateTransferFunction() { //if we don't need to update the transfer functions, don't if (!this->InputData) { return; } if (!this->Function || this->Function->GetMTime() <= LastModifiedTime || !this->InExFunction || this->InExFunction->GetMTime() <= LastModifiedTime) { return; } LastModifiedTime = (this->Function->GetMTime() < this->InExFunction->GetMTime()) ? this->InExFunction->GetMTime() : this->Function->GetMTime(); //get the ranges from the transfer function double minIntensity = (this->InputData->GetScalarRange()[0] > this->Function->getMinIntensity()) ? this->InputData->GetScalarRange()[0] : this->Function->getMinIntensity(); double maxIntensity = (this->InputData->GetScalarRange()[1] < this->Function->getMaxIntensity()) ? this->InputData->GetScalarRange()[1] : this->Function->getMaxIntensity(); double minGradient = (this->LowGradient > this->Function->getMinGradient()) ? this->LowGradient : this->Function->getMinGradient(); double maxGradient = (this->HighGradient < this->Function->getMaxGradient()) ? this->HighGradient : this->Function->getMaxGradient(); //estimate the gradient ranges this->LowGradient = 0; this->HighGradient = abs(this->InputData->GetScalarRange()[0] - this->InputData->GetScalarRange()[1]) / std::min(this->InputData->GetSpacing()[0], std::min(this->InputData->GetSpacing()[1], this->InputData->GetSpacing()[2])); minGradient = (minGradient > this->InExFunction->getMinGradient()) ? minGradient : this->InExFunction->getMinGradient(); maxGradient = (maxGradient < this->InExFunction->getMaxGradient()) ? maxGradient : this->InExFunction->getMaxGradient(); double gradientOffset = maxGradient * 0.8; maxGradient = (log(maxGradient * maxGradient + gradientOffset) - log(gradientOffset)) / log(2.0) + 1.0; minGradient = (log(minGradient * minGradient + gradientOffset) - log(gradientOffset)) / log(2.0); //figure out the multipliers for applying the transfer function in GPU this->TransInfo.intensityLow = minIntensity; this->TransInfo.intensityMultiplier = 1.0 / (maxIntensity - minIntensity); this->TransInfo.gradientMultiplier = 1.0 / (maxGradient - minGradient); this->TransInfo.gradientOffset = gradientOffset; this->TransInfo.gradientLow = - minGradient - log(gradientOffset) / log(2.0); //create local buffers to house the transfer function float* LocalColorRedTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalColorGreenTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalColorBlueTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalAlphaTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalInExTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalAmbientTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalDiffuseTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalSpecularTransferFunction = new float[this->FunctionSize * this->FunctionSize]; float* LocalSpecularPowerTransferFunction = new float[this->FunctionSize * this->FunctionSize]; //populate the table this->Function->GetTransferTable(LocalColorRedTransferFunction, LocalColorGreenTransferFunction, LocalColorBlueTransferFunction, LocalAlphaTransferFunction, this->FunctionSize, this->FunctionSize, minIntensity, maxIntensity, 0, minGradient, maxGradient, gradientOffset, 2); this->Function->GetShadingTable(LocalAmbientTransferFunction, LocalDiffuseTransferFunction, LocalSpecularTransferFunction, LocalSpecularPowerTransferFunction, this->FunctionSize, this->FunctionSize, minIntensity, maxIntensity, 0, minGradient, maxGradient, gradientOffset, 2); this->InExFunction->GetTransferTable(0, 0, 0, LocalInExTransferFunction, this->FunctionSize, this->FunctionSize, minIntensity, maxIntensity, 0, minGradient, maxGradient, gradientOffset, 2); //map the transfer functions to textures for fast access this->TransInfo.functionSize = this->FunctionSize; this->ReserveGPU(); CUDA_vtkCuda2DInExLogicVolumeMapper_renderAlgo_loadTextures(this->TransInfo, LocalColorRedTransferFunction, LocalColorGreenTransferFunction, LocalColorBlueTransferFunction, LocalAlphaTransferFunction, LocalAmbientTransferFunction, LocalDiffuseTransferFunction, LocalSpecularTransferFunction, LocalSpecularPowerTransferFunction, LocalInExTransferFunction, this->GetStream()); //clean up the garbage delete LocalColorRedTransferFunction; delete LocalColorGreenTransferFunction; delete LocalColorBlueTransferFunction; delete LocalAlphaTransferFunction; delete LocalAmbientTransferFunction; delete LocalDiffuseTransferFunction; delete LocalSpecularTransferFunction; delete LocalSpecularPowerTransferFunction; delete LocalInExTransferFunction; } void vtkCuda2DInExLogicTransferFunctionInformationHandler::Update() { if (this->InputData) { this->Modified(); } if (this->Function && this->InExFunction) { this->UpdateTransferFunction(); this->Modified(); } } void vtkCuda2DInExLogicTransferFunctionInformationHandler::SetUseBlackKeyhole(bool t) { this->UseBlackKeyhole = t; this->TransInfo.useBlackKeyhole = t; this->Modified(); }
47f5839fd94e4a831d1657f6a9ea7e16dee870b0
f122dc6c2f2809b1fc2e85568983a14b68ebb252
/eps/mac0420-cg/ep3/ray.h
0b05ca7a213466316ea047bfec2f666c7e3389fa
[]
no_license
henriquegemignani/ime
5cabd15e40b6eaf49be793d88a1d3560a545e136
d54d9f74f07efc3465de90e3c2475cedd32b4a46
refs/heads/master
2016-09-05T22:04:06.679111
2012-05-22T16:19:26
2012-05-22T16:19:26
2,629,331
0
1
null
null
null
null
UTF-8
C++
false
false
766
h
ray.h
#ifndef RAY_H_ #define RAY_H_ #include "vector3d.h" #include "common.h" #include "object.h" class Ray { public: Ray(Vector3D orig, Vector3D dir) : source(orig), direction(dir) {} virtual ~Ray() {} typedef struct { Object* obj; float dist; } Intersection; Intersection FindClosestIntersection(Environment &env); Vector3D Trace(Environment &env, int recursion = 0); const static int MAX_RECURSION = 5; protected: Vector3D LightTrace(Vector3D position, Vector3D normal, Environment &env, int recursion = 0); Vector3D OffsetSource() { return source + 1.0e-4 * direction; } Vector3D Refract(Intersection &inter, Environment &env, int recursion = 0); double Intersect(Object *obj); Vector3D source, direction; double ior; }; #endif /* RAY_H_ */
78304c6489ad100060db6939a36e5bcdeaea5ea5
321e4444df0441a6879af3f4fbea6100b14434e5
/FEMModel.h
b7c8148fc0c03491fc0e49f19c8dfd6429c4498c
[]
no_license
yu-yuxuan/Bridge_project
094b9cc6b19836fc5a026364a0ea5c3bf3bc6ead
10f60429acfd696df8bc1965cb9357afc169fd26
refs/heads/master
2021-08-23T03:06:11.950114
2017-12-02T20:18:13
2017-12-02T20:18:13
112,873,923
0
0
null
null
null
null
UTF-8
C++
false
false
972
h
FEMModel.h
#ifndef FEMMODEL_H #define FEMMODEL_H class FEMModel { protected: int NodeNumber; int *Node; double *KReduced; double *FReduced; double *UReduced; double *L_LU; double *U_LU; double *Stress; double *U; double *K; double *F; //Initial values for element components int ElementNumber; int *Element; //include material, so nx3 public: FEMModel(); ~FEMModel(); bool ReadTXTFiles(const char *inputName); void print(void); //not used in future void LUDecomposition(void); /* bool ReadKFiles(const char *inputName); //not used in future */ /* bool ReadFFiles(const char *inputName); //not used in future */ /* void Lprint(void); //not used in future */ /* void Uprint(void); //not used in future */ void Assemble(int CarWeight, double Carposition); void SolverU(void); int Position(const int l, int i, int j); void SolverStress(void); }; #endif /* FEMMODEL_H */
e71785135219e81057a3b3e33c9a39983b8df1fb
1838a2f3660c654147dcf55507472b6746506302
/src/StringCache.h
f929634e83594751ed6b6b246a628311751c7c05
[]
no_license
EdwardOwusuAdjei/AIengine-xtra
5eaa1f44f0b318462c07913b49bcec68bff35638
d4cc87068a1683786c6eb33faf84f11a6d46030e
refs/heads/master
2021-01-10T17:10:34.989045
2016-02-17T19:38:59
2016-02-17T19:38:59
51,943,608
0
1
null
null
null
null
UTF-8
C++
false
false
1,803
h
StringCache.h
/* * AIEngine a deep packet inspector reverse engineering engine. * * Copyright (C) 2013-2016 Luis Campo Giralte * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. * * Written by Luis Campo Giralte <luis.camp0.2009@gmail.com> * */ #ifndef SRC_STRINGCACHE_H_ #define SRC_STRINGCACHE_H_ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <iostream> #include <algorithm> namespace aiengine { class StringCache { public: explicit StringCache(const char *value):value_(value) {} explicit StringCache() { reset(); } virtual ~StringCache() { value_.clear();} void reset() { value_ = ""; } const char *getName() const { return value_.c_str(); } void setName(const char *name, int length) { value_.assign(name,length); } void setName(const char *name) { value_.assign(name); } size_t getNameSize() const { return value_.size(); } #ifdef PYTHON_BINDING friend std::ostream& operator<< (std::ostream& out, const StringCache& sc) { out << sc.value_; return out; } #endif private: std::string value_; }; } // namespace aiengine #endif // SRC_STRINGCACHE_H_
aef216cd37c09912ff549663b13a9db7cb9d38c4
6e5ecd49d8d9f45f8a153a4f532fcd411fe0aa8d
/2course/C++ Homeworks/HW10/graph/Graph.cpp
66261abfd8cff36fb878da9b034477043da1622b
[]
no_license
Damtev/ITMO_HOMEWORKS
79548473e78a6d57bb93efbba3dbaceaceb8d755
6f5d4ce803cd00d7a403270a918b4739431f22fe
refs/heads/master
2022-05-26T16:44:33.716667
2019-11-20T10:32:05
2019-11-20T10:32:05
144,037,299
0
1
null
2022-05-20T20:54:51
2018-08-08T16:01:40
Java
UTF-8
C++
false
false
915
cpp
Graph.cpp
// // Created by damtev on 01/09/18. // #include "Graph.h" Graph::Graph(const std::vector<Vertex*>& vertices) { mVertices = vertices; } Graph::~Graph() { mVertices.clear(); mEdges.clear(); } Vertex& Graph::getVertex(int id) const { return *mVertices[id]; } const std::vector<Vertex*>& Graph::getVertices() const { return mVertices; } const Edge& Graph::getEdge(int id) const { return *mEdges[id]; } size_t Graph::edgesAmount() const { return mEdges.size(); } const std::vector<Edge*>& Graph::getEdges() const { return mEdges; } void Graph::addEdge(int from, int to) { addEdge(*mVertices[from], *mVertices[to]); } void Graph::addEdge(Vertex& from, Vertex& to) { Edge* edge = new Edge(from, to); from.getAdjacent().push_back(edge); to.getAdjacent().push_back(edge); mEdges.push_back(edge); } size_t Graph::size() const { return mVertices.size(); }
79611d64bb5a0c43ee88ad317d667fbb1f852dfc
43707cf850fe9fdd52c66446ad489a11a6e75503
/game-709/server/servers/majiang_server/src/majiang_logic.cpp
a4d8004fb07e229ce5e3de726f7d59068d8e41df
[]
no_license
luoweiqiao/game-709
d6b2ca8b9d473bd87e0adc25c5f0845318081bc2
c1a144199c36a5322261fae84aaed83acd7d2106
refs/heads/master
2023-03-25T22:01:31.551606
2021-03-22T05:04:01
2021-03-22T05:04:01
308,546,921
1
4
null
null
null
null
UTF-8
C++
false
false
113,718
cpp
majiang_logic.cpp
#include "majiang_logic.h" #include "math/rand_table.h" #include "majiang_config.h" #include "game_imple_table.h" #include <center_log.h> using namespace game_majiang; //静态变量 namespace game_majiang { /* 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, //万子 0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19, //索子 0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29, //同子 0x31,0x32,0x33,0x34,0x35,0x36,0x37, //番子 0x38 // 无效牌 */ //构造函数 CMaJiangLogic::CMaJiangLogic(){ m_kingCardIndexs.clear(); m_pMjCfg = NULL; m_pHostTable = NULL; m_bIsAnalyseTingCard15 = false; } //析构函数 CMaJiangLogic::~CMaJiangLogic() { } void CMaJiangLogic::SetMjCfg(CMaJiangCfg* pCfg){ m_pMjCfg = pCfg; } void CMaJiangLogic::SetMjTable(CGameMaJiangTable* pTable){ m_pHostTable = pTable; } //获取动作名称 string CMaJiangLogic::GetOperCodeName(uint32 operCode) { //static string name[]={"NULL","左吃","中吃","右吃","碰","杠","听","胡","起手胡","要海底","杠听"}; //if(operCode>ACTION_GANG_TING) // return ""; //return name[operCode]; return ""; } //获取牌的名称 string CMaJiangLogic::GetCardName(BYTE card) { BYTE color=GetCardColorValue(card); BYTE value=GetCardValue(card); if(color==emPOKER_COLOR_WAN){ return CStringUtility::FormatToString("%d万",value); }else if(color==emPOKER_COLOR_SUO){ return CStringUtility::FormatToString("%d条",value); }else if(color==emPOKER_COLOR_TONG){ return CStringUtility::FormatToString("%d万",value); }else{ return CStringUtility::FormatToString("%d字",value); } return ""; } //打印牌型 string CMaJiangLogic::PrintHuType(const stAnalyseItem& item) { stringstream ss; ss << "将:" << GetCardName(item.cbCardEye); for (int32 i = 0; i < MAX_WEAVE; ++i) { if (item.WeaveKind[i] == ACTION_GANG) { ss << " 杠:" << GetCardName(item.cbCenterCard[i]); } else if (item.WeaveKind[i] == ACTION_PENG) { ss << " 碰:" << GetCardName(item.cbCenterCard[i]); } else if (item.WeaveKind[i] == ACTION_EAT_LEFT) { ss << " 吃:" << GetCardName(item.cbCenterCard[i]) << GetCardName(item.cbCenterCard[i] + 1) << GetCardName(item.cbCenterCard[i] + 2); } else if (item.WeaveKind[i] == ACTION_EAT_CENTER) { ss << " 吃:" << GetCardName(item.cbCenterCard[i] - 1) << GetCardName(item.cbCenterCard[i]) << GetCardName(item.cbCenterCard[i] + 1); } else if (item.WeaveKind[i] == ACTION_EAT_RIGHT) { ss << " 吃:" << GetCardName(item.cbCenterCard[i] - 2) << GetCardName(item.cbCenterCard[i] - 1) << GetCardName(item.cbCenterCard[i]); } } return ss.str(); } //打印起手胡 string CMaJiangLogic::PrintOpenHuType(stActionOper& oper) { static string name[]={"","小四喜","板板胡","缺一色","六六顺","节节高","三同","一枝花","金童玉女","一点红"}; stringstream ss; for(uint8 i=1;i<MINHU_MAX_TYPE;++i){ if(oper.isExist(i)){ ss<<" "<<name[i]; } } return ss.str(); } //打印大胡 string CMaJiangLogic::PrintHuKindType(stActionOper& oper) { static string name[]={"","基本胡","七对","13乱","将将胡","起手4红中","碰碰胡","清一色","豪华七小对","全求人","门清","双豪华七小对", "大四喜","大三元","四杠","连七对","百万石","小四喜","小三元","字一色","四暗刻", "一色双龙会", "一色四同顺", "一色四节高", "一色四步高","三杠","混幺九","一色三同顺","一色三节高","清龙", "一色三步高", "三暗刻","天听","大于五","小于五","三风刻", "妙手回春","混一色","双暗杠","全带幺","不求人","双明杠","胡绝张","立直","箭刻","圈风刻", "门风刻","四归一","双暗刻", "暗杠","断幺九","二五八将","幺九头","报听","一般高","连六","老少副","幺九刻","明杠","边张","坎张","单调将","双箭刻"}; stringstream ss; for(uint8 i=1;i<HUTYPE_MAX_TYPE;++i){ if(oper.isExist(i)){ ss<<" "<<name[i]; } } return ss.str(); } //打印权位 string CMaJiangLogic::PrintHuRightType(uint32 huRight) { static string name[]={"","自摸","抢杠胡","杠上开花","天胡","地胡","杠上炮","海底捞月","抢海底"}; stringstream ss; for(uint8 i=1;i<=8;++i){ if(huRight&(1<<i)){ ss<<" "<<name[i]; } } return ss.str(); } //删除扑克 bool CMaJiangLogic::RemoveCard(BYTE cbCardIndex[MAX_INDEX], BYTE cbRemoveCard) { //效验扑克 ASSERT(IsValidCard(cbRemoveCard)); ASSERT(cbCardIndex[SwitchToCardIndex(cbRemoveCard)]>0); //删除扑克 BYTE cbRemoveIndex=SwitchToCardIndex(cbRemoveCard); if (cbCardIndex[cbRemoveIndex]>0) { cbCardIndex[cbRemoveIndex]--; return true; } //失败效验 ASSERT(FALSE); return false; } //删除扑克 bool CMaJiangLogic::RemoveCard(BYTE cbCardIndex[MAX_INDEX], BYTE cbRemoveCard[], BYTE cbRemoveCount) { //删除扑克 for (BYTE i=0;i<cbRemoveCount;i++) { //效验扑克 ASSERT(IsValidCard(cbRemoveCard[i])); ASSERT(cbCardIndex[SwitchToCardIndex(cbRemoveCard[i])]>0); //删除扑克 BYTE cbRemoveIndex=SwitchToCardIndex(cbRemoveCard[i]); if (cbCardIndex[cbRemoveIndex]==0) { //错误断言 ASSERT(FALSE); //还原删除 for (BYTE j=0;j<i;j++) { ASSERT(IsValidCard(cbRemoveCard[j])); cbCardIndex[SwitchToCardIndex(cbRemoveCard[j])]++; } return false; } else { //删除扑克 --cbCardIndex[cbRemoveIndex]; } } return true; } //删除扑克 bool CMaJiangLogic::RemoveCard(BYTE cbCardData[], BYTE cbCardCount, BYTE cbRemoveCard[], BYTE cbRemoveCount) { //检验数据 ASSERT(cbCardCount<=MAX_COUNT); ASSERT(cbRemoveCount<=cbCardCount); //定义变量 BYTE cbDeleteCount=0,cbTempCardData[MAX_COUNT]; if (cbCardCount>getArrayLen(cbTempCardData)) return false; memcpy(cbTempCardData,cbCardData,cbCardCount*sizeof(cbCardData[0])); //置零扑克 for (BYTE i=0;i<cbRemoveCount;i++) { for (BYTE j=0;j<cbCardCount;j++) { if (cbRemoveCard[i]==cbTempCardData[j]) { cbDeleteCount++; cbTempCardData[j]=0; break; } } } //成功判断 if (cbDeleteCount!=cbRemoveCount) { ASSERT(FALSE); return false; } //清理扑克 BYTE cbCardPos=0; for (BYTE i=0;i<cbCardCount;i++) { if (cbTempCardData[i]!=0) cbCardData[cbCardPos++]=cbTempCardData[i]; } return true; } //设置精牌 void CMaJiangLogic::SetKingCardIndex(BYTE cbKingCardIndex) { m_kingCardIndexs.clear(); m_kingCardIndexs.push_back(cbKingCardIndex); } //判断精牌 bool CMaJiangLogic::IsKingCardData(BYTE cbCardData) { if(m_kingCardIndexs.size()==0)return false; return m_kingCardIndexs[0]==SwitchToCardIndex(cbCardData); } //判断精牌 bool CMaJiangLogic::IsKingCardIndex(BYTE cbCardIndex) { if(m_kingCardIndexs.size()==0)return false; return m_kingCardIndexs[0]==cbCardIndex; } //有效判断 bool CMaJiangLogic::IsValidCard(BYTE cbCardData) { BYTE cbValue=(cbCardData&MASK_VALUE); BYTE cbColor=(cbCardData&MASK_COLOR)>>4; return (((cbValue>=1)&&(cbValue<=9)&&(cbColor<=2))||((cbValue>=1)&&(cbValue<=7)&&(cbColor==3))); //if (cbCardData>= emPOKER_WAN1 && emPOKER_BAI<= cbCardData) //{ // return true; //} //return false; } //扑克数目 BYTE CMaJiangLogic::GetCardCount(BYTE cbCardIndex[MAX_INDEX]) { //数目统计 BYTE cbCardCount=0; for (BYTE i=0;i<MAX_INDEX;i++) cbCardCount+=cbCardIndex[i]; return cbCardCount; } //获取组合 BYTE CMaJiangLogic::GetWeaveCard(BYTE cbWeaveKind, BYTE cbCenterCard, BYTE cbCardBuffer[4]) { //组合扑克 switch (cbWeaveKind) { case ACTION_EAT_LEFT: //左吃操作 { //设置变量 cbCardBuffer[0]=cbCenterCard+1; cbCardBuffer[1]=cbCenterCard+2; cbCardBuffer[2]=cbCenterCard; return 3; } case ACTION_EAT_RIGHT: //右吃操作 { //设置变量 cbCardBuffer[0]=cbCenterCard-2; cbCardBuffer[1]=cbCenterCard-1; cbCardBuffer[2]=cbCenterCard; return 3; } case ACTION_EAT_CENTER: //中吃操作 { //设置变量 cbCardBuffer[0]=cbCenterCard-1; cbCardBuffer[1]=cbCenterCard; cbCardBuffer[2]=cbCenterCard+1; return 3; } case ACTION_PENG: //碰牌操作 { //设置变量 cbCardBuffer[0]=cbCenterCard; cbCardBuffer[1]=cbCenterCard; cbCardBuffer[2]=cbCenterCard; return 3; } case ACTION_GANG: //杠牌操作 { //设置变量 cbCardBuffer[0]=cbCenterCard; cbCardBuffer[1]=cbCenterCard; cbCardBuffer[2]=cbCenterCard; cbCardBuffer[3]=cbCenterCard; return 4; } default: { ASSERT(FALSE); } } return 0; } //动作等级 BYTE CMaJiangLogic::GetUserActionRank(DWORD UserAction) { //起手胡 if(UserAction&ACTION_QIPAI_HU){ return 5; } //胡牌等级 if(m_pMjCfg->supportQiangGang()){ if(UserAction & ACTION_CHI_HU){ return 3; }// 胡降级跟杠一样,抢杠胡操作 }else{ if(UserAction & ACTION_CHI_HU){ return 4; } } //杠牌等级 if(UserAction&ACTION_GANG_TING){ return 3; } if(UserAction&ACTION_GANG){ return 3; } //碰牌等级 if(UserAction&ACTION_PENG) { return 2; } //上牌等级 if(UserAction&(ACTION_EAT_RIGHT|ACTION_EAT_CENTER|ACTION_EAT_LEFT)) { return 1; } return 0; } //取出动作数组 void CMaJiangLogic::GetAllAction(DWORD actionMask,vector<BYTE>& actions) { actions.clear(); for(uint8 i=0;i<31;++i) { uint32 mask=1<<i; if(actionMask&mask){ actions.push_back(i); } } } //取出一个动作 BYTE CMaJiangLogic::GetOneAction(DWORD actionMask) { for(uint8 i=0;i<31;++i){ uint32 mask=1<<i; if(actionMask&mask){ return i; } } return 0; } BYTE CMaJiangLogic::GetOneAIAction(DWORD actionMask, BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, BYTE cbCurrentCard, uint16 curChairID, BYTE cbListenStatus[GAME_PLAYER]) { vector<BYTE> actions; actions.clear(); for (uint8 i = 0; i < 31; ++i) { uint32 mask = 1 << i; if (actionMask&mask) { actions.push_back(i); } } vector<BYTE>::iterator iter_hu = find(actions.begin(), actions.end(), 7); if (iter_hu != actions.end()) { return 7; } vector<BYTE>::iterator iter_ting = find(actions.begin(), actions.end(), 6); if (iter_ting != actions.end()) { return 6; } vector<BYTE>::iterator iter_gang = find(actions.begin(), actions.end(), 5); if (iter_gang != actions.end() && IsValidCard(cbCurrentCard)) { if (cbCurrentCard >= emPOKER_DONG && emPOKER_BAI <= cbCurrentCard) { return 5; } int iCardCount = GetCardCount(cbCardIndex); LOG_DEBUG("gang_card - roomid:%d,tableid:%d,uid:%d - %d,cbCurrentCard:0x%02X,iCardCount:%d,GetPlayerCount:%d,curChairID:%d,cbListenStatus:%d - %d", m_pHostTable->GetRoomID(), m_pHostTable->GetTableID(), m_pHostTable->GetPlayerID(0), m_pHostTable->GetPlayerID(1), cbCurrentCard,iCardCount,m_pHostTable->GetPlayerCount(), curChairID, cbListenStatus[0], cbListenStatus[1]); if (iCardCount == 14 || iCardCount == 11 || iCardCount == 8 || iCardCount == 5)// 暗杠 { return 5; } else // 明杠 { bool bOtherIsTingCard = false; for (uint32 i = 0; i < m_pHostTable->GetPlayerCount(); i++) { if (i == curChairID) { continue; } if (cbListenStatus[i]==TRUE) { bOtherIsTingCard = true; } } BYTE cbHandCardIndex[MAX_INDEX] = { 0 }; for (uint32 j = 0; j < MAX_INDEX; j++) { cbHandCardIndex[j] = cbCardIndex[j]; } BYTE cbCurrentIndex = SwitchToCardIndex(cbCurrentCard); cbHandCardIndex[cbCurrentIndex] ++; map<BYTE, vector<tagAnalyseTingNotifyHu>> mpTingNotifyHu; DWORD dwAction = AnalyseTingCard17(curChairID, cbHandCardIndex, WeaveItem, cbWeaveCount, mpTingNotifyHu); LOG_DEBUG("gang_card - roomid:%d,tableid:%d,uid:%d - %d,cbCurrentCard:0x%02X,iCardCount:%d,GetPlayerCount:%d,curChairID:%d,cbListenStatus:%d - %d,dwAction:%d,mpTingNotifyHu.size:%d,bOtherIsTingCard:%d", m_pHostTable->GetRoomID(), m_pHostTable->GetTableID(), m_pHostTable->GetPlayerID(0), m_pHostTable->GetPlayerID(1), cbCurrentCard, iCardCount, m_pHostTable->GetPlayerCount(), curChairID, cbListenStatus[0], cbListenStatus[1], dwAction, mpTingNotifyHu.size(), bOtherIsTingCard); if (dwAction == ACTION_LISTEN && mpTingNotifyHu.size()>0) { return 5; } if (bOtherIsTingCard) { actions.erase(iter_gang); } else { return 5; } } } vector<BYTE>::iterator iter_peng = find(actions.begin(), actions.end(), 4); if (iter_peng != actions.end() && IsValidCard(cbCurrentCard)) { BYTE cbCurrentIndex = SwitchToCardIndex(cbCurrentCard); if (cbCurrentCard >= emPOKER_DONG && emPOKER_BAI <= cbCurrentCard) { return 4; } bool bIsPengCard = true; if (cbCurrentIndex == 0 && cbCardIndex[cbCurrentIndex + 1] != 0) { bIsPengCard = false; actions.erase(iter_peng); } if (cbCurrentIndex == 8 && cbCardIndex[cbCurrentIndex - 1] != 0) { bIsPengCard = false; actions.erase(iter_peng); } if (cbCurrentIndex != 0 && cbCurrentIndex != 8 && (cbCardIndex[cbCurrentIndex - 1] != 0 || cbCardIndex[cbCurrentIndex + 1] != 0)) { bIsPengCard = false; actions.erase(iter_peng); } // 碰了之后能听牌就要碰 BYTE cbHandCardIndex[MAX_INDEX] = { 0 }; for (uint32 j = 0; j < MAX_INDEX; j++) { cbHandCardIndex[j] = cbCardIndex[j]; } cbHandCardIndex[cbCurrentIndex] ++; map<BYTE, vector<tagAnalyseTingNotifyHu>> mpTingNotifyHu; DWORD dwAction = AnalyseTingCard17(curChairID,cbHandCardIndex, WeaveItem, cbWeaveCount, mpTingNotifyHu); if (dwAction == ACTION_LISTEN && mpTingNotifyHu.size()>0) { bIsPengCard = true; } if (bIsPengCard == true) { return 4; } } //vector<BYTE>::iterator iter_peng = find(actions.begin(), actions.end(), 4); //if (iter_peng != actions.end() && iter_gang != actions.end()) //{ // return 5; //} // 1 2 3 if (IsValidCard(cbCurrentCard)) { BYTE cbCurrentIndex = SwitchToCardIndex(cbCurrentCard); BYTE cbHandCardIndex[MAX_INDEX] = { 0 }; for (uint32 j = 0; j < MAX_INDEX; j++) { cbHandCardIndex[j] = cbCardIndex[j]; } cbHandCardIndex[cbCurrentIndex] ++; vector<BYTE>::iterator iter_eat_left = find(actions.begin(), actions.end(), 1); if (iter_eat_left != actions.end() && cbCurrentIndex <= 6) { bool bIsEat_Flag = true; if (cbCardIndex[cbCurrentIndex] != 0) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex] == 1 && cbCardIndex[cbCurrentIndex + 1] == 1 && cbCardIndex[cbCurrentIndex + 2] == 1) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex + 1] >= 2 || cbCardIndex[cbCurrentIndex + 2] >= 2) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex + 1] != 0 && cbCardIndex[cbCurrentIndex + 2] != 0 && cbCardIndex[cbCurrentIndex + 3] != 0) { bIsEat_Flag = false; } // 吃了之后能听牌就要吃 map<BYTE, vector<tagAnalyseTingNotifyHu>> mpTingNotifyHu; DWORD dwAction = AnalyseTingCard17(curChairID, cbHandCardIndex, WeaveItem, cbWeaveCount, mpTingNotifyHu); if (dwAction == ACTION_LISTEN && mpTingNotifyHu.size()>0) { bIsEat_Flag = true; } if (bIsEat_Flag == false) { actions.erase(iter_eat_left); } } vector<BYTE>::iterator iter_eat_center = find(actions.begin(), actions.end(), 2); if (iter_eat_center != actions.end() && cbCurrentIndex != 0 && cbCurrentIndex != 8 && cbCurrentIndex < 9) { bool bIsEat_Flag = true; if (cbCardIndex[cbCurrentIndex] != 0) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 1] == 1 && cbCardIndex[cbCurrentIndex] == 1 && cbCardIndex[cbCurrentIndex + 1] == 1) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 1] >= 2 && cbCardIndex[cbCurrentIndex + 1] >= 2) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 1] >= 2 && cbCardIndex[cbCurrentIndex + 1] >= 1) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 1] >= 1 && cbCardIndex[cbCurrentIndex + 1] >= 2) { bIsEat_Flag = false; } // 吃了之后能听牌就要吃 map<BYTE, vector<tagAnalyseTingNotifyHu>> mpTingNotifyHu; DWORD dwAction = AnalyseTingCard17(curChairID, cbHandCardIndex, WeaveItem, cbWeaveCount, mpTingNotifyHu); if (dwAction == ACTION_LISTEN && mpTingNotifyHu.size()>0) { bIsEat_Flag = true; } LOG_DEBUG("eat_center - roomid:%d,tableid:%d,uid:%d - %d,cbCurrentCard:0x%02X,cbCurrentIndex:%d,curChairID:%d,cbCardIndex:%d - %d,dwAction:%d,bIsEat_Flag:%d", m_pHostTable->GetRoomID(), m_pHostTable->GetTableID(), m_pHostTable->GetPlayerID(0), m_pHostTable->GetPlayerID(1), cbCurrentCard, cbCurrentIndex, curChairID, cbCardIndex[cbCurrentIndex - 1], cbCardIndex[cbCurrentIndex + 1], dwAction, bIsEat_Flag); if (bIsEat_Flag == false) { actions.erase(iter_eat_center); } } vector<BYTE>::iterator iter_eat_right = find(actions.begin(), actions.end(), 3); if (iter_eat_right != actions.end() && cbCurrentIndex >= 2 && cbCurrentIndex < 9) { bool bIsEat_Flag = true; if (cbCardIndex[cbCurrentIndex] != 0) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 2] == 1 && cbCardIndex[cbCurrentIndex - 1] == 1 && cbCardIndex[cbCurrentIndex] == 1) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 2] >= 2 || cbCardIndex[cbCurrentIndex - 1] >= 2) { bIsEat_Flag = false; } if (cbCardIndex[cbCurrentIndex - 1] != 0 && cbCardIndex[cbCurrentIndex - 2] != 0 && cbCardIndex[cbCurrentIndex - 3] != 0) { bIsEat_Flag = false; } // 吃了之后能听牌就要吃 map<BYTE, vector<tagAnalyseTingNotifyHu>> mpTingNotifyHu; DWORD dwAction = AnalyseTingCard17(curChairID, cbHandCardIndex, WeaveItem, cbWeaveCount, mpTingNotifyHu); if (dwAction == ACTION_LISTEN && mpTingNotifyHu.size()>0) { bIsEat_Flag = true; } if (bIsEat_Flag == false) { actions.erase(iter_eat_right); } } } for (uint32 i = 0; i < actions.size(); i++) { return actions[i]; } return 0; } //吃牌判断 DWORD CMaJiangLogic::EstimateEatCard(BYTE cbCardIndex[MAX_INDEX], BYTE cbCurrentCard) { //参数效验 ASSERT(IsValidCard(cbCurrentCard)); if(IsKingCardData(cbCurrentCard))return ACTION_NULL; //变量定义 BYTE cbExcursion[3]={0,1,2}; DWORD ItemKind[3]={ACTION_EAT_LEFT,ACTION_EAT_CENTER,ACTION_EAT_RIGHT}; //吃牌判断 DWORD EatKind=0; BYTE cbFirstIndex=0; BYTE cbCurrentIndex=SwitchToCardIndex(cbCurrentCard); //中发白 if(cbCurrentIndex>=31) { for (BYTE i=0;i<getArrayLen(ItemKind);i++) { BYTE cbValueIndex=cbCurrentIndex%9; if ((cbValueIndex>=cbExcursion[i])&&((cbValueIndex-cbExcursion[i])<=4)) { //吃牌判断 cbFirstIndex=cbCurrentIndex-cbExcursion[i]; //过滤 if(cbFirstIndex<31) continue; if ((cbCurrentIndex!=cbFirstIndex)&&(cbCardIndex[cbFirstIndex]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+1))&&(cbCardIndex[cbFirstIndex+1]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+2))&&(cbCardIndex[cbFirstIndex+2]==0)) continue; //设置类型 EatKind|=ItemKind[i]; } } } else if(cbCurrentIndex>=27) { for (BYTE i=0;i<getArrayLen(ItemKind);i++) { BYTE cbValueIndex=cbCurrentIndex%9; if ((cbValueIndex>=cbExcursion[i])&&((cbValueIndex-cbExcursion[i])<=1)) { //吃牌判断 cbFirstIndex=cbCurrentIndex-cbExcursion[i]; if ((cbCurrentIndex!=cbFirstIndex)&&(cbCardIndex[cbFirstIndex]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+1))&&(cbCardIndex[cbFirstIndex+1]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+2))&&(cbCardIndex[cbFirstIndex+2]==0)) continue; //设置类型 EatKind|=ItemKind[i]; } } } else { for (BYTE i=0;i<getArrayLen(ItemKind);i++) { BYTE cbValueIndex=cbCurrentIndex%9; if ((cbValueIndex>=cbExcursion[i])&&((cbValueIndex-cbExcursion[i])<=6)) { //吃牌判断 cbFirstIndex=cbCurrentIndex-cbExcursion[i]; if ((cbCurrentIndex!=cbFirstIndex)&&(cbCardIndex[cbFirstIndex]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+1))&&(cbCardIndex[cbFirstIndex+1]==0)) continue; if ((cbCurrentIndex!=(cbFirstIndex+2))&&(cbCardIndex[cbFirstIndex+2]==0)) continue; //设置类型 EatKind|=ItemKind[i]; } } } return EatKind; } //碰牌判断 DWORD CMaJiangLogic::EstimatePengCard(BYTE cbCardIndex[MAX_INDEX], BYTE cbCurrentCard) { //参数效验 ASSERT(IsValidCard(cbCurrentCard)); if(IsKingCardData(cbCurrentCard))return ACTION_NULL; //碰牌判断 return (cbCardIndex[SwitchToCardIndex(cbCurrentCard)]>=2)?ACTION_PENG:ACTION_NULL; } //杠牌判断 DWORD CMaJiangLogic::EstimateGangCard(BYTE cbCardIndex[MAX_INDEX], BYTE cbCurrentCard) { //参数效验 ASSERT(IsValidCard(cbCurrentCard)); if(IsKingCardData(cbCurrentCard))return ACTION_NULL; //杠牌判断 return (cbCardIndex[SwitchToCardIndex(cbCurrentCard)]==3)?ACTION_GANG:ACTION_NULL; } //杠牌分析 DWORD CMaJiangLogic::AnalyseGangCard(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, stGangCardResult & GangCardResult) { //设置变量 DWORD ActionMask=ACTION_NULL; //ZeroMemory(&GangCardResult,sizeof(GangCardResult)); GangCardResult.Init(); //手上杠牌 红中也要杠 for(BYTE i=0;i<MAX_INDEX;i++) { if(cbCardIndex[i]==4 && !IsKingCardIndex(i)) { BYTE cbCardValue = SwitchToCardData(i); if (cbCardValue>0 && emPOKER_BAI>=cbCardValue) { ActionMask |= ACTION_GANG; GangCardResult.cbGangType[GangCardResult.cbCardCount] = 12; GangCardResult.cbCardData[GangCardResult.cbCardCount++] = cbCardValue; } } } //组合杠牌 for (BYTE i=0;i<cbWeaveCount;i++) { if(WeaveItem[i].WeaveKind==ACTION_PENG) { if(cbCardIndex[SwitchToCardIndex(WeaveItem[i].cbCenterCard)]==1) { if (WeaveItem[i].cbCenterCard > 0 && emPOKER_BAI >= WeaveItem[i].cbCenterCard) { ActionMask |= ACTION_GANG; GangCardResult.cbGangType[GangCardResult.cbCardCount] = 13; GangCardResult.cbCardData[GangCardResult.cbCardCount++] = WeaveItem[i].cbCenterCard; } } } } return ActionMask; } //分析扑克 bool CMaJiangLogic::AnalyseCard(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<stAnalyseItem> & AnalyseItemArray, uint32 & kind) { kind = 0; //取出赖子 //拷贝数据 BYTE cbTempCardIndex[MAX_INDEX]; memcpy(cbTempCardIndex,cbCardIndex,sizeof(cbTempCardIndex)); BYTE kingCount = 0; for(uint8 i=0;i<m_kingCardIndexs.size();++i){ kingCount += cbTempCardIndex[m_kingCardIndexs[i]]; cbTempCardIndex[m_kingCardIndexs[i]]=0;//移除赖子 } //没有赖子 if(kingCount==0){ return AnalyseCardNoKing(cbCardIndex,WeaveItem,cbWeaveCount,AnalyseItemArray); } //赖子组合 static vector<BYTE> combs; combs.clear(); for(uint8 i=0;i<MAX_INDEX;++i) { if(IsKingCardIndex(i)) continue; for(uint8 j=0;j<kingCount && j<2;++j){ if(IsNeedKingComb(cbTempCardIndex,i,j)){ combs.push_back(i); } } } static vector< vector<BYTE> > res; res.clear(); Combination(combs,kingCount,res); for(uint32 i=0;i<res.size();++i) { BYTE tempCard[MAX_INDEX]; memcpy(tempCard,cbTempCardIndex,sizeof(cbTempCardIndex)); for(uint8 j=0;j<res[i].size();++j){ tempCard[res[i][j]]++; } if(AnalyseCardNoKing(tempCard,WeaveItem,cbWeaveCount,AnalyseItemArray)){ return true; } //7小队 //七对 if(m_pMjCfg->supportSevenPair()){ kind = IsQiXiaoDui(tempCard,WeaveItem,cbWeaveCount); if(kind>0){ return true; } } } return false; } //分析扑克 bool CMaJiangLogic::AnalyseCardNoKing(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<stAnalyseItem> & AnalyseItemArray) { //计算数目 BYTE cbCardCount=0; for(BYTE i=0;i<MAX_INDEX;i++) cbCardCount+=cbCardIndex[i]; //拷贝数据 BYTE cbTempCardIndex[MAX_INDEX]; memcpy(cbTempCardIndex,cbCardIndex,sizeof(cbTempCardIndex)); //效验数目 //ASSERT((cbCardCount>=2)&&(cbCardCount<=MAX_COUNT)&&((cbCardCount-2)%3==0)); if ((cbCardCount<2)||(cbCardCount>MAX_COUNT)||((cbCardCount-2)%3!=0)) return false; //if ((cbCardCount<2) || (cbCardCount>MAX_COUNT) ) return false; //变量定义 BYTE cbKindItemCount=0; stKindItem KindItem[MAX_INDEX-2]; ZeroMemory(KindItem,sizeof(KindItem)); //需求判断 BYTE cbLessKindItem=(cbCardCount-2)/3; //ASSERT((cbLessKindItem+cbWeaveCount)==4); //单吊判断 if(cbLessKindItem==0) { //效验参数 ASSERT((cbCardCount==2)&&(cbWeaveCount==4)); //牌眼判断 for(BYTE i=0;i<MAX_INDEX;i++) { if(cbCardIndex[i]==2) { //变量定义 stAnalyseItem AnalyseItem; ZeroMemory(&AnalyseItem,sizeof(AnalyseItem)); //设置结果 for (BYTE j=0;j<cbWeaveCount;j++) { AnalyseItem.WeaveKind[j]=WeaveItem[j].WeaveKind; AnalyseItem.cbCenterCard[j]=WeaveItem[j].cbCenterCard; } AnalyseItem.cbCardEye=SwitchToCardData(i); //插入结果 AnalyseItemArray.push_back(AnalyseItem); //LOG_DEBUG("单吊,将牌:%d",AnalyseItem.cbCardEye); return true; } } return false; } //拆分分析 if(cbCardCount>=3) { for(BYTE i=0;i<MAX_INDEX;i++) { //同牌判断 if(cbCardIndex[i]>=3) { ASSERT( cbKindItemCount < getArrayLen(KindItem) ); KindItem[cbKindItemCount].cbCenterCard=SwitchToCardData(i); KindItem[cbKindItemCount].cbCardIndex[0]=i; KindItem[cbKindItemCount].cbCardIndex[1]=i; KindItem[cbKindItemCount].cbCardIndex[2]=i; KindItem[cbKindItemCount++].WeaveKind=ACTION_PENG; } //连牌判断 if ((i<(MAX_INDEX-2-7))&&(cbCardIndex[i]>0)&&((i%9)<7)) { for (BYTE j=1;j<=cbCardIndex[i];j++) { if ((cbCardIndex[i+1]>=j)&&(cbCardIndex[i+2]>=j)) { ASSERT( cbKindItemCount < getArrayLen(KindItem) ); KindItem[cbKindItemCount].cbCenterCard=SwitchToCardData(i); KindItem[cbKindItemCount].cbCardIndex[0]=i; KindItem[cbKindItemCount].cbCardIndex[1]=i+1; KindItem[cbKindItemCount].cbCardIndex[2]=i+2; KindItem[cbKindItemCount++].WeaveKind=ACTION_EAT_LEFT; } } } } // 东南西北中发白(暂时不处理toney) } //组合分析 if(cbKindItemCount>=cbLessKindItem) { //变量定义 BYTE cbCardIndexTemp[MAX_INDEX]; ZeroMemory(cbCardIndexTemp,sizeof(cbCardIndexTemp)); //变量定义 BYTE cbIndex[MAX_WEAVE]={0,1,2,3}; stKindItem * pKindItem[MAX_WEAVE]; ZeroMemory(&pKindItem,sizeof(pKindItem)); //开始组合 do { //设置变量 memcpy(cbCardIndexTemp,cbCardIndex,sizeof(cbCardIndexTemp)); for (BYTE i=0;i<cbLessKindItem;i++) pKindItem[i]=&KindItem[cbIndex[i]]; //数量判断 bool bEnoughCard=true; for (BYTE i=0;i<cbLessKindItem*3;i++) { //存在判断 BYTE cbCardIndex=pKindItem[i/3]->cbCardIndex[i%3]; if (cbCardIndexTemp[cbCardIndex]==0) { bEnoughCard=false; break; } else cbCardIndexTemp[cbCardIndex]--; } //胡牌判断 if(bEnoughCard==true) { //牌眼判断 BYTE cbCardEye=0; //是否继续 bool bContinue=true; if(bContinue==true) { for (BYTE i=0;i<MAX_INDEX;i++) { if (cbCardIndexTemp[i]==2) { //眼牌数据 cbCardEye=SwitchToCardData(i); //是否继续 bContinue=false; break; } } } //组合类型 if(cbCardEye!=0) { //变量定义 stAnalyseItem AnalyseItem; ZeroMemory(&AnalyseItem,sizeof(AnalyseItem)); //设置组合 for (BYTE i=0;i<cbWeaveCount;i++) { AnalyseItem.WeaveKind[i]=WeaveItem[i].WeaveKind; AnalyseItem.cbCenterCard[i]=WeaveItem[i].cbCenterCard; } //设置牌型 for (BYTE i=0;i<cbLessKindItem;i++) { AnalyseItem.WeaveKind[i+cbWeaveCount]=pKindItem[i]->WeaveKind; AnalyseItem.cbCenterCard[i+cbWeaveCount]=pKindItem[i]->cbCenterCard; } //设置牌眼 AnalyseItem.cbCardEye=cbCardEye; //插入结果 AnalyseItemArray.push_back(AnalyseItem); //LOG_DEBUG("普通胡牌,将牌:%d",AnalyseItem.cbCardEye); } } //设置索引 if(cbIndex[cbLessKindItem-1]==(cbKindItemCount-1)) { BYTE i = 0; for(i=cbLessKindItem-1;i>0;i--) { if ((cbIndex[i-1]+1)!=cbIndex[i]) { BYTE cbNewIndex=cbIndex[i-1]; for (BYTE j=(i-1);j<cbLessKindItem;j++) cbIndex[j]=cbNewIndex+j-i+2; break; } } if (i==0) break; } else cbIndex[cbLessKindItem-1]++; } while (true); } //硬胡分析 if(AnalyseItemArray.size()>0) return true; return false; } //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard19(uint8 chairID, BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<tagAnalyseTingNotifyHu > & vecNotifyHuCard) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); vecNotifyHuCard.clear(); BYTE cbCardCount = 0; for (BYTE i = 0; i < MAX_INDEX; i++) { cbCardCount += cbCardIndexTemp[i]; } bool bIsHaveEnoughCard = true; if (cbWeaveCount == 0) { if (cbCardCount != 13) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 1) { if (cbCardCount != 10) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 2) { if (cbCardCount != 7) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 3) { if (cbCardCount != 4) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 4) { if (cbCardCount != 1) { bIsHaveEnoughCard = false; } } if (bIsHaveEnoughCard == false) { return ACTION_NULL; } DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); //uint32 uChiHuCardPoolCount = GetAnalyseChiHuCardPoolCount(chairID, cbCurrentCard); //if (uChiHuCardPoolCount == 0) //{ // continue; //} stChiHuResult chr; DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; tagAnalyseTingNotifyHu NotifyHuCard; NotifyHuCard.cbCard = cbCurrentCard; NotifyHuCard.score = GetAnalyseChiHuScore(chr); NotifyHuCard.cbCount = GetAnalyseChiHuCardCount(chairID, cbCurrentCard); vecNotifyHuCard.push_back(NotifyHuCard); } } return action; } //听牌分析(能和) DWORD CMaJiangLogic::AnalyseTingCard18(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); stChiHuResult chr; DWORD dwChiHuRight = 0; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); uint32 uCount = GetAnalyseChiHuCardPoolCount(0, cbCurrentCard); if (uCount > 0) { if (ACTION_CHI_HU == AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false)) { return ACTION_LISTEN; } } } return ACTION_NULL; } //0 - 14 //1 - 11 //2 - 8 //3 - 5 //4 - 2 //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard17(uint8 chairID, BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, map<BYTE, vector<tagAnalyseTingNotifyHu>>& mpTingNotifyHu) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); BYTE cbCardCount = 0; for (BYTE i = 0; i < MAX_INDEX; i++) { cbCardCount += cbCardIndexTemp[i]; } bool bIsHaveEnoughCard = true; if (cbWeaveCount == 0) { if (cbCardCount != 14) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 1) { if (cbCardCount != 11) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 2) { if (cbCardCount != 8) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 3) { if (cbCardCount != 5) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 4) { if (cbCardCount != 2) { bIsHaveEnoughCard = false; } } if (bIsHaveEnoughCard == false) { return ACTION_NULL; } mpTingNotifyHu.clear(); DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE i = 0; i < MAX_INDEX; i++) { //LOG_DEBUG("PrintfcbCardIndexTemp - uid:%d,i:%d,cbCardIndexTemp:%d", uid, i, cbCardIndexTemp[i]); if (cbCardIndexTemp[i] == 0) continue; cbCardIndexTemp[i]--; vector<tagAnalyseTingNotifyHu> vecTingNotifyHu; BYTE cbOutCard = SwitchToCardData(i); for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); uint32 uChiHuCardPoolCount = GetAnalyseChiHuCardPoolCount(chairID, cbCurrentCard); if (uChiHuCardPoolCount == 0) { continue; } stChiHuResult chr; DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; //outCards.push_back(SwitchToCardData(i)); //huCards.push_back(cbCurrentCard); tagAnalyseTingNotifyHu TingNotifyHu; TingNotifyHu.cbCard = cbCurrentCard; TingNotifyHu.score = GetAnalyseChiHuScore(chr); TingNotifyHu.cbCount = uChiHuCardPoolCount; TingNotifyHu.chiHuResult = chr; vecTingNotifyHu.push_back(TingNotifyHu); } } if (vecTingNotifyHu.size() > 0) { mpTingNotifyHu.insert(make_pair(cbOutCard, vecTingNotifyHu)); } cbCardIndexTemp[i]++; } return action; } //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard16(uint8 chairID,BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<tagAnalyseTingNotifyHu > & vecNotifyHuCard) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); vecNotifyHuCard.clear(); BYTE cbCardCount = 0; for (BYTE i = 0; i < MAX_INDEX; i++) { cbCardCount += cbCardIndexTemp[i]; } bool bIsHaveEnoughCard = true; if (cbWeaveCount == 0) { if (cbCardCount != 13) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 1) { if (cbCardCount != 10) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 2) { if (cbCardCount != 7) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 3) { if (cbCardCount != 4) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 4) { if (cbCardCount != 1) { bIsHaveEnoughCard = false; } } if (bIsHaveEnoughCard == false) { return ACTION_NULL; } DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); uint32 uChiHuCardPoolCount = GetAnalyseChiHuCardPoolCount(chairID, cbCurrentCard); if (uChiHuCardPoolCount == 0) { continue; } stChiHuResult chr; DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; tagAnalyseTingNotifyHu NotifyHuCard; NotifyHuCard.cbCard = cbCurrentCard; NotifyHuCard.score = GetAnalyseChiHuScore(chr); NotifyHuCard.cbCount = uChiHuCardPoolCount; vecNotifyHuCard.push_back(NotifyHuCard); } } return action; } //0 - 14 //1 - 11 //2 - 8 //3 - 5 //4 - 2 //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard15(uint8 chairID, BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, map<BYTE, vector<tagAnalyseTingNotifyHu>>& mpTingNotifyHu) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); BYTE cbCardCount = 0; for (BYTE i = 0; i < MAX_INDEX; i++) { cbCardCount += cbCardIndexTemp[i]; } bool bIsHaveEnoughCard = true; if (cbWeaveCount == 0) { if (cbCardCount != 14) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 1) { if (cbCardCount != 11) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 2) { if (cbCardCount != 8) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 3) { if (cbCardCount != 5) { bIsHaveEnoughCard = false; } } else if (cbWeaveCount == 4) { if (cbCardCount != 2) { bIsHaveEnoughCard = false; } } if (bIsHaveEnoughCard == false) { return ACTION_NULL; } mpTingNotifyHu.clear(); m_bIsAnalyseTingCard15 = true; DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE i = 0; i < MAX_INDEX; i++) { //LOG_DEBUG("PrintfcbCardIndexTemp - uid:%d,i:%d,cbCardIndexTemp:%d", uid, i, cbCardIndexTemp[i]); if (cbCardIndexTemp[i] == 0) continue; cbCardIndexTemp[i]--; vector<tagAnalyseTingNotifyHu> vecTingNotifyHu; BYTE cbOutCard = SwitchToCardData(i); for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); stChiHuResult chr; DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; //outCards.push_back(SwitchToCardData(i)); //huCards.push_back(cbCurrentCard); tagAnalyseTingNotifyHu TingNotifyHu; TingNotifyHu.cbCard = cbCurrentCard; TingNotifyHu.score = GetAnalyseChiHuScore(chr); TingNotifyHu.cbCount = GetAnalyseChiHuCardCount(chairID, cbCurrentCard); TingNotifyHu.chiHuResult = chr; vecTingNotifyHu.push_back(TingNotifyHu); //break; } } if (vecTingNotifyHu.size() > 0) { mpTingNotifyHu.insert(make_pair(cbOutCard, vecTingNotifyHu)); } cbCardIndexTemp[i]++; } m_bIsAnalyseTingCard15 = false; return action; } //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard14(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[],BYTE cbWeaveCount,vector<BYTE>& outCards) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp,cbCardIndex,sizeof(cbCardIndexTemp)); outCards.clear(); stChiHuResult chr; DWORD dwChiHuRight=0; DWORD action = ACTION_NULL; for(BYTE i = 0; i < MAX_INDEX; i++ ) { //LOG_DEBUG("PrintfcbCardIndexTemp - uid:%d,i:%d,cbCardIndexTemp:%d", uid, i, cbCardIndexTemp[i]); if( cbCardIndexTemp[i] == 0 ) continue; cbCardIndexTemp[i]--; for(BYTE j = 0;j < MAX_INDEX;j++) { BYTE cbCurrentCard = SwitchToCardData(j); DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if(ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; outCards.push_back(SwitchToCardData(i)); break; } } cbCardIndexTemp[i]++; } return action; } //听牌分析(能和) DWORD CMaJiangLogic::AnalyseTingCard13(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); stChiHuResult chr; DWORD dwChiHuRight = 0; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); if (ACTION_CHI_HU == AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false)) { return ACTION_LISTEN; } } return ACTION_NULL; } //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard12(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<BYTE>& outCards, vector<BYTE>& huCards) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); outCards.clear(); huCards.clear(); stChiHuResult chr; DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE i = 0; i < MAX_INDEX; i++) { //LOG_DEBUG("PrintfcbCardIndexTemp - uid:%d,i:%d,cbCardIndexTemp:%d", uid, i, cbCardIndexTemp[i]); if (cbCardIndexTemp[i] == 0) continue; cbCardIndexTemp[i]--; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; outCards.push_back(SwitchToCardData(i)); huCards.push_back(cbCurrentCard); break; } } cbCardIndexTemp[i]++; } return action; } //听牌分析 DWORD CMaJiangLogic::AnalyseTingCard11(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, vector<BYTE>& huCards) { //复制数据 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp, cbCardIndex, sizeof(cbCardIndexTemp)); huCards.clear(); stChiHuResult chr; DWORD dwChiHuRight = 0; DWORD action = ACTION_NULL; for (BYTE j = 0; j < MAX_INDEX; j++) { BYTE cbCurrentCard = SwitchToCardData(j); DWORD dwAction = AnalyseChiHuCard(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, dwChiHuRight, chr, false); //LOG_DEBUG("PrintfcbCurrentCard - uid:%d,i:%d,cbCardIndexTemp:%d,cbCurrentCard:0x%02X,cbWeaveCount:%d,dwAction:%d,", uid, i, cbCardIndexTemp[i], cbCurrentCard, cbWeaveCount, dwAction); if (ACTION_CHI_HU == dwAction) { action = ACTION_LISTEN; huCards.push_back(cbCurrentCard); //break; } } return action; } //补杠听牌 DWORD CMaJiangLogic::AnalyseBuGangTing(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[],BYTE cbWeaveCount,BYTE cbCard) { BYTE cbCardIndexTemp[MAX_INDEX]; stWeaveItem WeaveItemTmp[MAX_WEAVE]; BYTE WeaveCountTmp = cbWeaveCount; memcpy(cbCardIndexTemp,cbCardIndex,sizeof(cbCardIndexTemp)); memcpy(WeaveItemTmp,WeaveItem,sizeof(WeaveItemTmp)); BYTE cardIndex = SwitchToCardIndex(cbCard); if(cbCardIndexTemp[cardIndex] == 1){ cbCardIndexTemp[cardIndex] = 0; }else{ cbCardIndexTemp[cardIndex] = 0; WeaveItemTmp[WeaveCountTmp].cbPublicCard = FALSE; WeaveItemTmp[WeaveCountTmp].WeaveKind = ACTION_GANG; WeaveItemTmp[WeaveCountTmp].cbCenterCard = cbCard; WeaveItemTmp[WeaveCountTmp].wProvideUser = 0; WeaveCountTmp++; } return AnalyseTingCard13(cbCardIndexTemp,WeaveItemTmp,WeaveCountTmp); } //吃胡分析 DWORD CMaJiangLogic::AnalyseChiHuCard(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, BYTE cbCurrentCard, DWORD dwChiHuRight, stChiHuResult & ChiHuResult,bool bZiMo ) { //设置变量 ZeroMemory(&ChiHuResult,sizeof(ChiHuResult)); ChiHuResult.ChiHuCard = cbCurrentCard; //变量定义 stActionOper ChiHuKind; //构造扑克 BYTE cbCardIndexTemp[MAX_INDEX]; memcpy(cbCardIndexTemp,cbCardIndex,sizeof(cbCardIndexTemp)); //插入扑克 if (cbCurrentCard != 0) { cbCardIndexTemp[SwitchToCardIndex(cbCurrentCard)]++; } //自模权位 if(bZiMo) { dwChiHuRight|= CHR_ZI_MO; } //权位调整 杠胡+自摸 = 杠上花 if((dwChiHuRight&CHR_QIANG_GANG)&&(dwChiHuRight&CHR_ZI_MO)) { dwChiHuRight &= ~CHR_QIANG_GANG; dwChiHuRight |= CHR_GANG_FLOWER; } //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("GetHuCardPlayerID:%d,bZiMo:%d,dwChiHuRight:%d,cbCurrentCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), bZiMo, dwChiHuRight, cbCurrentCard); //} // 处理特殊胡牌类型 /*if(m_pMjCfg->onlyZimo() && !bZiMo){//是否仅支持自摸 return ACTION_NULL; }*/ bool bIsQingYiSe = IsQingYiSe(cbCardIndexTemp, WeaveItem, cbWeaveCount, cbCurrentCard, bZiMo); //七对 if(m_pMjCfg->supportSevenPair()){ uint32 kind = IsQiXiaoDui(cbCardIndexTemp,WeaveItem,cbWeaveCount); if(kind>0) { ChiHuKind.add(kind); if (bIsQingYiSe) { ChiHuKind.add(HUTYPE_QING_YI_SE); } } } //13离 if(m_pMjCfg->supportThirteen() && cbWeaveCount==0 &&IsNeatAlone(cbCardIndexTemp)==true){ ChiHuKind.add(HUTYPE_THIRTEEN); } //将将胡 if(m_pMjCfg->supportJiangJiangHu() && IsJiangJiangHu(cbCardIndexTemp,WeaveItem,cbWeaveCount)){ ChiHuKind.add(HUTYPE_JIANG_JIANG); } //红中宝4红中直接胡 if(m_pHostTable->GetSendCardCount()==1 && bZiMo && m_pMjCfg->hasHongZhongCard() && m_pMjCfg->supportSuperCard()){ if(IsHongZhongHu(cbCardIndexTemp, WeaveItem,cbWeaveCount,cbCurrentCard)){ ChiHuKind.add(HUTYPE_HONGZHONG); } } static vector<stAnalyseItem> AnalyseItemArray; AnalyseItemArray.clear(); //分析扑克 uint32 kind = 0; AnalyseCard(cbCardIndexTemp,WeaveItem,cbWeaveCount,AnalyseItemArray,kind); if(kind > 0){ ChiHuKind.add(kind); } //胡牌分析 if(AnalyseItemArray.size()>0) { if(bIsQingYiSe) { ChiHuKind.add(HUTYPE_QING_YI_SE); } if(m_bIsAnalyseTingCard15 == false && IsQuanQiuRen(cbCardIndexTemp,WeaveItem,cbWeaveCount,cbCurrentCard, bZiMo)) { ChiHuKind.add(HUTYPE_QUAN_QIU_REN); } if(IsMenQing(cbCardIndexTemp,WeaveItem,cbWeaveCount,cbCurrentCard, bZiMo)){ ChiHuKind.add(HUTYPE_MEN_QING); } else { // 如果没有门前清不算立直 if (dwChiHuRight&CHR_LI_ZHI) { dwChiHuRight &= ~CHR_LI_ZHI; } } //牌型分析 for(uint32 i=0;i<AnalyseItemArray.size();i++) { //变量定义 bool bLianCard=false,bPengCard=false; stAnalyseItem * pAnalyseItem=&AnalyseItemArray[i]; //LOG_DEBUG("胡牌牌型:%s",PrintHuType(AnalyseItemArray[i]).c_str()); //牌型分析 for (BYTE j=0;j<getArrayLen(pAnalyseItem->WeaveKind);j++) { DWORD WeaveKind=pAnalyseItem->WeaveKind[j]; bPengCard=((WeaveKind&(ACTION_GANG|ACTION_PENG))!=0)?true:bPengCard; bLianCard=((WeaveKind&(ACTION_EAT_LEFT|ACTION_EAT_CENTER|ACTION_EAT_RIGHT))!=0)?true:bLianCard; } //牌型判断 //ASSERT((bLianCard==true)||(bPengCard==true)); //平胡 胡牌时,牌型由4组顺子和万字牌做将组成 // if((bLianCard==true)&&(bPengCard==true)){ // ChiHuKind.add(HUTYPE_PING_HU); //} // if((bLianCard==true)&&(bPengCard==false)){ // ChiHuKind.add(HUTYPE_PING_HU); //} if((bLianCard==false)&&(bPengCard==true)){ ChiHuKind.add(HUTYPE_PENG_PENG); } //检查258将限制 if(m_pMjCfg->isNeedLeader258()) { if(IsNeed258Leader(ChiHuKind)) { if(!IsLeaderCard258(pAnalyseItem->cbCardEye)){ LOG_DEBUG("不是258将不能胡"); ChiHuKind.reset(); } } } if(m_pMjCfg->playType() == MAJIANG_TYPE_GUOBIAO ) { CalcHuCardType(cbCardIndex,WeaveItem,cbWeaveCount,cbCurrentCard, bZiMo,pAnalyseItem,ChiHuKind); } else if (m_pMjCfg->playType() == MAJIANG_TYPE_TWO_PEOPLE) { CalcHuCardType(cbCardIndex, WeaveItem, cbWeaveCount, cbCurrentCard, bZiMo, pAnalyseItem, ChiHuKind); } } } //LOG_DEBUG("uid:%d,size:%d,kind:%d,isNull:%d,cbWeaveCount:%d,", uid, AnalyseItemArray.size(), kind, ChiHuKind.isNull(), cbWeaveCount); //结果判断 if(!ChiHuKind.isNull()) { //ChiHuKind.add(HUTYPE_PING_HU); CheckAddHuCardType(dwChiHuRight, ChiHuKind); ChiHuResult.HuKind = ChiHuKind; ChiHuResult.dwChiHuRight=dwChiHuRight; return ACTION_CHI_HU; } return ACTION_NULL; } bool CMaJiangLogic::CheckAddHuCardType(DWORD dwChiHuRight, stActionOper & ChiHuKind) { //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("GetHuCardPlayerID:%d,dwChiHuRight:%d", m_pHostTable->GetHuCardPlayerID(), dwChiHuRight); //} //获取牌型 //if (dwChiHuRight&CHR_GANG_FLOWER) //{ // ChiHuKind.add(HUTYPE_GANG_FLOWER); //} if (dwChiHuRight&CHR_DI) { ChiHuKind.add(HUTYPE_DI_HU); } if (dwChiHuRight&CHR_TIAN) { ChiHuKind.add(HUTYPE_TIAN_HU); } if (dwChiHuRight&CHR_QIANG_GANG) { ChiHuKind.add(HUTYPE_QIANG_GANG_HU); //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("抢杠胡 - GetHuCardPlayerID:%d,dwChiHuRight:%d", m_pHostTable->GetHuCardPlayerID(), dwChiHuRight); //} } if (dwChiHuRight&CHR_RENHU) { ChiHuKind.add(HUTYPE_REN_HU); } if (dwChiHuRight&CHR_ZI_MO) { ChiHuKind.add(HUTYPE_ZI_MO); } //if (dwChiHuRight&CHR_GANG_FLOWER) //{ // ChiHuKind.add(HUTYPE_GANG_FLOWER); //} if (dwChiHuRight&CHR_TIAN_TING) { ChiHuKind.add(HUTYPE_TIAN_TING); } if (dwChiHuRight&CHR_LI_ZHI) { ChiHuKind.add(HUTYPE_LI_ZHI); } return true; } uint32 CMaJiangLogic::GetAnalyseChiHuScore(stChiHuResult & result) { RemoveGuoBiaoFan(result); int32 fan = CalcGuoBiaoFan(result); return fan; } uint32 CMaJiangLogic::GetAnalyseChiHuCardCount(uint8 chairID, BYTE cbCard) { uint32 uCount = 0; if (m_pHostTable == NULL) { return uCount; } list<BYTE>::iterator it = m_pHostTable->m_poolCards.begin(); for (; it != m_pHostTable->m_poolCards.end(); it++) { BYTE cbTempCard = *it; if (cbTempCard == cbCard) { uCount++; } } if (chairID >= m_pHostTable->GetPlayerCount()) { return uCount; } for (uint8 i = 0; i < m_pHostTable->GetPlayerCount(); i++) { if (chairID == i) { continue; } BYTE cardData[MAX_COUNT] = { 0 }; BYTE cardNum = SwitchToCardData(m_pHostTable->m_cbCardIndex[i], cardData, MAX_COUNT); for (uint32 j = 0; j < cardNum; ++j) { if (cardData[j] == cbCard) { uCount++; } } } return uCount; } uint32 CMaJiangLogic::GetAnalyseChiHuCardPoolCount(uint8 chairID, BYTE cbCard) { uint32 uCount = 0; if (m_pHostTable == NULL) { return uCount; } list<BYTE>::iterator it = m_pHostTable->m_poolCards.begin(); for (; it != m_pHostTable->m_poolCards.end(); it++) { BYTE cbTempCard = *it; if (cbTempCard == cbCard) { uCount++; } } return uCount; } //扑克转换 BYTE CMaJiangLogic::SwitchToCardData(BYTE cbCardIndex) { ASSERT(cbCardIndex<MAX_INDEX); return ((cbCardIndex/9)<<4)|(cbCardIndex%9+1); } //扑克转换 BYTE CMaJiangLogic::SwitchToCardIndex(BYTE cbCardData) { ASSERT(IsValidCard(cbCardData)); ////计算位置 return ((cbCardData&MASK_COLOR)>>4)*9+(cbCardData&MASK_VALUE)-1; } //扑克转换 BYTE CMaJiangLogic::SwitchToCardData(BYTE cbCardIndex[MAX_INDEX], BYTE cbCardData[MAX_COUNT],BYTE bMaxCount) { //转换扑克 BYTE bPosition=0; for(BYTE i=0;i<MAX_INDEX;i++) { if(cbCardIndex[i]!=0) { for (BYTE j=0;j<cbCardIndex[i];j++) { //LOG_DEBUG("roomid:%d,tableid:%d,bPosition:%d,bMaxCount:%d,i:%d,j:%d,cbCardIndex[i]:%d", // m_pHostTable->GetRoomID(), m_pHostTable->GetTableID(), bPosition, bMaxCount, i, j, cbCardIndex[i]); ASSERT(bPosition<bMaxCount); cbCardData[bPosition++]=SwitchToCardData(i); } } } return bPosition; } //扑克转换 BYTE CMaJiangLogic::SwitchToCardIndex(BYTE cbCardData[], BYTE cbCardCount, BYTE cbCardIndex[MAX_INDEX]) { //设置变量 ZeroMemory(cbCardIndex,sizeof(BYTE)*MAX_INDEX); //转换扑克 for (BYTE i=0;i<cbCardCount;i++) { cbCardIndex[SwitchToCardIndex(cbCardData[i])]++; } return cbCardCount; } //扑克转换 BYTE CMaJiangLogic::SwitchToCardIndex(vector<BYTE> vecCardData,BYTE cbCardIndex[MAX_INDEX]) { //设置变量 ZeroMemory(cbCardIndex,sizeof(BYTE)*MAX_INDEX); //转换扑克 for(BYTE i=0;i<vecCardData.size();i++) { cbCardIndex[SwitchToCardIndex(vecCardData[i])]++; } return vecCardData.size(); } // 是不是2、5、8将牌 bool CMaJiangLogic::IsLeaderCard258(BYTE cardValue){ if(IsKingCardData(cardValue)) return true; return (GetCardValue(cardValue)%3)==2; } // 是否需要258将 bool CMaJiangLogic::IsNeed258Leader(stActionOper& oper) { if(oper.isExist(HUTYPE_PENG_PENG) || oper.isExist(HUTYPE_QING_YI_SE) || oper.isExist(HUTYPE_QUAN_QIU_REN) || oper.isExist(HUTYPE_JIANG_JIANG) || oper.isExist(HUTYPE_QI_DUI) || oper.isExist(HUTYPE_SUPER_QI_DUI) || oper.isExist(HUTYPE_SUPER2_QI_DUI) || oper.isExist(HUTYPE_THIRTEEN)){ return false; } return true; } // 是否需要替换赖子 bool CMaJiangLogic::IsNeedKingComb(BYTE cbCardIndex[MAX_INDEX],BYTE cbIndex,BYTE pos){ if(cbIndex>=27)// 字牌目前不需要替换 return false; if((cbCardIndex[cbIndex]+pos)>4) return false; return true; } //13乱 bool CMaJiangLogic::IsNeatAlone(BYTE cbCardIndex[MAX_INDEX]) { BYTE cbTempCardIndex[MAX_INDEX]; memcpy(cbTempCardIndex,cbCardIndex,sizeof(BYTE)*MAX_INDEX); //计算数目 BYTE cbCardCount=0; for (BYTE i=0;i<MAX_INDEX;i++) cbCardCount+=cbTempCardIndex[i]; //满牌才能全不靠 if(cbCardCount<14) return false; //变量处理 const BYTE COMMON_TYPE_SUM = 9; for (BYTE i=0;i<34;i++) { //重复字牌 if(cbTempCardIndex[i] > 1) { return false; } } BYTE* pKingIndex = 0; for(BYTE i=0; i<3; i++) { pKingIndex = &cbTempCardIndex[i*COMMON_TYPE_SUM]; for(BYTE j=0; j<COMMON_TYPE_SUM; j++) { if(pKingIndex[j] > 0) { for(BYTE k=0; k<2; k++) { j ++; if(j<COMMON_TYPE_SUM) { if(pKingIndex[j] > 0) { return false; } } } } } } //LOG_DEBUG("十三幺"); return true; } //七小对牌 uint32 CMaJiangLogic::IsQiXiaoDui(const BYTE cbCardIndex[MAX_INDEX], const stWeaveItem WeaveItem[], const BYTE cbWeaveCount) { //组合判断 if(cbWeaveCount != 0) return HUTYPE_NULL; //单牌数目 BYTE cbReplaceCount = 0; BYTE cbFourCount = 0; //计算单牌 for(BYTE i=0;i<MAX_INDEX;i++) { BYTE cbCardCount=cbCardIndex[i]; //单牌统计 if( cbCardCount == 1 || cbCardCount == 3 ){ cbReplaceCount++; } //四张统计 if(cbCardCount == 4){ cbFourCount++; } } if(cbReplaceCount > 0)return HUTYPE_NULL; //七连对 if(m_pMjCfg->supportSevenPair7()) { //if (cbFourCount==0) { for (BYTE i = 0; i < MAX_INDEX - 7; ++i) { bool falg = true; BYTE j = 0; for (; j < 7; ++j) { if (cbCardIndex[i + j] == 0) { falg = false; break; } } if (falg) { //LOG_DEBUG("七连对"); return HUTYPE_LIAN_QI_DUI; } } } } if (m_pMjCfg->supportSevenPair3()) { if (cbFourCount >= 3 && m_pMjCfg->supportSevenPair3()) { //LOG_DEBUG("三豪华七小对"); return HUTYPE_SUPER3_QI_DUI; } if (cbFourCount >= 2) { //LOG_DEBUG("双豪华七小对"); return HUTYPE_SUPER2_QI_DUI; } if (cbFourCount == 1) { //LOG_DEBUG("豪华七小对"); return HUTYPE_SUPER_QI_DUI; } } LOG_DEBUG("七对"); return HUTYPE_QI_DUI; } // 清一色 bool CMaJiangLogic::IsQingYiSe(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[], BYTE cbWeaveCount,const BYTE cbCurrentCard,bool bZimo) { BYTE curColor = 0xFF; //bool bIsFirst = true; for(BYTE i=0;i<MAX_INDEX;++i) { if(cbCardIndex[i]==0) continue; BYTE color = GetCardColorValue(SwitchToCardData(i)); if(curColor == 0xFF) { curColor = color; } if (color == emPOKER_COLOR_SUO || color == emPOKER_COLOR_TONG || color == emPOKER_COLOR_ZI) { return false; } if(curColor != color) return false; } for(BYTE i=0;i<cbWeaveCount;++i) { BYTE color = GetCardColorValue(WeaveItem[i].cbCenterCard); if(curColor == 0xFF) { curColor = color; //bIsFirst = false; } if (color == emPOKER_COLOR_SUO || color == emPOKER_COLOR_TONG || color == emPOKER_COLOR_ZI) { return false; } if(curColor != color) return false; } //LOG_DEBUG("清一色"); return true; } // 全求人(吃碰杠四副后,手中只剩一张牌,必须吃胡胡牌,乱将) bool CMaJiangLogic::IsQuanQiuRen(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[], BYTE cbWeaveCount,const BYTE cbCurrentCard,bool bZimo) { if(cbWeaveCount == 4 && !bZimo) { //LOG_DEBUG("全求人"); return true; } return false; } // 门清(没有吃碰明杠) bool CMaJiangLogic::IsMenQing(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[], BYTE cbWeaveCount,const BYTE cbCurrentCard,bool bZimo) { //if(!bZimo || m_pHostTable->GetSendCardCount() == 1)return false; if (bZimo) { return false; } for(uint8 i=0;i<cbWeaveCount;++i){ if(WeaveItem[i].WeaveKind != ACTION_GANG || WeaveItem[i].cbPublicCard == 1) return false; } return true; } void CMaJiangLogic::CheckMinHu(BYTE cbCardIndex[MAX_INDEX],stActionOper& oper) { bool bFlag = true; // 板板胡 if(m_pMjCfg->IsOpenHuType(MINHU_BANBAN_HU)){ for (BYTE i = 0; i < MAX_INDEX; ++i) { if (cbCardIndex[i] > 0) { BYTE value = GetCardValue(SwitchToCardData(i)); if (value % 3 == 2) { bFlag = false; break; } } } if (bFlag == true) { oper.add(MINHU_BANBAN_HU); LOG_DEBUG("板板胡"); } } // 六六顺,小四喜 BYTE num = 0; for(BYTE i=0;i<MAX_INDEX;++i) { if(cbCardIndex[i] >= 3){ num++; if(m_pMjCfg->IsOpenHuType(MINHU_SI_XI)) { if(cbCardIndex[i] == 4) { oper.add(MINHU_SI_XI); LOG_DEBUG("小四喜"); } } } } if(m_pMjCfg->IsOpenHuType(MINHU_LIULIU_SHUN)){ if(num >= 2){ oper.add(MINHU_LIULIU_SHUN); LOG_DEBUG("六六顺"); } } // 缺一色 if(m_pMjCfg->IsOpenHuType(MINHU_QUE_YI_SE)){ BYTE numColor[4]; memset(numColor, 0, sizeof(numColor)); for (BYTE i = 0; i < MAX_INDEX; ++i) { if (cbCardIndex[i] > 0) { numColor[GetCardColorValue(SwitchToCardData(i))] = 1; } } if ((numColor[0] + numColor[1] + numColor[2]) < 3) { oper.add(MINHU_QUE_YI_SE); LOG_DEBUG("缺一色"); } } // 节节高 if(m_pMjCfg->IsOpenHuType(MINHU_JIE_JIE_GAO)){ for (BYTE i = 0; i < MAX_INDEX - 3; ++i) { if (cbCardIndex[i] > 1 && cbCardIndex[i + 1] > 1 && cbCardIndex[i + 2] > 1) { oper.add(MINHU_JIE_JIE_GAO); LOG_DEBUG("节节高"); break; } } } // 3同 if(m_pMjCfg->IsOpenHuType(MINHU_SAN_TONG)){ for(uint8 i=0;i<9;++i) { if(cbCardIndex[SwitchToCardIndex(emPOKER_WAN1+i)]>1 && cbCardIndex[SwitchToCardIndex(emPOKER_SUO1+i)]>1 && cbCardIndex[SwitchToCardIndex(emPOKER_TONG1+i)]>1){ oper.add(MINHU_SAN_TONG); LOG_DEBUG("三同"); break; } } } // 一枝花 if(m_pMjCfg->IsOpenHuType(MINHU_YIZHIHUA)) { //玩家手上只有一只将牌,且这只将牌数字为“5” if(m_pMjCfg->playType() == MAJIANG_TYPE_CHANGSHA) { if (cbCardIndex[SwitchToCardIndex(emPOKER_WAN1 + 1)] == 0 && cbCardIndex[SwitchToCardIndex(emPOKER_WAN1 + 7)] == 0 && cbCardIndex[SwitchToCardIndex(emPOKER_SUO1 + 1)] == 0 && cbCardIndex[SwitchToCardIndex(emPOKER_SUO1 + 7)] == 0 && cbCardIndex[SwitchToCardIndex(emPOKER_TONG1 + 1)] == 0 && cbCardIndex[SwitchToCardIndex(emPOKER_TONG1 + 7)] == 0) { BYTE num = 0; num += cbCardIndex[SwitchToCardIndex(emPOKER_WAN1 + 4)]; num += cbCardIndex[SwitchToCardIndex(emPOKER_SUO1 + 4)]; num += cbCardIndex[SwitchToCardIndex(emPOKER_TONG1 + 4)]; if (num == 1) { LOG_DEBUG("一枝花1"); oper.add(MINHU_YIZHIHUA); } } } //玩家手牌中某花色只有一张,且这张牌为“5” BYTE colorNum[3]; memset(colorNum,0,sizeof(colorNum)); for(uint8 i=0;i<27;++i) { BYTE color = GetCardColorValue(SwitchToCardData(i)); colorNum[color] += cbCardIndex[i]; } for(uint8 i=0;i<3;++i) { //LOG_DEBUG("一直花2:--%d---%d--%d",colorNum[i],SwitchToCardIndex(MakeCardData(4,i)),cbCardIndex[SwitchToCardIndex(MakeCardData(4,i))]); if(colorNum[i] == 1 && cbCardIndex[SwitchToCardIndex(MakeCardData(4,i))] == 1) { LOG_DEBUG("一枝花2"); oper.add(MINHU_YIZHIHUA); break; } } } // 金童玉女 if(m_pMjCfg->IsOpenHuType(MINHU_JINTONG_YUNV)){ //玩家手里有一对二筒跟一对二条 if(cbCardIndex[SwitchToCardIndex(emPOKER_TONG1+1)] >= 2 && cbCardIndex[SwitchToCardIndex(emPOKER_SUO1+1)] >= 2){ LOG_DEBUG("金童玉女"); oper.add(MINHU_JINTONG_YUNV); } } // 一点红 if(m_pMjCfg->IsOpenHuType(MINHU_YIDIANHONG)){ BYTE num = 0; for(uint8 i=0;i<MAX_INDEX;++i){ if(cbCardIndex[i] > 0 && IsLeaderCard258(SwitchToCardData(i))){ num += cbCardIndex[i]; } } if(num == 1){ LOG_DEBUG("一点红"); oper.add(MINHU_YIDIANHONG); } } } // 国标麻将算番 uint32 CMaJiangLogic::CalcGuoBiaoFan(stChiHuResult& result) { uint32 fan=0; //88番 for(uint8 i=0;i<HUTYPE_MAX_TYPE;++i) { if(!result.IsKind(i))continue; switch(i) { //88 case HUTYPE_DA_SI_XI: case HUTYPE_DA_SAN_YUAN: case HUTYPE_SI_GANG: case HUTYPE_LIAN_QI_DUI: case HUTYPE_BAI_WAN_DAN: case HUTYPE_TIAN_HU: case HUTYPE_DI_HU: case HUTYPE_REN_HU: // -- { fan += 88;//88番 result.HuKind.setScore(i, 88); }break; //64 case HUTYPE_XIAO_SI_XI: case HUTYPE_XIAO_SAN_YUAN: case HUTYPE_ZI_YI_SE: case HUTYPE_SI_AN_KE: case HUTYPE_YISE_SHUANG_LONG: { fan += 64;//64番 result.HuKind.setScore(i, 64); }break; //48 case HUTYPE_YISE_SITONGSHUN: case HUTYPE_YISE_SIJIEGAO: { fan+=48; result.HuKind.setScore(i, 48); }break; //32 case HUTYPE_YISE_SIBUGAO: case HUTYPE_SAN_GANG: case HUTYPE_HUN_YAOJIU: { fan+=32; result.HuKind.setScore(i, 32); }break; //24 case HUTYPE_QI_DUI: case HUTYPE_QING_YI_SE: case HUTYPE_YISE_SANTONGSHUN: case HUTYPE_YISE_SANJIEGAO: { fan+=24; result.HuKind.setScore(i, 24); }break; //16 case HUTYPE_QING_LONG: case HUTYPE_YISE_SANBUGAO: case HUTYPE_SAN_ANKE: case HUTYPE_TIAN_TING: { fan+=16; result.HuKind.setScore(i, 16); }break; //12 case HUTYPE_DAYU_WU: case HUTYPE_XIAOYU_WU: case HUTYPE_SAN_FENGKE: { fan+=12; result.HuKind.setScore(i, 12); }break; //8番 case HUTYPE_MIAOSHOUHUICHUN: case HUTYPE_HAI_DI_LAO_YUE: case HUTYPE_GANG_FLOWER: case HUTYPE_QIANG_GANG_HU: { fan+=8; result.HuKind.setScore(i, 8); }break; //6番 case HUTYPE_PENG_PENG: case HUTYPE_HUN_YISE: case HUTYPE_QUAN_QIU_REN: case HUTYPE_SHUANG_ANGANG: case HUTYPE_SHUANG_JIANKE: { fan+=6; result.HuKind.setScore(i, 6); }break; //4番 case HUTYPE_QUANDAIYAO: case HUTYPE_BUQIUREN: case HUTYPE_SHUANG_MINGGANG: case HUTYPE_HU_JUEZHANG: case HUTYPE_LI_ZHI: { fan+=4; result.HuKind.setScore(i, 4); }break; //2番 case HUTYPE_JIAN_KE: case HUTYPE_QUAN_FENGKE: case HUTYPE_MEN_FENGKE: case HUTYPE_MEN_QING: case HUTYPE_PING_HU: case HUTYPE_SI_GUI_YI: case HUTYPE_SHUANG_ANKE: case HUTYPE_AN_GANG: case HUTYPE_DUAN_YAOJIU: { fan+=2; result.HuKind.setScore(i, 2); }break; //1番 case HUTYPE_ERWUBA_JIANG: case HUTYPE_YAOJIU_TOU: case HUTYPE_BAO_TING: case HUTYPE_YIBAN_GAO: case HUTYPE_LIAN_LIU: case HUTYPE_LAOSHAO_FU: case HUTYPE_YAOJIU_KE: case HUTYPE_MING_GANG: case HUTYPE_BIAN_ZHANG: case HUTYPE_KAN_ZHANG: case HUTYPE_DANDIAO_JIANG: case HUTYPE_ZI_MO: { fan+=1; result.HuKind.setScore(i, 1); }break; default: LOG_ERROR("没有处理的牌型:%d",i); break; } } //天地胡88番 /* if(result.IsRight(CHR_TIAN)) { fan+=88; result.HuKind.add(HUTYPE_TIAN_HU); result.HuKind.setScore(HUTYPE_TIAN_HU, 88); } if (result.IsRight(CHR_DI)) { fan += 88; result.HuKind.add(HUTYPE_DI_HU); result.HuKind.setScore(HUTYPE_DI_HU, 88); } //海底捞月,杠上开花,抢杠胡 if(result.IsRight(CHR_HAIDILAOYUE)){ fan+8; result.HuKind.add(HUTYPE_HAI_DI_LAO_YUE); result.HuKind.setScore(HUTYPE_HAI_DI_LAO_YUE, 8); } if (result.IsRight(CHR_GANG_FLOWER)) { fan + 8; result.HuKind.add(HUTYPE_GANG_FLOWER); result.HuKind.setScore(HUTYPE_GANG_FLOWER, 8); } if (result.IsRight(CHR_QIANG_GANG)) { fan + 8; result.HuKind.add(HUTYPE_QIANG_GANG_HU); result.HuKind.setScore(HUTYPE_QIANG_GANG_HU, 8); } //自摸 if(result.IsRight(CHR_ZI_MO)){ fan+=1; result.HuKind.add(HUTYPE_ZI_MO); result.HuKind.setScore(HUTYPE_ZI_MO, 1); } */ return fan; } // 国标麻将移除叠加番型 void CMaJiangLogic::RemoveGuoBiaoFan(stChiHuResult& result) { for(uint32 i=1;i<HUTYPE_MAX_TYPE;++i) { if(!result.HuKind.isExist(i)) continue; switch(i) { case HUTYPE_QUAN_QIU_REN: // 全求人(不计单调将) { result.HuKind.del(HUTYPE_DANDIAO_JIANG); }break; case HUTYPE_DA_SI_XI: // 大四喜(不计圈风刻,门风刻,碰碰胡,幺九刻) { result.HuKind.del(HUTYPE_QUAN_FENGKE); result.HuKind.del(HUTYPE_MEN_FENGKE); result.HuKind.del(HUTYPE_PENG_PENG); result.HuKind.del(HUTYPE_YAOJIU_KE); result.HuKind.del(HUTYPE_SAN_FENGKE); }break; case HUTYPE_DA_SAN_YUAN: // 大三元(不计双箭刻,箭刻) { result.HuKind.del(HUTYPE_JIAN_KE); result.HuKind.del(HUTYPE_SHUANG_JIANKE); result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_SI_GANG: { result.HuKind.del(HUTYPE_SAN_GANG); }break; case HUTYPE_LIAN_QI_DUI: // 连七对(不计七对,清一色,门清,单调) { result.HuKind.del(HUTYPE_QI_DUI); result.HuKind.del(HUTYPE_QING_YI_SE); result.HuKind.del(HUTYPE_MEN_QING); result.HuKind.del(HUTYPE_DANDIAO_JIANG); }break; case HUTYPE_BAI_WAN_DAN: // 百万石(不计清一色) { result.HuKind.del(HUTYPE_QING_YI_SE); }break; case HUTYPE_XIAO_SI_XI: // 小四喜(不计三风刻) { result.HuKind.del(HUTYPE_SAN_FENGKE); result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_XIAO_SAN_YUAN: // 小三元(不计双箭刻,箭刻,幺九刻) { result.HuKind.del(HUTYPE_SHUANG_JIANKE); result.HuKind.del(HUTYPE_JIAN_KE); result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_ZI_YI_SE: // 字一色(不计碰碰胡,混幺九,全带幺,幺九刻) { result.HuKind.del(HUTYPE_PENG_PENG); result.HuKind.del(HUTYPE_HUN_YAOJIU); result.HuKind.del(HUTYPE_QUANDAIYAO); result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_SI_AN_KE: // 四暗刻(不计门清,碰碰胡,三暗刻,双安刻,不求人) { result.HuKind.del(HUTYPE_MEN_QING); result.HuKind.del(HUTYPE_PENG_PENG); result.HuKind.del(HUTYPE_SAN_ANKE); result.HuKind.del(HUTYPE_SHUANG_ANKE); result.HuKind.del(HUTYPE_BUQIUREN); }break; case HUTYPE_YISE_SHUANG_LONG: // 一色双龙会(不计平胡,七对,清一色,一般高,老少副) { result.HuKind.del(HUTYPE_PING_HU); result.HuKind.del(HUTYPE_QI_DUI); result.HuKind.del(HUTYPE_QING_YI_SE); result.HuKind.del(HUTYPE_YIBAN_GAO); result.HuKind.del(HUTYPE_LAOSHAO_FU); }break; case HUTYPE_YISE_SITONGSHUN: // 一色四同顺(不计一色三高,一般高,四归一,一色三通顺) { result.HuKind.del(HUTYPE_YISE_SANJIEGAO); result.HuKind.del(HUTYPE_YIBAN_GAO); result.HuKind.del(HUTYPE_SI_GUI_YI); result.HuKind.del(HUTYPE_YISE_SANTONGSHUN); }break; case HUTYPE_YISE_SIJIEGAO: // 一色四节高(不计一色三通顺,一色三节高,碰碰胡) { result.HuKind.del(HUTYPE_YISE_SANTONGSHUN); result.HuKind.del(HUTYPE_YISE_SANJIEGAO); result.HuKind.del(HUTYPE_PENG_PENG); }break; case HUTYPE_YISE_SIBUGAO: // 一色四步高(不计一色三步高,老少副,连六) { result.HuKind.del(HUTYPE_YISE_SANBUGAO); result.HuKind.del(HUTYPE_LAOSHAO_FU); result.HuKind.del(HUTYPE_LIAN_LIU); }break; case HUTYPE_SAN_GANG: // 三杠(不计双明杠,双暗杠,明杠,暗杠) { result.HuKind.del(HUTYPE_SHUANG_MINGGANG); result.HuKind.del(HUTYPE_SHUANG_ANGANG); result.HuKind.del(HUTYPE_MING_GANG); result.HuKind.del(HUTYPE_AN_GANG); }break; case HUTYPE_HUN_YAOJIU: // 混幺九(不计碰碰胡,幺九刻,全带幺) { result.HuKind.del(HUTYPE_PENG_PENG); result.HuKind.del(HUTYPE_YAOJIU_KE); result.HuKind.del(HUTYPE_QUANDAIYAO); }break; case HUTYPE_YISE_SANTONGSHUN: // 一色三同顺(不计一色三节高,一般高) { result.HuKind.del(HUTYPE_YISE_SANJIEGAO); result.HuKind.del(HUTYPE_YIBAN_GAO); }break; case HUTYPE_YISE_SANJIEGAO: // 一色三节高(不计一色三同顺) { result.HuKind.del(HUTYPE_YISE_SANTONGSHUN); }break; case HUTYPE_QING_LONG: // 清龙(不计连六,老少副) { result.HuKind.del(HUTYPE_LIAN_LIU); result.HuKind.del(HUTYPE_LAOSHAO_FU); }break; case HUTYPE_SAN_ANKE: // 三暗刻(不计双暗刻) { result.HuKind.del(HUTYPE_SHUANG_ANKE); }break; case HUTYPE_SAN_FENGKE: // 三风刻(不计幺九刻) { result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_SHUANG_ANGANG: // 双暗杠(不计双暗刻,暗杠) { result.HuKind.del(HUTYPE_SHUANG_ANKE); result.HuKind.del(HUTYPE_AN_GANG); }break; case HUTYPE_BUQIUREN: // 不求人(不计门清,自摸)+++ { result.HuKind.del(HUTYPE_MEN_QING); result.HuKind.del(HUTYPE_ZI_MO); //result.DelRight(CHR_ZI_MO); }break; case HUTYPE_SHUANG_MINGGANG: // 双明杠(不计明杠) { result.HuKind.del(HUTYPE_MING_GANG); }break; case HUTYPE_QIANG_GANG_HU: // 胡绝张(不计抢杠胡) --- 改成有抢杠胡不计胡绝张 { result.HuKind.del(HUTYPE_HU_JUEZHANG); //result.DelRight(CHR_QIANG_GANG); }break; case HUTYPE_LI_ZHI: // 立直(不计报听,门清) { result.HuKind.del(HUTYPE_BAO_TING); result.HuKind.del(HUTYPE_MEN_QING); }break; case HUTYPE_JIAN_KE: // 箭刻(不计幺九刻) { result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_QUAN_FENGKE: // 圈风刻(不计幺九刻) { result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_MEN_FENGKE: // 门风刻(不计幺九刻) { result.HuKind.del(HUTYPE_YAOJIU_KE); }break; case HUTYPE_SHUANG_JIANKE: // 双箭刻(不计箭刻) { result.HuKind.del(HUTYPE_JIAN_KE); }break; case HUTYPE_BIAN_ZHANG: { result.HuKind.del(HUTYPE_KAN_ZHANG); }break; case HUTYPE_GANG_FLOWER: { result.HuKind.del(HUTYPE_ZI_MO); }break; case HUTYPE_MIAOSHOUHUICHUN: { result.HuKind.del(HUTYPE_ZI_MO); }break; default: break; } } } void CMaJiangLogic::BubbleSort(BYTE cbArr[], int iCount, bool bBig) { if (cbArr == NULL || 1 >= iCount) { return; } for (int i = 0; i < iCount - 1; ++i) { for (int j = i + 1; j < iCount; ++j) { if (bBig) { if (cbArr[j] > cbArr[i]) { BYTE cbTempBig = cbArr[j]; cbArr[j] = cbArr[i]; cbArr[i] = cbTempBig; } } else { if (cbArr[j] < cbArr[i]) { BYTE cbTempBig = cbArr[j]; cbArr[j] = cbArr[i]; cbArr[i] = cbTempBig; } } } } } void CMaJiangLogic::CalcHuCardType(BYTE cbCardIndex[MAX_INDEX], stWeaveItem WeaveItem[], BYTE cbWeaveCount, const BYTE cbCurrentCard, bool bZimo, stAnalyseItem* pAnalyseItem, stActionOper& oper) { BYTE cbTempShunZiCard[MAX_WEAVE]; BYTE cbTempShunZiCount = 0; memset(cbTempShunZiCard, 0, sizeof(cbTempShunZiCard)); BYTE cbTempKeZiCard[MAX_WEAVE]; BYTE cbTempKeZiCount = 0; memset(cbTempKeZiCard, 0, sizeof(cbTempKeZiCard)); BYTE cbTempGangCard[MAX_WEAVE]; BYTE cbTempGangCount = 0; memset(cbTempGangCard, 0, sizeof(cbTempGangCard)); BYTE cbTempHuCardIndex[MAX_INDEX]; memset(cbTempHuCardIndex, 0, sizeof(cbTempHuCardIndex)); cbTempHuCardIndex[SwitchToCardIndex(pAnalyseItem->cbCardEye)] += 2; for (uint8 i = 0; i < MAX_WEAVE; i++) { if(pAnalyseItem->WeaveKind[i] == ACTION_NULL)continue; BYTE cbTempCard = pAnalyseItem->cbCenterCard[i]; if (cbTempCard == 0) { continue; } if (cbTempCard < emPOKER_WAN1 || cbTempCard > emPOKER_BAI) { continue; } BYTE cbTempIndex = SwitchToCardIndex(cbTempCard); if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_LEFT) { cbTempShunZiCard[cbTempShunZiCount] = pAnalyseItem->cbCenterCard[i]; cbTempShunZiCount++; cbTempHuCardIndex[cbTempIndex]++; cbTempHuCardIndex[cbTempIndex + 1]++; cbTempHuCardIndex[cbTempIndex + 2]++; } else if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_CENTER) { cbTempShunZiCard[cbTempShunZiCount] = pAnalyseItem->cbCenterCard[i] - 1; cbTempShunZiCount++; cbTempHuCardIndex[cbTempIndex]++; cbTempHuCardIndex[cbTempIndex - 1]++; cbTempHuCardIndex[cbTempIndex + 1]++; } else if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_RIGHT) { cbTempShunZiCard[cbTempShunZiCount] = pAnalyseItem->cbCenterCard[i] - 2; cbTempShunZiCount++; cbTempHuCardIndex[cbTempIndex]++; cbTempHuCardIndex[cbTempIndex - 1]++; cbTempHuCardIndex[cbTempIndex - 2]++; } else if (pAnalyseItem->WeaveKind[i] == ACTION_PENG) { cbTempKeZiCard[cbTempKeZiCount] = pAnalyseItem->cbCenterCard[i]; cbTempKeZiCount++; cbTempHuCardIndex[cbTempIndex] += 3; } else if (pAnalyseItem->WeaveKind[i] == ACTION_GANG) { cbTempGangCard[cbTempGangCount] = pAnalyseItem->cbCenterCard[i]; cbTempGangCount++; cbTempHuCardIndex[cbTempIndex] += 4; } } BYTE cbSortShunZiCard[MAX_WEAVE]; memcpy(cbSortShunZiCard, cbTempShunZiCard, sizeof(cbSortShunZiCard)); BubbleSort(cbSortShunZiCard, cbTempShunZiCount); BYTE cbSortKeZiCard[MAX_WEAVE]; memcpy(cbSortKeZiCard, cbTempKeZiCard, sizeof(cbSortKeZiCard)); BubbleSort(cbSortKeZiCard, cbTempKeZiCount); if (m_pHostTable->GetHuCardPlayerID() > 0) { LOG_DEBUG("HuCardGroup - uid:%d,cbCurrentCard:0x%02X,cbCardEye:0x%02X,cbShunZi:%d,cbKeZi:%d,cbGang:%d,cbShunZiCard:0x%02X 0x%02X 0x%02X 0x%02X,cbKeZiCard:0x%02X 0x%02X 0x%02X 0x%02X,cbGangCard:0x%02X 0x%02X 0x%02X 0x%02X,cbSortShunZiCard:0x%02X 0x%02X 0x%02X 0x%02X,cbSortKeZiCard:0x%02X 0x%02X 0x%02X 0x%02X", m_pHostTable->GetHuCardPlayerID(), cbCurrentCard, pAnalyseItem->cbCardEye, cbTempShunZiCount, cbTempKeZiCount, cbTempGangCount, cbTempShunZiCard[0], cbTempShunZiCard[1], cbTempShunZiCard[2], cbTempShunZiCard[3], cbTempKeZiCard[0], cbTempKeZiCard[1], cbTempKeZiCard[2], cbTempKeZiCard[3], cbTempGangCard[0], cbTempGangCard[1], cbTempGangCard[2], cbTempGangCard[3], cbSortShunZiCard[0], cbSortShunZiCard[1], cbSortShunZiCard[2], cbSortShunZiCard[3], cbSortKeZiCard[0], cbSortKeZiCard[1], cbSortKeZiCard[2], cbSortKeZiCard[3]); } // 大四喜(四副风刻(杠)) bool flag = true; for (uint8 i = 0; i<MAX_WEAVE; ++i) { //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("大四喜 - uid:%d,i:%d,WeaveKind:%d,cbCenterCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), i, pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i]); //} if (pAnalyseItem->WeaveKind[i] == ACTION_NULL) { continue; } if (pAnalyseItem->WeaveKind[i] != ACTION_PENG && pAnalyseItem->WeaveKind[i] != ACTION_GANG) { flag = false; break; } if (!IsFengZi(pAnalyseItem->cbCenterCard[i])) { flag = false; break; } } if (flag) { oper.add(HUTYPE_DA_SI_XI); } // 大三元(中发白三个刻子) flag = true; if (IsExistKeZi(emPOKER_ZHONG, pAnalyseItem) && IsExistKeZi(emPOKER_FA, pAnalyseItem) && IsExistKeZi(emPOKER_BAI, pAnalyseItem)) { oper.add(HUTYPE_DA_SAN_YUAN); } // 四杠(4个杠) if (cbTempGangCount == 4) { oper.add(HUTYPE_SI_GANG); } // 连七对(由一种花色组成的序数相连的七对) 外面特殊处理 toney // 百万石(全部万牌,万总数过100) flag = true; uint32 countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (pAnalyseItem->WeaveKind[i] == ACTION_NULL) { continue; } if (!IsWanZi(pAnalyseItem->cbCenterCard[i])) { flag = false; break; } uint32 cbCardValve = GetCardValue(pAnalyseItem->cbCenterCard[i]); switch (pAnalyseItem->WeaveKind[i]) { case ACTION_GANG: { countNum += (4 * cbCardValve); }break; case ACTION_PENG: case ACTION_EAT_CENTER: { countNum += (3 * cbCardValve); }break; case ACTION_EAT_LEFT: { countNum += ((3 * cbCardValve) + 3); }break; case ACTION_EAT_RIGHT: { countNum += ((3 * cbCardValve) - 3); }break; default: break; } } countNum += (2*GetCardValue(pAnalyseItem->cbCardEye)); //LOG_DEBUG("HUTYPE_BAI_WAN_DAN - uid:%d,flag:%d,countNum:%d", m_pHostTable->GetHuCardPlayerID(), flag, countNum); if (flag && countNum >= 100) { oper.add(HUTYPE_BAI_WAN_DAN); } // 天胡 外面特殊处理 // 地胡 外面特殊处理 // 人胡 外面特殊处理 // 小四喜(3个风牌刻子及风牌将牌) countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if ((pAnalyseItem->WeaveKind[i] == ACTION_GANG || pAnalyseItem->WeaveKind[i] == ACTION_PENG) && IsFengZi(pAnalyseItem->cbCenterCard[i])) { countNum++; } } if (countNum >= 3 && IsFengZi(pAnalyseItem->cbCardEye)) { oper.add(HUTYPE_XIAO_SI_XI); } // 小三元(两个箭牌刻子跟箭牌将) countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if ((pAnalyseItem->WeaveKind[i] == ACTION_GANG || pAnalyseItem->WeaveKind[i] == ACTION_PENG) && IsJianZi(pAnalyseItem->cbCenterCard[i])) { countNum++; } } if (countNum >= 2 && IsJianZi(pAnalyseItem->cbCardEye)) { oper.add(HUTYPE_XIAO_SAN_YUAN); } // 字一色(全部字牌刻子字牌将) countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if ((pAnalyseItem->WeaveKind[i] == ACTION_GANG || pAnalyseItem->WeaveKind[i] == ACTION_PENG) && IsZiPai(pAnalyseItem->cbCenterCard[i])) { countNum++; } } if (countNum == 4 && IsZiPai(pAnalyseItem->cbCardEye)) { oper.add(HUTYPE_ZI_YI_SE); } // 四暗刻(4组暗刻) int iAnGangCount = 0; int iAllPengCount = cbTempKeZiCount; int iPengCount = 0; for (uint8 i = 0; i<cbWeaveCount; ++i) { if (WeaveItem[i].WeaveKind == ACTION_GANG && WeaveItem[i].cbPublicCard == FALSE) { iAnGangCount++; } if (WeaveItem[i].WeaveKind == ACTION_PENG) { iPengCount++; } } if (bZimo == false) { for (uint8 i = 0; i < cbTempKeZiCount; i++) { if (cbTempKeZiCard[i] == pAnalyseItem->cbCardEye) { iPengCount++; } } } int iAnKeCount = (iAllPengCount - iPengCount) + iAnGangCount; if (iAnKeCount >= 4) { oper.add(HUTYPE_SI_AN_KE); } // 一色双龙会(5万做将牌,并且有123万和789万的顺子各两组) flag = true; countNum = 0; uint32 countNum1 = 0; if (pAnalyseItem->cbCardEye != (emPOKER_WAN1 + 4)) flag = false; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (!flag)break; if (pAnalyseItem->WeaveKind[i] == ACTION_NULL) { continue; } switch (pAnalyseItem->WeaveKind[i]) { case ACTION_EAT_LEFT: { if (pAnalyseItem->cbCenterCard[i] == emPOKER_WAN1) { countNum++; } else if (pAnalyseItem->cbCenterCard[i] == (emPOKER_WAN1 + 6)) { countNum1++; } else { flag = false; } }break; case ACTION_EAT_RIGHT: { if (pAnalyseItem->cbCenterCard[i] == (emPOKER_WAN1 + 2)) { countNum++; } else if (pAnalyseItem->cbCenterCard[i] == (emPOKER_WAN1 + 8)) { countNum1++; } else { flag = false; } }break; case ACTION_EAT_CENTER: { if (pAnalyseItem->cbCenterCard[i] == (emPOKER_WAN1 + 1)) { countNum++; } else if (pAnalyseItem->cbCenterCard[i] == (emPOKER_WAN1 + 7)) { countNum1++; } else { flag = false; } }break; default: { //flag = false; }break; } } if (countNum == 2 && countNum1 == 2 && flag) { oper.add(HUTYPE_YISE_SHUANG_LONG); } // 一色四同顺(4组相同的顺子) //flag = true; //for (uint8 i = 0; i<MAX_WEAVE; ++i) //{ // if (pAnalyseItem->WeaveKind[i] == ACTION_NULL) // { // continue; // } // if (!flag)break; // if (pAnalyseItem->WeaveKind[i]<ACTION_EAT_LEFT || pAnalyseItem->WeaveKind[i]>ACTION_EAT_RIGHT) { // flag = false; // } // else { // cards.push_back(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])); // } //} //if (flag && cards.size() == 4) //{ // sort(cards.begin(), cards.end()); // if (cards[0] == cards[3]) // { // oper.add(HUTYPE_YISE_SITONGSHUN); // } //} if (cbTempShunZiCount == 4 && IsWanZi(cbTempShunZiCard[0]) && cbTempShunZiCard[0] == cbTempShunZiCard[1] && cbTempShunZiCard[0] == cbTempShunZiCard[2] && cbTempShunZiCard[0] == cbTempShunZiCard[3]) { oper.add(HUTYPE_YISE_SITONGSHUN); } // 一色四节高(4组递增的刻子) if (cbTempKeZiCount == 4 && IsWanZi(cbSortKeZiCard[0]) && cbSortKeZiCard[0] + 1 == cbSortKeZiCard[1] && cbSortKeZiCard[0] + 2 == cbSortKeZiCard[2] && cbSortKeZiCard[0] + 3 == cbSortKeZiCard[3]) { oper.add(HUTYPE_YISE_SIJIEGAO); } //flag = true; // //cards.clear(); //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // if (!flag)break; // BYTE curColor = GetCardColorValue(pAnalyseItem->cbCenterCard[i]); // if (curColor == emPOKER_COLOR_SUO || curColor == emPOKER_COLOR_TONG || curColor == emPOKER_COLOR_ZI) // { // flag = false; // } // if (pAnalyseItem->WeaveKind[i] != ACTION_PENG) { // flag = false; // } // else { // cards.push_back(pAnalyseItem->cbCenterCard[i]); // } //} //if (flag && cards.size() == MAX_WEAVE) { // sort(cards.begin(), cards.end()); // if (abs(cards[0] - cards[3]) == 3) { // oper.add(HUTYPE_YISE_SIJIEGAO); // } //} // 一色四步高(4组依次递增1位或2位的顺子) //flag = true; //vector<BYTE> cards; //cards.clear(); //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // if (!flag)break; // if (pAnalyseItem->WeaveKind[i]<ACTION_EAT_LEFT || pAnalyseItem->WeaveKind[i]>ACTION_EAT_RIGHT) { // flag = false; // } // else { // cards.push_back(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])); // } //} //if (flag && cards.size() == MAX_WEAVE) { // sort(cards.begin(), cards.end()); // if (abs(cards[0] - cards[1]) == 1 && abs(cards[1] - cards[2]) == 1 // && abs(cards[2] - cards[3]) == 1) { // oper.add(HUTYPE_YISE_SIBUGAO); // } // if (abs(cards[0] - cards[1]) == 2 && abs(cards[1] - cards[2]) == 2 // && abs(cards[2] - cards[3]) == 2) { // oper.add(HUTYPE_YISE_SIBUGAO); // } //} if (cbTempShunZiCount == 4 && cbSortShunZiCard[0] + 1 == cbSortShunZiCard[1] && cbSortShunZiCard[0] + 2 == cbSortShunZiCard[2] && cbSortShunZiCard[0] + 3 == cbSortShunZiCard[3]) { oper.add(HUTYPE_YISE_SIBUGAO); } if (cbTempShunZiCount == 4 && cbSortShunZiCard[0] + 2 == cbSortShunZiCard[1] && cbSortShunZiCard[0] + 4 == cbSortShunZiCard[2] && cbSortShunZiCard[0] + 6 == cbSortShunZiCard[3]) { oper.add(HUTYPE_YISE_SIBUGAO); } // 三杠(3个杠牌) if (cbTempGangCount >= 3) { oper.add(HUTYPE_SAN_GANG); } // 混幺九(全部为字牌或者1万9万) bool bIsHunYaoJiu = true; for (uint32 i = 0; i < cbTempKeZiCount; i++) { if (cbTempKeZiCard[i] != emPOKER_WAN1 && cbTempKeZiCard[i] != emPOKER_WAN1 + 8 && IsZiPai(cbTempKeZiCard[i])==false) { bIsHunYaoJiu = false; break; } } for (uint32 i = 0; i < cbTempGangCount; i++) { //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("HUTYPE_HUN_YAOJIU 1 - uid:%d,i:%d,cbTempGangCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), i, cbTempGangCard[i]); //} if (cbTempGangCard[i] != emPOKER_WAN1 && cbTempGangCard[i] != emPOKER_WAN1 + 8 && IsZiPai(cbTempGangCard[i]) == false) { //if (m_pHostTable->GetHuCardPlayerID() > 0) //{ // LOG_DEBUG("HUTYPE_HUN_YAOJIU 2 - uid:%d,i:%d,cbTempGangCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), i, cbTempGangCard[i]); //} bIsHunYaoJiu = false; break; } } if (pAnalyseItem->cbCardEye != emPOKER_WAN1 && pAnalyseItem->cbCardEye != emPOKER_WAN1 + 8 && IsZiPai(pAnalyseItem->cbCardEye) == false) { bIsHunYaoJiu = false; } if (((cbTempKeZiCount + cbTempGangCount) == 4) && bIsHunYaoJiu == true) { //if (bIsHunYaoJiu) //{ oper.add(HUTYPE_HUN_YAOJIU); //} } //flag = true; //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // if (!IsZiPai(pAnalyseItem->cbCenterCard[i]) // && pAnalyseItem->cbCenterCard[i] != emPOKER_WAN1 // && pAnalyseItem->cbCenterCard[i] != emPOKER_WAN1 + 8) { // flag = false; // } // if (pAnalyseItem->WeaveKind[i] != ACTION_PENG // && pAnalyseItem->WeaveKind[i] != ACTION_GANG) { // flag = false; // } // if (!flag)break; //} //if (flag) { // oper.add(HUTYPE_HUN_YAOJIU); //} // 七对 外面特殊处理 // 清一色 外面特殊处理 // 一色三同顺(相同的3组顺子) vector<BYTE> cards; cards.clear(); for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (pAnalyseItem->WeaveKind[i] >= ACTION_EAT_LEFT && pAnalyseItem->WeaveKind[i] <= ACTION_EAT_RIGHT) { cards.push_back(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])); } } if (cards.size() >= 3) { sort(cards.begin(), cards.end()); if (cards[0] == cards[2]) { oper.add(HUTYPE_YISE_SANTONGSHUN); } if (cards.size() == 4 && (cards[0] == cards[2] || cards[1] == cards[3])) { oper.add(HUTYPE_YISE_SANTONGSHUN); } } // 一色三节高(3组依次递增一位的刻字) cards.clear(); for (uint8 i = 0; i<MAX_WEAVE; ++i) { BYTE curColor = GetCardColorValue(pAnalyseItem->cbCenterCard[i]); if (curColor == emPOKER_COLOR_SUO || curColor == emPOKER_COLOR_TONG || curColor == emPOKER_COLOR_ZI) { continue; } if (pAnalyseItem->WeaveKind[i] == ACTION_PENG ) { cards.push_back(pAnalyseItem->cbCenterCard[i]); } } if (cards.size() >= 3) { sort(cards.begin(), cards.end()); if (abs(cards[0] - cards[2]) == 2) { oper.add(HUTYPE_YISE_SANJIEGAO); } if (cards.size() == 4) { if (abs(cards[0] - cards[2]) == 2 || abs(cards[1] - cards[3]) == 2) { oper.add(HUTYPE_YISE_SANJIEGAO); } } } // 清龙(有1万到9万相连的9张牌) 吃碰的牌是否算? toney bool bIsQingLong = true; for (uint32 i = 0; i < 9; i++) { if (0 >= cbTempHuCardIndex[i]) { bIsQingLong = false; } } if (bIsQingLong) { oper.add(HUTYPE_QING_LONG); } //flag = true; //for (uint32 i = 0; i<9; ++i) { // if (cbCardIndex[SwitchToCardIndex(emPOKER_WAN1 + i)] < 1) { // flag = false; // break; // } //} //if (flag) { // oper.add(HUTYPE_QING_LONG); //} // 一色三步高 cards.clear(); for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (pAnalyseItem->WeaveKind[i] >= ACTION_EAT_LEFT && pAnalyseItem->WeaveKind[i] <= ACTION_EAT_RIGHT) { cards.push_back(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])); } } if (cards.size() >= 3) { sort(cards.begin(), cards.end()); if (abs(cards[0] - cards[1]) == 1 && abs(cards[1] - cards[2]) == 1) { oper.add(HUTYPE_YISE_SANBUGAO); } if (abs(cards[0] - cards[1]) == 2 && abs(cards[1] - cards[2]) == 2) { oper.add(HUTYPE_YISE_SANBUGAO); } if (cards.size() == 4 && abs(cards[1] - cards[2]) == 1 && abs(cards[2] - cards[3]) == 1) { oper.add(HUTYPE_YISE_SANBUGAO); } if (cards.size() == 4 && abs(cards[1] - cards[2]) == 2 && abs(cards[2] - cards[3]) == 2) { oper.add(HUTYPE_YISE_SANBUGAO); } } // 三暗刻(3个暗刻) if (iAnKeCount >= 3) { oper.add(HUTYPE_SAN_ANKE); } // 天听 外面特殊处理 toney // 大于五(6万到9万) flag = true; for (uint8 i = 0; i<MAX_WEAVE-1; ++i) { if (!IsWanZi(pAnalyseItem->cbCenterCard[i])) { flag = false; break; } if (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG) { if (GetCardValue(pAnalyseItem->cbCenterCard[i]) < 6) { flag = false; break; } continue; } if (GetCardValue(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])) < 7) { flag = false; break; } } if (flag && IsWanZi(pAnalyseItem->cbCardEye) && GetCardValue(pAnalyseItem->cbCardEye) > 5) { oper.add(HUTYPE_DAYU_WU); } // 小于五(1万到4万) flag = true; for (uint8 i = 0; i<MAX_WEAVE-1; ++i) { if (!IsWanZi(pAnalyseItem->cbCenterCard[i])) { flag = false; break; } if (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG) { if (GetCardValue(pAnalyseItem->cbCenterCard[i]) > 4) { flag = false; break; } continue; } if (GetCardValue(GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i])) > 3) { flag = false; break; } } if (flag && IsWanZi(pAnalyseItem->cbCardEye) && GetCardValue(pAnalyseItem->cbCardEye) < 5) { oper.add(HUTYPE_XIAOYU_WU); } // 三风刻(3个风刻) countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if ((pAnalyseItem->WeaveKind[i] == ACTION_GANG || pAnalyseItem->WeaveKind[i] == ACTION_PENG) && IsFengZi(pAnalyseItem->cbCenterCard[i])) { countNum++; } } if (countNum >= 3) { oper.add(HUTYPE_SAN_FENGKE); } // 妙手回春(自摸牌池最后一张牌) if (bZimo && m_pHostTable->GetCardPoolSize() == 0) { oper.add(HUTYPE_MIAOSHOUHUICHUN); } // 海底捞月 if (!bZimo && m_pHostTable->GetCardPoolSize() == 0) { oper.add(HUTYPE_HAI_DI_LAO_YUE); } // 杠上开花 外面特殊处理 if (bZimo && m_pHostTable->GetOperHuCardIsGangFalwore()) { oper.add(HUTYPE_GANG_FLOWER); } // 抢杠胡 外面特殊处理 // 碰碰胡 外面特殊处理 // 混一色(万牌字牌组成) bool bIsHunYiSe = true; bool bIsHaveWanCard = false; bool bIsHaveZiCard = false; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (pAnalyseItem->WeaveKind[i] == ACTION_NULL) { continue; } //LOG_DEBUG("HUTYPE_HUN_YISE 1 - uid:%d,i:%d,WeaveKind:%d,cbCenterCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), i, pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i]); if (IsWanZi(pAnalyseItem->cbCenterCard[i])) { //LOG_DEBUG("HUTYPE_HUN_YISE 2 - uid:%d,i:%d,WeaveKind:%d,cbCenterCard:0x%02X", m_pHostTable->GetHuCardPlayerID(), i, pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i]); bIsHaveWanCard = true; } if (IsZiPai(pAnalyseItem->cbCenterCard[i])) { bIsHaveZiCard = true; } if (!IsZiPai(pAnalyseItem->cbCenterCard[i]) && !IsWanZi(pAnalyseItem->cbCenterCard[i])) { bIsHunYiSe = false; break; } } if (IsWanZi(pAnalyseItem->cbCardEye)) { //LOG_DEBUG("HUTYPE_HUN_YISE 3 - uid:%d,bIsHaveZiCard:%d,bIsHaveZiCard:%d,bIsHunYiSe:%d,cbCardEye:0x%02X", m_pHostTable->GetHuCardPlayerID(), bIsHaveZiCard, bIsHaveZiCard, bIsHunYiSe, pAnalyseItem->cbCardEye); bIsHaveWanCard = true; } if (IsZiPai(pAnalyseItem->cbCardEye)) { bIsHaveZiCard = true; } if (!IsZiPai(pAnalyseItem->cbCardEye) && !IsWanZi(pAnalyseItem->cbCardEye)) { bIsHunYiSe = false; } //LOG_DEBUG("HUTYPE_HUN_YISE 4 - uid:%d,bIsHaveZiCard:%d,bIsHaveZiCard:%d,bIsHunYiSe:%d,cbCardEye:0x%02X", m_pHostTable->GetHuCardPlayerID(), bIsHaveZiCard, bIsHaveZiCard, bIsHunYiSe, pAnalyseItem->cbCardEye); if (bIsHunYiSe && bIsHaveZiCard && bIsHaveWanCard) { oper.add(HUTYPE_HUN_YISE); } // 全求人 外面特殊处理 // 双暗杠(不计双暗刻,暗杠) countNum = 0; for (uint8 i = 0; i<cbWeaveCount; ++i) { if (WeaveItem[i].WeaveKind == ACTION_GANG && WeaveItem[i].cbPublicCard == FALSE) {//暗杠 countNum++; } } if (countNum >= 2) { oper.add(HUTYPE_SHUANG_ANGANG); } // 双箭刻 countNum = 0; for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (IsJianZi(pAnalyseItem->cbCenterCard[i]) && (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG)) { countNum++; } } if (countNum >= 2) { oper.add(HUTYPE_SHUANG_JIANKE); } //flag = true; //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // BYTE card = GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i]); // if (card != emPOKER_WAN1 && card != emPOKER_WAN1 + 8) { // flag = false; // break; // } //} //if (pAnalyseItem->cbCardEye != emPOKER_WAN1 && pAnalyseItem->cbCardEye != emPOKER_WAN1 + 8) { // flag = false; //} //if (flag) { // oper.add(HUTYPE_QUANDAIYAO); //} // 全带幺(刻字,顺子,将牌都带有1万或者9万) bool bIsQuanDaiYao = true; for (uint32 i = 0; i < cbTempShunZiCount; i++) { if (cbTempShunZiCard[i] != emPOKER_WAN1 && cbTempShunZiCard[i] != emPOKER_WAN1 + 6 && IsZiPai(cbTempShunZiCard[i]) == false) { bIsQuanDaiYao = false; break; } } for (uint32 i = 0; i < cbTempKeZiCount; i++) { if (cbTempKeZiCard[i] != emPOKER_WAN1 && cbTempKeZiCard[i] != emPOKER_WAN1 + 8 && IsZiPai(cbTempKeZiCard[i]) == false) { bIsQuanDaiYao = false; break; } } for (uint32 i = 0; i < cbTempGangCount; i++) { if (cbTempGangCard[i] != emPOKER_WAN1 && cbTempGangCard[i] != emPOKER_WAN1 + 8 && IsZiPai(cbTempGangCard[i]) == false) { bIsQuanDaiYao = false; break; } } if (pAnalyseItem->cbCardEye != emPOKER_WAN1 && pAnalyseItem->cbCardEye != emPOKER_WAN1 + 8 && IsZiPai(pAnalyseItem->cbCardEye) == false) { bIsQuanDaiYao = false; } if (bIsQuanDaiYao) { oper.add(HUTYPE_QUANDAIYAO); } // 不求人(没有吃碰杠且自摸胡) if (cbWeaveCount == 0 && bZimo) { oper.add(HUTYPE_BUQIUREN); } // 双明杠(不计明杠) countNum = 0; for (uint8 i = 0; i<cbWeaveCount; ++i) { if (WeaveItem[i].WeaveKind == ACTION_GANG && WeaveItem[i].cbPublicCard == TRUE) {//明杠 countNum++; } } if (countNum >= 2) { oper.add(HUTYPE_SHUANG_MINGGANG); } // 胡绝张(桌面已明亮3张牌,胡所剩第4张) if (m_pHostTable->GetShowCardNum(cbCurrentCard) == 3) { oper.add(HUTYPE_HU_JUEZHANG); } // 立直(门前清且听牌后胡牌) 外面特殊处理 // 箭刻(有1组箭牌刻字) for (uint8 i = 0; i<MAX_WEAVE; ++i) { if (IsJianZi(pAnalyseItem->cbCenterCard[i]) && (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG)) { oper.add(HUTYPE_JIAN_KE); } } // 圈风刻(有与圈风相同风牌刻子) // 门风刻(有与门风相同的风牌刻子) // 门前清(没有吃碰明杠) 外面特殊处理 //平胡 胡牌时,牌型由4组顺子和万字牌做将组成 if (cbTempShunZiCount == 4 && GetCardColor(pAnalyseItem->cbCardEye) == emPOKER_COLOR_WAN) { oper.add(HUTYPE_PING_HU); } // 四归一(有4张相同的牌归于1家的顺子,刻子,将牌,不包括开杠) bool bIsSiGuiYi = false; for (uint32 i = 0; i < cbTempKeZiCount; i++) { for (uint32 j = 0; j < cbTempShunZiCount; j++) { if (cbTempKeZiCard[i] == cbTempShunZiCard[j]) { bIsSiGuiYi = true; break; } } if (bIsSiGuiYi)break; } if (bIsSiGuiYi == false) { uint32 uJiangCardShunZiCount = 0; for (uint8 i = 0; i < MAX_WEAVE; i++) { if (pAnalyseItem->WeaveKind[i] == ACTION_NULL)continue; BYTE cbTempCard = pAnalyseItem->cbCenterCard[i]; if (cbTempCard < emPOKER_WAN1 || cbTempCard > emPOKER_BAI) { continue; } if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_LEFT) { if (pAnalyseItem->cbCardEye == cbTempCard || pAnalyseItem->cbCardEye == cbTempCard + 1 || pAnalyseItem->cbCardEye == cbTempCard + 2) { uJiangCardShunZiCount++; } } else if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_CENTER) { if (pAnalyseItem->cbCardEye == cbTempCard || pAnalyseItem->cbCardEye == cbTempCard - 1 || pAnalyseItem->cbCardEye == cbTempCard + 1) { uJiangCardShunZiCount++; } } else if (pAnalyseItem->WeaveKind[i] == ACTION_EAT_RIGHT) { if (pAnalyseItem->cbCardEye == cbTempCard || pAnalyseItem->cbCardEye == cbTempCard - 1 || pAnalyseItem->cbCardEye == cbTempCard - 2) { uJiangCardShunZiCount++; } } } if (uJiangCardShunZiCount == 2) { bIsSiGuiYi = true; } } if (bIsSiGuiYi) { oper.add(HUTYPE_SI_GUI_YI); } //BYTE cbProvideUserWeaveCount[GAME_PLAYER]; //memset(cbProvideUserWeaveCount,0,sizeof(cbProvideUserWeaveCount)); //for (uint8 i = 0; i < cbWeaveCount; i++) //{ // LOG_DEBUG("HUTYPE_SI_GUI_YI1 - uid:%d,cbWeaveCount:%d,i:%d,WeaveKind:%d,wProvideUser:%d, cbCenterCard:0x%02X", // m_pHostTable->GetHuCardPlayerID(), cbWeaveCount,i, WeaveItem[i].WeaveKind, WeaveItem[i].wProvideUser, WeaveItem[i].cbCenterCard); // if (WeaveItem[i].WeaveKind == ACTION_PENG && WeaveItem[i].WeaveKind == ACTION_EAT_LEFT && WeaveItem[i].WeaveKind == ACTION_EAT_CENTER && WeaveItem[i].WeaveKind == ACTION_EAT_RIGHT ) // { // if (WeaveItem[i].wProvideUser < m_pHostTable->GetPlayerCount()) // { // cbProvideUserWeaveCount[WeaveItem[i].wProvideUser]++; // } // } //} //if (bZimo == false && pAnalyseItem->cbCardEye == cbCurrentCard) //{ // if (m_pHostTable->GetProvideUser() < m_pHostTable->GetPlayerCount()) // { // cbProvideUserWeaveCount[m_pHostTable->GetProvideUser()]++; // } //} //for (uint32 i = 0; i < m_pHostTable->GetPlayerCount(); i++) //{ // if (cbProvideUserWeaveCount[i]>=4) // { // oper.add(HUTYPE_SI_GUI_YI); // } //} //LOG_DEBUG("HUTYPE_SI_GUI_YI2 - uid:%d,bZimo:%d,PlayerCount:%d,cbCardEye:0x%02X,cbCurrentCard:0x%02X,cbProvideUserWeaveCount:%d %d %d %d", m_pHostTable->GetHuCardPlayerID(), bZimo, m_pHostTable->GetPlayerCount(), // pAnalyseItem->cbCardEye, cbCurrentCard,cbProvideUserWeaveCount[0], cbProvideUserWeaveCount[1], cbProvideUserWeaveCount[2], cbProvideUserWeaveCount[3]); // 双暗刻 if (iAnKeCount >= 2) { oper.add(HUTYPE_SHUANG_ANKE); } // 暗杠(一个暗杠) countNum = 0; for (uint8 i = 0; i<cbWeaveCount; ++i) { if (WeaveItem[i].WeaveKind == ACTION_GANG && WeaveItem[i].cbPublicCard == FALSE) {//暗杠 countNum++; } } if (countNum >= 1) { oper.add(HUTYPE_AN_GANG); } // 断幺九(没有1 9万及字牌) bool bIsDuanYaoJiu = true; for (uint32 i = 0; i < cbTempShunZiCount; i++) { if (cbTempShunZiCard[i] == emPOKER_WAN1 || cbTempShunZiCard[i] == emPOKER_WAN1 + 8 || IsZiPai(cbTempShunZiCard[i])) { bIsDuanYaoJiu = false; break; } } if (bIsDuanYaoJiu) { for (uint32 i = 0; i < cbTempKeZiCount; i++) { if (cbTempKeZiCard[i] == emPOKER_WAN1 || cbTempKeZiCard[i] == emPOKER_WAN1 + 8 || IsZiPai(cbTempKeZiCard[i])) { bIsDuanYaoJiu = false; break; } } } if (bIsDuanYaoJiu) { for (uint32 i = 0; i < cbTempGangCount; i++) { if (cbTempGangCard[i] != emPOKER_WAN1 || cbTempGangCard[i] != emPOKER_WAN1 + 8 || IsZiPai(cbTempGangCard[i])) { bIsDuanYaoJiu = false; break; } } } if (bIsDuanYaoJiu) { if (pAnalyseItem->cbCardEye != emPOKER_WAN1 || pAnalyseItem->cbCardEye != emPOKER_WAN1 + 8 || IsZiPai(pAnalyseItem->cbCardEye)) { bIsDuanYaoJiu = false; } } if (bIsDuanYaoJiu) { oper.add(HUTYPE_DUAN_YAOJIU); } //flag = true; //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // BYTE card; // if (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG) { // card = pAnalyseItem->cbCenterCard[i]; // } // else { // card = GetEatCenterCard(pAnalyseItem->WeaveKind[i], pAnalyseItem->cbCenterCard[i]); // } // if (card == emPOKER_WAN1 + 1 || card == emPOKER_WAN1 + 7 || IsZiPai(card)) { // flag = false; // break; // } //} //if (flag) { // oper.add(HUTYPE_DUAN_YAOJIU); //} // 二五八将(将牌是258万) if (pAnalyseItem->cbCardEye == emPOKER_WAN1 + 1 || pAnalyseItem->cbCardEye == emPOKER_WAN1 + 4 || pAnalyseItem->cbCardEye == emPOKER_WAN1 + 7) { oper.add(HUTYPE_ERWUBA_JIANG); } // 幺九头(将牌是19万) if (pAnalyseItem->cbCardEye == emPOKER_WAN1 || pAnalyseItem->cbCardEye == emPOKER_WAN1 + 8) { oper.add(HUTYPE_YAOJIU_TOU); } // 报听(听牌后胡牌) if (m_pHostTable->GetOperHuCardIsListen()) { oper.add(HUTYPE_BAO_TING); } // 一般高(有相同的两组顺子) bool isHaveSameShunZi = false; if (cbTempShunZiCount >= 2) { for (uint8 i = 0; i < cbTempShunZiCount - 1; i++) { for (uint8 j = 0; j < cbTempShunZiCount; j++) { if (i == j) { continue; } if (cbTempShunZiCard[i] == cbTempShunZiCard[j]) { isHaveSameShunZi = true; } } } } if (isHaveSameShunZi == true) { oper.add(HUTYPE_YIBAN_GAO); } // 连六(6张数字相连的万字牌) bool bIsLianWanSix = false; for (uint32 i = 0; i <= 3; i++) { //LOG_DEBUG("uid:%d,i:%d,cbTempHuCardIndex:%d,"m_pHostTable->GetHuCardPlayerID(),i, cbTempHuCardIndex[i]); if (cbTempHuCardIndex[i] <= 0) { continue; } uint32 j = i + 1; for (; j <= i+5; j++) { if (cbTempHuCardIndex[j] <= 0) { break; } } //LOG_DEBUG("HUTYPE_LIAN_LIU uid:%d,i:%d,j:%d,cbTempHuCardIndex:%d",m_pHostTable->GetHuCardPlayerID(), i,j, cbTempHuCardIndex[i]); if (j-1 == i + 5) { bIsLianWanSix = true; break; } } if (bIsLianWanSix == true) { oper.add(HUTYPE_LIAN_LIU); } // 老少副(123,789w顺子各一组) bool bIsLaoShaoFuWan1 = false; bool bIsLaoShaoFuWan7 = false; for (uint8 i = 0; i < cbTempShunZiCount; i++) { if (cbTempShunZiCard[i]== emPOKER_WAN1) { bIsLaoShaoFuWan1 = true; } if (cbTempShunZiCard[i] == emPOKER_WAN1+6) { bIsLaoShaoFuWan7 = true; } } if (bIsLaoShaoFuWan1 && bIsLaoShaoFuWan7) { oper.add(HUTYPE_LAOSHAO_FU); } // 幺九刻(1,9万或字牌刻子) for (uint8 i = 0; i<cbTempKeZiCount; ++i) { if (IsZiPai(cbTempKeZiCard[i]) || cbTempKeZiCard[i] == emPOKER_WAN1 || cbTempKeZiCard[i] == emPOKER_WAN1 + 8) { oper.add(HUTYPE_YAOJIU_KE); } } //for (uint8 i = 0; i<MAX_WEAVE; ++i) { // if (pAnalyseItem->WeaveKind[i] == ACTION_GANG || pAnalyseItem->WeaveKind[i] == ACTION_PENG) { // BYTE card = pAnalyseItem->cbCenterCard[i]; // if (card == emPOKER_WAN1 || card == emPOKER_WAN1 + 8 || IsZiPai(card)) { // oper.add(HUTYPE_YAOJIU_KE); // break; // } // } //} // 明杠(1明杠) countNum = 0; for (uint8 i = 0; i<cbWeaveCount; ++i) { if (WeaveItem[i].WeaveKind == ACTION_GANG && WeaveItem[i].cbPublicCard == TRUE) {//明杠 countNum++; } } if (countNum >= 1) { oper.add(HUTYPE_MING_GANG); } // 边张(单胡123的3,789的7都为边张,12345胡3不算边张) bool bIsBianZhangWan3 = false; bool bIsBianZhangWan7 = false; for (uint8 i = 0; i < cbTempShunZiCount; i++) { if (cbTempShunZiCard[i] == emPOKER_WAN1 && cbCurrentCard== emPOKER_WAN1+2) { bIsBianZhangWan3 = true; } if (cbTempShunZiCard[i] == emPOKER_WAN1+6 && cbCurrentCard == emPOKER_WAN1 + 6) { bIsBianZhangWan7 = true; } } if (m_pHostTable->GetOperPlayerHuCardType(cbCurrentCard) == false) { bIsBianZhangWan3 = false; bIsBianZhangWan7 = false; } if (bIsBianZhangWan3 || bIsBianZhangWan7) { oper.add(HUTYPE_BIAN_ZHANG); } // 坎张(胡2张之间的牌,4556胡5也算坎张,45567胡6不算坎张) bool bIsKanZhang = false; for (uint8 i = 0; i < cbTempShunZiCount; i++) { if (cbTempShunZiCard[i] +1 == cbCurrentCard) { bIsKanZhang = true; break; } } if (m_pHostTable->GetOperPlayerHuCardType(cbCurrentCard) == false) { bIsKanZhang = false; } if (bIsKanZhang) { oper.add(HUTYPE_KAN_ZHANG); } // 单调将(胡单张牌,并且为将牌) if (cbCurrentCard == pAnalyseItem->cbCardEye && m_pHostTable->GetOperPlayerHuCardType(cbCurrentCard)) { oper.add(HUTYPE_DANDIAO_JIANG); } // 自摸 外面特殊处理 } // 判断是否存在相应刻子 bool CMaJiangLogic::IsExistKeZi(BYTE card,stAnalyseItem* pAnalyseItem) { for(uint8 i=0;i<MAX_WEAVE;++i){ if(pAnalyseItem->cbCenterCard[i] == card && (pAnalyseItem->WeaveKind[i] == ACTION_PENG || pAnalyseItem->WeaveKind[i] == ACTION_GANG)){ return true; } } return false; } bool CMaJiangLogic::IsExistGang(BYTE card,stAnalyseItem* pAnalyseItem) { for(uint8 i=0;i<MAX_WEAVE;++i){ if(pAnalyseItem->cbCenterCard[i] == card && pAnalyseItem->WeaveKind[i] == ACTION_GANG){ return true; } } return false; } bool CMaJiangLogic::IsWanZi(BYTE card) { if(card >= emPOKER_WAN1 && card <= emPOKER_WAN1+8) return true; return false; } bool CMaJiangLogic::IsSuoZi(BYTE card) { if(card >= emPOKER_SUO1 && card <= emPOKER_SUO1+8) return true; return false; } bool CMaJiangLogic::IsTongZi(BYTE card) { if(card >= emPOKER_TONG1 && card <= emPOKER_TONG1+8) return true; return false; } bool CMaJiangLogic::IsFengZi(BYTE card) { if(card >= emPOKER_DONG && card <= emPOKER_BEI) return true; return false; } bool CMaJiangLogic::IsJianZi(BYTE card) { if(card >= emPOKER_ZHONG && card <= emPOKER_BAI) return true; return false; } bool CMaJiangLogic::IsZiPai(BYTE card) { if(IsFengZi(card) || IsJianZi(card)) return true; return false; } BYTE CMaJiangLogic::GetEatCenterCard(DWORD action,BYTE centerCard) { if(action == ACTION_EAT_LEFT){ return centerCard+1; }else if(action == ACTION_EAT_RIGHT){ return centerCard-1; } return centerCard; } //------------------------------------特殊胡牌--------------------------------------------------------------------------------------------------- // 起手4红中 bool CMaJiangLogic::IsHongZhongHu(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[], BYTE cbWeaveCount,BYTE cbCurrentCard) { if(cbCardIndex[SwitchToCardIndex(emPOKER_ZHONG)] == 4 && cbWeaveCount == 0){ LOG_DEBUG("起手4红中"); return true; } if(cbCurrentCard == emPOKER_ZHONG){ if(cbCardIndex[SwitchToCardIndex(emPOKER_ZHONG)] == 3 && cbWeaveCount == 0){ LOG_DEBUG("起手4红中"); return true; } } return false; } // 将将胡(手上全部是2、5、8,无需成牌) bool CMaJiangLogic::IsJiangJiangHu(BYTE cbCardIndex[MAX_INDEX],stWeaveItem WeaveItem[], BYTE cbWeaveCount) { for(BYTE i=0;i<MAX_INDEX;++i) { if(cbCardIndex[i] > 0) { BYTE value = GetCardValue(SwitchToCardData(i)); if (value % 3 != 2) return false; } } for(BYTE i=0;i<cbWeaveCount;++i){ BYTE value = GetCardValue(WeaveItem[i].cbCenterCard); if(value%3 != 2) return false; } for(BYTE i=0;i<cbWeaveCount;++i){ if(WeaveItem[i].WeaveKind != ACTION_PENG && WeaveItem[i].WeaveKind != ACTION_GANG){ return false; } } LOG_DEBUG("将将胡"); return true; } };
11eea2a53c81c006248d96fae37ced6fc2f9ef7d
39810ed798d9391953c15333b52e7527e03d656e
/LeetCode代码待做总结和记录/LeetCode-52 N-Queens II.cpp
bda0cff3207259066afdc351f482328ca0cd306e
[ "MIT" ]
permissive
Jiacheng-Wei/LeetCode-code-conclusion
889fcdfd70c469fcc83e434dc6fb23fd45faaaf4
d882eb6286f75e6177c14a87abacad213be362db
refs/heads/master
2020-05-02T17:36:10.807621
2019-04-23T13:02:38
2019-04-23T13:02:38
178,104,100
2
0
null
null
null
null
UTF-8
C++
false
false
873
cpp
LeetCode-52 N-Queens II.cpp
class Solution { public: int totalNQueens(int n) { int res=0; vector<int> pos(n,-1); generate(pos,0,res); return res; } void generate(vector<int>& pos,int row,int& res) { int n=pos.size(); if (row==n) { res++; return; } else { for (int col=0;col<n;col++) { if (isvalue(pos,row,col)) { pos[row]=col; generate(pos,row+1,res); pos[row]=0; } } } } bool isvalue(vector<int> pos,int row,int col) { for (int i=0;i<row;i++) { if(col==pos[i]||abs(row-i)==abs(col-pos[i])) { return false; } } return true; } };
1358bb26958db6fc1d6e3db9e558102e9bc16fff
48bb4e409cad79a8c8936c2e9e0b2952078473ba
/USER-ANN/symm_radial.h
01ec55622851194042d8d96eb5dbbc4a43957455
[]
no_license
hitergelei/ann
78edd7f106784ae213ca7b36f2f30d765dc881f8
024601baafd567487323c722dceb027e889af884
refs/heads/master
2023-06-11T01:15:55.064373
2021-07-08T21:48:03
2021-07-08T21:48:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,809
h
symm_radial.h
#pragma once #ifndef SYMM_RADIAL_HPP #define SYMM_RADIAL_HPP // c++ libraries #include <iosfwd> // ann - serialization #include "serialize.h" //***************************************** // PhiRN - radial function names //***************************************** struct PhiRN{ enum type{ UNKNOWN=0, G1=1,//Behler G1 G2=2,//Behler G2 T1=3//tanh }; static type read(const char* str); static const char* name(const PhiRN::type& t); }; std::ostream& operator<<(std::ostream& out, const PhiRN::type& t); //***************************************** // PhiR - radial function base class //***************************************** struct PhiR{ //==== constructors/destructors ==== virtual ~PhiR(){} //==== member functions - evaluation ==== virtual double val(double r, double cut)const=0; virtual double grad(double r, double cut, double gcut)const=0; }; //==== operators ==== std::ostream& operator<<(std::ostream& out, const PhiR& f); bool operator==(const PhiR& phir1, const PhiR& phir2); inline bool operator!=(const PhiR& phir1, const PhiR& phir2){return !(phir1==phir2);} //***************************************** // PhiR - serialization //***************************************** namespace serialize{ //********************************************** // byte measures //********************************************** template <> int nbytes(const PhiR& obj); //********************************************** // packing //********************************************** template <> int pack(const PhiR& obj, char* arr); //********************************************** // unpacking //********************************************** template <> int unpack(PhiR& obj, const char* arr); } #endif
44c82f36c26074514963c2b02156fb075bbc98ea
08fae5bd7f16809b84cf6463693732f2308ab4da
/ETS/MarketInterfaces/RTTF/OConnor/ViewLog.cpp
a21b7dc43e280f41a2c17337ad86812d67baa785
[]
no_license
psallandre/IVRM
a7738c31534e1bbff32ded5cfc7330c52b378f19
5a674d10caba23b126e9bcea982dee30eee72ee1
refs/heads/master
2021-01-21T03:22:33.658311
2014-09-24T11:47:10
2014-09-24T11:47:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,327
cpp
ViewLog.cpp
//**************************************************************************************************************// // solution: OConnor // project: OConnor // filename: ViewLog.cpp // created: 26-Dec-2002 15:27 by Suchkov Dmitry // // purpose: implementation of CViewLog // //**************************************************************************************************************// //**************************************************************************************************************// // includes //**************************************************************************************************************// #include "stdafx.h" #include "OConnor.h" #include "ViewLog.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //--------------------------------------------------------------------------------------------------------------// BEGIN_MESSAGE_MAP(CViewLog, CListCtrl) //{{AFX_MSG_MAP(CViewLog) ON_WM_CREATE() ON_WM_DESTROY() //}}AFX_MSG_MAP END_MESSAGE_MAP() //--------------------------------------------------------------------------------------------------------------// CViewLog::CViewLog() { } //--------------------------------------------------------------------------------------------------------------// CViewLog::~CViewLog() { } //--------------------------------------------------------------------------------------------------------------// BOOL CViewLog:: WriteProfileInt(LPCTSTR lpszEntry, int nValue) { BOOL bOk = FALSE; CWinApp* pApp = AfxGetApp(); if (pApp) bOk = pApp->WriteProfileInt(REG_SECTION_LOG, lpszEntry, nValue); return bOk; } //--------------------------------------------------------------------------------------------------------------// UINT CViewLog::GetProfileInt(LPCTSTR lpszEntry, int nDefault) { UINT nResult = nDefault; CWinApp* pApp = AfxGetApp(); if (pApp) nResult = pApp->GetProfileInt(REG_SECTION_LOG, lpszEntry, nDefault); return nResult; } //--------------------------------------------------------------------------------------------------------------// BOOL CViewLog::PreCreateWindow(CREATESTRUCT& cs) { cs.dwExStyle |= WS_EX_CLIENTEDGE; cs.style |= WS_VISIBLE | WS_CHILD | LVS_REPORT; if (!CWnd::PreCreateWindow(cs)) return FALSE; return TRUE; } //--------------------------------------------------------------------------------------------------------------// int CViewLog::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CListCtrl::OnCreate(lpCreateStruct) == -1) return -1; m_ilType.Create(MAKEINTRESOURCE(IDB_LOG_TYPE), 16, 3, RGB(0xFF,0x00,0xFF)); SetImageList(&m_ilType, LVSIL_SMALL); CXMLParamsHelper XMLParams; XMLParams.LoadXMLParams(); long nTypeW = COLUMN_TYPE_W; long nDateW = COLUMN_DATE_W; long nTimeW = COLUMN_TIME_W; long nDescW = COLUMN_DESC_W; long nSourceW = COLUMN_SOURCE_W; XMLParams.GetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_TYPE, &nTypeW, COLUMN_TYPE_W); XMLParams.GetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_DATE, &nDateW, COLUMN_DATE_W); XMLParams.GetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_TIME, &nTimeW, COLUMN_TIME_W); XMLParams.GetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_DESC, &nDescW, COLUMN_DESC_W); XMLParams.GetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_SOURCE, &nSourceW, COLUMN_SOURCE_W); int i = 0; InsertColumn(i++, COLUMN_TYPE, LVCFMT_LEFT, nTypeW); InsertColumn(i++, COLUMN_DATE, LVCFMT_LEFT, nDateW); InsertColumn(i++, COLUMN_TIME, LVCFMT_LEFT, nTimeW); InsertColumn(i++, COLUMN_DESC, LVCFMT_LEFT, nDescW); InsertColumn(i++, COLUMN_SOURCE, LVCFMT_LEFT, nSourceW); //InsertColumn(i++, COLUMN_TYPE, LVCFMT_LEFT, GetProfileInt(COLUMN_TYPE, COLUMN_TYPE_W)); //InsertColumn(i++, COLUMN_DATE, LVCFMT_LEFT, GetProfileInt(COLUMN_DATE, COLUMN_DATE_W)); //InsertColumn(i++, COLUMN_TIME, LVCFMT_LEFT, GetProfileInt(COLUMN_TIME, COLUMN_TIME_W)); //InsertColumn(i++, COLUMN_DESC, LVCFMT_LEFT, GetProfileInt(COLUMN_DESC, COLUMN_DESC_W)); //InsertColumn(i++, COLUMN_SOURCE, LVCFMT_LEFT, GetProfileInt(COLUMN_SOURCE, COLUMN_SOURCE_W)); return 0; } //--------------------------------------------------------------------------------------------------------------// void CViewLog::OnDestroy() { CXMLParamsHelper XMLParams; XMLParams.LoadXMLParams(); XMLParams.SetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_TYPE, GetColumnWidth(COLUMN_TYPE_ID)); XMLParams.SetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_DATE, GetColumnWidth(COLUMN_DATE_ID)); XMLParams.SetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_TIME, GetColumnWidth(COLUMN_TIME_ID)); XMLParams.SetXMLLong(_T("ETS\\OConnor\\Log"), COLUMN_DESC, GetColumnWidth(COLUMN_DESC_ID)); XMLParams.SaveXMLParams(); //WriteProfileInt(COLUMN_TYPE, GetColumnWidth(COLUMN_TYPE_ID)); //WriteProfileInt(COLUMN_DATE, GetColumnWidth(COLUMN_DATE_ID)); //WriteProfileInt(COLUMN_TIME, GetColumnWidth(COLUMN_TIME_ID)); //WriteProfileInt(COLUMN_DESC, GetColumnWidth(COLUMN_DESC_ID)); CListCtrl::OnDestroy(); } //--------------------------------------------------------------------------------------------------------------// BOOL CViewLog::InsertTraceMessage(CTracer::MessageTypeEnum Type, sMessage* pMessage) { ASSERT(pMessage); int iItem = -1; int iImage = -1; LPCTSTR pszType = NULL; switch (Type) { case CTracer::enMtInformation: pszType = LOG_INFORMATION; iImage = 0; break; case CTracer::enMtWarning: pszType = LOG_WARNING; iImage = 1; break; case CTracer::enMtError: pszType = LOG_ERROR; iImage = 2; break; default: TRACE("Invalid log entry type %d", Type); } iItem = InsertItem(0, pszType ? pszType : _T(""), iImage); if (-1 != iItem) { TCHAR szDate[64]; if (0 == ::GetDateFormat( LOCALE_USER_DEFAULT, DATE_SHORTDATE, NULL, NULL, szDate, sizeof(szDate)/sizeof(TCHAR))) { szDate[0] = _T('?'); szDate[1] = _T('\0'); } TCHAR szTime[32]; if (0 == ::GetTimeFormat( LOCALE_USER_DEFAULT, LOCALE_NOUSEROVERRIDE, NULL, NULL, szTime, sizeof(szTime)/sizeof(TCHAR))) { szTime[0] = _T('?'); szTime[1] = _T('\0'); } SetItemText(iItem, 1, szDate); SetItemText(iItem, 2, szTime); SetItemText(iItem, 3, pMessage->szMessage); if (pMessage->szSource) { SetItemText(iItem, 4, pMessage->szSource); } } return (-1 != iItem); }
780a4842c7df7fce7c0439bbea404d768bfb1e72
0ae47bda5e8e17ccbf5df81803d2cc0284e74b19
/backjoon/boj_01766_문제집-그래프,위상정렬.cpp
ffc32220341c8a5c63356ed56e40c573744fb116
[ "MIT" ]
permissive
gitahn59/Algorithm
0d2531e82f1ea56b25bfd77988983943b3750110
8b25b737352fbd81163b4548230a5aef09abe770
refs/heads/master
2023-05-27T04:36:40.808968
2021-08-24T13:35:10
2021-08-24T13:35:10
248,760,420
0
0
null
null
null
null
UHC
C++
false
false
1,471
cpp
boj_01766_문제집-그래프,위상정렬.cpp
/* boj_1766_문제집(난이도 : 골드2) boj_2252_줄 세우기 의 확장 문제 기본적인 위상정렬이지만 우선순위 큐를 사용해 출력순서 조정 */ #include <iostream> #include <queue> #include <vector> #include <map> #include <algorithm> #include <string> #include <cstring> #include <stack> #include <cmath> #include <set> #include <bitset> #define PRIME 1000000007 using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef pair<ll, ll> LL; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<ll> vll; typedef vector<vi> vvi; typedef deque<int> di; typedef pair<int, ii> iii; typedef set<int> si; int N, M; int degree[32001]; vi adj[32001]; int result[32001]; void topologicalSort() { priority_queue<int> qi; for (int i = 1; i <= N; i++) { if (degree[i] == 0) qi.push(-i); } int n = 0; while (!qi.empty()) { int now = -qi.top(); qi.pop(); result[++n] = now; for (int next : adj[now]) { degree[next]--; if (degree[next] == 0) qi.push(-next); } } } int main() { //freopen("input.txt", "r", stdin); ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> N >> M; int a, b; for (int m = 1; m <= M; m++) { cin >> a >> b; degree[b]++; adj[a].push_back(b); } topologicalSort(); for (int n = 1; n <= N; n++) { cout << result[n] << " "; } cout << "\n"; return 0; }
d5ec5fb91a054843c7c2c24d719c7c00957ec6d7
71dae8653492a02c77f67d03a0824f920d5fd9ee
/LD32/src/LD32Application.h
0447157f2b83d718ef870c24295004d98c693f5b
[ "Apache-2.0" ]
permissive
TheCherno/LD32
8ad6aeb6f1345ecb04a351e2632ac9cf343a595c
9654d71c62d94f3c00de9029ea42e248438fc02a
refs/heads/master
2016-09-06T06:35:55.806350
2015-04-21T05:01:45
2015-04-21T05:01:45
34,146,855
15
1
null
null
null
null
UTF-8
C++
false
false
984
h
LD32Application.h
#pragma once #include <sparky.h> #include "layers/UILayer.h" #include "layers/DebugLayer.h" #include "level/Level.h" #include "level/entity/Player.h" #include "menu/Menu.h" #include "menu/MainMenu.h" #include "menu/GameOverMenu.h" #include "menu/HelpMenu.h" #include "menu/AboutMenu.h" #include "State.h" #define APPLICATION LD32Application using namespace sparky; class LD32Application : public Sparky { public: static DebugLayer* debugLayer; static LD32Application* INSTANCE; private: graphics::Window* m_Window; graphics::Label* m_FPS; UILayer* m_UILayer; Level* m_Level; Menu* m_Menu; Menu *m_MenuMain, *m_MenuGameOver, *m_MenuHelp, *m_MenuAbout; unsigned int m_Difficulty; public: LD32Application(); ~LD32Application(); void init() override; void tick() override; void update() override; void render() override; void begin(); void nextLevel(); void end(); void setMainMenu(); void setHelpMenu(); void setAboutMenu(); private: void loadAssets(); };
88aa0ad3a9c9f3d55ee4dc6ba11a73e6d7cb7c6f
9415c87c134e066cc848515caf498fb4e3e1c92e
/caffe_app/caffe_app.cpp
58d401a3754500b84787c0a7a1b276af9b4b80dc
[]
no_license
Mingcong/apps_for_streaming
aefc12c00ff572d2990ee68e562e9687d2518fd3
086af6c13cfea7cbaa77adbcfb6ca27b83039d50
refs/heads/master
2021-04-30T22:57:47.954459
2015-01-02T04:12:01
2015-01-02T04:12:01
27,449,986
1
0
null
null
null
null
UTF-8
C++
false
false
3,598
cpp
caffe_app.cpp
#include "call_app.h" #include <cuda_runtime.h> #include <cstring> #include <cstdlib> #include <vector> #include <string> #include <iostream> #include <fstream> #include <stdio.h> #include "caffe/caffe.hpp" #include "caffe/util/io.hpp" #include "caffe/blob.hpp" #include <cv.h> #include <highgui.h> using namespace caffe; using namespace std; using namespace cv; //int main(int argc, char** argv) { JNIEXPORT jint JNICALL Java_call_1app_app (JNIEnv *env, jclass, jint size, jstring mode, jstring in, jstring out) { double t = (double) getTickCount(); Caffe::set_phase(Caffe::TEST); const int batch_size=size; const char *gpu; const char *input; const char *output; gpu = env->GetStringUTFChars(mode, 0); input = env->GetStringUTFChars(in, 0); output = env->GetStringUTFChars(out, 0); //Setting CPU or GPU if (strcmp(gpu, "GPU") == 0) { Caffe::set_mode(Caffe::GPU); int device_id = 0; Caffe::SetDevice(device_id); LOG(ERROR) << "Using GPU #" << device_id; } else { LOG(ERROR) << "Using CPU"; Caffe::set_mode(Caffe::CPU); } //get the net Net<float> caffe_test_net("/home/ideal/caffe-opencv/jni/proto.txt"); //get trained net caffe_test_net.CopyTrainedLayersFrom( "/home/ideal/caffe-opencv/jni/bvlc_reference_caffenet.caffemodel"); // Run ForwardPrefilled float loss; // const vector<Blob<float>*>& result = caffe_test_net.ForwardPrefilled(&loss); // Run AddImagesAndLabels and Forward // cv::Mat image2 = cv::imread("p.png"); // or cat.jpg //vector<cv::Mat> images(batch_size, image); vector<int> labels(batch_size, 0); const shared_ptr<ImageDataLayer<float> > image_data_layer = boost::static_pointer_cast < ImageDataLayer<float> > (caffe_test_net.layer_by_name("data")); double t1 = ((double) getTickCount() - t) / getTickFrequency(); LOG(INFO) << " init time " << t1; double t2 = (double) getTickCount(); int i = 0; vector < cv::Mat > images(batch_size); string image_name; string image_path; char img_list[255]; char src[255]; sprintf(src, "tar -xf /tmp/%s.tar -C /tmp", input); system(src); sprintf(img_list, "/tmp/%s/img_list.txt", input); ifstream infile(img_list, ios::in); while (getline(infile, image_name, '\n')) { image_path = "/tmp/" + image_name; // cout << image_path << endl; images[i] = imread(image_path); i = i + 1; } //for(int k=0;k<1;k++){ image_data_layer->AddImagesAndLabels(images, labels); double t3 = ((double) getTickCount() - t2) / getTickFrequency(); LOG(INFO) << " load imgs time " << t3; double t4 = (double) getTickCount(); vector<Blob<float>*> dummy_bottom_vec; const vector<Blob<float>*>& result = caffe_test_net.Forward( dummy_bottom_vec, &loss); //LOG(INFO)<< "Output result size: "<< result.size(); // Now result will contain the argmax results. const float* argmaxs = result[1]->cpu_data(); FILE *stream; char str[255]; sprintf(str, "/tmp/%s", output); stream = fopen(str, "w+"); LOG(INFO) << "Output result size: " << result.size(); //for (int i = 0; i < 1; ++i) { for (int i = 0; i < result[1]->num(); ++i) { // LOG(INFO)<< " iteration: "<< k ; sprintf(str, "Image: %d class: %.0f \n", i, argmaxs[i]); // printf("%s\n", str); fprintf(stream, str); LOG(INFO) << " Image: " << i << " class:" << argmaxs[i]; } fclose(stream); double t5 = ((double) getTickCount() - t4) / getTickFrequency(); LOG(INFO) << " loop time " << t5; // } char del[255]; sprintf(del, "rm -rf /tmp/%s", input); printf("%s\n", del); system(del); double t6 = ((double) getTickCount() - t) / getTickFrequency(); LOG(INFO) << " total time " << t6; return 0; }
2a92b15d75b4a3351579335fed6f50ef513c8ae2
ca6a0c4eb6fabc5a3b778c60759e476beb3614e8
/Raytracer/src/AmbientLight.cpp
7847af482ad70343702632d40d7dd022e291507b
[]
no_license
vansten/Renderers
75e5f06eb473e824c6bbac2bb2468190ac1eccfb
5409a3785a307440c2c30b3aaea52f9f37cd862d
refs/heads/master
2021-01-11T04:10:12.389414
2016-11-22T17:17:10
2016-11-22T17:17:10
71,240,165
0
0
null
null
null
null
UTF-8
C++
false
false
456
cpp
AmbientLight.cpp
#include "../include/AmbientLight.h" namespace raytracer { AmbientLight::AmbientLight(Color24 color) : Light(Vector3::Zero, color) { } AmbientLight::AmbientLight(const AmbientLight& other) : Light(other) { } Color24 AmbientLight::Affect(const Shape* shape, const IntersectionPoint& intersection, const Camera* camera, const std::vector<Shape*>::iterator shapesBegin, const std::vector<Shape*>::iterator shapesEnd) const { return _color; } }
089484b128176c2c1d7d1674eff78946e0a85599
2f0cc6fb3fef1785fe056d4a82ed2610a401b63a
/samples/shadow-render/point.cpp
6be446be7b0248cb368c5f483561350f1cf2d86b
[]
no_license
tim-napoli/lab
7a4d788b65603b2f1d9375c5cce38977b5265f3c
cbae4752fbacf18ec050805d7afc449bdf73d206
refs/heads/master
2021-01-12T15:07:02.325843
2017-10-03T18:48:49
2017-10-03T18:48:49
71,699,029
0
0
null
null
null
null
UTF-8
C++
false
false
813
cpp
point.cpp
#include "constants.hpp" #include "point.hpp" point::point(glm::vec2 pos, glm::vec2 speed) : _position(pos) , _speed(speed) { } point::point() : _position(0), _speed(0) {} point::~point() { } void point::move() { glm::vec2 dest = _position + _speed; if (dest.x < 0) { dest.x = 0; _speed.x = -_speed.x; } else if (dest.x > VWIDTH) { dest.x = VWIDTH; _speed.x = -_speed.x; } if (dest.y < 0) { dest.y = 0; _speed.y = -_speed.y; } else if (dest.y > VHEIGHT) { dest.y = VHEIGHT; _speed.y = -_speed.y; } _position = dest; } point point::build_random() { return point(glm::vec2(rand() % VWIDTH, rand() % VHEIGHT), glm::vec2(-10.0 + rand() % 20, -10.0 + rand() % 20)); }
2dddbcf1e7451bf76f389197133ef0eca0c652f7
1b9484f051414df045b4be62d44b2e095ba5a71f
/include/ofp/instructionlist.h
db789756eba629d7f1d9fbb2c3031bf126d14b46
[ "MIT" ]
permissive
byllyfish/oftr
be1ad64864e56911e669849b4a40a2ef29e2ba3e
5368b65d17d57286412478adcea84371ef5e4fc4
refs/heads/master
2022-02-17T15:37:56.907140
2022-02-01T04:24:44
2022-02-01T04:24:44
13,504,446
1
1
MIT
2022-02-01T04:24:44
2013-10-11T16:59:19
C++
UTF-8
C++
false
false
1,424
h
instructionlist.h
// Copyright (c) 2015-2018 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #ifndef OFP_INSTRUCTIONLIST_H_ #define OFP_INSTRUCTIONLIST_H_ #include "ofp/bytelist.h" #include "ofp/instructioniterator.h" #include "ofp/instructionrange.h" #include "ofp/instructions.h" #include "ofp/protocollist.h" namespace ofp { class InstructionList : public ProtocolList<InstructionRange> { using Inherited = ProtocolList<InstructionRange>; public: using Inherited::Inherited; template <class Type> void add(const Type &instruction); }; template <class Type> inline void InstructionList::add(const Type &instruction) { static_assert(Type::type().enumType() != 0, "Type is not an instruction?"); buf_.add(&instruction, sizeof(instruction)); } template <> inline void InstructionList::add(const IT_WRITE_ACTIONS &instruction) { buf_.add(&instruction, IT_WRITE_ACTIONS::HeaderSize); buf_.add(instruction.data(), instruction.size()); } template <> inline void InstructionList::add(const IT_APPLY_ACTIONS &instruction) { buf_.add(&instruction, IT_APPLY_ACTIONS::HeaderSize); buf_.add(instruction.data(), instruction.size()); } template <> inline void InstructionList::add(const IT_EXPERIMENTER &instruction) { buf_.add(&instruction, IT_EXPERIMENTER::HeaderSize); buf_.add(instruction.data(), instruction.size()); } } // namespace ofp #endif // OFP_INSTRUCTIONLIST_H_
aae2b075d6c3784fb6a75d7a6a988ef2173dd2fc
fcdd559a409bb8126bc135e3a468cdfac2ab5b03
/0042. Trapping Rain Water/0042.cpp
cb611cb6d92db3fd3cab3ba027623cb25d931bb1
[]
no_license
JiaheZhang/leetcode
522a4b5240639d5d427f0423dc83f0bccedf302d
97df96b98b69e54c0fbee4015f675410b85302e7
refs/heads/master
2021-06-08T22:31:59.281206
2020-09-24T07:19:56
2020-09-24T07:19:56
116,484,605
1
0
null
2020-08-31T12:53:21
2018-01-06T13:21:45
C++
UTF-8
C++
false
false
933
cpp
0042.cpp
#include<iostream> #include<vector> #include <algorithm> #include <string> #include <unordered_set> using namespace std; class Solution { public: int trap(vector<int>& height) { if(height.size() <= 2) return 0; int i = 0,j = height.size()-1; int left_max = height[i],right_max = height[j]; int sum = 0; while(i <= j){ if(left_max > right_max){ if(height[j] > right_max){ right_max = height[j]; } else{ sum += (right_max - height[j]); } j--; } else{ if(height[i] > left_max){ left_max = height[i]; } else{ sum += (left_max - height[i]); } i++; } } return sum; } };
497ce2256739366cc9474505f7ca34573ba088f6
809f35c818d649dcd01f6ba94352521d6f526cd3
/src/MoonRoad/SystemInfo.cpp
2eb259ce5285f8c659c8d2b73844d41bc884c1af
[]
no_license
mkbiltek/krento
e536ab5b09405fe4e8ace45ff11ee6c4b1a78438
0f5a778eb5d234cf22c0dce30932228a9e73fa28
refs/heads/master
2018-08-27T12:22:58.299658
2013-07-30T07:25:09
2013-07-30T07:25:09
57,170,055
1
0
null
null
null
null
UTF-8
C++
false
false
14,950
cpp
SystemInfo.cpp
#include "stdafx.h" #include "SystemInfo.h" #include <shlwapi.h> #include <shlobj.h> #include <shellapi.h> #include "Netlistmgr.h" #include "Wininet.h" #include "Winsock2.h" #include <Dbghelp.h> #include "FileOperations.h" #include <psapi.h> #include <Tlhelp32.h> #ifndef _WIN64 typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); LPFN_ISWOW64PROCESS fnIsWow64Process; #endif typedef BOOL (WINAPI *LPFN_QUERYFULLPROCESSIMAGENAME) ( HANDLE hProcess, DWORD dwFlags, LPTSTR lpExeName, PDWORD lpdwSize ); LPFN_QUERYFULLPROCESSIMAGENAME fnQueryFullProcessImageName; BOOL WINAPI IsWindows7() { OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; int op=VER_GREATER_EQUAL; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 6; osvi.dwMinorVersion = 1; // Windows 7 // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op ); VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, op ); // Perform the test. return VerifyVersionInfo(&osvi,VER_MAJORVERSION | VER_MINORVERSION,dwlConditionMask); } BOOL WINAPI IsWindows8() { OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; int op=VER_GREATER_EQUAL; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 6; osvi.dwMinorVersion = 2; // Windows 8 // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op ); VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, op ); // Perform the test. return VerifyVersionInfo(&osvi,VER_MAJORVERSION | VER_MINORVERSION,dwlConditionMask); } BOOL WINAPI IsWindowsVista() { OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; int op=VER_GREATER_EQUAL; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 6; // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op ); // Perform the test. return VerifyVersionInfo(&osvi,VER_MAJORVERSION | VER_MINORVERSION,dwlConditionMask); } BOOL WINAPI IsWindowsXP() { OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; int op=VER_GREATER_EQUAL; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 5; osvi.dwMinorVersion = 1; // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op ); VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, op ); // Perform the test. return VerifyVersionInfo( &osvi, VER_MAJORVERSION | VER_MINORVERSION, dwlConditionMask); } BOOL WINAPI IsWindowsXPSP2() { OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; int op=VER_GREATER_EQUAL; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 5; osvi.dwMinorVersion = 1; osvi.wServicePackMajor = 2; osvi.wServicePackMinor = 0; // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op ); VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, op ); VER_SET_CONDITION( dwlConditionMask, VER_SERVICEPACKMAJOR, op ); VER_SET_CONDITION( dwlConditionMask, VER_SERVICEPACKMINOR, op ); // Perform the test. return VerifyVersionInfo( &osvi, VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR, dwlConditionMask); } BOOL WINAPI IsMultiTouchReady() { BYTE digitizerStatus = (BYTE)GetSystemMetrics(SM_DIGITIZER); if ((digitizerStatus & (0x80 + 0x40)) == 0) //Stack Ready + MultiTouch { return FALSE; } else return TRUE; } BOOL WINAPI IsTabletPC() { return (GetSystemMetrics(SM_TABLETPC) != 0); } BOOL WINAPI IsMediaCenter() { return (GetSystemMetrics(SM_MEDIACENTER) != 0); } BOOL WINAPI IsConnectedToInternet() { if (IsWindows7()) { HRESULT hr; INetworkListManager *pNetworkListManager = NULL; hr = CoCreateInstance(CLSID_NetworkListManager, NULL, CLSCTX_LOCAL_SERVER, IID_INetworkListManager, (LPVOID *)&pNetworkListManager); if (SUCCEEDED(hr)) { VARIANT_BOOL bConnected; pNetworkListManager->get_IsConnectedToInternet(&bConnected); if (bConnected) return TRUE; else return FALSE; } else return FALSE; } else { //Windows XP way DWORD dwConnectedStateFlags; BOOL fIsConnected = InternetGetConnectedState(&dwConnectedStateFlags, 0); return fIsConnected; } } INT WINAPI GetScreenColors() { HDC dc = GetDC(NULL); int bitsPerPixel = GetDeviceCaps(dc, BITSPIXEL); ReleaseDC(NULL, dc); return bitsPerPixel; } BOOL WINAPI IsTrueColorMonitor() { return (GetScreenColors() >= 32); } INT WINAPI GetTaskbarPosition() { try { int result = 0; APPBARDATA AppBar = {0}; SHAppBarMessage(ABM_GETTASKBARPOS, &AppBar); if ((AppBar.rc.top == AppBar.rc.left) && (AppBar.rc.bottom > AppBar.rc.right)) result = 0; //left else if ((AppBar.rc.top == AppBar.rc.left) && (AppBar.rc.bottom < AppBar.rc.right)) result = 1; //top else if (AppBar.rc.top > AppBar.rc.left) result = 2; //bottom else result = 3; //right return result; } catch (...) { return 0; } } static BOOL WINAPI CALLBACK MyInfoEnumProc( HMONITOR hMonitor, // handle to display monitor HDC hdcMonitor, // handle to monitor DC LPRECT lprcMonitor, // monitor intersection rectangle LPARAM dwData // data ) { MONITORINFO mi = {0}; mi.cbSize = sizeof(MONITORINFO); GetMonitorInfo(hMonitor, &mi); if (mi.dwFlags == MONITORINFOF_PRIMARY) { PrimaryMonitor = hMonitor; return FALSE; } else return TRUE; } HMONITOR WINAPI GetPrimaryMonitor() { EnumDisplayMonitors(NULL, NULL, MyInfoEnumProc, 0); return PrimaryMonitor; } void WINAPI GetPrimaryMonitorBounds(LPRECT rect) { if (PrimaryMonitor == 0) GetPrimaryMonitor(); MONITORINFO mi = {0}; mi.cbSize = sizeof(MONITORINFO); GetMonitorInfo(PrimaryMonitor, &mi); *rect = mi.rcMonitor; } void WINAPI GetPrimaryMonitorArea(LPRECT rect) { if (PrimaryMonitor == 0) GetPrimaryMonitor(); MONITORINFO mi = {0}; mi.cbSize = sizeof(MONITORINFO); GetMonitorInfo(PrimaryMonitor, &mi); *rect = mi.rcWork; } void WINAPI GetFullScreenSize(LPRECT rect) { HDC screenDC = GetDC(NULL); GetClipBox(screenDC, rect); ReleaseDC(0, screenDC); } BOOL WINAPI RecycleBinEmpty() { BOOL bResult = FALSE; LPSHELLFOLDER pDesktop = NULL; LPITEMIDLIST pidlRecycleBin = NULL; HRESULT hr; LPSHELLFOLDER m_pRecycleBin; LPENUMIDLIST penumFiles = NULL; LPITEMIDLIST pidl = NULL; LPMALLOC pMalloc = NULL; BOOL EmptyFlag; SHGetDesktopFolder(&pDesktop); SHGetSpecialFolderLocation (NULL, CSIDL_BITBUCKET, &pidlRecycleBin); pDesktop->BindToObject(pidlRecycleBin, NULL, IID_IShellFolder, (LPVOID *)&m_pRecycleBin); SHGetMalloc(&pMalloc); // windows memory management pointer needed later hr = m_pRecycleBin->EnumObjects(NULL, SHCONTF_FOLDERS|SHCONTF_NONFOLDERS| SHCONTF_INCLUDEHIDDEN, &penumFiles); if(SUCCEEDED (hr)) { while(penumFiles->Next(1, &pidl, NULL) != S_FALSE) { bResult = TRUE; break; } } if (NULL != penumFiles) { penumFiles->Release (); penumFiles = NULL; } pMalloc->Release(); if(bResult) EmptyFlag = FALSE; else EmptyFlag = TRUE; return EmptyFlag; } BOOL WINAPI IsUserPlayingFullscreen() { TCHAR buff[MAX_PATH]; HWND hWnd = GetForegroundWindow(); HWND parent = GetParent(hWnd); HWND grandParent = GetParent(parent); HWND desktopHandle = GetDesktopWindow(); HWND shellHandle = GetShellWindow(); RealGetWindowClass(hWnd, buff, MAX_PATH); if (hWnd == desktopHandle || hWnd == shellHandle || parent == desktopHandle || parent == shellHandle || grandParent == desktopHandle || grandParent == shellHandle || (0 == wcscmp(L"WorkerW", buff)) || (0 == wcscmp(L"Progman", buff))) return false; RECT rcWindow; GetWindowRect(hWnd, &rcWindow); HMONITOR hm = MonitorFromRect(&rcWindow, MONITOR_DEFAULTTONULL); if (hm == NULL) return false; MONITORINFO mi = {0}; mi.cbSize = sizeof(MONITORINFO); GetMonitorInfo(hm, &mi); return EqualRect(&rcWindow, &mi.rcMonitor); } void WINAPI CurrentIPAddress(LPWSTR address, UINT len) { WSADATA wsaData; hostent* localHost; char* localIP; WSAStartup( MAKEWORD(2,2), &wsaData ); // Get the local host information localHost = gethostbyname(""); localIP = inet_ntoa (*(struct in_addr *)*localHost->h_addr_list); if( len == 0 ) len = (UINT)strlen( localIP ); MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, localIP, len + 1, address, len + 1 ); // // Ensure NULL termination. // address[len] = 0; WSACleanup(); } BOOL WINAPI PortAvailable(int port) { BOOL result = FALSE; WSADATA wsaData; WSAStartup(MAKEWORD(2,2), &wsaData); SOCKET ConnectSocket; ConnectSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); //---------------------- // The sockaddr_in structure specifies the address family, // IP address, and port of the server to be connected to. //---------------------- sockaddr_in clientService; clientService.sin_family = AF_INET; clientService.sin_addr.s_addr = inet_addr( "127.0.0.1" ); clientService.sin_port = htons( port ); if ( connect( ConnectSocket, (SOCKADDR*) &clientService, sizeof(clientService) ) == SOCKET_ERROR) result = TRUE; WSACleanup(); return result; } BOOL WINAPI IsAssembly(LPCWSTR FileName) { PVOID Base; HANDLE Handle; HANDLE Map; PIMAGE_DOS_HEADER DosHeader; ULONG Size; bool Result = FALSE; TCHAR fileSpec[MAX_PATH]; StripFileName(FileName, fileSpec); Handle = CreateFile(fileSpec, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); Map = CreateFileMapping(Handle, NULL, PAGE_READONLY, 0, 0, NULL); Base = MapViewOfFile(Map, FILE_MAP_READ, 0, 0, 0); DosHeader = (PIMAGE_DOS_HEADER)Base; __try { if ((DosHeader == NULL) || (ImageDirectoryEntryToData( Base, FALSE, IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR, &Size) == NULL)) Result = FALSE; else Result = TRUE; } __finally { if (Handle != 0) { UnmapViewOfFile(Base); CloseHandle(Map); CloseHandle(Handle); } } return Result; } BOOL WINAPI IsWow64() { #ifndef _WIN64 BOOL bIsWow64 = FALSE; fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress( GetModuleHandle(TEXT("kernel32")),"IsWow64Process"); if (NULL != fnIsWow64Process) { if (!fnIsWow64Process(GetCurrentProcess(),&bIsWow64)) { // handle error } } return bIsWow64; #else return false; #endif } BOOL WINAPI IsMetroActive() { if (IsWindows8()) { QUERY_USER_NOTIFICATION_STATE state; SHQueryUserNotificationState(&state); if (state == 7) return TRUE; else return FALSE; } else return FALSE; } BOOL SetPrivilege( HANDLE hToken, // token handle LPCTSTR Privilege, // Privilege to enable/disable BOOL bEnablePrivilege // TRUE to enable. FALSE to disable ) { TOKEN_PRIVILEGES tp = { 0 }; // Initialize everything to zero LUID luid; DWORD cb=sizeof(TOKEN_PRIVILEGES); if(!LookupPrivilegeValue( NULL, Privilege, &luid )) return FALSE; tp.PrivilegeCount = 1; tp.Privileges[0].Luid = luid; if(bEnablePrivilege) { tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; } else { tp.Privileges[0].Attributes = 0; } AdjustTokenPrivileges( hToken, FALSE, &tp, cb, NULL, NULL ); if (GetLastError() != ERROR_SUCCESS) return FALSE; return TRUE; } BOOL WINAPI GetApplicationFromWindow(HWND window, LPWSTR appName) { BOOL result = FALSE; DWORD processId = 0; DWORD dwSize = MAX_PATH; GetWindowThreadProcessId(window, &processId); HANDLE handle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processId); if (handle == 0) return result; if (IsWindowsVista()) { fnQueryFullProcessImageName = (LPFN_QUERYFULLPROCESSIMAGENAME)GetProcAddress( GetModuleHandle(TEXT("kernel32")),"QueryFullProcessImageName"); if (NULL != fnQueryFullProcessImageName) { result = fnQueryFullProcessImageName(handle, 0, appName, &dwSize); } else result = GetModuleFileNameEx(handle, 0, appName, MAX_PATH); } else result = GetModuleFileNameEx(handle, 0, appName, MAX_PATH); CloseHandle(handle); return result; } BOOL WINAPI IsNativeWin64() { #ifndef _WIN64 return FALSE; #else return TRUE; #endif } HICON WINAPI GetAppicationIcon(HWND hwnd) { HICON iconHandle = (HICON)SendMessage(hwnd,WM_GETICON,ICON_SMALL2,0); if(!iconHandle) iconHandle = (HICON)SendMessage(hwnd,WM_GETICON,ICON_SMALL,0); if(!iconHandle) iconHandle = (HICON)SendMessage(hwnd,WM_GETICON,ICON_BIG,0); if (!iconHandle) iconHandle = (HICON)GetClassLongPtr(hwnd, GCLP_HICON); if (!iconHandle) iconHandle = (HICON)GetClassLongPtr(hwnd, GCLP_HICONSM); return iconHandle; } DWORD GetParentProcessId() { DWORD pHandle = 0; HANDLE hProcessSnap; HANDLE hProcess; PROCESSENTRY32 pe32; DWORD dwCurrentProcessId = 0; dwCurrentProcessId = GetCurrentProcessId(); // Take a snapshot of all processes in the system. hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); if( hProcessSnap == INVALID_HANDLE_VALUE ) { goto exit; } // Set the size of the structure before using it. pe32.dwSize = sizeof( PROCESSENTRY32 ); // Retrieve information about the first process. // We can use this to get hte process Id of our parent processs if( !Process32First( hProcessSnap, &pe32 ) ) { goto exit; } do { // Retrieve a handle to the process hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pe32.th32ProcessID ); if( hProcess != NULL ) { if (dwCurrentProcessId == pe32.th32ProcessID) { CloseHandle( hProcess ); pHandle = pe32.th32ParentProcessID; break; } CloseHandle( hProcess ); } } while( Process32Next( hProcessSnap, &pe32 ) ); exit: CloseHandle( hProcessSnap ); return pHandle; }
61c802c7fa462631d1ef1d0b602ceb1202163f04
4d6f1c83d9dbb972e73bcc6b0afd4ac04ff5e776
/textinput/peninputarc/gsplugin/gspeninputplugin/inc/peninputgsinterface.inl
3ec0eb472ebe5cfee0e5f0a3bcbea1e55d483cb3
[]
no_license
SymbianSource/oss.FCL.sf.mw.inputmethods
344aff3e5dc049d050c0626210de231737bbf441
51e877bef2e0a93793490fba6e97b04aaa1ee368
refs/heads/master
2021-01-13T08:38:51.371385
2010-10-03T21:39:41
2010-10-03T21:39:41
71,818,739
1
0
null
null
null
null
UTF-8
C++
false
false
959
inl
peninputgsinterface.inl
/* * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0"" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * Nokia Corporation - initial contribution. * * Contributors: * * Description: inline function implementation for gspeninputinterface * */ inline CPenInputGSInterface* CPenInputGSInterface::NewL() { const TUid KPenInputImpleUid = {0x1028185A}; TAny* interface = REComSession::CreateImplementationL ( KPenInputImpleUid, _FOFF (CPenInputGSInterface, iDtor_ID_Key)); return reinterpret_cast <CPenInputGSInterface*> (interface); } inline CPenInputGSInterface::~CPenInputGSInterface() { REComSession::DestroyedImplementation (iDtor_ID_Key); } // End Of File
acf174292fb2f08aad28221feba611311be2cbef
9a625ea6ad56782c1601756d5b5dd540a3cc3456
/properties/types/PathPropertyBrowserType.cpp
98b428373b35393f62f1335fc175fb6d5a509330
[]
no_license
Aardvajk/Ark
077936b33bd6b947989ba23881216fbdd0e2c8bf
696eea3a11ba5e04eb72000bb1c2b97e4abcf0c8
refs/heads/master
2021-08-16T05:50:43.350831
2020-04-16T09:28:21
2020-04-16T09:28:21
159,943,057
0
0
null
null
null
null
UTF-8
C++
false
false
2,458
cpp
PathPropertyBrowserType.cpp
#include "PathPropertyBrowserType.h" #include <QPxWidgets/QPxLayouts.h> #include <QPxPropertyBrowser/QPxPropertyBrowserItem.h> #include <QtWidgets/QLineEdit> #include <QtWidgets/QToolButton> #include <QtWidgets/QFileDialog> namespace { class Cache { public: Cache(PathPropertyBrowserType::Type type, const QString &filter) : type(type), filter(filter) { } PathPropertyBrowserType::Type type; QString filter; }; } PathPropertyBrowserEditor::PathPropertyBrowserEditor(const PathPropertyBrowserType *type, const QString &path, QWidget *parent) : QPx::PropertyBrowserEditor(parent), type(type) { auto layout = new QPx::HBoxLayout(this); edit = layout->addTypedWidget(new QLineEdit()); edit->setText(path); setFocusProxy(edit); auto button = layout->addTypedWidget(new QToolButton()); button->setText("..."); connect(button, SIGNAL(clicked()), SLOT(buttonClicked())); } QVariant PathPropertyBrowserEditor::value() const { return edit->text(); } void PathPropertyBrowserEditor::setValue(const QVariant &value) { edit->setText(value.toString()); } void PathPropertyBrowserEditor::buttonClicked() { QString path; if(type->type() == PathPropertyBrowserType::Type::Directory) { path = QFileDialog::getExistingDirectory(this, "Select Directory", edit->text()); } else if(type->type() == PathPropertyBrowserType::Type::File) { path = QFileDialog::getSaveFileName(this, "Select File", edit->text(), type->filter()); } else if(type->type() == PathPropertyBrowserType::Type::ExistingFile) { path = QFileDialog::getOpenFileName(this, "Select File", edit->text(), type->filter()); } if(!path.isEmpty()) { edit->setText(path); emit commit(); } } PathPropertyBrowserType::PathPropertyBrowserType(Type type, const QString &filter, QObject *parent) : QPx::PropertyBrowserType(parent) { cache.alloc<Cache>(type, filter); } PathPropertyBrowserType::Type PathPropertyBrowserType::type() const { return cache.get<Cache>().type; } QString PathPropertyBrowserType::filter() const { return cache.get<Cache>().filter; } int PathPropertyBrowserType::userType() const { return QMetaType::QString; } QPx::PropertyBrowserEditor *PathPropertyBrowserType::createEditor(const QPx::PropertyBrowserItem *item, QWidget *parent) const { return new PathPropertyBrowserEditor(this, item->value().toString(), parent); }
62e9aaea0cd0ddecea297d1f66c1ec435d29c0e1
5123172b4f2fbfbfa1a65367cf5a489dec3149b7
/vecv.cpp
8d6bb42ee5043d278e21e6ab07e0b7832924f572
[]
no_license
abhijeetmanhas/spoj
91e9b81abab7684d8978e8cba7a53ebb9d6faa39
cbdc03ab54fa26a92b938879819675d35e33ed96
refs/heads/master
2020-06-10T22:21:21.010050
2015-03-18T16:14:34
2015-03-18T16:14:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
254
cpp
vecv.cpp
#include <iostream> #include <vector> using namespace std; int main(void) { vector <vector <int > > a ; int t; cin>> t; vector<int> t1; t1.push_back(t); a.push_back(t1); typeof(a)::iterator b = a.begin(); cout<<*a; return 0; }
97780defebc7c1891b5d34fdfff3be711733c03c
a70bf47a4b05d6f522d6a374eb61e7b93c3c87fe
/Source/Unreal_BattleTank/Unreal_BattleTank.cpp
7fe2564269e3457f1a9419ca65fffd3eaeb009d2
[]
no_license
pikacsc/Unreal_BattleTank
07f7673dcb03a1ee893c47cd65ed84d59343119c
843d67c536bf27eb42366edd8f07682263ea4e87
refs/heads/master
2020-04-22T03:11:16.343111
2019-04-17T15:36:59
2019-04-17T15:36:59
170,076,871
0
0
null
null
null
null
UTF-8
C++
false
false
244
cpp
Unreal_BattleTank.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "Unreal_BattleTank.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Unreal_BattleTank, "Unreal_BattleTank" );
a7d1535137652728b0b72d640f9bc4a15db369ec
a22652188a350dc30bced52da03df0242903ae96
/src/lib/bruker/Directory.cpp
453c23f0db1f7f37b24002bd6ed99d2e1150ab69
[]
no_license
Lahaxe/dicomifier
2e439c1d9e0fd56256b5277254835aad7a3d7e19
718fe266be30a1f15145f2e06dc40738bad66ffe
refs/heads/master
2021-01-20T16:12:11.577080
2015-12-29T10:14:56
2015-12-29T10:14:56
48,741,797
1
0
null
2015-12-29T10:20:37
2015-12-29T10:20:37
null
UTF-8
C++
false
false
5,080
cpp
Directory.cpp
/************************************************************************* * Dicomifier - Copyright (C) Universite de Strasbourg * Distributed under the terms of the CeCILL-B license, as published by * the CEA-CNRS-INRIA. Refer to the LICENSE file or to * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html * for details. ************************************************************************/ #include "Directory.h" #include <set> #include <string> #include <vector> #include <boost/filesystem.hpp> #include <boost/lexical_cast.hpp> #include "Dataset.h" #include "core/DicomifierException.h" namespace dicomifier { namespace bruker { std::set<Directory::Path> const Directory::_known_files = { "subject", "acqp", "method", "imnd", "isa", "d3proc", "reco", "visu_pars"}; void Directory ::load(std::string const & path) { // Common files for each reconstruction. std::vector<Path> files; typedef boost::filesystem::directory_iterator Iterator; typedef boost::filesystem::recursive_directory_iterator RecursiveIterator; for(RecursiveIterator it(path); it != RecursiveIterator(); ++it) { if(this->_known_files.find(it->path().filename()) != this->_known_files.end()) { files.push_back(it->path()); } if(it->path().filename() == "pdata") { Dataset dataset; for(auto const & file: files) { if (file.filename() != "visu_pars") {// visu_pars should be in a sub-directory of pdata dataset.load(file.string()); } } for(Iterator reco_it(it->path()); reco_it != Iterator(); ++reco_it) { if(boost::filesystem::is_directory(it->path())) { this->_add_reconstruction(*reco_it, dataset); } } // Don't descend reconstructions have been processed. it.no_push(); files.clear(); } } } bool Directory ::has_dataset(std::string const & reconstruction) const { auto const dataset_it = this->_datasets.find(reconstruction); return (dataset_it != this->_datasets.end()); } Dataset const & Directory ::get_dataset(std::string const & reconstruction) const { auto const dataset_it = this->_datasets.find(reconstruction); if(dataset_it == this->_datasets.end()) { throw DicomifierException("No such series"); } return dataset_it->second; } std::map<std::string, std::vector<std::string> > Directory ::get_series_and_reco(const std::string &path) { std::map<std::string, std::vector<std::string> > map; typedef boost::filesystem::directory_iterator Iterator; typedef boost::filesystem::recursive_directory_iterator RecursiveIterator; for(RecursiveIterator it(path); it != RecursiveIterator(); ++it) { if(it->path().filename() == "pdata") { for(Iterator reco_it(it->path()); reco_it != Iterator(); ++reco_it) { if(boost::filesystem::is_directory(it->path())) { std::string const reconstruction = ((Path)*reco_it).filename().string(); std::string const series = ((Path)*reco_it).parent_path().parent_path().filename().string(); if (map.find(series) == map.end()) {// create new entry map[series] = {}; } map[series].push_back(reconstruction); } } // Don't descend reconstructions have been processed. it.no_push(); } } return map; } void Directory ::_add_reconstruction(Path const & root, Dataset const & template_) { // Known files below this reconstruction directory std::vector<Path> files; typedef boost::filesystem::recursive_directory_iterator Iterator; Path pixel_data; for(Iterator it(root); it != Iterator(); ++it) { if(this->_known_files.find(it->path().filename()) != this->_known_files.end()) { files.push_back(it->path()); } if(it->path().filename() == "2dseq") { pixel_data = it->path(); } } // Create the dataset Dataset dataset(template_); for(auto const & file: files) { dataset.load(file.string()); } if(!pixel_data.empty()) { Field field; field.name = "PIXELDATA"; field.value.push_back(pixel_data.string()); dataset.set_field(field); } int const reconstruction = boost::lexical_cast<int>( root.filename().string()); int const series = boost::lexical_cast<int>( root.parent_path().parent_path().filename().string()); std::string const key = boost::lexical_cast<std::string>( 10000*series+reconstruction); this->_datasets[key] = dataset; } } // namespace bruker } // namespace dicomifier