blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
62033d0522e963cf455bf3d412ebe336a228072e
bf7d00691fcbf9d80182860c4558046f9f58c06a
/Archive/Copy of D2HackIt 200/D2hackIt/Inventory.cpp
8c72b3405807bc8e74e99fc529fd4d556384b2fe
[]
no_license
inrg/Diablo-II-Hacks
3ad8e130b34b5572f8a8f8462e5e87c502fc80e1
8ac6ce07e2fb0ddee68ecc3929d5b472400b0990
refs/heads/master
2020-09-07T03:01:32.860088
2018-06-09T15:15:54
2018-06-09T15:15:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,308
cpp
/////////////////////////////////////////////////////////// // Inventory.cpp // // Abin (abinn32@yahoo.com) /////////////////////////////////////////////////////////// #include "Inventory.h" #include "Constants.h" #include "definitions.h" #include "d2functions.h" #include "CommonStructs.h" #include "Item.h" #include "D2Hackit.h" #include "me.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CInventory::CInventory() { m_bValid = FALSE; ClearAll(); } CInventory::~CInventory() { } void CInventory::ClearAll() { m_dwCubeID = 0; ::memset(m_aInventory, 0, sizeof(m_aInventory)); ::memset(m_aStash, 0, sizeof(m_aStash)); ::memset(m_aCube, 0, sizeof(m_aCube)); m_aInventoryItems.RemoveAll(); m_aStashItems.RemoveAll(); m_aCubeItems.RemoveAll(); m_aEquipItems.RemoveAll(); m_bSwitching = FALSE; } void CInventory::OnGamePacketAfterReceived(const BYTE *aPacket, DWORD aLen) { if (aPacket[0] == 0x9c && (aPacket[1] == ITEM_ACTION_TO_STORAGE || aPacket[1] == ITEM_ACTION_SWITCH_STORAGE)) { // to storage ITEM item; if (!D2ParseItem(aPacket, aLen, &item)) return; SIZE cs = D2GetItemSize(item.szItemCode); switch (item.iStorageID) { case INV_TYPE_INVENTORY: if (stricmp(item.szItemCode, "box") == 0) m_dwCubeID = item.dwItemID; m_aInventoryItems.Add(item); AddToInventory(item.dwItemID, item.wPositionX, item.wPositionY, cs.cx, cs.cy); break; case INV_TYPE_STASH: if (stricmp(item.szItemCode, "box") == 0) m_dwCubeID = item.dwItemID; m_aStashItems.Add(item); AddToStash(item.dwItemID, item.wPositionX, item.wPositionY, cs.cx, cs.cy); break; case INV_TYPE_CUBE: m_aCubeItems.Add(item); AddToCube(item.dwItemID, item.wPositionX, item.wPositionY, cs.cx, cs.cy); break; default: break; } } if (aPacket[0] == 0x9d && aPacket[1] == ITEM_ACTION_FROM_STORAGE) { // from storage ITEM item; if (!D2ParseItem(aPacket, aLen, &item)) return; RemoveItem(item.dwItemID); switch (item.iStorageID) { case INV_TYPE_INVENTORY: if (stricmp(item.szItemCode, "box") == 0) m_dwCubeID = 0; RemoveFromInventory(item.dwItemID); break; case INV_TYPE_STASH: if (stricmp(item.szItemCode, "box") == 0) m_dwCubeID = 0; RemoveFromStash(item.dwItemID); break; case INV_TYPE_CUBE: RemoveFromCube(item.dwItemID); break; default: break; } } } BOOL CInventory::Dump(LPCSTR lpszFile) const { FILE* file = fopen(lpszFile, "w"); if (file == NULL) return FALSE; int i, j; fprintf(file, "%s\n\n", "---------- Inventory ----------"); for (j = 0; j < INV_COL; j++) { for (i = 0; i < INV_ROW; i++) fprintf(file, "%d ", !!m_aInventory[i][j]); fprintf(file, "\n"); } fprintf(file, "\n\n%s\n\n", "---------- Stash ----------"); for (j = 0; j < STASH_COL; j++) { for (i = 0; i < STASH_ROW; i++) fprintf(file, "%d ", !!m_aStash[i][j]); fprintf(file, "\n"); } fprintf(file, "\n\n%s\n\n", "---------- Cube ----------"); for (j = 0; j < CUBE_COL; j++) { for (i = 0; i < CUBE_ROW; i++) fprintf(file, "%d ", !!m_aCube[i][j]); fprintf(file, "\n"); } fclose(file); return TRUE; } BOOL CInventory::AddToInventory(DWORD dwItemID, int x, int y, int cx, int cy) { if (dwItemID == 0 // verify item id || x < 0 || y < 0 // verify location || cx == 0 || cx > 2 || cy == 0 || cy > 4 // verify size || x + cx > INV_ROW || y + cy > INV_COL) // verify relative return FALSE; for (int j = 0; j < cy; j++) { for (int i = 0; i < cx; i++) { if (m_aInventory[i + x][j + y] != 0) // there's an item, remove it RemoveFromInventory(m_aInventory[i + x][j + y]); m_aInventory[i + x][j + y] = dwItemID; // add in } } return TRUE; } BOOL CInventory::AddToStash(DWORD dwItemID, int x, int y, int cx, int cy) { if (dwItemID == 0 // verify item id || x < 0 || y < 0 // verify location || cx == 0 || cx > 2 || cy == 0 || cy > 4 // verify size || x + cx > STASH_ROW || y + cy > STASH_COL) // verify relative return FALSE; for (int j = 0; j < cy; j++) { for (int i = 0; i < cx; i++) { if (m_aStash[i + x][j + y] != 0) // there's an item, remove it RemoveFromStash(m_aStash[i + x][j + y]); m_aStash[i + x][j + y] = dwItemID; // add in } } return TRUE; } BOOL CInventory::AddToCube(DWORD dwItemID, int x, int y, int cx, int cy) { if (dwItemID == 0 // verify item id || x < 0 || y < 0 // verify location || cx == 0 || cx > 2 || cy == 0 || cy > 4 // verify size || x + cx > CUBE_ROW || y + cy > CUBE_COL) // verify relative return FALSE; for (int j = 0; j < cy; j++) { for (int i = 0; i < cx; i++) { if (m_aCube[i + x][j + y] != 0) // there's an item, remove it RemoveFromCube(m_aCube[i + x][j + y]); m_aCube[i + x][j + y] = dwItemID; // add in } } return TRUE; } BOOL CInventory::RemoveFromInventory(DWORD dwItemID) { if (dwItemID == 0) return FALSE; for (int j = 0; j < INV_COL; j++) { for (int i = 0; i < INV_ROW; i++) { if (m_aInventory[i][j] == dwItemID) m_aInventory[i][j] = 0; // removed } } return TRUE; } BOOL CInventory::RemoveFromStash(DWORD dwItemID) { if (dwItemID == 0) return FALSE; for (int j = 0; j < STASH_COL; j++) { for (int i = 0; i < STASH_ROW; i++) { if (m_aStash[i][j] == dwItemID) m_aStash[i][j] = 0; // removed } } return TRUE; } BOOL CInventory::RemoveFromCube(DWORD dwItemID) { if (dwItemID == 0) return FALSE; for (int j = 0; j < CUBE_COL; j++) { for (int i = 0; i < CUBE_ROW; i++) { if (m_aCube[i][j] == dwItemID) m_aCube[i][j] = 0; // removed } } return TRUE; } BOOL CInventory::FindInventoryPosition(int cx, int cy, LPPOINT lpBuffer) const { if (cx == 0 || cy == 0) return FALSE; for (int j = 0; j < INV_COL; j++) { for (int i = 0; i < INV_ROW; i++) { if (m_aInventory[i][j]) continue; BOOL bOK = TRUE; // check cx, cy for (int x = i; x < i + cx; x++) { for (int y = j; y < j + cy; y++) { if (m_aInventory[x][y] || x >= INV_ROW || y >= INV_COL) { bOK = FALSE; break; } } } if (!bOK) continue; // OK, we found if (lpBuffer) { lpBuffer->x = i; lpBuffer->y = j; } return TRUE; } } return FALSE; } BOOL CInventory::FindStashPosition(int cx, int cy, LPPOINT lpBuffer) const { if (!m_bValid || cx == 0 || cy == 0) return FALSE; for (int j = 0; j < STASH_COL; j++) { for (int i = 0; i < STASH_ROW; i++) { if (m_aStash[i][j]) continue; BOOL bOK = TRUE; // check cx, cy for (int x = i; x < i + cx; x++) { for (int y = j; y < j + cy; y++) { if (m_aStash[x][y] || x >= STASH_ROW || y >= STASH_COL) { bOK = FALSE; break; } } } if (!bOK) continue; // OK, we found if (lpBuffer) { lpBuffer->x = i; lpBuffer->y = j; } return TRUE; } } return FALSE; } BOOL CInventory::FindCubePosition(int cx, int cy, LPPOINT lpBuffer) const { if (!m_bValid || !m_dwCubeID || cx == 0 || cy == 0) return FALSE; for (int j = 0; j < CUBE_COL; j++) { for (int i = 0; i < CUBE_ROW; i++) { if (m_aCube[i][j]) continue; BOOL bOK = TRUE; // check cx, cy for (int x = i; x < i + cx; x++) { for (int y = j; y < j + cy; y++) { if (m_aCube[x][y] || x >= CUBE_ROW || y >= CUBE_COL) { bOK = FALSE; break; } } } if (!bOK) continue; // OK, we found if (lpBuffer) { lpBuffer->x = i; lpBuffer->y = j; } return TRUE; } } return FALSE; } int CInventory::FindStorageItem(DWORD dwItemID) const { if (!m_bValid || dwItemID == 0) return FALSE; int i = 0; for (i = 0; i < m_aCubeItems.GetSize(); i++) { if (m_aCubeItems[i].dwItemID == dwItemID) return STORAGE_CUBE; } for (i = 0; i < m_aStashItems.GetSize(); i++) { if (m_aStashItems[i].dwItemID == dwItemID) return STORAGE_STASH; } for (i = 0; i < m_aInventoryItems.GetSize(); i++) { if (m_aInventoryItems[i].dwItemID == dwItemID) return STORAGE_INVENTORY; } return STORAGE_NONE; } DWORD CInventory::GetCubeID() const { return m_dwCubeID; } void CInventory::RemoveItem(DWORD dwItemID) { int i; for (i = m_aInventoryItems.GetSize() - 1; i >= 0; i--) { if (m_aInventoryItems[i].dwItemID == dwItemID) { m_aInventoryItems.RemoveAt(i); //return; // don't return, in case of multiple receive } } for (i = m_aStashItems.GetSize() - 1; i >= 0; i--) { if (m_aStashItems[i].dwItemID == dwItemID) { m_aStashItems.RemoveAt(i); //return; // don't return, in case of multiple receive } } for (i = m_aCubeItems.GetSize() - 1; i >= 0; i--) { if (m_aCubeItems[i].dwItemID == dwItemID) { m_aCubeItems.RemoveAt(i); //return; // don't return, in case of multiple receive } } } BOOL CInventory::EnumStorageItems(int nSTorageType, fnEnumItemProc lpfnEnumItemProc, LPARAM lParam) const { if (lpfnEnumItemProc == NULL) return FALSE; int i; switch (nSTorageType) { case STORAGE_INVENTORY: for (i = 0; i < m_aInventoryItems.GetSize(); i++) { if (!lpfnEnumItemProc(&m_aInventoryItems[i], lParam)) return FALSE; } break; case STORAGE_STASH: for (i = 0; i < m_aStashItems.GetSize(); i++) { if (!lpfnEnumItemProc(&m_aStashItems[i], lParam)) return FALSE; } break; case STORAGE_CUBE: for (i = 0; i < m_aCubeItems.GetSize(); i++) { if (!lpfnEnumItemProc(&m_aCubeItems[i], lParam)) return FALSE; } break; default: return FALSE; break; } return TRUE; } void CInventory::SetValid(BOOL bValid) { m_bValid = bValid; } void CInventory::CheckEquip(const ITEM& item) { if (item.iAction == ITEM_ACTION_TO_EQUIP) { // add equip m_aEquipItems.Add(item); } else if (item.iAction == ITEM_ACTION_SWITCH_EQUIP) { // switching equip if (!m_bSwitching) { // removing int nIdx = FindFromEquip(item.dwItemID); if (nIdx != -1) { m_aEquipItems.RemoveAt(nIdx); m_bSwitching = TRUE; } } else { // adding m_aEquipItems.Add(item); m_bSwitching = FALSE; } } else if (item.iAction == ITEM_ACTION_FROM_EQUIP) { // removing equip int nIdx = FindFromEquip(item.dwItemID); if (nIdx != -1) m_aEquipItems.RemoveAt(nIdx); } } int CInventory::FindFromEquip(DWORD dwItemID) const { if (dwItemID == 0) return -1; for (int i = 0; i < m_aEquipItems.GetSize(); i++) { if (m_aEquipItems[i].dwItemID == dwItemID) return i; } return -1; } BYTE CInventory::GetLowestEquipItemDurability(BOOL bIncludeSecondarySlots) const { BYTE iMinDura = 100; for (int i = 0; i < m_aEquipItems.GetSize(); i++) { if (m_aEquipItems[i].wMaxDurability == 0) continue; // this item has no durability if (!bIncludeSecondarySlots && IsOnSecondary(m_aEquipItems[i].dwItemID)) continue; // on sercondary weapon switch BYTE iDura = CalcPercent(m_aEquipItems[i].wDurability, m_aEquipItems[i].wMaxDurability); if (iDura < iMinDura) iMinDura = iDura; } return iMinDura; } BOOL CInventory::IsOnSecondary(DWORD dwItemID) const { if (dwItemID == 0) return FALSE; UnitAny* pUnit = D2CLIENT_GetPlayerUnit(); if (!pUnit) return FALSE; Inventory* pInv = pUnit->ptInventory; if (!pInv) return FALSE; for (UnitItem* p = pInv->pFirstItem; p && p->ptItemData; p = p->ptItemData->ptNextInvenItem) { if (p->dwId == dwItemID && (p->ptItemData->ItemLocation == EQUIP_RIGHT_SECONDARY || p->ptItemData->ItemLocation == EQUIP_LEFT_SECONDARY)) return TRUE; } return FALSE; } LPCITEM CInventory::GetEquipItem(int nEquipLocation) const { if (nEquipLocation == 0) return NULL; UnitAny* pUnit = D2CLIENT_GetPlayerUnit(); if (!pUnit) return NULL; Inventory* pInv = pUnit->ptInventory; if (!pInv) return NULL; for (UnitItem* p = pInv->pFirstItem; p && p->ptItemData; p = p->ptItemData->ptNextInvenItem) { if (p->ptItemData->ItemLocation == (BYTE)nEquipLocation) { int nIdx = FindFromEquip(p->dwId); if (nIdx != -1) return &m_aEquipItems[nIdx]; } } return NULL; // not found } LPCITEM CInventory::GetStorageItem(int nSTorageType, int nRow, int nColumn) const { if (nRow < 0 || nColumn < 0) return NULL; DWORD dwItemID = 0; int i = 0; switch (nSTorageType) { case STORAGE_INVENTORY: if (nRow < INV_ROW && nColumn < INV_COL) dwItemID = m_aInventory[nRow][nColumn]; if (dwItemID == 0) return NULL; for (i = 0; i < m_aInventoryItems.GetSize(); i++) { if (m_aInventoryItems[i].dwItemID == dwItemID) return &m_aInventoryItems[i]; } break; case STORAGE_STASH: if (nRow < STASH_ROW && nColumn < STASH_COL) dwItemID = m_aStash[nRow][nColumn]; if (dwItemID == 0) return NULL; for (i = 0; i < m_aStashItems.GetSize(); i++) { if (m_aStashItems[i].dwItemID == dwItemID) return &m_aStashItems[i]; } break; case STORAGE_CUBE: if (nRow < CUBE_ROW && nColumn < CUBE_COL) dwItemID = m_aCube[nRow][nColumn]; if (dwItemID == 0) return NULL; for (i = 0; i < m_aCubeItems.GetSize(); i++) { if (m_aCubeItems[i].dwItemID == dwItemID) return &m_aCubeItems[i]; } break; default: break; } return NULL; }
[ "abinn32@163.com" ]
abinn32@163.com
5577c32b5b0e1bd943c247c21a3b3b19956674bb
5d57ae30d25e717040150a9371e921cac8702e51
/MapRepresentation/qgslib/ui/ui_qgspdfexportoptions.h
d1e8ee049e59d4bec41eed895a58b687625d8195
[]
no_license
11wy11/MapRepresentation
726092ae8d4da46de1664e62f811d140571f19e7
507a44e9b14cdeb6ad671470e9ec35c555b8ac53
refs/heads/master
2023-02-22T20:17:27.715037
2021-01-25T13:43:02
2021-01-25T13:43:02
330,683,896
0
0
null
null
null
null
UTF-8
C++
false
false
15,269
h
/******************************************************************************** ** Form generated from reading UI file 'qgspdfexportoptions.ui' ** ** Created by: Qt User Interface Compiler version 5.11.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************************************************/ #ifndef UI_QGSPDFEXPORTOPTIONS_H #define UI_QGSPDFEXPORTOPTIONS_H #include <QtCore/QVariant> #include <QtWidgets/QApplication> #include <QtWidgets/QCheckBox> #include <QtWidgets/QComboBox> #include <QtWidgets/QDialog> #include <QtWidgets/QDialogButtonBox> #include <QtWidgets/QGridLayout> #include <QtWidgets/QGroupBox> #include <QtWidgets/QHeaderView> #include <QtWidgets/QLabel> #include <QtWidgets/QListWidget> #include <QtWidgets/QSpacerItem> #include <QtWidgets/QStackedWidget> #include <QtWidgets/QTreeView> #include <QtWidgets/QVBoxLayout> #include <QtWidgets/QWidget> #include "qgscollapsiblegroupbox.h" #include "qgsscrollarea.h" QT_BEGIN_NAMESPACE class Ui_QgsPdfExportOptionsDialog { public: QVBoxLayout *verticalLayout; QgsCollapsibleGroupBoxBasic *groupBox; QGridLayout *gridLayout; QLabel *label_6; QComboBox *mTextRenderFormatComboBox; QCheckBox *mForceVectorCheckBox; QCheckBox *mAppendGeoreferenceCheckbox; QCheckBox *mIncludeMetadataCheckbox; QLabel *label_3; QComboBox *mComboImageCompression; QgsCollapsibleGroupBoxBasic *mGeoPDFGroupBox; QVBoxLayout *verticalLayout_2; QgsScrollArea *scrollArea; QWidget *scrollAreaWidgetContents; QVBoxLayout *verticalLayout_6; QStackedWidget *mGeoPDFOptionsStackedWidget; QWidget *page; QVBoxLayout *verticalLayout_3; QLabel *mGeoPdfUnavailableReason; QWidget *page_2; QGridLayout *gridLayout_3; QgsCollapsibleGroupBoxBasic *mIncludeMapThemesCheck; QVBoxLayout *verticalLayout_4; QListWidget *mThemesList; QLabel *label; QComboBox *mGeoPdfFormatComboBox; QGroupBox *mExportGeoPdfFeaturesCheckBox; QVBoxLayout *verticalLayout_5; QLabel *label_2; QTreeView *mGeoPdfStructureTree; QgsCollapsibleGroupBoxBasic *groupBox_2; QGridLayout *gridLayout_2; QCheckBox *mDisableRasterTilingCheckBox; QCheckBox *mSimplifyGeometriesCheckbox; QSpacerItem *horizontalSpacer; QDialogButtonBox *buttonBox; void setupUi(QDialog *QgsPdfExportOptionsDialog) { if (QgsPdfExportOptionsDialog->objectName().isEmpty()) QgsPdfExportOptionsDialog->setObjectName(QStringLiteral("QgsPdfExportOptionsDialog")); QgsPdfExportOptionsDialog->resize(489, 730); verticalLayout = new QVBoxLayout(QgsPdfExportOptionsDialog); verticalLayout->setObjectName(QStringLiteral("verticalLayout")); groupBox = new QgsCollapsibleGroupBoxBasic(QgsPdfExportOptionsDialog); groupBox->setObjectName(QStringLiteral("groupBox")); gridLayout = new QGridLayout(groupBox); gridLayout->setObjectName(QStringLiteral("gridLayout")); label_6 = new QLabel(groupBox); label_6->setObjectName(QStringLiteral("label_6")); gridLayout->addWidget(label_6, 4, 0, 1, 1); mTextRenderFormatComboBox = new QComboBox(groupBox); mTextRenderFormatComboBox->setObjectName(QStringLiteral("mTextRenderFormatComboBox")); gridLayout->addWidget(mTextRenderFormatComboBox, 4, 1, 1, 1); mForceVectorCheckBox = new QCheckBox(groupBox); mForceVectorCheckBox->setObjectName(QStringLiteral("mForceVectorCheckBox")); gridLayout->addWidget(mForceVectorCheckBox, 0, 0, 1, 2); mAppendGeoreferenceCheckbox = new QCheckBox(groupBox); mAppendGeoreferenceCheckbox->setObjectName(QStringLiteral("mAppendGeoreferenceCheckbox")); mAppendGeoreferenceCheckbox->setChecked(true); gridLayout->addWidget(mAppendGeoreferenceCheckbox, 1, 0, 1, 2); mIncludeMetadataCheckbox = new QCheckBox(groupBox); mIncludeMetadataCheckbox->setObjectName(QStringLiteral("mIncludeMetadataCheckbox")); mIncludeMetadataCheckbox->setChecked(true); gridLayout->addWidget(mIncludeMetadataCheckbox, 2, 0, 1, 2); label_3 = new QLabel(groupBox); label_3->setObjectName(QStringLiteral("label_3")); gridLayout->addWidget(label_3, 5, 0, 1, 1); mComboImageCompression = new QComboBox(groupBox); mComboImageCompression->setObjectName(QStringLiteral("mComboImageCompression")); gridLayout->addWidget(mComboImageCompression, 5, 1, 1, 1); gridLayout->setColumnStretch(1, 1); verticalLayout->addWidget(groupBox); mGeoPDFGroupBox = new QgsCollapsibleGroupBoxBasic(QgsPdfExportOptionsDialog); mGeoPDFGroupBox->setObjectName(QStringLiteral("mGeoPDFGroupBox")); mGeoPDFGroupBox->setCheckable(true); mGeoPDFGroupBox->setChecked(true); verticalLayout_2 = new QVBoxLayout(mGeoPDFGroupBox); verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2")); verticalLayout_2->setContentsMargins(0, 0, 0, 0); scrollArea = new QgsScrollArea(mGeoPDFGroupBox); scrollArea->setObjectName(QStringLiteral("scrollArea")); scrollArea->setFrameShape(QFrame::NoFrame); scrollArea->setWidgetResizable(true); scrollAreaWidgetContents = new QWidget(); scrollAreaWidgetContents->setObjectName(QStringLiteral("scrollAreaWidgetContents")); scrollAreaWidgetContents->setGeometry(QRect(0, -316, 451, 648)); verticalLayout_6 = new QVBoxLayout(scrollAreaWidgetContents); verticalLayout_6->setObjectName(QStringLiteral("verticalLayout_6")); mGeoPDFOptionsStackedWidget = new QStackedWidget(scrollAreaWidgetContents); mGeoPDFOptionsStackedWidget->setObjectName(QStringLiteral("mGeoPDFOptionsStackedWidget")); QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); sizePolicy.setHeightForWidth(mGeoPDFOptionsStackedWidget->sizePolicy().hasHeightForWidth()); mGeoPDFOptionsStackedWidget->setSizePolicy(sizePolicy); page = new QWidget(); page->setObjectName(QStringLiteral("page")); verticalLayout_3 = new QVBoxLayout(page); verticalLayout_3->setObjectName(QStringLiteral("verticalLayout_3")); verticalLayout_3->setContentsMargins(0, 0, 0, 0); mGeoPdfUnavailableReason = new QLabel(page); mGeoPdfUnavailableReason->setObjectName(QStringLiteral("mGeoPdfUnavailableReason")); verticalLayout_3->addWidget(mGeoPdfUnavailableReason); mGeoPDFOptionsStackedWidget->addWidget(page); page_2 = new QWidget(); page_2->setObjectName(QStringLiteral("page_2")); gridLayout_3 = new QGridLayout(page_2); gridLayout_3->setObjectName(QStringLiteral("gridLayout_3")); gridLayout_3->setContentsMargins(0, 0, 0, 0); mIncludeMapThemesCheck = new QgsCollapsibleGroupBoxBasic(page_2); mIncludeMapThemesCheck->setObjectName(QStringLiteral("mIncludeMapThemesCheck")); mIncludeMapThemesCheck->setCheckable(true); mIncludeMapThemesCheck->setChecked(false); verticalLayout_4 = new QVBoxLayout(mIncludeMapThemesCheck); verticalLayout_4->setObjectName(QStringLiteral("verticalLayout_4")); mThemesList = new QListWidget(mIncludeMapThemesCheck); mThemesList->setObjectName(QStringLiteral("mThemesList")); verticalLayout_4->addWidget(mThemesList); gridLayout_3->addWidget(mIncludeMapThemesCheck, 2, 0, 1, 2); label = new QLabel(page_2); label->setObjectName(QStringLiteral("label")); gridLayout_3->addWidget(label, 1, 0, 1, 1); mGeoPdfFormatComboBox = new QComboBox(page_2); mGeoPdfFormatComboBox->setObjectName(QStringLiteral("mGeoPdfFormatComboBox")); gridLayout_3->addWidget(mGeoPdfFormatComboBox, 1, 1, 1, 1); mExportGeoPdfFeaturesCheckBox = new QGroupBox(page_2); mExportGeoPdfFeaturesCheckBox->setObjectName(QStringLiteral("mExportGeoPdfFeaturesCheckBox")); mExportGeoPdfFeaturesCheckBox->setCheckable(false); verticalLayout_5 = new QVBoxLayout(mExportGeoPdfFeaturesCheckBox); verticalLayout_5->setObjectName(QStringLiteral("verticalLayout_5")); label_2 = new QLabel(mExportGeoPdfFeaturesCheckBox); label_2->setObjectName(QStringLiteral("label_2")); label_2->setWordWrap(true); verticalLayout_5->addWidget(label_2); mGeoPdfStructureTree = new QTreeView(mExportGeoPdfFeaturesCheckBox); mGeoPdfStructureTree->setObjectName(QStringLiteral("mGeoPdfStructureTree")); mGeoPdfStructureTree->setHeaderHidden(true); verticalLayout_5->addWidget(mGeoPdfStructureTree); gridLayout_3->addWidget(mExportGeoPdfFeaturesCheckBox, 3, 0, 1, 2); gridLayout_3->setRowStretch(2, 2); gridLayout_3->setRowStretch(3, 5); mGeoPDFOptionsStackedWidget->addWidget(page_2); verticalLayout_6->addWidget(mGeoPDFOptionsStackedWidget); scrollArea->setWidget(scrollAreaWidgetContents); verticalLayout_2->addWidget(scrollArea); verticalLayout->addWidget(mGeoPDFGroupBox); groupBox_2 = new QgsCollapsibleGroupBoxBasic(QgsPdfExportOptionsDialog); groupBox_2->setObjectName(QStringLiteral("groupBox_2")); gridLayout_2 = new QGridLayout(groupBox_2); gridLayout_2->setObjectName(QStringLiteral("gridLayout_2")); mDisableRasterTilingCheckBox = new QCheckBox(groupBox_2); mDisableRasterTilingCheckBox->setObjectName(QStringLiteral("mDisableRasterTilingCheckBox")); mDisableRasterTilingCheckBox->setChecked(false); gridLayout_2->addWidget(mDisableRasterTilingCheckBox, 0, 0, 1, 2); mSimplifyGeometriesCheckbox = new QCheckBox(groupBox_2); mSimplifyGeometriesCheckbox->setObjectName(QStringLiteral("mSimplifyGeometriesCheckbox")); mSimplifyGeometriesCheckbox->setChecked(true); gridLayout_2->addWidget(mSimplifyGeometriesCheckbox, 1, 0, 1, 1); verticalLayout->addWidget(groupBox_2); horizontalSpacer = new QSpacerItem(6, 2, QSizePolicy::Minimum, QSizePolicy::Expanding); verticalLayout->addItem(horizontalSpacer); buttonBox = new QDialogButtonBox(QgsPdfExportOptionsDialog); buttonBox->setObjectName(QStringLiteral("buttonBox")); buttonBox->setOrientation(Qt::Horizontal); buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Save); verticalLayout->addWidget(buttonBox); QWidget::setTabOrder(mForceVectorCheckBox, mAppendGeoreferenceCheckbox); QWidget::setTabOrder(mAppendGeoreferenceCheckbox, mIncludeMetadataCheckbox); QWidget::setTabOrder(mIncludeMetadataCheckbox, mTextRenderFormatComboBox); QWidget::setTabOrder(mTextRenderFormatComboBox, mComboImageCompression); QWidget::setTabOrder(mComboImageCompression, mGeoPDFGroupBox); QWidget::setTabOrder(mGeoPDFGroupBox, scrollArea); QWidget::setTabOrder(scrollArea, mGeoPdfFormatComboBox); QWidget::setTabOrder(mGeoPdfFormatComboBox, mIncludeMapThemesCheck); QWidget::setTabOrder(mIncludeMapThemesCheck, mThemesList); QWidget::setTabOrder(mThemesList, mGeoPdfStructureTree); QWidget::setTabOrder(mGeoPdfStructureTree, mDisableRasterTilingCheckBox); QWidget::setTabOrder(mDisableRasterTilingCheckBox, mSimplifyGeometriesCheckbox); retranslateUi(QgsPdfExportOptionsDialog); QObject::connect(buttonBox, SIGNAL(accepted()), QgsPdfExportOptionsDialog, SLOT(accept())); QObject::connect(buttonBox, SIGNAL(rejected()), QgsPdfExportOptionsDialog, SLOT(reject())); mGeoPDFOptionsStackedWidget->setCurrentIndex(1); QMetaObject::connectSlotsByName(QgsPdfExportOptionsDialog); } // setupUi void retranslateUi(QDialog *QgsPdfExportOptionsDialog) { QgsPdfExportOptionsDialog->setWindowTitle(QApplication::translate("QgsPdfExportOptionsDialog", "PDF Export Options", nullptr)); groupBox->setTitle(QApplication::translate("QgsPdfExportOptionsDialog", "Export Options", nullptr)); label_6->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Text export", nullptr)); #ifndef QT_NO_TOOLTIP mForceVectorCheckBox->setToolTip(QApplication::translate("QgsPdfExportOptionsDialog", "If checked, the layout will always be kept as vector objects when exported to a compatible format, even if the appearance of the resultant file does not match the layouts settings. If unchecked, some elements in the layout may be rasterized in order to keep their appearance intact.", nullptr)); #endif // QT_NO_TOOLTIP mForceVectorCheckBox->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Always export as vectors", nullptr)); mAppendGeoreferenceCheckbox->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Append georeference information", nullptr)); mIncludeMetadataCheckbox->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Export RDF metadata (title, author, etc.)", nullptr)); label_3->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Image compression", nullptr)); mGeoPDFGroupBox->setTitle(QApplication::translate("QgsPdfExportOptionsDialog", "Create Geospatial PDF (GeoPDF)", nullptr)); mGeoPdfUnavailableReason->setText(QString()); mIncludeMapThemesCheck->setTitle(QApplication::translate("QgsPdfExportOptionsDialog", "Include multiple map themes", nullptr)); label->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Format", nullptr)); mExportGeoPdfFeaturesCheckBox->setTitle(QApplication::translate("QgsPdfExportOptionsDialog", "Layer Structure", nullptr)); label_2->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Uncheck layers to avoid exporting vector feature information for those layers, and optionally set the group name to allow multiple layers to be joined into a single logical PDF group. Layers can be dragged and dropped to rearrange their order in the generated GeoPDF table of contents.", nullptr)); groupBox_2->setTitle(QApplication::translate("QgsPdfExportOptionsDialog", "Advanced Options", nullptr)); #ifndef QT_NO_TOOLTIP mDisableRasterTilingCheckBox->setToolTip(QApplication::translate("QgsPdfExportOptionsDialog", "Disables tiled rendering of raster layers. This setting may improve the export quality in some circumstances, at the cost of much greater memory usage during exports.", nullptr)); #endif // QT_NO_TOOLTIP mDisableRasterTilingCheckBox->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Disable tiled raster layer exports", nullptr)); mSimplifyGeometriesCheckbox->setText(QApplication::translate("QgsPdfExportOptionsDialog", "Simplify geometries to reduce output file size", nullptr)); } // retranslateUi }; namespace Ui { class QgsPdfExportOptionsDialog: public Ui_QgsPdfExportOptionsDialog {}; } // namespace Ui QT_END_NAMESPACE #endif // UI_QGSPDFEXPORTOPTIONS_H
[ "1124485058@qq.com" ]
1124485058@qq.com
a8b4df3012492875ed6cdf51c8c985ceee19d5aa
3cf73d4ec1e9bd0cfeebb0de3775e5553530efe2
/USER-MISC/pair_coul_diel.cpp
8fb4ef6372bb9f423ce6342903f414697827c26b
[]
no_license
TJFord/sard
49766cb2f72610ae60319e9ed73b712f0c05e66a
6697819f47d5e28b60d36183a65b5b95a725b6b1
refs/heads/master
2016-09-06T09:58:00.641931
2014-06-28T02:57:51
2014-06-28T02:57:51
10,278,164
1
0
null
null
null
null
UTF-8
C++
false
false
10,221
cpp
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This software is distributed under the GNU General Public License. See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- Contributiong authors: Arben Jusufi, Axel Kohlmeyer (Temple U.) ------------------------------------------------------------------------- */ #include "math.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "pair_coul_diel.h" #include "atom.h" #include "comm.h" #include "force.h" #include "neighbor.h" #include "neigh_list.h" #include "memory.h" #include "error.h" using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ PairCoulDiel::PairCoulDiel(LAMMPS *lmp) : Pair(lmp) {} /* ---------------------------------------------------------------------- */ PairCoulDiel::~PairCoulDiel() { if (allocated) { memory->destroy(setflag); memory->destroy(sigmae); memory->destroy(rme); memory->destroy(offset); memory->destroy(cutsq); memory->destroy(cut); allocated = 0; } } /* ---------------------------------------------------------------------- */ void PairCoulDiel::compute(int eflag, int vflag) { int i,j,ii,jj,inum,jnum,itype,jtype; double qtmp,xtmp,ytmp,ztmp,delx,dely,delz,ecoul,fpair; double rsq,r,rarg,th,depsdr,epsr,forcecoul,factor_coul; int *ilist,*jlist,*numneigh,**firstneigh; ecoul = 0.0; if (eflag || vflag) ev_setup(eflag,vflag); else evflag = vflag_fdotr = 0; double **x = atom->x; double **f = atom->f; double *q = atom->q; int *type = atom->type; int nlocal = atom->nlocal; double *special_coul = force->special_coul; int newton_pair = force->newton_pair; double qqrd2e = force->qqrd2e; inum = list->inum; ilist = list->ilist; numneigh = list->numneigh; firstneigh = list->firstneigh; // loop over neighbors of my atoms for (ii = 0; ii < inum; ii++) { i = ilist[ii]; qtmp = q[i]; xtmp = x[i][0]; ytmp = x[i][1]; ztmp = x[i][2]; itype = type[i]; jlist = firstneigh[i]; jnum = numneigh[i]; for (jj = 0; jj < jnum; jj++) { j = jlist[jj]; factor_coul = special_coul[sbmask(j)]; j &= NEIGHMASK; delx = xtmp - x[j][0]; dely = ytmp - x[j][1]; delz = ztmp - x[j][2]; rsq = delx*delx + dely*dely + delz*delz; jtype = type[j]; if (rsq < cutsq[itype][jtype]) { r = sqrt(rsq); rarg = (r-rme[itype][jtype])/sigmae[itype][jtype]; th=tanh(rarg); epsr=a_eps+b_eps*th; depsdr=b_eps * (1.0 - th*th) / sigmae[itype][jtype]; forcecoul = qqrd2e*qtmp*q[j]*((eps_s*(epsr+r*depsdr)/epsr/epsr) -1.)/rsq; fpair = factor_coul*forcecoul/r; f[i][0] += delx*fpair; f[i][1] += dely*fpair; f[i][2] += delz*fpair; if (newton_pair || j < nlocal) { f[j][0] -= delx*fpair; f[j][1] -= dely*fpair; f[j][2] -= delz*fpair; } if (eflag) { ecoul = (qqrd2e*qtmp*q[j]*((eps_s/epsr) -1.)/r) - offset[itype][jtype]; ecoul *= factor_coul; } if (evflag) ev_tally(i,j,nlocal,newton_pair,0.0, ecoul,fpair,delx,dely,delz); } } } if (vflag_fdotr) virial_fdotr_compute(); } /* ---------------------------------------------------------------------- allocate all arrays ------------------------------------------------------------------------- */ void PairCoulDiel::allocate() { allocated = 1; int n = atom->ntypes; memory->create(setflag,n+1,n+1,"pair:setflag"); for (int i = 1; i <= n; i++) for (int j = i; j <= n; j++) setflag[i][j] = 0; memory->create(cutsq,n+1,n+1,"pair:cutsq"); memory->create(cut,n+1,n+1,"pair:cut"); memory->create(sigmae,n+1,n+1,"pair:sigmae"); memory->create(rme,n+1,n+1,"pair:rme"); memory->create(offset,n+1,n+1,"pair:offset"); } /* ---------------------------------------------------------------------- global settings ------------------------------------------------------------------------- */ void PairCoulDiel::settings(int narg, char **arg) { if (narg != 1) error->all(FLERR,"Illegal pair_style command"); cut_global = force->numeric(arg[0]); // reset cutoffs that have been explicitly set if (allocated) { int i,j; for (i = 1; i <= atom->ntypes; i++) for (j = i+1; j <= atom->ntypes; j++) if (setflag[i][j]) cut[i][j] = cut_global; } } /* ---------------------------------------------------------------------- set coeffs for one or more type pairs ------------------------------------------------------------------------- */ void PairCoulDiel::coeff(int narg, char **arg) { if (narg < 5 || narg > 6) error->all(FLERR,"Incorrect args for pair coefficients"); if (!allocated) allocate(); int ilo,ihi,jlo,jhi; force->bounds(arg[0],atom->ntypes,ilo,ihi); force->bounds(arg[1],atom->ntypes,jlo,jhi); eps_s = force->numeric(arg[2]); double rme_one =force->numeric(arg[3]); double sigmae_one = force->numeric(arg[4]); double cut_one = cut_global; if (narg == 6) cut_one = force->numeric(arg[5]); int count = 0; for (int i = ilo; i <= ihi; i++) { for (int j = MAX(jlo,i); j <= jhi; j++) { sigmae[i][j] = sigmae_one; rme[i][j] = rme_one; cut[i][j] = cut_one; setflag[i][j] = 1; count++; } } a_eps = 0.5*(5.2+eps_s); b_eps = 0.5*(eps_s-5.2); if (count == 0) error->all(FLERR,"Incorrect args for pair coefficients"); } /* ---------------------------------------------------------------------- init specific to this pair style ------------------------------------------------------------------------- */ void PairCoulDiel::init_style() { if (!atom->q_flag) error->all(FLERR,"Pair style coul/diel requires atom attribute q"); int irequest = neighbor->request(this); } /* ---------------------------------------------------------------------- init for one type pair i,j and corresponding j,i ------------------------------------------------------------------------- */ double PairCoulDiel::init_one(int i, int j) { if (setflag[i][j] == 0) { error->all(FLERR,"for pair style coul/diel, parameters need to be set explicitly for all pairs."); } double *q = atom->q; double qqrd2e = force->qqrd2e; if (offset_flag) { double rarg = (cut[i][j]-rme[i][j])/sigmae[i][j]; double epsr=a_eps+b_eps*tanh(rarg); offset[i][j] = qqrd2e*q[i]*q[j]*((eps_s/epsr) -1.)/cut[i][j]; } else offset[i][j] = 0.0; sigmae[j][i] = sigmae[i][j]; rme[j][i] = rme[i][j]; offset[j][i] = offset[i][j]; cut[j][i] = cut[i][j]; return cut[i][j]; } /* ---------------------------------------------------------------------- proc 0 writes to restart file ------------------------------------------------------------------------- */ void PairCoulDiel::write_restart(FILE *fp) { write_restart_settings(fp); int i,j; for (i = 1; i <= atom->ntypes; i++) for (j = i; j <= atom->ntypes; j++) { fwrite(&setflag[i][j],sizeof(int),1,fp); if (setflag[i][j]) { fwrite(&rme[i][j],sizeof(double),1,fp); fwrite(&sigmae[i][j],sizeof(double),1,fp); fwrite(&cut[i][j],sizeof(double),1,fp); } } } /* ---------------------------------------------------------------------- proc 0 reads from restart file, bcasts ------------------------------------------------------------------------- */ void PairCoulDiel::read_restart(FILE *fp) { read_restart_settings(fp); allocate(); int i,j; int me = comm->me; for (i = 1; i <= atom->ntypes; i++) for (j = i; j <= atom->ntypes; j++) { if (setflag[i][j]) { if (me == 0) { fread(&rme[i][j],sizeof(double),1,fp); fread(&sigmae[i][j],sizeof(double),1,fp); fread(&cut[i][j],sizeof(double),1,fp); } MPI_Bcast(&rme[i][j],1,MPI_DOUBLE,0,world); MPI_Bcast(&sigmae[i][j],1,MPI_DOUBLE,0,world); MPI_Bcast(&cut[i][j],1,MPI_DOUBLE,0,world); } } } /* ---------------------------------------------------------------------- proc 0 writes to restart file ------------------------------------------------------------------------- */ void PairCoulDiel::write_restart_settings(FILE *fp) { fwrite(&cut_global,sizeof(double),1,fp); fwrite(&offset_flag,sizeof(int),1,fp); fwrite(&mix_flag,sizeof(int),1,fp); } /* ---------------------------------------------------------------------- proc 0 reads from restart file, bcasts ------------------------------------------------------------------------- */ void PairCoulDiel::read_restart_settings(FILE *fp) { if (comm->me == 0) { fread(&cut_global,sizeof(double),1,fp); fread(&offset_flag,sizeof(int),1,fp); fread(&mix_flag,sizeof(int),1,fp); } MPI_Bcast(&cut_global,1,MPI_DOUBLE,0,world); MPI_Bcast(&offset_flag,1,MPI_INT,0,world); MPI_Bcast(&mix_flag,1,MPI_INT,0,world); } /* ---------------------------------------------------------------------- */ double PairCoulDiel::single(int i, int j, int itype, int jtype, double rsq, double factor_coul, double factor_lj, double &fforce) { double r, rarg,forcedielec,phidielec; double th,epsr,depsdr; double *q = atom->q; double qqrd2e = force->qqrd2e; r=sqrt(rsq); rarg = (r-rme[itype][jtype])/sigmae[itype][jtype]; th = tanh(rarg); epsr=a_eps+b_eps*th; depsdr=b_eps*(1.-th*th)/sigmae[itype][jtype]; forcedielec = qqrd2e*q[i]*q[j]*((eps_s*(epsr+r*depsdr)/epsr/epsr) -1.)/rsq; fforce = factor_coul*forcedielec/r; phidielec = (qqrd2e*q[i]*q[j]*((eps_s/epsr) -1.)/r)- offset[itype][jtype]; return factor_coul*phidielec; }
[ "tan.jifu@gmail.com" ]
tan.jifu@gmail.com
20543064ef9ad1b3d92ba3ff9e6658eb1e7bce54
489810d2cf94a47dc64e52ede261bc5f876a376f
/webrtc-native-nvenc/NvEncFacadeD3D11.h
1512459711589458a4c425dfa69b78dc19c4ae1b
[ "MIT", "BSD-3-Clause" ]
permissive
aniongithub/webrtc-dotnet-core
9d269b98ac023c5ea3e7da79235ea49f5e88aef0
e6761ef0141be3f1c845f824b3acbaaaa40a16dd
refs/heads/master
2020-05-20T19:37:58.597445
2019-04-19T15:19:38
2019-04-19T15:19:38
185,727,096
1
0
NOASSERTION
2019-05-09T04:38:24
2019-05-09T04:38:24
null
UTF-8
C++
false
false
672
h
#pragma once /** * Simple facade around the more complicated NvEncFacadeD3D11 classes */ class NvEncFacadeD3D11 final { public: NvEncFacadeD3D11(int width, int height, int bitrate, int targetFrameRate, int extraOutputDelay = 3); ~NvEncFacadeD3D11(); /** For best performance, set the vPacket to large capacity */ void EncodeFrame(struct ID3D11Texture2D* source, std::vector<uint8_t>& vPacket); void SetBitrate(int bitrate, int targetFrameRate); private: int width; int height; int bitrate; int targetFrameRate; int extraOutputDelay; int nPackets = 0; bool doReconfigure = false; class NvEncoderD3D11* encoder = nullptr; void Reconfigure() const; };
[ "peter@wonder.media" ]
peter@wonder.media
bbd6e1a516e04477a37787969190baead3e5a57b
6114cf27d0f1e85b3ed04076325fb0cdbbdec8f4
/lab9/lab9.cpp
6ed7fff5875954c83bf08dfd4813273fc209ddec
[]
no_license
simonszuharev/lab9_CPP_level1
37131beabbc353ded9d41db8e563844c8c677339
ff3cd31d8f731b6f2ee65bd7be36f20bbc8a9188
refs/heads/master
2021-04-26T22:08:07.068795
2018-03-06T05:34:57
2018-03-06T05:34:57
124,026,110
0
0
null
null
null
null
UTF-8
C++
false
false
5,303
cpp
/* Lab 9 - Text File Word Counter ------------------------------ Create a program which will count and report on the number of occurrences of distinct, case insensitive words in a text file. The program should have a loop that: 1. Prompts the user to enter a file name. Terminate the loop and the program if the user presses the Enter key only. 2. Verifies that a file with the name entered exists. If the file does not exist, display an appropriate message and return to step 1. 3. Reads and displays the contents of the file. 4. Displays a count of the distinct words in the file. 5. Displays a sorted list of each of the distinct words in the file and the number of occurrences of each word. Sort the list in descending order by word count, ascending order by word. A screen display and sample input files can be found in the Blackboard Review folder. Submit your�solution (main.cpp) as the file lab9_annnnnnn.cpp where annnnnnn is your ACC student identification number. */ #include <iostream> #include <iomanip> #include <algorithm> #include <string> #include <fstream> #include <vector> using namespace std; // Structure containing word and number of occurrences struct WordCount { string word; // the word int count; // the number of occurances WordCount(string s) {word=s; count=1;} }; // Function Prototypes string InputText(); // Prompt user for file name and get text string Normalize(string); // Convert string to lowercase and remove punctuation vector<WordCount> DistinctWords(string); // Build sorted vector of word count structures int FindWord(string,vector<WordCount>); // Linear search for word in vector of structures void DisplayResults(vector<WordCount>); // Display results // Main int main(int argc, char** argv) { cout << "Lab 9 - Text File Word Counter" << endl; cout << "------------------------------" << endl; // Input text from file string buffer = InputText(); while(buffer != "") { // Display origonal text from file cout << "\nThis is the text string read from the file" << endl; cout << "------------------------------------------" << endl; cout << buffer << endl << endl; // Build vector of words and counts vector<WordCount> words = DistinctWords(buffer); // Display results cout << "There are " << words.size() << " unique words in the above text." << endl; cout << "--------------------------------------------" << endl << endl; DisplayResults(words); buffer = InputText(); } return 0; } // Read contents of text file string ReadText(string filename) { fstream file(filename, ios::in); string buffer = ""; if (file) { stringstream ss; ss << file.rdbuf(); if(!file.fail()) buffer = ss.str(); file.close(); } return buffer; } // Prompt user for file name and read text string InputText() { string filename, buffer = ""; do { cout << endl << "File name? "; getline(cin, filename); if(filename != "") { buffer = ReadText(filename); if(buffer == "") cout << "File '" << filename << "' not found or empty"; } } while(filename != "" && buffer == ""); return buffer; } // Compare function used for word count structure sort struct SortFunc { bool operator ()(WordCount const& wc1, WordCount const& wc2) const { bool swap = false; // descending by count if(wc1.count > wc2.count) swap = true; // ascending by word else if(wc1.count==wc2.count && wc1.word < wc2.word) swap = true; return swap; } }; // Create and sort vector of structures of distinct words and counts vector<WordCount> DistinctWords(string s) { vector<WordCount> words; istringstream ss(Normalize(s)); string word; while (ss >> word) { int index = FindWord(word, words); if(index == -1) { WordCount wc(word); words.push_back(wc); } else words[index].count += 1; } // Sort the vector and return sort(words.begin(), words.end(), SortFunc()); return words; } // Convert string to lowercase and remove punctuation string Normalize(string s) { int max = s.length(); for(int i=0; i<max; i++) s[i] = ispunct(s[i]) ? ' ' : tolower(s[i]); return s; } // Perform linear search for word int FindWord(string w, vector<WordCount> v) { for(int i=0; i < v.size(); i ++) if(v[i].word == w) return i; return -1; } // Display column headings void DisplayHeadings(int cols) { for(int i = 0; i < cols; i++) cout << setw(15) << left << "Word" << setw(5) << "Count" << "\t"; cout << endl; for(int i = 0; i < cols; i++) cout << "--------------------" << "\t"; cout << endl; } // Display results in columnar form void DisplayResults(vector<WordCount> words) { // Define number of columns const int cols = 4; // Display column headings DisplayHeadings(cols); // Calculate number of rows required for desired columns int rows = words.size() / cols; if(words.size() % cols) rows += 1; // Display words and counts in rows of col columns for(int row = 0; row < rows; row++) { for(int i = row; i < words.size(); i += rows) cout << setw(15) << left << words[i].word << setw(5) << right << words[i].count << "\t"; cout << endl; } }
[ "simonszuharev@gmail.com" ]
simonszuharev@gmail.com
252b52dfb88a5291bfaaabc5d435ef861601aa1e
1834c0796ee324243f550357c67d8bcd7c94de17
/SDK/TCF_MAP01_F1_functions.cpp
3cc5a894047e62a3949e55d35a4ea7780b02c78b
[]
no_license
DarkCodez/TCF-SDK
ce41cc7dab47c98b382ad0f87696780fab9898d2
134a694d3f0a42ea149a811750fcc945437a70cc
refs/heads/master
2023-08-25T20:54:04.496383
2021-10-25T11:26:18
2021-10-25T11:26:18
423,337,506
1
0
null
2021-11-01T04:31:21
2021-11-01T04:31:20
null
UTF-8
C++
false
false
349
cpp
// The Cycle Frontier (1.X) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "TCF_MAP01_F1_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "30532128+pubgsdk@users.noreply.github.com" ]
30532128+pubgsdk@users.noreply.github.com
85ccf227a326e701e91a998d7572d7bb4f1e18b1
fb7d8ca23e21138d9a2b0c0dbd42a3f8e3a663ce
/Cpp/UNIT07(継承)/0704B.cpp
cb1b57f7f8df4c73505a34027067e36dcef071ff
[]
no_license
BayaSea0907/LessonCCpp
5e2d4d54e55b580d0b2c9e9d07d3bb100c5dfd81
ae76a22cd059a19eed0aa08c5bddd5c7786a0b2e
refs/heads/master
2020-12-07T00:24:06.240624
2020-01-12T13:47:49
2020-01-12T13:47:49
232,593,636
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
1,286
cpp
/*--------------------------------------------------- |問題07-04【プログラムB】 BayaSea -----------------------------------------------------*/ #include <iostream> #include <string> //文字列操作用クラス using namespace std; //会社クラス定義 class Company { string name; //会社名 public: Company(string sn = ""):name(sn){} string getName() { return name; } }; ///////////////////////////////////////////////////// //金融業クラス定義 class Finance : public Company { int loan; //貸出高(億円) public: Finance(string fn = "", int sl = 0):loan(sl), Company(fn){} int getLoan() { return loan; } }; ///////////////////////////////////////////////////// //製造業クラス定義 class Production : public Company { string product; //製造物 public: Production(string pn = "", string pp = ""):product(pp), Company(pn){} string getProduct() { return product; } }; ///////////////////////////////////////////////////// int main() { Finance* finP(new Finance("AIFL", 2000)); Production* prodP(new Production("TADANO", "crane")); cout << finP->getName() << "貸出高=" << finP->getLoan() << endl; cout << prodP->getName() << "製造物=" << prodP->getProduct() << endl; delete finP; delete prodP; return 0; }
[ "h.kobayashi.0897@gmail.com" ]
h.kobayashi.0897@gmail.com
a0f32e9c3af89868accf0b90c635c5eff1758d5e
b50e67512fd279fff7033568f8a91c7da7a894de
/src/chemobjects/chemsys/libchemsys.cpp
9aad08ad5ef10fef51c98d854dc2bc720cccc149
[]
no_license
xielm12/libra-code
9f43a9fada0e34dc894347f2c698906baa2ebfd6
2fa9467d1014bcaf44ab57936c3fdd2d5f9c44d9
refs/heads/master
2017-12-21T19:00:05.800504
2017-09-25T13:55:41
2017-09-25T13:55:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,154
cpp
/********************************************************************************* * Copyright (C) 2015-2017 Alexey V. Akimov * * This file is distributed under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 2 of * the License, or (at your option) any later version. * See the file LICENSE in the root directory of this distribution * or <http://www.gnu.org/licenses/>. * *********************************************************************************/ /** \file libchemsys.cpp \brief The file implements Python export function */ #include <boost/python.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> #include "libchemsys.h" /// liblibra namespace namespace liblibra{ using namespace boost::python; /// libchemobjects namespace namespace libchemobjects{ /// libchemsys namespace namespace libchemsys{ void export_Chemsys_objects(){ /** \brief Exporter of libchemsys classes and functions */ //void (System::*CREATE_ATOM1)() = &System::CREATE_ATOM; void (System::*CREATE_ATOM2)(Atom) = &System::CREATE_ATOM; void (System::*LINK_ATOMS1)(Atom&,Atom&) = &System::LINK_ATOMS; void (System::*LINK_ATOMS2)(int,int) = &System::LINK_ATOMS; void (System::*init_box1)() = &System::init_box; void (System::*init_box2)(double,double,double) = &System::init_box; void (System::*init_box3)(VECTOR,VECTOR,VECTOR) = &System::init_box; void (System::*print_ent1)(std::string) = &System::print_ent; void (System::*print_ent2)(std::string,int,std::string) = &System::print_ent; void (System::*print_ent3)(std::string,boost::python::list) = &System::print_ent; void (System::*print_ent4)(std::string,boost::python::list,int,std::string) = &System::print_ent; void (System::*print_xyz1)(std::string,int) = &System::print_xyz; void (System::*print_xyz2)(std::string,int,std::string,int) = &System::print_xyz; int (System::*expt_Find_Angle_v1)(int,int) = &System::Find_Angle; int (System::*expt_Find_Angle_v2)(int,int,int) = &System::Find_Angle; void (System::*expt_init_fragment_velocities_v1)(double Temp, Random& rnd) = &System::init_fragment_velocities; void (System::*expt_init_fragment_velocities_v2)(double Temp,VECTOR TOT_P,VECTOR TOT_L, Random& rnd) = &System::init_fragment_velocities; void (System::*expt_init_atom_velocities_v1)(double Temp, Random& rnd) = &System::init_atom_velocities; void (System::*expt_init_atom_velocities_v2)(double Temp,VECTOR TOT_P, Random& rnd) = &System::init_atom_velocities; void (System::*expt_ROTATE_FRAGMENT_v1)(double, VECTOR, int) = &System::ROTATE_FRAGMENT; void (System::*expt_ROTATE_FRAGMENT_v2)(double, VECTOR, int, VECTOR) = &System::ROTATE_FRAGMENT; class_<System>("System",init<>()) .def("__copy__", &generic__copy__<System>) .def("__deepcopy__", &generic__deepcopy__<System>) .def(init<const System&>()) .def_readwrite("name", &System::name) .def_readwrite("id",&System::id) .def_readwrite("mass",&System::mass) .def_readwrite("Nf_t",&System::Nf_t) .def_readwrite("Nf_r",&System::Nf_r) // .def("set",&System::set) .def("show_info",&System::show_info) .def_readwrite("Number_of_atoms",&System::Number_of_atoms) .def_readwrite("Number_of_bonds",&System::Number_of_bonds) .def_readwrite("Number_of_angles",&System::Number_of_angles) .def_readwrite("Number_of_dihedrals",&System::Number_of_dihedrals) .def_readwrite("Number_of_impropers",&System::Number_of_impropers) .def_readwrite("Number_of_pairs",&System::Number_of_pairs) .def_readwrite("Number_of_fragments",&System::Number_of_fragments) .def_readwrite("Number_of_rings",&System::Number_of_rings) .def_readwrite("Number_of_molecules",&System::Number_of_molecules) .def_readwrite("Atoms",&System::Atoms) .def_readwrite("Bonds",&System::Bonds) .def_readwrite("Angles",&System::Angles) .def_readwrite("Dihedrals",&System::Dihedrals) .def_readwrite("Impropers",&System::Impropers) .def_readwrite("Pairs",&System::Pairs) .def_readwrite("Fragments",&System::Fragments) .def_readwrite("Rings",&System::Rings) .def_readwrite("Molecules",&System::Molecules) .def_readwrite("Frag_bonds",&System::Frag_bonds) .def_readwrite("Frag_angles",&System::Frag_angles) .def_readwrite("Frag_dihedrals",&System::Frag_dihedrals) .def_readwrite("Frag_impropers",&System::Frag_impropers) .def_readwrite("Frag_pairs",&System::Frag_pairs) .def_readwrite("Surface_atoms",&System::Surface_atoms) .def_readwrite("Number_of_frag_bonds",&System::Number_of_frag_bonds) .def_readwrite("Number_of_frag_angles",&System::Number_of_frag_angles) .def_readwrite("Number_of_frag_dihedrals",&System::Number_of_frag_dihedrals) .def_readwrite("Number_of_frag_impropers",&System::Number_of_frag_impropers) .def_readwrite("Number_of_frag_pairs",&System::Number_of_frag_pairs) .def_readwrite("Number_of_surface_atoms",&System::Number_of_surface_atoms) .def_readwrite("Box",&System::Box) .def_readwrite("Box_origin",&System::Box_origin) //---------- Defined in System_methods.cpp ------------------ .def("show_atoms",&System::show_atoms) .def("show_bonds",&System::show_bonds) .def("show_angles",&System::show_angles) .def("show_dihedrals",&System::show_dihedrals) .def("show_impropers",&System::show_impropers) .def("show_pairs",&System::show_pairs) .def("show_frag_bonds",&System::show_frag_bonds) .def("show_frag_angles",&System::show_frag_angles) .def("show_frag_dihedrals",&System::show_frag_dihedrals) .def("show_frag_impropers",&System::show_frag_impropers) .def("show_frag_pairs",&System::show_frag_pairs) .def("show_fragments",&System::show_fragments) .def("show_rings",&System::show_rings) .def("show_molecules",&System::show_molecules) .def("get_atom_index_by_atom_id", &System::get_atom_index_by_atom_id) .def("get_fragment_index_by_fragment_id", &System::get_fragment_index_by_fragment_id) .def("get_molecule_index_by_molecule_id", &System::get_molecule_index_by_molecule_id) .def("Find_Bond", &System::Find_Bond) .def("Find_Frag_Pair", &System::Find_Frag_Pair) .def("Find_Angle", expt_Find_Angle_v1) .def("Find_Angle", expt_Find_Angle_v2) .def("Find_Dihedral", &System::Find_Dihedral) .def("Find_Improper", &System::Find_Improper) .def("is_12pair", &System::is_12pair) .def("is_13pair", &System::is_13pair) .def("is_14pair", &System::is_14pair) .def("is_group_pair", &System::is_group_pair) //----------- Defined in System_methods1.cpp ----------- .def("Generate_Connectivity_Matrix", &System::Generate_Connectivity_Matrix) .def("Assign_Rings", &System::Assign_Rings) .def("DIVIDE_GRAPH", &System::DIVIDE_GRAPH) //----------- Defined in System_methods2.cpp ------------------ .def("update_max_id",&System::update_max_id) .def("CREATE_ATOM",CREATE_ATOM2) .def("LINK_ATOMS",LINK_ATOMS2) .def("GROUP_ATOMS",&System::GROUP_ATOMS) .def("UPDATE_FRAG_TOPOLOGY", &System::UPDATE_FRAG_TOPOLOGY) .def("ADD_ATOM_TO_FRAGMENT", &System::ADD_ATOM_TO_FRAGMENT) .def("CREATE_BONDS", &System::CREATE_BONDS) .def("CLONE_MOLECULE", &System::CLONE_MOLECULE) //----------- Defined in System_methods3.cpp ------------------ .def("move_atom_by_index",&System::move_atom_by_index) .def("move_fragment_by_index",&System::move_fragment_by_index) .def("move_molecule_by_index",&System::move_molecule_by_index) .def("update_atoms_for_fragment", &System::update_atoms_for_fragment) .def("update_fragments_for_molecule", &System::update_fragments_for_molecule) .def("update_atoms_for_molecule", &System::update_atoms_for_molecule) .def("rotate_atoms_of_fragment", &System::rotate_atoms_of_fragment) .def("rotate_fragments_of_molecule", &System::rotate_fragments_of_molecule) .def("rotate_atoms_of_molecule", &System::rotate_atoms_of_molecule) .def("TRANSLATE_ATOM", &System::TRANSLATE_ATOM) .def("TRANSLATE_FRAGMENT", &System::TRANSLATE_FRAGMENT) .def("TRANSLATE_MOLECULE", &System::TRANSLATE_MOLECULE) .def("ROTATE_FRAGMENT", expt_ROTATE_FRAGMENT_v1) .def("ROTATE_FRAGMENT", expt_ROTATE_FRAGMENT_v2) .def("ROTATE_MOLECULE", &System::ROTATE_MOLECULE) //----------- Defined in System_methods4.cpp ------------------ .def("determine_functional_groups",&System::determine_functional_groups) //----------- Defined in System_methods5.cpp (extractors/converters) ------- .def("extract_atomic_q", &System::extract_atomic_q) .def("set_atomic_q", &System::set_atomic_q) .def("extract_atomic_p", &System::extract_atomic_p) .def("set_atomic_p", &System::set_atomic_p) .def("extract_atomic_v", &System::extract_atomic_v) .def("set_atomic_v", &System::set_atomic_v) .def("extract_atomic_f", &System::extract_atomic_f) .def("set_atomic_f", &System::set_atomic_f) .def("extract_atomic_mass", &System::extract_atomic_mass) .def("set_atomic_mass", &System::set_atomic_mass) .def("extract_fragment_q", &System::extract_fragment_q) .def("set_fragment_q", &System::set_fragment_q) .def("extract_fragment_p", &System::extract_fragment_p) .def("set_fragment_p", &System::set_fragment_p) .def("extract_fragment_v", &System::extract_fragment_v) .def("set_fragment_v", &System::set_fragment_v) .def("extract_fragment_f", &System::extract_fragment_f) .def("set_fragment_f", &System::set_fragment_f) .def("extract_fragment_mass", &System::extract_fragment_mass) .def("set_fragment_mass", &System::set_fragment_mass) //------------- Defined in System_methods6.cpp ------------------ .def("cool_atoms", &System::cool_atoms) .def("cool_fragments", &System::cool_fragments) .def("cool", &System::cool) .def("zero_atom_forces",&System::zero_atom_forces) .def("zero_fragment_forces",&System::zero_fragment_forces) .def("zero_fragment_torques",&System::zero_fragment_torques) .def("zero_forces",&System::zero_forces) .def("zero_forces_and_torques",&System::zero_forces_and_torques) .def("update_fragment_forces",&System::update_fragment_forces) .def("update_fragment_torques",&System::update_fragment_torques) .def("update_fragment_forces_and_torques",&System::update_fragment_forces_and_torques) .def("save_forces", &System::save_forces) .def("save_torques", &System::save_torques) .def("load_forces", &System::load_forces) .def("load_torques", &System::load_torques) .def("save_stress", &System::save_stress) .def("increment_stress", &System::increment_stress) .def("save_respa_state", &System::save_respa_state) .def("load_respa_state", &System::load_respa_state) .def("init_fragments",&System::init_fragments) .def("init_molecules",&System::init_molecules) .def("init_box_origin", &System::init_box_origin) .def("init_box",init_box1) .def("init_box",init_box2) .def("init_box",init_box3) .def("apply_frag_pbc",&System::apply_frag_pbc) .def("fix_fragment_translation", &System::fix_fragment_translation) .def("fix_fragment_rotation", &System::fix_fragment_rotation) .def("fix_fragment", &System::fix_fragment) .def("ekin_tr",&System::ekin_tr) .def("ekin_tr_int",&System::ekin_tr_int) .def("ekin_rot",&System::ekin_rot) .def("volume",&System::volume) .def("pressure_tensor", &System::pressure_tensor) .def("init_fragment_velocities", expt_init_fragment_velocities_v1) .def("init_fragment_velocities", expt_init_fragment_velocities_v2) .def("init_atom_velocities", expt_init_atom_velocities_v1) .def("init_atom_velocities", expt_init_atom_velocities_v2) //---------------- Defined in System_methods7.cpp ----------------- .def("print_ent",print_ent1) .def("print_ent",print_ent2) .def("print_ent",print_ent3) .def("print_ent",print_ent4) .def("print_xyz",print_xyz1) .def("print_xyz",print_xyz2) ; }// export_Chemsys_objects #ifdef CYGWIN BOOST_PYTHON_MODULE(cygchemsys){ #else BOOST_PYTHON_MODULE(libchemsys){ #endif // Register converters: // See here: https://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters/ //to_python_converter<std::vector<DATA>, VecToList<DATA> >(); // export_Mathematics_objects(); export_Chemsys_objects(); } }// namespace libchemsys }// namespace libchemobjects }// liblibra
[ "alexvakimov@gmail.com" ]
alexvakimov@gmail.com
87e8331dbfcf922f6aa71d5056b58d7a088dc445
cb988f2a5aa50f6b29554a737e683da1ff49e584
/log_out.cpp
8edf78f7d4f0e8114d5febae265f5a0652fb8d05
[]
no_license
csci221fa2016/helpershelpme
24bbe026bb0e51bf6b1c31ed068b5a1492dcfd79
c92626fad1911006a3e8ecbda30c647e59e6824e
refs/heads/master
2021-01-09T23:37:54.862122
2016-12-14T12:03:04
2016-12-14T12:03:04
73,194,378
1
0
null
null
null
null
UTF-8
C++
false
false
2,701
cpp
#include <iostream> #include <vector> #include <string> #include <stdio.h> #include <stdlib.h> #include <cgicc/CgiDefs.h> #include <cgicc/Cgicc.h> #include <cgicc/HTTPHTMLHeader.h> #include <cgicc/HTMLClasses.h> #include <cgicc/HTTPRedirectHeader.h> #include <cgicc/HTTPCookie.h> #include "controller.h" #include "styles.h" using namespace std; using namespace cgicc; int main () { Cgicc cgi; cout << HTTPHTMLHeader().setCookie(HTTPCookie("user_id","6767","","",-1,"/",true)).setCookie(HTTPCookie("logged_in","true","","",-1,"/",true))<<endl; cout<< html()<<endl; cout<<head()<<title("Redirecting")<<endl; cout<<"<META HTTP-EQUIV=\"refresh\" CONTENT=\"5;URL=home.cgi\">"<<endl; cout << "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>" << endl; cout <<"<link rel=\"stylesheet\" href=\"css/main2.css\" />"<<endl; cout << style() << comment() << endl; cout << styles; cout << comment() << style() <<endl; cout << head() << endl; cout << "<body class =\"index\">" << endl; cout<<"<div id=\"page-wrapper\">"<<endl; cout<<"<section id=\"banner\">"<<endl; cout<<"<p> Logout successfull, you will be redirected now! If your browser doesn't redirect please click <a href=\"home.cgi\">HERE</a></p>"<<endl; cout<<"</section>"<<endl; cout<<"<footer id=\"footer\">"<<endl; cout<<"<ul class=\"icons\">"<<endl; cout<<"<li><a href=\"#\" class=\"icon circle fa-twitter\"><span class=\"label\">Twitter</span></a></li>"<<endl; cout<<"<li><a href=\"#\" class=\"icon circle fa-facebook\"><span class=\"label\">Facebook</span></a></li>"<<endl; cout<<"<li><a href=\"#\" class=\"icon circle fa-google-plus\"><span class=\"label\">Google+</span></a></li>"<<endl; cout<<"<li><a href=\"#\" class=\"icon circle fa-github\"><span class=\"label\">Github</span></a></li>"<<endl; cout<<"<li><a href=\"#\" class=\"icon circle fa-dribbble\"><span class=\"label\">Dribbble</span></a></li>"<<endl; cout<<"</ul>"<<endl; cout<<"<ul class=\"copyright\">"<<endl; cout<<"<li>&copy; Helpers Help me</li><li>Design: <a href=\"http://html5up.net\">HTML5 UP</a></li>"<<endl; cout<<"</ul>"<<endl; cout<<"</footer>"<<endl; cout<<"</div>"<<endl; cout<<"<script src=\"js/jquery.min.js\"></script>"<<endl; cout<<"<script src=\"js/login.js\"></script>"<<endl; cout<<"<script src=\"js/jquery.dropotron.min.js\"></script>"<<endl; cout<<"<script src=\"js/jquery.scrolly.min.js\"></script>"<<endl; cout<<"<script src=\"js/jquery.scrollgress.min.js\"></script>"<<endl; cout<<"<script src=\"js/skel.min.js\"></script>"<<endl; cout<<"<script src=\"js/util.js\"></script>"<<endl; cout<<"<script src=\"js/main.js\"></script>"<<endl; cout<<body()<<endl; cout<<html()<<endl; }
[ "jtoledoc@stetson.edu" ]
jtoledoc@stetson.edu
1d10054979f73137fde67b9f30e4d70b4d7d4cf3
13cdba7eabef5c8185f20de5e1e2a108c1825876
/BOJ/2156-1.cpp
0034f0b3e7c337c4c16cbea361bc43bc423a8245
[]
no_license
Hsue66/Algo
7b43ec88a0fb90c01aa0bca74863daee4689f416
4c02a71edaf4ac994520f4ab017cb5f27edaffc2
refs/heads/master
2021-07-05T23:23:26.174809
2021-05-18T14:08:00
2021-05-18T14:08:00
43,046,465
0
0
null
null
null
null
UTF-8
C++
false
false
357
cpp
#include<cstdio> #include<iostream> using namespace std; int main(){ int len; scanf("%d",&len ); int b[3] = {0}; while(len--){ int now; scanf("%d",&now ); int No = max(b[2],max(b[0],b[1])); int D1 = b[0] + now; int D2 = b[1] + now; b[0] = No; b[1] = D1; b[2] = D2; } printf("%d\n",max(b[2],max(b[0],b[1]))); }
[ "dufmaakedl@gmail.com" ]
dufmaakedl@gmail.com
04bcd75859a136305dbaa6d7cc73f61bead24979
93e477c8e09889854a7a866dd52ab11b5074a1f4
/CANAL/CANAL/win32/usb2candrv.cpp
e938e5f84296f69f54682c614859eb658020ff3d
[]
no_license
CNCBASHER/usb2can_canal
571ad0f790657e300c66927c9c9dd1eb5d70d12e
386e05db1adadbfc6addd08fffe4b580c9825c3a
refs/heads/master
2021-01-17T23:11:09.374798
2013-01-17T08:49:57
2013-01-17T08:49:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,216
cpp
// This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version // 2 of the License, or (at your option) any later version. // // This file is part of the VSCP (http://www.vscp.org) // // Copyright (C) 2000-2008 Ake Hedman, D of Scandinavia, <akhe@eurosource.se> // Copyright (C) 2005-2012 Gediminas Simanskis,8devices,<gediminas@8devices.com> // // This file 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this file see the file COPYING. If not, write to // the Free Software Foundation, 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // $RCSfile: usb2candrv.cpp,v $ // $Date: 2005/01/05 12:16:12 $ // $Author: akhe $ // $Revision: 1.2 $ #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdlib.h> #include "../common/dlldrvobj.h" #include "../common/usb2canobj.h" static HANDLE hThisInstDll = NULL; static CDllDrvObj *theApp = NULL; /////////////////////////////////////////////////////////////////////////////// // DllMain // BOOL APIENTRY DllMain( HANDLE hInstDll, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch( ul_reason_for_call ) { case DLL_PROCESS_ATTACH: hThisInstDll = hInstDll; theApp = new CDllDrvObj(); theApp->InitInstance(); break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; case DLL_PROCESS_DETACH: if ( NULL != theApp ) delete theApp; break; } return TRUE; } /////////////////////////////////////////////////////////////////////////////// // C A N A L - A P I /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // CanalOpen // #ifdef WIN32 extern "C" long WINAPI EXPORT CanalOpen( const char *pDevice, unsigned long flags ) #else extern "C" long CanalOpen( const char *pDevice, unsigned long flags ) #endif { long h = 0; CUsb2canObj *pdrvObj = NULL; pdrvObj = new CUsb2canObj(); if ( NULL != pdrvObj ) { if ( ( h = theApp->addDriverObject(pdrvObj)) <= 0 ) { h = 0; delete pdrvObj; } else { if ( pdrvObj->open( pDevice, flags ) == FALSE ) { theApp->removeDriverObject( h ); h = 0; } } } return h; } /////////////////////////////////////////////////////////////////////////////// // CanalClose // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalClose( long handle ) #else extern "C" int CanalClose( long handle ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; pdrvObj->close(); theApp->removeDriverObject( handle ); return CANAL_ERROR_SUCCESS; } /////////////////////////////////////////////////////////////////////////////// // CanalGetLevel // #ifdef WIN32 extern "C" unsigned long WINAPI EXPORT CanalGetLevel( long handle ) #else extern "C" unsigned long CanalGetLevel( long handle ) #endif { return CANAL_LEVEL_STANDARD; } /////////////////////////////////////////////////////////////////////////////// // CanalSend // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalSend( long handle, PCANALMSG pCanalMsg ) #else extern "C" int CanalSend( long handle, PCANALMSG pCanalMsg ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->writeMsg( pCanalMsg )); } /////////////////////////////////////////////////////////////////////////////// // CanalSend blocking // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalBlockingSend( long handle, PCANALMSG pCanalMsg, unsigned long timeout ) #else extern "C" int CanalBlockingSend( long handle, PCANALMSG pCanalMsg ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->writeMsgBlocking( pCanalMsg, timeout )); } /////////////////////////////////////////////////////////////////////////////// // CanalReceive // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalReceive( long handle, PCANALMSG pCanalMsg ) #else extern "C" int CanalReceive( long handle, PCANALMSG pCanalMsg ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->readMsg( pCanalMsg )); } /////////////////////////////////////////////////////////////////////////////// // CanalReceive blocking // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalBlockingReceive( long handle, PCANALMSG pCanalMsg, unsigned long timeout ) #else extern "C" int CanalBlockingReceive( long handle, PCANALMSG pCanalMsg, unsigned long timeout ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->readMsgBlocking( pCanalMsg, timeout )); } /////////////////////////////////////////////////////////////////////////////// // CanalDataAvailable // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalDataAvailable( long handle ) #else extern "C" int CanalDataAvailable( long handle ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return pdrvObj->dataAvailable(); } /////////////////////////////////////////////////////////////////////////////// // CanalGetStatus // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalGetStatus( long handle, PCANALSTATUS pCanalStatus ) #else extern "C" int CanalGetStatus( long handle, PCANALSTATUS pCanalStatus ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->getStatus( pCanalStatus ) ); } /////////////////////////////////////////////////////////////////////////////// // CanalGetStatistics // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalGetStatistics( long handle, PCANALSTATISTICS pCanalStatistics ) #else extern "C" int CanalGetStatistics( long handle, PCANALSTATISTICS pCanalStatistics ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->getStatistics( pCanalStatistics ) ); } /////////////////////////////////////////////////////////////////////////////// // CanalSetFilter // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalSetFilter( long handle, unsigned long filter ) #else extern "C" int CanalSetFilter( long handle, unsigned long filter ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->setFilter( filter ) ? CANAL_ERROR_SUCCESS : CANAL_ERROR_GENERIC ); } /////////////////////////////////////////////////////////////////////////////// // CanalSetMask // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalSetMask( long handle, unsigned long mask ) #else extern "C" int CanalSetMask( long handle, unsigned long mask ) #endif { CUsb2canObj *pdrvObj = theApp->getDriverObject( handle ); if ( NULL == pdrvObj ) return 0; return ( pdrvObj->setMask( mask ) ? CANAL_ERROR_SUCCESS : CANAL_ERROR_GENERIC ); } /////////////////////////////////////////////////////////////////////////////// // CanalSetBaudrate // #ifdef WIN32 extern "C" int WINAPI EXPORT CanalSetBaudrate( long handle, unsigned long baudrate ) #else extern "C" int CanalSetBaudrate( long handle, unsigned long baudrate ) #endif { // Not supported in this DLL return CANAL_ERROR_NOT_SUPPORTED; } /////////////////////////////////////////////////////////////////////////////// // CanalGetVersion // #ifdef WIN32 extern "C" unsigned long WINAPI EXPORT CanalGetVersion( void ) #else extern "C" unsigned long CanalGetVersion( void ) #endif { unsigned long version; unsigned char *p = (unsigned char *)&version; *p = CANAL_MAIN_VERSION; *(p+1) = CANAL_MINOR_VERSION; *(p+2) = CANAL_SUB_VERSION; *(p+3) = 0; return version; } /////////////////////////////////////////////////////////////////////////////// // CanalGetDllVersion // #ifdef WIN32 extern "C" unsigned long WINAPI EXPORT CanalGetDllVersion( void ) #else extern "C" unsigned long CanalGetDllVersion( void ) #endif { unsigned long version; unsigned char *p = (unsigned char *)&version; *p = DLL_MAIN_VERSION; *(p+1) = DLL_MINOR_VERSION; *(p+2) = DLL_SUB_VERSION; *(p+3) = 0; return version; } /////////////////////////////////////////////////////////////////////////////// // CanalGetVendorString // #ifdef WIN32 extern "C" const char * WINAPI EXPORT CanalGetVendorString( void ) #else extern "C" const char * CanalGetVendorString( void ) #endif { static char r_str[256]; char tmp_str[20]; CUsb2canObj *pdrvObj = theApp->getDriverObject( 1681 ); if ( NULL == pdrvObj ) return NULL; // return ( pdrvObj->getVendorString()); // strcat( str, ";"); // strcat( str, "www.edevices.lt\0"); //#define CANAL_MAIN_VERSION 1 //#define CANAL_MINOR_VERSION 0 //#define CANAL_SUB_VERSION strcpy( r_str, pdrvObj->getVendorString()); strcat( r_str, ";"); sprintf_s(tmp_str,sizeof(tmp_str),"%d.%d.%d",CANAL_MAIN_VERSION,CANAL_MINOR_VERSION,CANAL_SUB_VERSION); strcat( r_str,tmp_str ); strcat( r_str, ";"); sprintf_s(tmp_str,sizeof(tmp_str),"%d.%d.%d",DLL_MAIN_VERSION,DLL_MINOR_VERSION,DLL_SUB_VERSION); strcat( r_str,tmp_str ); strcat( r_str, ";"); strcat( r_str, "8devices.com\0"); return (r_str); }
[ "krumboeck@universalnet.at" ]
krumboeck@universalnet.at
849891e33a0ed417f501138571724dfa7d0d31c1
2387fa80b247de0138e58d772afe9562e14baa58
/count_way_to_reach_nth_stair.cpp
39f8f94c8220da12ca4cc75723c0d25c5286c791
[]
no_license
sh-saurabh4/geeksforgeeks
b44b3287eb9b67663d8a5ec3e02a8e3af438cd0a
6e8156db02a570e9f2d1a2f4b8fbfb3b298fb1c2
refs/heads/master
2021-01-24T23:25:59.581776
2017-08-28T17:23:49
2017-08-28T17:23:49
68,746,988
0
0
null
null
null
null
UTF-8
C++
false
false
211
cpp
#include<bits/stdc++.h> using namespace std; int fun(int n){ if(n == 1) return 1; if(n == 2) return 2; return fun(n-1)+fun(n-2); } int main(){ int n; cin >> n; cout << fun(n); return 0; }
[ "noreply@github.com" ]
noreply@github.com
3a4b26d34a03c6081f358fda745d6d098cbb06b0
8bf51fff9119823a050125847b2e3caeb4606561
/toolbox/io/Epoll.cpp
2a2a144039b748fe63fd504e04d002083799cb27
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
rfernandes/toolbox-cpp
d2acd91d3414c3a44470049d4b1316b6f91584ed
8722a9a69bad616e905041d4f8d5005a64b96b19
refs/heads/master
2021-08-19T09:24:01.435506
2020-06-17T08:37:20
2020-06-17T10:39:50
191,434,937
1
0
null
2019-06-11T19:13:47
2019-06-11T19:13:47
null
UTF-8
C++
false
false
704
cpp
// The Reactive C++ Toolbox. // Copyright (C) 2013-2019 Swirly Cloud Limited // Copyright (C) 2020 Reactive Markets Limited // // 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. #include "Epoll.hpp"
[ "mark.aylett@reactivemarkets.com" ]
mark.aylett@reactivemarkets.com
e8be4104cc81ae08cd7f670df8f8680ffcbedf69
b64b322a72627be93c05d51e56807603b389146a
/arduinoHexagon.ino
506781f24b37aaeab766818c4deee5c4d3b255e7
[]
no_license
rayhanzph/Led-Matrix
a2d9af0b966e5fd1670e479a9d456abcf8cdea40
251d25e002868034837e97b52a5f763fa4932910
refs/heads/master
2021-10-15T18:48:52.231953
2019-02-05T18:13:54
2019-02-05T18:13:54
154,285,059
0
0
null
null
null
null
UTF-8
C++
false
false
2,297
ino
const int rows[] = { 0, 1, 2, 3, 4, 5, 6 }; const int cols[] = { 13, 12, 11, 10, 9, 8, 7 }; const int led[37][2] = { {0, 3}, {1, 4}, {2, 5}, {3, 6}, {0, 2}, {1, 3}, {2, 4}, {3, 5}, {4, 6}, {0, 1}, {1, 2}, {2, 3}, {3, 4}, {4, 5}, {5, 6}, {0, 0}, {1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}, {6, 6}, {1, 0}, {2, 1}, {3, 2}, {4, 3}, {5, 4}, {6, 5}, {2, 0}, {3, 1}, {4, 2}, {5, 3}, {6, 4}, {3, 0}, {4, 1}, {5, 2}, {6, 3} }; // letter // index 0 berisi panjang array int A[] = {12, 6, 11, 12, 17, 19, 23, 24, 25, 26, 28, 32}; int B[] = {12, 5, 6, 7, 13, 17, 18, 19, 26, 29, 30, 31}; int C[] = {10, 5, 6, 7, 10, 16, 23, 29, 30, 31}; int D[] = {11, 5, 6, 7, 13, 17, 20, 26, 29, 30, 31}; int N[] = {11, 5, 8, 10, 11, 13, 16, 18, 19, 22, 25}; int E[] = {12, 5, 6, 7, 10, 17, 18, 19, 23, 29, 30, 31}; int H[] = {13, 5, 7, 8, 10, 13, 17, 18, 19, 23, 26, 28, 31}; int HI[] = {13, 4, 8, 9, 10, 13, 14, 15, 17, 19, 21, 24, 25}; int S[] = {12, 5, 6, 7, 10, 17, 18, 19, 26, 29, 30, 31}; int M[] = {12, 5, 7, 10, 11, 12, 13, 16, 18, 20, 22, 27}; int G[] = {12, 5, 6, 7, 10, 16, 19, 23, 26, 29, 30, 31}; int T[] = {8, 10, 11, 12, 13, 18, 24, 30}; void setup() { // put your setup code here, to run once: for(int i = 0; i < 7; i++){ pinMode(rows[i], OUTPUT); pinMode(cols[i], OUTPUT); } } int timeCount = 0; void loop() { // put your main code here, to run repeatedly: timeCount += 2; if(timeCount < 200){ draw(A); }else if(timeCount < 400){ draw(N); }else if(timeCount < 600){ draw(E); }else if(timeCount < 800){ draw(H); }else if(timeCount < 1000){ draw(HI); }else{ delay(1000); timeCount = 0; } } void draw(int alphabet[]){ for(int i = 0; i < 37; i++){ digitalWrite(rows[led[i][0]], HIGH); digitalWrite(cols[led[i][1]], LOW); } for(int i = 1; i < alphabet[0]; i++){ digitalWrite(rows[led[alphabet[i]][0]], LOW); digitalWrite(cols[led[alphabet[i]][1]], HIGH); delay(1); digitalWrite(rows[led[alphabet[i]][0]], HIGH); digitalWrite(cols[led[alphabet[i]][1]], LOW); } }
[ "noreply@github.com" ]
noreply@github.com
c30a464a9d47d049c757e4a7af164e54f7be9c21
cefd6c17774b5c94240d57adccef57d9bba4a2e9
/WebKit/Source/JavaScriptCore/runtime/Error.cpp
c7ac3a585649d37e658726a634a8c466a4882e2d
[ "BSL-1.0" ]
permissive
adzhou/oragle
9c054c25b24ff0a65cb9639bafd02aac2bcdce8b
5442d418b87d0da161429ffa5cb83777e9b38e4d
refs/heads/master
2022-11-01T05:04:59.368831
2014-03-12T15:50:08
2014-03-12T15:50:08
17,238,063
0
1
BSL-1.0
2022-10-18T04:23:53
2014-02-27T05:39:44
C++
UTF-8
C++
false
false
5,753
cpp
/* * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) * Copyright (C) 2001 Peter Kelly (pmk@post.com) * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. * Copyright (C) 2007 Eric Seidel (eric@webkit.org) * * 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; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #include "config.h" #include "Error.h" #include "ConstructData.h" #include "ErrorConstructor.h" #include "ExceptionHelpers.h" #include "FunctionPrototype.h" #include "JSArray.h" #include "JSFunction.h" #include "JSGlobalObject.h" #include "JSObject.h" #include "JSString.h" #include "NativeErrorConstructor.h" #include "JSCInlines.h" #include "SourceCode.h" #include <wtf/text/StringBuilder.h> namespace JSC { static const char* linePropertyName = "line"; static const char* sourceURLPropertyName = "sourceURL"; JSObject* createError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->errorStructure(), message); } JSObject* createEvalError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->evalErrorConstructor()->errorStructure(), message); } JSObject* createRangeError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->rangeErrorConstructor()->errorStructure(), message); } JSObject* createReferenceError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->referenceErrorConstructor()->errorStructure(), message); } JSObject* createSyntaxError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->syntaxErrorConstructor()->errorStructure(), message); } JSObject* createTypeError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->typeErrorConstructor()->errorStructure(), message); } JSObject* createNotEnoughArgumentsError(JSGlobalObject* globalObject) { return createTypeError(globalObject, ASCIILiteral("Not enough arguments")); } JSObject* createURIError(JSGlobalObject* globalObject, const String& message) { ASSERT(!message.isEmpty()); return ErrorInstance::create(globalObject->vm(), globalObject->URIErrorConstructor()->errorStructure(), message); } JSObject* createError(ExecState* exec, const String& message) { return createError(exec->lexicalGlobalObject(), message); } JSObject* createEvalError(ExecState* exec, const String& message) { return createEvalError(exec->lexicalGlobalObject(), message); } JSObject* createRangeError(ExecState* exec, const String& message) { return createRangeError(exec->lexicalGlobalObject(), message); } JSObject* createReferenceError(ExecState* exec, const String& message) { return createReferenceError(exec->lexicalGlobalObject(), message); } JSObject* createSyntaxError(ExecState* exec, const String& message) { return createSyntaxError(exec->lexicalGlobalObject(), message); } JSObject* createTypeError(ExecState* exec, const String& message) { return createTypeError(exec->lexicalGlobalObject(), message); } JSObject* createNotEnoughArgumentsError(ExecState* exec) { return createNotEnoughArgumentsError(exec->lexicalGlobalObject()); } JSObject* createURIError(ExecState* exec, const String& message) { return createURIError(exec->lexicalGlobalObject(), message); } JSObject* addErrorInfo(CallFrame* callFrame, JSObject* error, int line, const SourceCode& source) { VM* vm = &callFrame->vm(); const String& sourceURL = source.provider()->url(); if (line != -1) error->putDirect(*vm, Identifier(vm, linePropertyName), jsNumber(line), ReadOnly | DontDelete); if (!sourceURL.isNull()) error->putDirect(*vm, Identifier(vm, sourceURLPropertyName), jsString(vm, sourceURL), ReadOnly | DontDelete); return error; } bool hasErrorInfo(ExecState* exec, JSObject* error) { return error->hasProperty(exec, Identifier(exec, linePropertyName)) || error->hasProperty(exec, Identifier(exec, sourceURLPropertyName)); } JSObject* throwTypeError(ExecState* exec) { return exec->vm().throwException(exec, createTypeError(exec, ASCIILiteral("Type error"))); } JSObject* throwSyntaxError(ExecState* exec) { return exec->vm().throwException(exec, createSyntaxError(exec, ASCIILiteral("Syntax error"))); } const ClassInfo StrictModeTypeErrorFunction::s_info = { "Function", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(StrictModeTypeErrorFunction) }; void StrictModeTypeErrorFunction::destroy(JSCell* cell) { static_cast<StrictModeTypeErrorFunction*>(cell)->StrictModeTypeErrorFunction::~StrictModeTypeErrorFunction(); } } // namespace JSC
[ "adzhou@hp.com" ]
adzhou@hp.com
9dafe8160912d06dbc1d1d59305355ef25d1220e
316934c3aceaea20b9aee92080349d798fc7a3e0
/lib/Core/RuntimeFactory.cpp
f10fa5a5a992f193076c28fd936bc0f138c3d1ef
[]
no_license
multics69/danbi
6cea5c670d9979a635db7e876f82e4e3348efee7
da4c0c52bd13d5fb0987dd001209864a4babe3b6
refs/heads/master
2021-01-10T06:52:38.334783
2019-01-23T17:17:04
2019-01-23T17:17:04
46,774,091
2
0
null
null
null
null
UTF-8
C++
false
false
1,372
cpp
/* --*- C++ -*- Copyright (C) 2012 Changwoo Min. All Rights Reserved. This file is part of DANBI project. NOTICE: All information contained herein is, and remains the property of Changwoo Min. The intellectual and technical concepts contained herein are proprietary to Changwoo Min and may be covered by patents or patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Changwoo Min(multics69@gmail.com). RuntimeFactory.cpp -- Object factory class for danbi runtime */ #include <cstdlib> #include "Core/RuntimeFactory.h" #include "Core/AllCPUPartitioner.h" #include "Core/DistributedDynamicScheduler.h" using namespace danbi; Runtime* RuntimeFactory::newRuntime(Program* Pgm, int NumCore) { Runtime* Rtm; AllCPUPartitioner* Partitioner; DistributedDynamicScheduler* Scheduler; if ( !(Rtm = new Runtime()) ) return NULL; if ( !(Partitioner = new AllCPUPartitioner(*Rtm, *Pgm, NumCore)) ) goto error; if ( !(Scheduler = new DistributedDynamicScheduler(*Rtm, *Pgm)) ) goto error; if ( Rtm->loadProgram(Pgm, Partitioner, Scheduler) ) goto error; return Rtm; error: delete Rtm; return NULL; }
[ "changwoo@gatech.edu" ]
changwoo@gatech.edu
a7d405386d7678838af85a1f66024eaec8709ca8
379e7f28735472f6529cf1ba62667ed2e8a557c4
/ExylorOriginal/src/gui/Treeview.h
6d4ab9fbe49ebb5342f28a86775714fb087dbe74
[]
no_license
Stas777/Exsylor
2461e6d59c48fa7805db4370fee0697fb5005297
97d840a69e76545c515bdd299c9c2f270a70dad9
refs/heads/master
2021-01-10T20:19:00.192105
2014-09-01T11:55:57
2014-09-01T11:55:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,752
h
// treeview.h : interface of the CTreeView class // 17.05.2007 ///////////////////////////////////////////////////////////////////////////// class CTreeView : public CTrBzView { protected: // create from serialization only CTreeView(); DECLARE_DYNCREATE(CTreeView) // Attributes public: inline CScriptDoc* GetDocument() { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CScriptDoc))); return (CScriptDoc*) m_pDocument; } // Operations void NextView(); void ChangeColorRow(int nRow); void OnActivateView( BOOL bActivate, CView* pActivateView, CView* pDeactiveView); // Overridables void GetRowWidthHeight(CDC* pDC, int& nRowWidth, int& nRowHeight); int GetActiveRow(); int GetRowCount(); void OnDrawRowWithSel(CDC* pDC, int nRow, int y, BOOL bSelected); void ChangeSelectionNextRow(BOOL bNext); void ChangeSelectionToRow(int nRow); // Implementation protected: // standard overrides of MFC classes void OnUpdate(CView* pSender, LPARAM lHint = 0L, CObject* pHint = NULL); public: virtual ~CTreeView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CTreeView) afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // class CTrRegView ///////////////////////////////////////////////////////////////////////////// class CTrRegView : public CTrBzView { protected: // create from serialization only CTrRegView(); DECLARE_DYNCREATE(CTrRegView) // Operations void NextView(); // Attributes public: inline CScriptDoc* GetDocument() { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CScriptDoc))); return (CScriptDoc*) m_pDocument; } void GetRowWidthHeight(CDC* pDC, int& nRowWidth, int& nRowHeight); void ChangeColorRow(int nRow); void WriteReg(); void OnActivateView( BOOL bActivate, CView* pActivateView, CView* pDeactiveView); int GetActiveRow(); int GetRowCount(); // Overridables protected: void OnDrawRowWithSel(CDC* pDC, int nRow, int y, BOOL bSelected); void ChangeSelectionNextRow(BOOL bNext); void ChangeSelectionToRow(int nRow); // Implementation protected: // standard overrides of MFC classes void OnUpdate(CView* pSender, LPARAM lHint = 0L, CObject* pHint = NULL); // Implementation public: virtual ~CTrRegView(); // Generated message map functions protected: //{{AFX_MSG(CTrRegView) afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // class CTrObView ///////////////////////////////////////////////////////////////////////////// class CTrObView : public CTrBzView { protected: // create from serialization only CTrObView(); DECLARE_DYNCREATE(CTrObView) // Attributes public: inline CScriptDoc* GetDocument() { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CScriptDoc))); return (CScriptDoc*) m_pDocument; } // Operations void NextView(); void ChangeColorRow(int nRow); void OnActivateView( BOOL bActivate, CView* pActivateView, CView* pDeactiveView); // Overridables void GetRowWidthHeight(CDC* pDC, int& nRowWidth, int& nRowHeight); int GetActiveRow(); int GetRowCount(); void OnDrawRowWithSel(CDC* pDC, int nRow, int y, BOOL bSelected); void ChangeSelectionNextRow(BOOL bNext); void ChangeSelectionToRow(int nRow); // Implementation protected: // standard overrides of MFC classes void OnUpdate(CView* pSender, LPARAM lHint = 0L, CObject* pHint = NULL); public: virtual ~CTrObView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CTrObView) afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /////////////////////////////////////////////////////////////////////////////
[ "staspetrovichbsu@gmail.com" ]
staspetrovichbsu@gmail.com
ab5f251f5bc44b3ec069330d93df9e93a719238d
711e5c8b643dd2a93fbcbada982d7ad489fb0169
/XPSP1/NT/shell/shell32/tngen/jdcoefct.cpp
516ed89627f7d58fbed0d9050fcca6df22911bba
[]
no_license
aurantst/windows-XP-SP1
629a7763c082fd04d3b881e0d32a1cfbd523b5ce
d521b6360fcff4294ae6c5651c539f1b9a6cbb49
refs/heads/master
2023-03-21T01:08:39.870106
2020-09-28T08:10:11
2020-09-28T08:10:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
25,913
cpp
#include "stdafx.h" #pragma hdrstop /* * jdcoefct.c * * Copyright (C) 1994-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains the coefficient buffer controller for decompression. * This controller is the top level of the JPEG decompressor proper. * The coefficient buffer lies between entropy decoding and inverse-DCT steps. * * In buffered-image mode, this controller is the interface between * input-oriented processing and output-oriented processing. * Also, the input side (only) is used when reading a file for transcoding. */ #define JPEG_INTERNALS #include "jinclude.h" #include "jpeglib.h" /* Block smoothing is only applicable for progressive JPEG, so: */ #ifndef D_PROGRESSIVE_SUPPORTED #undef BLOCK_SMOOTHING_SUPPORTED #endif /* Private buffer controller object */ typedef struct { struct jpeg_d_coef_controller pub; /* public fields */ /* These variables keep track of the current location of the input side. */ /* cinfo->input_iMCU_row is also used for this. */ JDIMENSION MCU_ctr; /* counts MCUs processed in current row */ int MCU_vert_offset; /* counts MCU rows within iMCU row */ int MCU_rows_per_iMCU_row; /* number of such rows needed */ /* The output side's location is represented by cinfo->output_iMCU_row. */ /* In single-pass modes, it's sufficient to buffer just one MCU. * We allocate a workspace of D_MAX_BLOCKS_IN_MCU coefficient blocks, * and let the entropy decoder write into that workspace each time. * (On 80x86, the workspace is FAR even though it's not really very big; * this is to keep the module interfaces unchanged when a large coefficient * buffer is necessary.) * In multi-pass modes, this array points to the current MCU's blocks * within the virtual arrays; it is used only by the input side. */ JBLOCKROW MCU_buffer[D_MAX_BLOCKS_IN_MCU]; #ifdef D_MULTISCAN_FILES_SUPPORTED /* In multi-pass modes, we need a virtual block array for each component. */ jvirt_barray_ptr whole_image[MAX_COMPONENTS]; #endif #ifdef BLOCK_SMOOTHING_SUPPORTED /* When doing block smoothing, we latch coefficient Al values here */ int * coef_bits_latch; #define SAVED_COEFS 6 /* we save coef_bits[0..5] */ #endif } my_coef_controller; typedef my_coef_controller * my_coef_ptr; /* Forward declarations */ METHODDEF(int) decompress_onepass JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); #ifdef D_MULTISCAN_FILES_SUPPORTED METHODDEF(int) decompress_data JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); #endif #ifdef BLOCK_SMOOTHING_SUPPORTED LOCAL(boolean) smoothing_ok JPP((j_decompress_ptr cinfo)); METHODDEF(int) decompress_smooth_data JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); #endif LOCAL(void) start_iMCU_row (j_decompress_ptr cinfo) /* Reset within-iMCU-row counters for a new row (input side) */ { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; /* In an interleaved scan, an MCU row is the same as an iMCU row. * In a noninterleaved scan, an iMCU row has v_samp_factor MCU rows. * But at the bottom of the image, process only what's left. */ if (cinfo->comps_in_scan > 1) { coef->MCU_rows_per_iMCU_row = 1; } else { if (cinfo->input_iMCU_row < (cinfo->total_iMCU_rows-1)) coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->v_samp_factor; else coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->last_row_height; } coef->MCU_ctr = 0; coef->MCU_vert_offset = 0; } /* * Initialize for an input processing pass. */ METHODDEF(void) start_input_pass (j_decompress_ptr cinfo) { cinfo->input_iMCU_row = 0; start_iMCU_row(cinfo); } /* * Initialize for an output processing pass. */ METHODDEF(void) start_output_pass (j_decompress_ptr cinfo) { #ifdef BLOCK_SMOOTHING_SUPPORTED my_coef_ptr coef = (my_coef_ptr) cinfo->coef; /* If multipass, check to see whether to use block smoothing on this pass */ if (coef->pub.coef_arrays != NULL) { if (cinfo->do_block_smoothing && smoothing_ok(cinfo)) coef->pub.decompress_data = decompress_smooth_data; else coef->pub.decompress_data = decompress_data; } #endif cinfo->output_iMCU_row = 0; } /* * Decompress and return some data in the single-pass case. * Always attempts to emit one fully interleaved MCU row ("iMCU" row). * Input and output must run in lockstep since we have only a one-MCU buffer. * Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED. * * NB: output_buf contains a plane for each component in image. * For single pass, this is the same as the components in the scan. */ METHODDEF(int) decompress_onepass (j_decompress_ptr cinfo, JSAMPIMAGE output_buf) { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; JDIMENSION MCU_col_num; /* index of current MCU within row */ JDIMENSION last_MCU_col = cinfo->MCUs_per_row - 1; JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1; int blkn, ci, xindex, yindex, yoffset, useful_width; JSAMPARRAY output_ptr; JDIMENSION start_col, output_col; jpeg_component_info *compptr; inverse_DCT_method_ptr inverse_DCT; /* Loop to process as much as one whole iMCU row */ for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row; yoffset++) { for (MCU_col_num = coef->MCU_ctr; MCU_col_num <= last_MCU_col; MCU_col_num++) { /* Try to fetch an MCU. Entropy decoder expects buffer to be zeroed. */ jzero_far((void FAR *) coef->MCU_buffer[0], (size_t) (cinfo->blocks_in_MCU * SIZEOF(JBLOCK))); if (! (*cinfo->entropy->decode_mcu) (cinfo, coef->MCU_buffer)) { /* Suspension forced; update state counters and exit */ coef->MCU_vert_offset = yoffset; coef->MCU_ctr = MCU_col_num; return JPEG_SUSPENDED; } /* Determine where data should go in output_buf and do the IDCT thing. * We skip dummy blocks at the right and bottom edges (but blkn gets * incremented past them!). Note the inner loop relies on having * allocated the MCU_buffer[] blocks sequentially. */ blkn = 0; /* index of current DCT block within MCU */ for (ci = 0; ci < cinfo->comps_in_scan; ci++) { compptr = cinfo->cur_comp_info[ci]; /* Don't bother to IDCT an uninteresting component. */ if (! compptr->component_needed) { blkn += compptr->MCU_blocks; continue; } inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width : compptr->last_col_width; output_ptr = output_buf[ci] + yoffset * compptr->DCT_scaled_size; start_col = MCU_col_num * compptr->MCU_sample_width; for (yindex = 0; yindex < compptr->MCU_height; yindex++) { if (cinfo->input_iMCU_row < last_iMCU_row || yoffset+yindex < compptr->last_row_height) { output_col = start_col; for (xindex = 0; xindex < useful_width; xindex++) { (*inverse_DCT) (cinfo, compptr, (JCOEFPTR) coef->MCU_buffer[blkn+xindex], output_ptr, output_col); output_col += compptr->DCT_scaled_size; } } blkn += compptr->MCU_width; output_ptr += compptr->DCT_scaled_size; } } } /* Completed an MCU row, but perhaps not an iMCU row */ coef->MCU_ctr = 0; } /* Completed the iMCU row, advance counters for next one */ cinfo->output_iMCU_row++; if (++(cinfo->input_iMCU_row) < cinfo->total_iMCU_rows) { start_iMCU_row(cinfo); return JPEG_ROW_COMPLETED; } /* Completed the scan */ (*cinfo->inputctl->finish_input_pass) (cinfo); return JPEG_SCAN_COMPLETED; } /* * Dummy consume-input routine for single-pass operation. */ METHODDEF(int) dummy_consume_data (j_decompress_ptr cinfo) { return JPEG_SUSPENDED; /* Always indicate nothing was done */ } #ifdef D_MULTISCAN_FILES_SUPPORTED /* * Consume input data and store it in the full-image coefficient buffer. * We read as much as one fully interleaved MCU row ("iMCU" row) per call, * ie, v_samp_factor block rows for each component in the scan. * Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED. */ METHODDEF(int) consume_data (j_decompress_ptr cinfo) { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; JDIMENSION MCU_col_num; /* index of current MCU within row */ int blkn, ci, xindex, yindex, yoffset; JDIMENSION start_col; JBLOCKARRAY buffer[MAX_COMPS_IN_SCAN]; JBLOCKROW buffer_ptr; jpeg_component_info *compptr; /* Align the virtual buffers for the components used in this scan. */ for (ci = 0; ci < cinfo->comps_in_scan; ci++) { compptr = cinfo->cur_comp_info[ci]; buffer[ci] = (*cinfo->mem->access_virt_barray) ((j_common_ptr) cinfo, coef->whole_image[compptr->component_index], cinfo->input_iMCU_row * compptr->v_samp_factor, (JDIMENSION) compptr->v_samp_factor, TRUE); /* Note: entropy decoder expects buffer to be zeroed, * but this is handled automatically by the memory manager * because we requested a pre-zeroed array. */ } /* Loop to process one whole iMCU row */ for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row; yoffset++) { for (MCU_col_num = coef->MCU_ctr; MCU_col_num < cinfo->MCUs_per_row; MCU_col_num++) { /* Construct list of pointers to DCT blocks belonging to this MCU */ blkn = 0; /* index of current DCT block within MCU */ for (ci = 0; ci < cinfo->comps_in_scan; ci++) { compptr = cinfo->cur_comp_info[ci]; start_col = MCU_col_num * compptr->MCU_width; for (yindex = 0; yindex < compptr->MCU_height; yindex++) { buffer_ptr = buffer[ci][yindex+yoffset] + start_col; for (xindex = 0; xindex < compptr->MCU_width; xindex++) { coef->MCU_buffer[blkn++] = buffer_ptr++; } } } /* Try to fetch the MCU. */ if (! (*cinfo->entropy->decode_mcu) (cinfo, coef->MCU_buffer)) { /* Suspension forced; update state counters and exit */ coef->MCU_vert_offset = yoffset; coef->MCU_ctr = MCU_col_num; return JPEG_SUSPENDED; } } /* Completed an MCU row, but perhaps not an iMCU row */ coef->MCU_ctr = 0; } /* Completed the iMCU row, advance counters for next one */ if (++(cinfo->input_iMCU_row) < cinfo->total_iMCU_rows) { start_iMCU_row(cinfo); return JPEG_ROW_COMPLETED; } /* Completed the scan */ (*cinfo->inputctl->finish_input_pass) (cinfo); return JPEG_SCAN_COMPLETED; } /* * Decompress and return some data in the multi-pass case. * Always attempts to emit one fully interleaved MCU row ("iMCU" row). * Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED. * * NB: output_buf contains a plane for each component in image. */ METHODDEF(int) decompress_data (j_decompress_ptr cinfo, JSAMPIMAGE output_buf) { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1; JDIMENSION block_num; int ci, block_row, block_rows; JBLOCKARRAY buffer; JBLOCKROW buffer_ptr; JSAMPARRAY output_ptr; JDIMENSION output_col; jpeg_component_info *compptr; inverse_DCT_method_ptr inverse_DCT; /* Force some input to be done if we are getting ahead of the input. */ while (cinfo->input_scan_number < cinfo->output_scan_number || (cinfo->input_scan_number == cinfo->output_scan_number && cinfo->input_iMCU_row <= cinfo->output_iMCU_row)) { if ((*cinfo->inputctl->consume_input)(cinfo) == JPEG_SUSPENDED) return JPEG_SUSPENDED; } /* OK, output from the virtual arrays. */ for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; ci++, compptr++) { /* Don't bother to IDCT an uninteresting component. */ if (! compptr->component_needed) continue; /* Align the virtual buffer for this component. */ buffer = (*cinfo->mem->access_virt_barray) ((j_common_ptr) cinfo, coef->whole_image[ci], cinfo->output_iMCU_row * compptr->v_samp_factor, (JDIMENSION) compptr->v_samp_factor, FALSE); /* Count non-dummy DCT block rows in this iMCU row. */ if (cinfo->output_iMCU_row < last_iMCU_row) block_rows = compptr->v_samp_factor; else { /* NB: can't use last_row_height here; it is input-side-dependent! */ block_rows = (int) (compptr->height_in_blocks % compptr->v_samp_factor); if (block_rows == 0) block_rows = compptr->v_samp_factor; } inverse_DCT = cinfo->idct->inverse_DCT[ci]; output_ptr = output_buf[ci]; /* Loop over all DCT blocks to be processed. */ for (block_row = 0; block_row < block_rows; block_row++) { buffer_ptr = buffer[block_row]; output_col = 0; for (block_num = 0; block_num < compptr->width_in_blocks; block_num++) { (*inverse_DCT) (cinfo, compptr, (JCOEFPTR) buffer_ptr, output_ptr, output_col); buffer_ptr++; output_col += compptr->DCT_scaled_size; } output_ptr += compptr->DCT_scaled_size; } } if (++(cinfo->output_iMCU_row) < cinfo->total_iMCU_rows) return JPEG_ROW_COMPLETED; return JPEG_SCAN_COMPLETED; } #endif /* D_MULTISCAN_FILES_SUPPORTED */ #ifdef BLOCK_SMOOTHING_SUPPORTED /* * This code applies interblock smoothing as described by section K.8 * of the JPEG standard: the first 5 AC coefficients are estimated from * the DC values of a DCT block and its 8 neighboring blocks. * We apply smoothing only for progressive JPEG decoding, and only if * the coefficients it can estimate are not yet known to full precision. */ /* Natural-order array positions of the first 5 zigzag-order coefficients */ #define Q01_POS 1 #define Q10_POS 8 #define Q20_POS 16 #define Q11_POS 9 #define Q02_POS 2 /* * Determine whether block smoothing is applicable and safe. * We also latch the current states of the coef_bits[] entries for the * AC coefficients; otherwise, if the input side of the decompressor * advances into a new scan, we might think the coefficients are known * more accurately than they really are. */ LOCAL(boolean) smoothing_ok (j_decompress_ptr cinfo) { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; boolean smoothing_useful = FALSE; int ci, coefi; jpeg_component_info *compptr; JQUANT_TBL * qtable; int * coef_bits; int * coef_bits_latch; if (! cinfo->progressive_mode || cinfo->coef_bits == NULL) return FALSE; /* Allocate latch area if not already done */ if (coef->coef_bits_latch == NULL) coef->coef_bits_latch = (int *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, cinfo->num_components * (SAVED_COEFS * SIZEOF(int))); coef_bits_latch = coef->coef_bits_latch; for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; ci++, compptr++) { /* All components' quantization values must already be latched. */ if ((qtable = compptr->quant_table) == NULL) return FALSE; /* Verify DC & first 5 AC quantizers are nonzero to avoid zero-divide. */ if (qtable->quantval[0] == 0 || qtable->quantval[Q01_POS] == 0 || qtable->quantval[Q10_POS] == 0 || qtable->quantval[Q20_POS] == 0 || qtable->quantval[Q11_POS] == 0 || qtable->quantval[Q02_POS] == 0) return FALSE; /* DC values must be at least partly known for all components. */ coef_bits = cinfo->coef_bits[ci]; if (coef_bits[0] < 0) return FALSE; /* Block smoothing is helpful if some AC coefficients remain inaccurate. */ for (coefi = 1; coefi <= 5; coefi++) { coef_bits_latch[coefi] = coef_bits[coefi]; if (coef_bits[coefi] != 0) smoothing_useful = TRUE; } coef_bits_latch += SAVED_COEFS; } return smoothing_useful; } /* * Variant of decompress_data for use when doing block smoothing. */ METHODDEF(int) decompress_smooth_data (j_decompress_ptr cinfo, JSAMPIMAGE output_buf) { my_coef_ptr coef = (my_coef_ptr) cinfo->coef; JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1; JDIMENSION block_num, last_block_column; int ci, block_row, block_rows, access_rows; JBLOCKARRAY buffer; JBLOCKROW buffer_ptr, prev_block_row, next_block_row; JSAMPARRAY output_ptr; JDIMENSION output_col; jpeg_component_info *compptr; inverse_DCT_method_ptr inverse_DCT; boolean first_row, last_row; JBLOCK workspace; int *coef_bits; JQUANT_TBL *quanttbl; INT32 Q00,Q01,Q02,Q10,Q11,Q20, num; int DC1,DC2,DC3,DC4,DC5,DC6,DC7,DC8,DC9; int Al, pred; /* Force some input to be done if we are getting ahead of the input. */ while (cinfo->input_scan_number <= cinfo->output_scan_number && ! cinfo->inputctl->eoi_reached) { if (cinfo->input_scan_number == cinfo->output_scan_number) { /* If input is working on current scan, we ordinarily want it to * have completed the current row. But if input scan is DC, * we want it to keep one row ahead so that next block row's DC * values are up to date. */ JDIMENSION delta = (cinfo->Ss == 0) ? 1 : 0; if (cinfo->input_iMCU_row > cinfo->output_iMCU_row+delta) break; } if ((*cinfo->inputctl->consume_input)(cinfo) == JPEG_SUSPENDED) return JPEG_SUSPENDED; } /* OK, output from the virtual arrays. */ for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; ci++, compptr++) { /* Don't bother to IDCT an uninteresting component. */ if (! compptr->component_needed) continue; /* Count non-dummy DCT block rows in this iMCU row. */ if (cinfo->output_iMCU_row < last_iMCU_row) { block_rows = compptr->v_samp_factor; access_rows = block_rows * 2; /* this and next iMCU row */ last_row = FALSE; } else { /* NB: can't use last_row_height here; it is input-side-dependent! */ block_rows = (int) (compptr->height_in_blocks % compptr->v_samp_factor); if (block_rows == 0) block_rows = compptr->v_samp_factor; access_rows = block_rows; /* this iMCU row only */ last_row = TRUE; } /* Align the virtual buffer for this component. */ if (cinfo->output_iMCU_row > 0) { access_rows += compptr->v_samp_factor; /* prior iMCU row too */ buffer = (*cinfo->mem->access_virt_barray) ((j_common_ptr) cinfo, coef->whole_image[ci], (cinfo->output_iMCU_row - 1) * compptr->v_samp_factor, (JDIMENSION) access_rows, FALSE); buffer += compptr->v_samp_factor; /* point to current iMCU row */ first_row = FALSE; } else { buffer = (*cinfo->mem->access_virt_barray) ((j_common_ptr) cinfo, coef->whole_image[ci], (JDIMENSION) 0, (JDIMENSION) access_rows, FALSE); first_row = TRUE; } /* Fetch component-dependent info */ coef_bits = coef->coef_bits_latch + (ci * SAVED_COEFS); quanttbl = compptr->quant_table; Q00 = quanttbl->quantval[0]; Q01 = quanttbl->quantval[Q01_POS]; Q10 = quanttbl->quantval[Q10_POS]; Q20 = quanttbl->quantval[Q20_POS]; Q11 = quanttbl->quantval[Q11_POS]; Q02 = quanttbl->quantval[Q02_POS]; inverse_DCT = cinfo->idct->inverse_DCT[ci]; output_ptr = output_buf[ci]; /* Loop over all DCT blocks to be processed. */ for (block_row = 0; block_row < block_rows; block_row++) { buffer_ptr = buffer[block_row]; if (first_row && block_row == 0) prev_block_row = buffer_ptr; else prev_block_row = buffer[block_row-1]; if (last_row && block_row == block_rows-1) next_block_row = buffer_ptr; else next_block_row = buffer[block_row+1]; /* We fetch the surrounding DC values using a sliding-register approach. * Initialize all nine here so as to do the right thing on narrow pics. */ DC1 = DC2 = DC3 = (int) prev_block_row[0][0]; DC4 = DC5 = DC6 = (int) buffer_ptr[0][0]; DC7 = DC8 = DC9 = (int) next_block_row[0][0]; output_col = 0; last_block_column = compptr->width_in_blocks - 1; for (block_num = 0; block_num <= last_block_column; block_num++) { /* Fetch current DCT block into workspace so we can modify it. */ jcopy_block_row(buffer_ptr, (JBLOCKROW) workspace, (JDIMENSION) 1); /* Update DC values */ if (block_num < last_block_column) { DC3 = (int) prev_block_row[1][0]; DC6 = (int) buffer_ptr[1][0]; DC9 = (int) next_block_row[1][0]; } /* Compute coefficient estimates per K.8. * An estimate is applied only if coefficient is still zero, * and is not known to be fully accurate. */ /* AC01 */ if ((Al=coef_bits[1]) != 0 && workspace[1] == 0) { num = 36 * Q00 * (DC4 - DC6); if (num >= 0) { pred = (int) (((Q01<<7) + num) / (Q01<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; } else { pred = (int) (((Q01<<7) - num) / (Q01<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; pred = -pred; } workspace[1] = (JCOEF) pred; } /* AC10 */ if ((Al=coef_bits[2]) != 0 && workspace[8] == 0) { num = 36 * Q00 * (DC2 - DC8); if (num >= 0) { pred = (int) (((Q10<<7) + num) / (Q10<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; } else { pred = (int) (((Q10<<7) - num) / (Q10<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; pred = -pred; } workspace[8] = (JCOEF) pred; } /* AC20 */ if ((Al=coef_bits[3]) != 0 && workspace[16] == 0) { num = 9 * Q00 * (DC2 + DC8 - 2*DC5); if (num >= 0) { pred = (int) (((Q20<<7) + num) / (Q20<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; } else { pred = (int) (((Q20<<7) - num) / (Q20<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; pred = -pred; } workspace[16] = (JCOEF) pred; } /* AC11 */ if ((Al=coef_bits[4]) != 0 && workspace[9] == 0) { num = 5 * Q00 * (DC1 - DC3 - DC7 + DC9); if (num >= 0) { pred = (int) (((Q11<<7) + num) / (Q11<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; } else { pred = (int) (((Q11<<7) - num) / (Q11<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; pred = -pred; } workspace[9] = (JCOEF) pred; } /* AC02 */ if ((Al=coef_bits[5]) != 0 && workspace[2] == 0) { num = 9 * Q00 * (DC4 + DC6 - 2*DC5); if (num >= 0) { pred = (int) (((Q02<<7) + num) / (Q02<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; } else { pred = (int) (((Q02<<7) - num) / (Q02<<8)); if (Al > 0 && pred >= (1<<Al)) pred = (1<<Al)-1; pred = -pred; } workspace[2] = (JCOEF) pred; } /* OK, do the IDCT */ (*inverse_DCT) (cinfo, compptr, (JCOEFPTR) workspace, output_ptr, output_col); /* Advance for next column */ DC1 = DC2; DC2 = DC3; DC4 = DC5; DC5 = DC6; DC7 = DC8; DC8 = DC9; buffer_ptr++, prev_block_row++, next_block_row++; output_col += compptr->DCT_scaled_size; } output_ptr += compptr->DCT_scaled_size; } } if (++(cinfo->output_iMCU_row) < cinfo->total_iMCU_rows) return JPEG_ROW_COMPLETED; return JPEG_SCAN_COMPLETED; } #endif /* BLOCK_SMOOTHING_SUPPORTED */ /* * Initialize coefficient buffer controller. */ GLOBAL(void) jinit_d_coef_controller (j_decompress_ptr cinfo, boolean need_full_buffer) { my_coef_ptr coef; coef = (my_coef_ptr) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, SIZEOF(my_coef_controller)); cinfo->coef = (struct jpeg_d_coef_controller *) coef; coef->pub.start_input_pass = start_input_pass; coef->pub.start_output_pass = start_output_pass; #ifdef BLOCK_SMOOTHING_SUPPORTED coef->coef_bits_latch = NULL; #endif /* Create the coefficient buffer. */ if (need_full_buffer) { #ifdef D_MULTISCAN_FILES_SUPPORTED /* Allocate a full-image virtual array for each component, */ /* padded to a multiple of samp_factor DCT blocks in each direction. */ /* Note we ask for a pre-zeroed array. */ int ci, access_rows; jpeg_component_info *compptr; for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; ci++, compptr++) { access_rows = compptr->v_samp_factor; #ifdef BLOCK_SMOOTHING_SUPPORTED /* If block smoothing could be used, need a bigger window */ if (cinfo->progressive_mode) access_rows *= 3; #endif coef->whole_image[ci] = (*cinfo->mem->request_virt_barray) ((j_common_ptr) cinfo, JPOOL_IMAGE, TRUE, (JDIMENSION) jround_up((long) compptr->width_in_blocks, (long) compptr->h_samp_factor), (JDIMENSION) jround_up((long) compptr->height_in_blocks, (long) compptr->v_samp_factor), (JDIMENSION) access_rows); } coef->pub.consume_data = consume_data; coef->pub.decompress_data = decompress_data; coef->pub.coef_arrays = coef->whole_image; /* link to virtual arrays */ #else ERREXIT(cinfo, JERR_NOT_COMPILED); #endif } else { /* We only need a single-MCU buffer. */ JBLOCKROW buffer; int i; buffer = (JBLOCKROW) (*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE, D_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)); for (i = 0; i < D_MAX_BLOCKS_IN_MCU; i++) { coef->MCU_buffer[i] = buffer + i; } coef->pub.consume_data = dummy_consume_data; coef->pub.decompress_data = decompress_onepass; coef->pub.coef_arrays = NULL; /* flag for no virtual arrays */ } }
[ "112426112@qq.com" ]
112426112@qq.com
2fd971d1754c21aeece5d35a511e036feb32f647
03b38d8b725ed01b681de60784bfd7edac8a9950
/MyWindowsDebugger/LineInfo.h
4cece9278205e30655dd52fef55478497af90e56
[]
no_license
htr751/MyWindowsDebugger
c0b0f53826eba11132e3b420e06319aefe8cf872
97035efd7ea6be1f2f06e844d6d115c73e005299
refs/heads/master
2021-01-03T14:27:25.257049
2020-04-23T15:09:34
2020-04-23T15:09:34
240,107,447
3
1
null
2020-04-23T08:27:46
2020-02-12T20:23:55
C++
UTF-8
C++
false
false
531
h
#pragma once #include<string> #include<Windows.h> struct LineInfo { std::string m_fileName; unsigned long m_lineNumber; LineInfo(std::string fileName, unsigned long LineNumber); LineInfo(HANDLE processHandle, DWORD64 lineAddress); LineInfo() = default; LineInfo(const LineInfo&) = default; LineInfo(LineInfo&& other)noexcept : m_fileName(std::move(other.m_fileName)), m_lineNumber(other.m_lineNumber){} LineInfo& operator=(const LineInfo&) = default; LineInfo& operator=(LineInfo&&) = default; ~LineInfo() = default; };
[ "htr751@cs.colman.ac.il" ]
htr751@cs.colman.ac.il
8eb1b83e86b86852b9dedcd6afcf9d6b109ee9b1
925b0b695895df4eff3021f8198e97da04186bf9
/util/rsstools.cc
c08469cb8e8c1823f782bb8cdf1247b388324a98
[]
no_license
jking79/psi46pXarMaster
27b2e36ade3b6458f92c6d7d66399ea3bf1cdacd
7659963cfce4184f4ac05b351e689c35aff4917f
refs/heads/master
2021-01-18T18:05:59.195688
2014-10-01T15:54:23
2014-10-01T15:54:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,040
cc
#include "rsstools.hh" /** * Returns the peak (maximum so far) resident set size (physical * memory use) measured in bytes, or zero if the value cannot be * determined on this OS. */ size_t getPeakRSS( ) { #if defined(WIN32) /* Windows -------------------------------------------------- */ PROCESS_MEMORY_COUNTERS info; GetProcessMemoryInfo( GetCurrentProcess( ), &info, sizeof(info) ); return (size_t)info.PeakWorkingSetSize; #elif (defined(_AIX) || defined(__TOS__AIX__)) || (defined(__sun__) || defined(__sun) || defined(sun) && (defined(__SVR4) || defined(__svr4__))) /* AIX and Solaris ------------------------------------------ */ struct psinfo psinfo; int fd = -1; if ( (fd = open( "/proc/self/psinfo", O_RDONLY )) == -1 ) return (size_t)0L; /* Can't open? */ if ( read( fd, &psinfo, sizeof(psinfo) ) != sizeof(psinfo) ) { close( fd ); return (size_t)0L; /* Can't read? */ } close( fd ); return (size_t)(psinfo.pr_rssize * 1024L); #elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__)) /* BSD, Linux, and OSX -------------------------------------- */ struct rusage rusage; getrusage( RUSAGE_SELF, &rusage ); #if defined(__APPLE__) && defined(__MACH__) return (size_t)rusage.ru_maxrss; #else return (size_t)(rusage.ru_maxrss * 1024L); #endif #else /* Unknown OS ----------------------------------------------- */ return (size_t)0L; /* Unsupported. */ #endif } /** * Returns the current resident set size (physical memory use) measured * in bytes, or zero if the value cannot be determined on this OS. */ size_t getCurrentRSS( ) { #if defined(WIN32) /* Windows -------------------------------------------------- */ PROCESS_MEMORY_COUNTERS info; GetProcessMemoryInfo( GetCurrentProcess( ), &info, sizeof(info) ); return (size_t)info.WorkingSetSize; #elif defined(__APPLE__) && defined(__MACH__) /* OSX ------------------------------------------------------ */ struct mach_task_basic_info info; mach_msg_type_number_t infoCount = MACH_TASK_BASIC_INFO_COUNT; if ( task_info( mach_task_self( ), MACH_TASK_BASIC_INFO, (task_info_t)&info, &infoCount ) != KERN_SUCCESS ) return (size_t)0L; /* Can't access? */ return (size_t)info.resident_size; #elif defined(__linux__) || defined(__linux) || defined(linux) || defined(__gnu_linux__) /* Linux ---------------------------------------------------- */ long rss = 0L; FILE* fp = NULL; if ( (fp = fopen( "/proc/self/statm", "r" )) == NULL ) return (size_t)0L; /* Can't open? */ if ( fscanf( fp, "%*s%ld", &rss ) != 1 ) { fclose( fp ); return (size_t)0L; /* Can't read? */ } fclose( fp ); return (size_t)rss * (size_t)sysconf( _SC_PAGESIZE); #else /* AIX, BSD, Solaris, and Unknown OS ------------------------ */ return (size_t)0L; /* Unsupported. */ #endif }
[ "urs.langenegger@psi.ch" ]
urs.langenegger@psi.ch
599177a25bf0e69adbc10e38f1cf1500976fc1f7
c362a76ef78d6d80b8ce12ac37c77183e2bc4993
/90_Libraries/VTK-8.2.0/build/IO/ExportOpenGL2/vtkIOExportOpenGL2ObjectFactory.cxx
b1b8920e94975a00a0adc611b18cc655a6a6959d
[]
no_license
buff22/MeshEditor
724bd7aa0e13d5e1a92a73964d2df23983868f3e
2d3e43e351bd173bbcf82efe53dd072e3a26e1e0
refs/heads/master
2020-12-04T10:21:33.638368
2020-10-06T07:54:50
2020-10-06T07:54:50
231,722,959
0
2
null
null
null
null
UTF-8
C++
false
false
2,209
cxx
/*========================================================================= Program: Visualization Toolkit Module: vtkIOExportOpenGL2ObjectFactory.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 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 "vtkIOExportOpenGL2ObjectFactory.h" #include "vtkVersion.h" // Include all of the classes we want to create overrides for. #include "vtkOpenGLGL2PSExporter.h" vtkStandardNewMacro(vtkIOExportOpenGL2ObjectFactory) // Now create the functions to create overrides with. VTK_CREATE_CREATE_FUNCTION(vtkOpenGLGL2PSExporter) vtkIOExportOpenGL2ObjectFactory::vtkIOExportOpenGL2ObjectFactory() { this->RegisterOverride("vtkGL2PSExporter", "vtkOpenGLGL2PSExporter", "Override for vtkIOExportOpenGL2 module", 1, vtkObjectFactoryCreatevtkOpenGLGL2PSExporter); } const char * vtkIOExportOpenGL2ObjectFactory::GetVTKSourceVersion() { return VTK_SOURCE_VERSION; } void vtkIOExportOpenGL2ObjectFactory::PrintSelf(ostream &os, vtkIndent indent) { this->Superclass::PrintSelf(os, indent); } // Registration of object factories. static unsigned int vtkIOExportOpenGL2Count; VTKIOEXPORTOPENGL2_EXPORT void vtkIOExportOpenGL2_AutoInit_Construct() { if(++vtkIOExportOpenGL2Count == 1) { vtkIOExportOpenGL2ObjectFactory* factory = vtkIOExportOpenGL2ObjectFactory::New(); if (factory) { // vtkObjectFactory keeps a reference to the "factory", vtkObjectFactory::RegisterFactory(factory); factory->Delete(); } } } VTKIOEXPORTOPENGL2_EXPORT void vtkIOExportOpenGL2_AutoInit_Destruct() { if(--vtkIOExportOpenGL2Count == 0) { // Do not call vtkObjectFactory::UnRegisterFactory because // vtkObjectFactory.cxx statically unregisters all factories. } }
[ "buff22@naver.com" ]
buff22@naver.com
c2985ce655a0332129f6e9f9801d5a625c792bdc
d3d72121baca26e9057861e413b7597096850945
/src/MetaProgramDef.h
4f86b4b1b81505414967f272d1ab2bd78ab9b19f
[]
no_license
huanghuangzym/asioprotobufserver
1654b28001afef800eb007db74da5d93037b6e28
d9e65cd6c5926837ca97b0e6cb3dce381009fcb8
refs/heads/master
2021-09-06T00:52:52.272684
2018-02-01T03:25:19
2018-02-01T03:25:19
115,719,075
1
0
null
null
null
null
GB18030
C++
false
false
4,425
h
#ifndef __METAPROGRAMDEF_HH__ #define __METAPROGRAMDEF_HH__ #include "Bmco/Timestamp.h" #include "Bmco/DateTimeFormatter.h" #include "Bmco/DateTimeFormat.h" namespace BM35 { //程序类0xA的枚举 enum ProgramTypeA { BOL_PROGRAM_TYPE_A = 1, //bol HLA_PROGRAM_TYPE_A = 2 //hla }; //enum ProgramType //启动顺序:0-->1,1--->5 ,1--->2,1--->BOL, 1--->HLA //{ // KERNEL_PROGRAM_TYPE = 0, //0号进程的BPCB_ID // MOINTOR_PROGRAM_TYPE = 1, //1号进程的BPCB_ID // MEMMGR_PROGRAM_TYPE = 2, //2号进程的BPCB_ID // CLOUDAGENT_PROGRAM_TYPE = 5 //5号进程的BPCB_ID //}; //定义BM3.5的所有需要调度的程序,包括BOL中的核心程序,HLA中的业务程序或者数据服务程序; //本表中的数据除ID为自增生成以外,其他字段全部来自核心配置文件 struct MetaProgramDef { ///// smart ptr definition typedef Bmco::SharedPtr<MetaProgramDef> Ptr; MetaProgramDef(Bmco::UInt32 id,Bmco::UInt32 maxInstance,Bmco::UInt32 minInstance,Bmco::UInt32 processType, Bmco::UInt32 processLifecycleType,Bmco::UInt32 processBusinessType,Bmco::UInt32 bolBpcbID, const char* exeName,const char * staticParams, const char * dynamicParams,const char * displayName,const char * exepath,const char * libpth, const char * rootpth,Bmco::Timestamp timeStamp,Bmco::UInt32 priority, Bmco::Int64 cpulimit, Bmco::Int32 ramlimit): ID(id),MaxInstance(maxInstance),MinInstance(minInstance),ProcessType(processType), ProcessLifecycleType(processLifecycleType),ProcessBusinessType(processBusinessType),BolBpcbID(bolBpcbID), ExeName(exeName),StaticParams(staticParams), DynamicParams(dynamicParams),AbsolutePath(exepath),libpath(libpth),rootdir(rootpth), DisplayName(displayName),TimeStamp(timeStamp),Priority(priority), Ramlimit(ramlimit),Cpulimit(cpulimit) { } MetaProgramDef(const MetaProgramDef& r) { assign(r); } MetaProgramDef& operator = (const MetaProgramDef& r) { assign(r); return *this; } void assign(const MetaProgramDef& r) { if((void*)this!=(void*)&r){ ID = r.ID; MaxInstance = r.MaxInstance; MinInstance = r.MinInstance; ProcessType = r.ProcessType; ProcessLifecycleType = r.ProcessLifecycleType; ProcessBusinessType = r.ProcessBusinessType; BolBpcbID = r.BolBpcbID; AbsolutePath = r.AbsolutePath.c_str(); ExeName = r.ExeName.c_str(); StaticParams = r.StaticParams.c_str(); DynamicParams = r.DynamicParams.c_str(); DisplayName = r.DisplayName.c_str(); TimeStamp = r.TimeStamp; Priority = r.Priority; } } //field definition Bmco::UInt32 ID; //进程组ID,自增,自动生成,从1开始编号 Bmco::UInt32 MaxInstance; //表示最大启动实例进程的个数,如果本字段大于最小值字段,且最小值字段不为0,则支持高低水调度 Bmco::UInt32 MinInstance; //表示最小启动实例进程的个数,如果为0,则表示在本bol中,不启动该进程 //Bmco::UInt32 Type; //'程序类型,如:0xABCCDDDD // //4bit A表示: BOL,HLA等 // //4bit B表示: 常驻进程(置后台一直运行), 一次性进程(运行一次就退出)等 // //8bit CC表示:HLA中的数据服务、业务进程 // //16bit DDDD表示: 程序编号,如0#进程则为0,SR中的1000进程则为1000'; Bmco::UInt32 ProcessType; //程序大类别:BOL,HLA等 Bmco::UInt32 ProcessLifecycleType; //程序生命周期类别:常驻或单次执行 Bmco::UInt32 ProcessBusinessType; //程序业务类别 Bmco::UInt32 BolBpcbID; ///BOL程序需要制定启动后的BPCB ID,HLA不需要 std::string AbsolutePath; //存放可执行文件的文件系统绝对路径 std::string ExeName; //可执行文件名字,如prep.exe' std::string StaticParams; //固定需要在命令行中传入的参数,比如 -DSomeKey=SomeValue std::string DynamicParams; //-FlowID=%d -InstanceID=%d -BpcbID=%d std::string DisplayName; //用于展示,比如"规整" “批价” std::string libpath;//库路径 std::string rootdir; Bmco::Int64 Ramlimit; Bmco::Int32 Cpulimit; Bmco::Timestamp TimeStamp; //一条定义记录的创建时间戳 Bmco::UInt32 Priority; ///进程优先级(资源分配) private: MetaProgramDef();/// default constructor is not allowed }; } #endif //end __METAPROGRAMDEF_HH__
[ "lihuang@alauda.io" ]
lihuang@alauda.io
5b69a835d73cee8c187106929219ef41fea67b2e
d48a3b38a844aecc9c4bac696c92d5977984c070
/examples/Basics/Data/VariableScope/VariableScope.cpp
e9ddfd40b1bd6883093ad6c5632389af5451d5d7
[ "BSD-2-Clause" ]
permissive
RedErr404/cprocessing
2e7bed40732c55f1d90ca0a160d9eb873b53c368
ab8ef25ea3e4bcd915f9c086b649696866ea77ca
refs/heads/master
2020-06-16T17:03:33.624725
2019-07-07T12:25:35
2019-07-07T12:25:35
195,644,695
0
0
BSD-2-Clause
2019-07-07T11:48:10
2019-07-07T11:48:10
null
UTF-8
C++
false
false
1,707
cpp
#include <cprocessing/cprocessing.hpp> using namespace cprocessing; #include "VariableScope.hpp" /** * Variable Scope. * * Variables have a global or local "scope". * For example, variables declared within either the * setup() or draw() functions may be only used in these * functions. Global variables, variables declared outside * of setup() and draw(), may be used anywhere within the program. * If a local variable is declared with the same name as a * global variable, the program will use the local variable to make * its calculations within the current scope. Variables are localized * within each block, the space between a { and }. */ int a = 80; // Create a global variable "a" void setup() { size(640, 360); background(0); stroke(255); noLoop(); } void draw() { // Draw a line using the global variable "a" line(a, 0, a, height); // Create a new variable "a" local to the for() statement for (int a = 120; a < 200; a += 2) { line(a, 0, a, height); } // Create a new variable "a" local to the draw() function int a = 300; // Draw a line using the new local variable "a" line(a, 0, a, height); // Make a call to the custom function drawAnotherLine() drawAnotherLine(); // Make a call to the custom function setYetAnotherLine() drawYetAnotherLine(); } void drawAnotherLine() { // Create a new variable "a" local to this method int a = 320; // Draw a line using the local variable "a" line(a, 0, a, height); } void drawYetAnotherLine() { // Because no new local variable "a" is set, // this lines draws using the original global // variable "a" which is set to the value 20. line(a+2, 0, a+2, height); }
[ "whackashoe@gmail.com" ]
whackashoe@gmail.com
b6bc0a9517e2252ce8d87cced99ed58466a684a7
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/squid/old_hunk_2557.cpp
9058834ce9aee412032c65d9bdccc70bbbfdfa1f
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
432
cpp
} static void htcpIncomingConnectionOpened(int fd, int errNo) { htcpInSocket = fd; if (htcpInSocket < 0) fatal("Cannot open HTCP Socket"); Comm::SetSelect(htcpInSocket, COMM_SELECT_READ, htcpRecv, NULL, 0); debugs(31, 1, "Accepting HTCP messages on port " << Config.Port.htcp << ", FD " << htcpInSocket << "."); if (Config.Addrs.udp_outgoing.IsNoAddr()) htcpOutSocket = htcpInSocket; } int
[ "993273596@qq.com" ]
993273596@qq.com
7a072aabc08957fb242951534a4d0caa9b796692
98c9ea8ef935819cd6c957c2ea560a2d97f3dd6b
/LSL/liblsl/lslboost/boost/asio/ip/detail/endpoint.hpp
556191db1d836a316b34f3d1fffc8894f9d08310
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gisogrimm/labstreaminglayer
dd9c18f1e50d22df4902a938135c9a958c6bd1c1
c7b12d1f0f3487a04bba6081be7e5122af10aafe
refs/heads/master
2020-12-25T00:05:40.953942
2018-06-15T12:38:15
2018-06-15T12:38:15
51,507,985
2
0
null
2018-06-15T12:34:28
2016-02-11T10:33:59
C++
UTF-8
C++
false
false
3,835
hpp
// // ip/detail/endpoint.hpp // ~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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) // #ifndef BOOST_ASIO_IP_DETAIL_ENDPOINT_HPP #define BOOST_ASIO_IP_DETAIL_ENDPOINT_HPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include <boost/asio/detail/config.hpp> #include <string> #include <boost/asio/detail/socket_types.hpp> #include <boost/asio/detail/winsock_init.hpp> #include <boost/system/error_code.hpp> #include <boost/asio/ip/address.hpp> #include <boost/asio/detail/push_options.hpp> namespace lslboost { namespace asio { namespace ip { namespace detail { // Helper class for implementating an IP endpoint. class endpoint { public: // Default constructor. BOOST_ASIO_DECL endpoint(); // Construct an endpoint using a family and port number. BOOST_ASIO_DECL endpoint(int family, unsigned short port_num); // Construct an endpoint using an address and port number. BOOST_ASIO_DECL endpoint(const lslboost::asio::ip::address& addr, unsigned short port_num); // Copy constructor. endpoint(const endpoint& other) : data_(other.data_) { } // Assign from another endpoint. endpoint& operator=(const endpoint& other) { data_ = other.data_; return *this; } // Get the underlying endpoint in the native type. lslboost::asio::detail::socket_addr_type* data() { return &data_.base; } // Get the underlying endpoint in the native type. const lslboost::asio::detail::socket_addr_type* data() const { return &data_.base; } // Get the underlying size of the endpoint in the native type. std::size_t size() const { if (is_v4()) return sizeof(lslboost::asio::detail::sockaddr_in4_type); else return sizeof(lslboost::asio::detail::sockaddr_in6_type); } // Set the underlying size of the endpoint in the native type. BOOST_ASIO_DECL void resize(std::size_t new_size); // Get the capacity of the endpoint in the native type. std::size_t capacity() const { return sizeof(data_); } // Get the port associated with the endpoint. BOOST_ASIO_DECL unsigned short port() const; // Set the port associated with the endpoint. BOOST_ASIO_DECL void port(unsigned short port_num); // Get the IP address associated with the endpoint. BOOST_ASIO_DECL lslboost::asio::ip::address address() const; // Set the IP address associated with the endpoint. BOOST_ASIO_DECL void address(const lslboost::asio::ip::address& addr); // Compare two endpoints for equality. BOOST_ASIO_DECL friend bool operator==( const endpoint& e1, const endpoint& e2); // Compare endpoints for ordering. BOOST_ASIO_DECL friend bool operator<( const endpoint& e1, const endpoint& e2); // Determine whether the endpoint is IPv4. bool is_v4() const { return data_.base.sa_family == BOOST_ASIO_OS_DEF(AF_INET); } #if !defined(BOOST_ASIO_NO_IOSTREAM) // Convert to a string. BOOST_ASIO_DECL std::string to_string(lslboost::system::error_code& ec) const; #endif // !defined(BOOST_ASIO_NO_IOSTREAM) private: // The underlying IP socket address. union data_union { lslboost::asio::detail::socket_addr_type base; lslboost::asio::detail::sockaddr_in4_type v4; lslboost::asio::detail::sockaddr_in6_type v6; } data_; }; } // namespace detail } // namespace ip } // namespace asio } // namespace lslboost #include <boost/asio/detail/pop_options.hpp> #if defined(BOOST_ASIO_HEADER_ONLY) # include <boost/asio/ip/detail/impl/endpoint.ipp> #endif // defined(BOOST_ASIO_HEADER_ONLY) #endif // BOOST_ASIO_IP_DETAIL_ENDPOINT_HPP
[ "derstenner@gmail.com" ]
derstenner@gmail.com
d178c18cbc4c7f62d4830f0afea386cca719b288
a7a5ea1965def34f212d0799e5957faf198aa3a3
/android/Streaming/library/src/main/cpp/rtmp/kernel/srs_kernel_aac.cpp
be90fb1dd5af49b4be750134c154c5cc354476d5
[]
no_license
18307612949/AndroidFFmpeg
dc911355659b953c893ff4af54d304505b0c552e
a91b480e530957cfe3b3d455e8a0594bc7578c35
refs/heads/master
2021-08-16T06:13:14.412157
2017-10-16T07:42:27
2017-10-16T07:42:27
107,400,346
1
0
null
2017-10-18T11:44:03
2017-10-18T11:44:02
null
UTF-8
C++
false
false
7,093
cpp
/* The MIT License (MIT) Copyright (c) 2013-2016 SRS(ossrs) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <srs_kernel_aac.hpp> #if !defined(SRS_EXPORT_LIBRTMP) // for srs-librtmp, @see https://github.com/ossrs/srs/issues/213 #ifndef _WIN32 #include <unistd.h> #endif #include <fcntl.h> #include <sstream> using namespace std; #include <srs_kernel_log.hpp> #include <srs_kernel_error.hpp> #include <srs_kernel_buffer.hpp> #include <srs_kernel_file.hpp> #include <srs_kernel_codec.hpp> SrsAacEncoder::SrsAacEncoder() { _fs = NULL; got_sequence_header = false; tag_stream = new SrsBuffer(); aac_object = SrsAacObjectTypeReserved; } SrsAacEncoder::~SrsAacEncoder() { srs_freep(tag_stream); } int SrsAacEncoder::initialize(SrsFileWriter* fs) { int ret = ERROR_SUCCESS; srs_assert(fs); if (!fs->is_open()) { ret = ERROR_KERNEL_AAC_STREAM_CLOSED; srs_warn("stream is not open for encoder. ret=%d", ret); return ret; } _fs = fs; return ret; } int SrsAacEncoder::write_audio(int64_t timestamp, char* data, int size) { int ret = ERROR_SUCCESS; srs_assert(data); timestamp &= 0x7fffffff; SrsBuffer* stream = tag_stream; if ((ret = stream->initialize(data, size)) != ERROR_SUCCESS) { return ret; } // audio decode if (!stream->require(1)) { ret = ERROR_AAC_DECODE_ERROR; srs_error("aac decode audio sound_format failed. ret=%d", ret); return ret; } // @see: E.4.2 Audio Tags, video_file_format_spec_v10_1.pdf, page 76 int8_t sound_format = stream->read_1bytes(); // @see: SrsAvcAacCodec::audio_aac_demux //int8_t sound_type = sound_format & 0x01; //int8_t sound_size = (sound_format >> 1) & 0x01; //int8_t sound_rate = (sound_format >> 2) & 0x03; sound_format = (sound_format >> 4) & 0x0f; if ((SrsCodecAudio)sound_format != SrsCodecAudioAAC) { ret = ERROR_AAC_DECODE_ERROR; srs_error("aac required, format=%d. ret=%d", sound_format, ret); return ret; } if (!stream->require(1)) { ret = ERROR_AAC_DECODE_ERROR; srs_error("aac decode aac_packet_type failed. ret=%d", ret); return ret; } SrsCodecAudioType aac_packet_type = (SrsCodecAudioType)stream->read_1bytes(); if (aac_packet_type == SrsCodecAudioTypeSequenceHeader) { // AudioSpecificConfig // 1.6.2.1 AudioSpecificConfig, in aac-mp4a-format-ISO_IEC_14496-3+2001.pdf, page 33. // // only need to decode the first 2bytes: // audioObjectType, 5bits. // samplingFrequencyIndex, aac_sample_rate, 4bits. // channelConfiguration, aac_channels, 4bits if (!stream->require(2)) { ret = ERROR_AAC_DECODE_ERROR; srs_error("aac decode sequence header failed. ret=%d", ret); return ret; } int8_t audioObjectType = stream->read_1bytes(); aac_sample_rate = stream->read_1bytes(); aac_channels = (aac_sample_rate >> 3) & 0x0f; aac_sample_rate = ((audioObjectType << 1) & 0x0e) | ((aac_sample_rate >> 7) & 0x01); audioObjectType = (audioObjectType >> 3) & 0x1f; aac_object = (SrsAacObjectType)audioObjectType; got_sequence_header = true; return ret; } if (!got_sequence_header) { ret = ERROR_AAC_DECODE_ERROR; srs_error("aac no sequence header. ret=%d", ret); return ret; } // the left is the aac raw frame data. int16_t aac_raw_length = stream->size() - stream->pos(); // write the ADTS header. // @see aac-mp4a-format-ISO_IEC_14496-3+2001.pdf, page 75, // 1.A.2.2 Audio_Data_Transport_Stream frame, ADTS // @see https://github.com/ossrs/srs/issues/212#issuecomment-64145885 // byte_alignment() // adts_fixed_header: // 12bits syncword, // 16bits left. // adts_variable_header: // 28bits // 12+16+28=56bits // adts_error_check: // 16bits if protection_absent // 56+16=72bits // if protection_absent: // require(7bytes)=56bits // else // require(9bytes)=72bits char aac_fixed_header[7]; if(true) { char* pp = aac_fixed_header; int16_t aac_frame_length = aac_raw_length + 7; // Syncword 12 bslbf *pp++ = 0xff; // 4bits left. // adts_fixed_header(), 1.A.2.2.1 Fixed Header of ADTS // ID 1 bslbf // Layer 2 uimsbf // protection_absent 1 bslbf *pp++ = 0xf1; // profile 2 uimsbf // sampling_frequency_index 4 uimsbf // private_bit 1 bslbf // channel_configuration 3 uimsbf // original/copy 1 bslbf // home 1 bslbf SrsAacProfile aac_profile = srs_codec_aac_rtmp2ts(aac_object); *pp++ = ((aac_profile << 6) & 0xc0) | ((aac_sample_rate << 2) & 0x3c) | ((aac_channels >> 2) & 0x01); // 4bits left. // adts_variable_header(), 1.A.2.2.2 Variable Header of ADTS // copyright_identification_bit 1 bslbf // copyright_identification_start 1 bslbf *pp++ = ((aac_channels << 6) & 0xc0) | ((aac_frame_length >> 11) & 0x03); // aac_frame_length 13 bslbf: Length of the frame including headers and error_check in bytes. // use the left 2bits as the 13 and 12 bit, // the aac_frame_length is 13bits, so we move 13-2=11. *pp++ = aac_frame_length >> 3; // adts_buffer_fullness 11 bslbf *pp++ = (aac_frame_length << 5) & 0xe0; // no_raw_data_blocks_in_frame 2 uimsbf *pp++ = 0xfc; } // write 7bytes fixed header. if ((ret = _fs->write(aac_fixed_header, 7, NULL)) != ERROR_SUCCESS) { return ret; } // write aac frame body. if ((ret = _fs->write(data + stream->pos(), aac_raw_length, NULL)) != ERROR_SUCCESS) { return ret; } return ret; } #endif
[ "wlanjie888@gmail.com" ]
wlanjie888@gmail.com
b90cc9e618522efe19c70a0fc32f951e07bdc12a
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Event/EventContainers/EventContainers/DataLinkVector.h
2f8c571acd2351a18430a1ebe698b7340f128d5a
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
C++
false
false
12,844
h
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ #ifndef EVENTCONTAINERS_DATALINKVECTOR_H #define EVENTCONTAINERS_DATALINKVECTOR_H /** * @file DataLinkVector.h * * @brief This class is a a vector of DataLink for objects of type DC * * @author RD Schaffer <R.D.Schaffer@cern.ch> * * $Id: DataLinkVector.h,v 1.26 2008-10-27 17:53:55 schaffer Exp $ */ #include "GaudiKernel/DataObject.h" #include <vector> /** @class DataLinkVector * * @brief This class is a a vector of DataLink for objects of type DC * It uses an internal chain to keep track of modified entries. * A call to cleanup is required after processing an event or prior to * process a new event. * cleanup will call the clear() method of all the touched DataLink instances. * The template expects the DataLink to export the DigitCollection class type (DC) * and the DigitCollection identifier type */ template < class DC > class DataLinkVector :public DataObject { public: typedef DC value_type; typedef DC* pointer; typedef const DC* const_pointer; typedef DC& reference; typedef const DC& const_reference; /** class DataHolder is a simple class which holds a pointer to an * object of type DC. This is inserted into the Entry object of the * DataLinkVector. **/ class DataHolder { public: /// contructor DataHolder(); /// is pointer set bool hasData() const; /// access to pointer const_pointer operator->() const; /// access to pointer operator const_pointer () const { return this->getDataPtr(); } /// access to pointer const_pointer cptr() const; /// reset pointer to 0 void reset(); /// set pointer void setDataPtr(const DC* obj); /// access to pointer pointer getDataPtr() const; private: pointer m_obj; }; typedef DataHolder DataLinkT; typedef DataLinkVector<DC> MyType; /** class Entry is a link in a chained list, used for efficient * cleanup of vectors. Entry objects are chained together which * allows fast iteration over non-empty elements **/ class Entry { public: /// constructor Entry(); /// assignement operator Entry& operator = (const Entry& e); /// access to next entry Entry* previousEntry(); /// access to the DataLink DataLinkT& dataLink(); /// ownObject is true if this object should be deleted by DLV. bool ownObject() const; /// set previous entry void setPreviousEntry(Entry* entry); /// set data link void setDataLink (const DataLinkT& link); /// set object ownership void setOwnObject(bool owns); private: Entry* m_previousEntry; DataLinkT m_dataLink; // ownObject is true if this object should be deleted by DLV. // May be false if object is managed by a data pool bool m_ownObject; }; typedef std::vector<Entry> EntryVector; typedef typename EntryVector::iterator EntryVectorIt; /** class iterator - iterator over elements in DataLinkVector * which manages the Entry objects **/ class iterator { public: /// constructor iterator(); /// comparison operator bool operator != ( const iterator it ) const; /// comparison operator bool operator == ( const iterator it ) const; /// assignment operator iterator& operator = ( const iterator it ); /// increment operator iterator& operator ++ (); /// increment operator iterator operator ++ ( int ); /// access to object by ref DataLinkT& operator * (); /// access to object by pointer DataLinkT* operator-> (); /// test if DataHolder has data bool hasData(); protected: friend class DataLinkVector<DC>; iterator( const MyType* dlv, EntryVectorIt it ); /// make sure entry is chained /// If not, add entry to the chain otherwise do nothing because void checkChain(); /// protected method for derived class to access m_vect EntryVector& entryVector(); const MyType* m_dlv; EntryVectorIt m_it; }; friend class iterator; /// Default constructor DataLinkVector(); /// Default destructor ~DataLinkVector(); /// initialize vector with nbr DataLinks void init( unsigned int nbr ); /// return iterator on first entry iterator begin() const; /// return iterator on after last entry iterator end() const; /// return iterator on the found entry or end() if out of range iterator find( IdentifierHash id ) const; /// set object ownership bool setObjectOwnership(IdentifierHash idhash, bool flag); /// return reference on DataLink /// BEWARE: Doesn't check for boundary limits ! DataLinkT& operator [] ( int id ); /// cleans up the DataLinkVector /// goes trough all chained entries and call clear() method of DataLink /// and clear chain of course. virtual void cleanup(); /// access to size of vector int size() const; protected: /// add pointed entry in chain of modified entries void chainEntry( Entry* e ) const; mutable EntryVector m_vect; mutable Entry* m_last; }; /// inline definitions template <class DC> DataLinkVector<DC>::DataHolder::DataHolder() : m_obj(0) {} template <class DC> bool DataLinkVector<DC>::DataHolder::hasData() const { return (m_obj != 0); } template <class DC> typename DataLinkVector<DC>::const_pointer DataLinkVector<DC>::DataHolder::operator->() const { return this->getDataPtr(); } template <class DC> typename DataLinkVector<DC>::const_pointer DataLinkVector<DC>::DataHolder::cptr() const { return this->getDataPtr(); } template <class DC> void DataLinkVector<DC>::DataHolder::reset() { m_obj = 0; } template <class DC> void DataLinkVector<DC>::DataHolder::setDataPtr(const DC* obj) { m_obj = const_cast<pointer>(obj); } template <class DC> typename DataLinkVector<DC>::pointer DataLinkVector<DC>::DataHolder::getDataPtr() const { return (m_obj); } template <class DC> DataLinkVector<DC>::Entry::Entry() : m_previousEntry(NULL), m_ownObject(false) { m_dataLink = DataLinkT(); } template <class DC> typename DataLinkVector<DC>::Entry& DataLinkVector<DC>::Entry::operator = (const Entry& e){ m_dataLink = e.m_dataLink ; m_previousEntry = e.m_previousEntry; m_ownObject = e.m_ownObject; return *this; } template <class DC> typename DataLinkVector<DC>::Entry* DataLinkVector<DC>::Entry::previousEntry() { return m_previousEntry; } template <class DC> typename DataLinkVector<DC>::DataLinkT& DataLinkVector<DC>::Entry::dataLink() { return m_dataLink; } template <class DC> bool DataLinkVector<DC>::Entry::ownObject() const { return m_ownObject; } template <class DC> void DataLinkVector<DC>::Entry::setPreviousEntry(Entry* entry) { m_previousEntry = entry; } template <class DC> void DataLinkVector<DC>::Entry::setDataLink (const DataLinkT& link) { m_dataLink = link; } template <class DC> void DataLinkVector<DC>::Entry::setOwnObject(bool owns) { m_ownObject = owns; } template <class DC> DataLinkVector<DC>::iterator::iterator() : m_dlv(NULL) {} template <class DC> bool DataLinkVector<DC>::iterator::operator != ( const iterator it ) const { return it.m_it != m_it; } template <class DC> bool DataLinkVector<DC>::iterator::operator == ( const iterator it ) const { return it.m_it == m_it; } template <class DC> typename DataLinkVector<DC>::iterator& DataLinkVector<DC>::iterator::operator = ( const iterator it ) { m_dlv = it.m_dlv; m_it = it.m_it; return *this; } template <class DC> typename DataLinkVector<DC>::iterator& DataLinkVector<DC>::iterator::operator ++ () { ++m_it; return *this; } template <class DC> typename DataLinkVector<DC>::iterator DataLinkVector<DC>::iterator::operator ++ ( int ) { return iterator( m_dlv, m_it++ ); } template <class DC> typename DataLinkVector<DC>::DataLinkT& DataLinkVector<DC>::iterator::operator * () { checkChain(); return m_it->dataLink(); } template <class DC> typename DataLinkVector<DC>::DataLinkT* DataLinkVector<DC>::iterator::operator-> () { checkChain(); return &m_it->dataLink(); } template <class DC> bool DataLinkVector<DC>::iterator::hasData() { // check if DL is valid, and cash the state checkChain(); // this entry has been touched. Entry& e = *m_it; bool DL_valid = e.dataLink().hasData(); return DL_valid; } template <class DC> DataLinkVector<DC>::iterator::iterator( const MyType* dlv, EntryVectorIt it ) : m_dlv(dlv), m_it(it) {} // make sur entry is chained // If not, add entry to the chain otherwise do nothing because template <class DC> void DataLinkVector<DC>::iterator::checkChain() { if( m_it->previousEntry() == NULL ) m_dlv->chainEntry( &(*m_it) ) ; } // protected method for derived class to access m_vect template <class DC> typename DataLinkVector<DC>::EntryVector& DataLinkVector<DC>::iterator::entryVector() { return m_dlv->m_vect ; } // Default constructor template <class DC> DataLinkVector<DC>::DataLinkVector() : m_last(NULL) { } // Default constructor template <class DC> DataLinkVector<DC>::~DataLinkVector() { this->cleanup(); } // initialize vector with nbr DataLinks template <class DC> void DataLinkVector<DC>::init( unsigned int nbr ) { // fill in vector of Entry m_vect.resize(nbr); } // return iterator on m_previousEntry entry template <class DC> typename DataLinkVector<DC>::iterator DataLinkVector<DC>::begin() const { return iterator( this, m_vect.begin() ); } // return iterator on after last entry template <class DC> typename DataLinkVector<DC>::iterator DataLinkVector<DC>::end() const { return iterator( this, m_vect.end()); } // return iterator on the found entry or end() if out of range template <class DC> typename DataLinkVector<DC>::iterator DataLinkVector<DC>::find( IdentifierHash id ) const { return ( (id >= m_vect.size() ) ?end():iterator(this,m_vect.begin()+id));} // set object ownership template <class DC> bool DataLinkVector<DC>::setObjectOwnership(IdentifierHash idhash, bool flag) { if ( idhash >= m_vect.size() ) return false; Entry& e = *(m_vect.begin()+idhash); e.setOwnObject(flag); return true; } // return reference on DataLink // BEWARE: Doesn't check for boundary limits ! template <class DC> typename DataLinkVector<DC>::DataLinkT& DataLinkVector<DC>::operator [] ( int id ) { Entry* e = &(m_vect[id]); if( !e->previousEntry() ) chainEntry( e ); return e->dataLink(); } // cleans up the DataLinkVector // goes trough all chained entries and call clear() method of DataLink // and clear chain of course. template <class DC> void DataLinkVector<DC>::cleanup() { Entry *e; // assign last to e and check if it is not NULL if( (e = m_last) ) { // for chained entries do { Entry * tmp = e->previousEntry(); e->setPreviousEntry(NULL); // clear chain pointer if (e->ownObject()) // delete object delete (e->dataLink()).getDataPtr(); e->dataLink().reset(); // reset keeps it in identified state. e->setOwnObject(false); // doesn't own object e = tmp; // go to next entry } while( e != m_last ); // until we end where we started m_last = NULL; // clear chain hook } } template <class DC> int DataLinkVector<DC>::size() const { return m_vect.size(); } template <class DC> void DataLinkVector<DC>::chainEntry( Entry* e ) const { if( m_last == NULL ) { e->setPreviousEntry(e); m_last = e; } else { e->setPreviousEntry(m_last->previousEntry()); m_last->setPreviousEntry(e); } } #endif
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
2c0771229bb3100d9e4cdaa5df3e2c7c5843b942
ce88f5bf5d97395632e5431fe0f45d1b20f2aa0b
/representation.hpp
d07e1b75e16fd3fe2be0e92bd3672ad25308f6a8
[]
no_license
sborquez/BEP-TabuSearch
4616c74f386e344947c8cd116d5e4fa666194c1b
decc7d19e088c5988283da9b83f952c2fc000947
refs/heads/master
2020-04-09T08:54:54.565146
2018-12-15T06:05:38
2018-12-15T06:05:38
160,213,151
0
0
null
null
null
null
UTF-8
C++
false
false
4,056
hpp
#ifndef REPR #define REPR #include <iostream> #include <vector> #include <tuple> #include <fstream> #include <algorithm> #include <functional> #include <stdlib.h> #include <fstream> #include <string.h> #define INITIAL_MAXITER 1000 #define GREEDYPORTION 0.5 #define METAHEURISTIC "PROGRESRANK" //#define METAHEURISTIC "RANDOMGREEDY" //#define METAHEURISTIC "PROGRES" #define USEPROGRES true #define RANDOM_BUS false #define START_FROM_1 false /* / Scenario representa a una 'instancia' del problema. Contiene las diferentes / variables de un escenario en particular. Scenario se encarga de generar una / solucion inicial y de evaluar las soluciones. */ class Scenario; /* / Solution es la implementacion de la 'representacion' para el problema BEP. Esta / se encarga de generar el vecindario definido por el 'movimiento' implementado. */ class Solution; /* / trip es parte de la 'representacion', es un viaje de un bus entre un punto de encuentro (pickup) y un refugio (shelter). */ struct trip { int pickup; int shelter; }; class Scenario { public: Scenario(std::string filepath, int loglvl); ~Scenario(){}; // evaluate es la 'funcion de evaluacion', esta se aplica a una solucion. void evaluate(Solution &solution); void evaluate(std::vector<Solution> &solutions); // get_initial_solution genera una solucion inicial factible utilizando la // heuristica de Random Greedy Choice Solution get_initial_solution(); // is_feasible revisa si la solucion dada es factible, cumple las restricciones bool is_feasible(Solution solution); // print muestra los parametros por pantalla. void print(); // write solution void write(std::ofstream &file, Solution &ssolution); private: // debug int loglvl; // Archivo de la instancia char* filepath; // Parametros de la instancia int buses; int shelters; int yards; int pickups; int total_demand; int total_capacity; int buses_capacity; std::vector<int> shelters_capacity; std::vector<int> pickups_demand; // Lista de buses por estacion std::vector<int> bus_yard; // Distancia entre cada estacion a los puntos de encuetro std::vector<std::vector<int>> dist_yard_to_pickup; // Distancia de cada punto de encuetro a los refugios std::vector<std::vector<int>> dist_pickup_to_shelter; // Retorna las opciones de viajes que tiene el bus en el estado de la solucion. std::vector<struct trip> get_trips(int bus, Solution &solution); // Retorna el tiempo de cada bus en el estado de la solucion. std::vector<int> calculate_buses_time(Solution &solution); // MetaHeuristica para la solucion inicial void __PROGRES(Solution &Solution); void __PROGRESRANK(Solution &solution); void __GREEDYRANDOM(Solution &solution); }; class Solution { public: /* / Representacion de la solucion, como una tabla de viajes / por bus. Cada fila son los viajes realizados por un bus. / Se obvia el primer viaje desde la estacion (yard) y los / viajes de vuelta desde un refugio (shelter) a un punto / de encuentro (pickup). De esta forma solo almacenamos / los viajes de ida desde los puntos de encuentro (pickup) / a los refugios. */ std::vector<std::vector<struct trip>> trips_table; Solution(int n_buses); Solution(const Solution &solution); ~Solution(){}; int get_buses(); std::vector<int> get_buses_times(); int get_score(); void set_score(int s, std::vector<int> buses_times); std::vector<Solution> get_neighborhood(); void print(); bool equals(const Solution& solution); private: // Valor obtendio de la funcion de evaluacion. int score; std::vector<int> buses_times; // Cantidad de buses (filas de la tabla) int buses; std::vector<int> bus_yard; // Moviemientos Solution swap_trip(int bus, int trip1, int trip2); /* void swap_order(); void add_trip(); void del_trip(); */ }; #endif // !REPR
[ "sebastian.borquez@gmail.com" ]
sebastian.borquez@gmail.com
748d223e51eb8b5981ef733720853424a96db5ff
b52fe46d247678d5d8078fad81653454ba3e91ac
/src/gui/Board.cpp
4a79af692e106ec20e8dd32fb02f6b1ae4226c9e
[]
no_license
OperationSleepyWeasel/PirexPickleBlowfish
00905a2fc6a0251d903394aeb63e6b334c3fb344
fa91c6c55a1d6afc144d16b7af345e961f81b5a7
refs/heads/master
2021-01-17T23:05:09.078486
2014-01-28T22:48:19
2014-01-28T22:48:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,605
cpp
#include "Board.hpp" #include <QtCore/qmath.h> #include <QDebug> #include "BoardField.hpp" #include "SideField.hpp" namespace gui { Board::Board(ViewController* controller, Field* middleField, QGraphicsItem* parent) : QGraphicsItem(parent) { float radius = 50; float x = 0; float y = 0; float xSpacing = 5; float ySpacing = 3; float xDiff = 1.5 * radius + xSpacing; float yDiff = qSqrt(3) * radius/2+ ySpacing; BoardField * boardField; int counter = 0; Field * currentField = middleField; Side currentSide = SOUTH_WEST; //TODO: clean this mess //TODO: change to clockwise (easier with currentSide) counter++; boardField = new BoardField(currentField, radius, this); boardField -> setPos(x, y); QObject::connect(boardField, SIGNAL(fieldClicked(BoardField*)), controller, SLOT(fieldClicked(BoardField*))); for(int j = 0; j <= 2; j++) { for(int i = 0; i < 6; i++) { for(int k = 0; k < j; k++) { counter++; boardField = new BoardField(currentField, radius, this); boardField -> setPos(x, y); QObject::connect(boardField, SIGNAL(fieldClicked(BoardField*)), controller, SLOT(fieldClicked(BoardField*))); changeCoordinates(x, y, xDiff, yDiff, i); currentField = currentField -> getNeighbour(currentSide); if(k == j - 1) { currentSide = static_cast<Side>((currentSide + 5) % 6); } } } changeCoordinates(x, y, xDiff, yDiff, 4); currentField = currentField -> getNeighbour(NORTH); } SideField * sideField; y = -2 * yDiff; x = -6 * radius; for(int j = 0; j < 2; j++) { for(int i = 0; i < 3; i++) { sideField = new SideField(j, i, radius, this); sideField -> setPos(x,y); QObject::connect(sideField, SIGNAL(fieldClicked(SideField*)), controller, SLOT(handFieldClicked(SideField*))); y += 2 * yDiff; } y = -2 * yDiff; x = 6 * radius; } } void Board::changeCoordinates(float& x, float& y, float xDiff, float yDiff, int numberHardToName) { int yMultiplier = 1; if(numberHardToName >= 3) yMultiplier *= -1; if(numberHardToName % 3 == 1) yMultiplier *= 2; int xMultiplier = 1; switch(numberHardToName) { case 0: case 5: xMultiplier *= -1; break; case 1: case 4: xMultiplier = 0; break; } x += xDiff * xMultiplier; y += yDiff * yMultiplier; } void Board::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { Q_UNUSED(option) Q_UNUSED(widget) Q_UNUSED(painter) } QRectF Board::boundingRect() const { return QRectF(0, 0, 0, 0); } }//: namespace gui
[ "artus.sawicki@gmail.com" ]
artus.sawicki@gmail.com
fb6f1b4ce5eac7b53daa0e4624725da725a069c1
8973dd51588517ac8755230820e97b8215cadc92
/cores/Cosa/api/Cosa/Driver/DS1302.hh
1bdded01ec2327ea0db1384cc94403e0f6917851
[ "BSD-3-Clause" ]
permissive
UECIDE/UECIDE_data
3fa6b17113743de7bcb7d3cb8d430637efb494b6
96bf6b15910ec3794bd7c13e5274e5ac03379aa9
refs/heads/master
2016-09-06T17:38:44.223404
2014-02-15T00:48:46
2014-02-15T00:48:46
13,354,806
0
1
null
null
null
null
UTF-8
C++
false
false
4,268
hh
/** * @file Cosa/Driver/DS1302.hh * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA * * This file is part of the Arduino Che Cosa project. */ #ifndef __COSA_DRIVER_DS1302_HH__ #define __COSA_DRIVER_DS1302_HH__ #include "Cosa/Pins.hh" #include "Cosa/Time.hh" /** * Cosa Device Driver for DS1302, Trickle-Charge Timekeeping Chip. * * @See Also * 1. On-line product description, * http://www.maximintegrated.com/datasheet/index.mvp/id/2685 * 2. Datasheet, http://datasheets.maximintegrated.com/en/ds/DS1302.pdf */ class DS1302 { private: /** Read/write address mask */ static const uint8_t ADDR_MASK = 0x3f; /** Read/write bit in command byte */ enum { WRITE = 0x00, READ = 0x01 } __attribute__((packed)); /** Chip select, asserted high during read and write */ OutputPin m_cs; /** Serial data bidirectional data pin */ IOPin m_sda; /** Clock for synchroized data movement on the serial interface */ OutputPin m_clk; /** * Write data to the device. Internal transfer function. Used within * a chip select block. * @param[in] data to write to the device. */ void write(uint8_t data); /** * Read data from the device. Internal transfer function. Used within * a chip select block. Data direction must be set before calling * this function. * @return data. */ uint8_t read(); public: /** Start address of clock/calender internal registers */ static const uint8_t RTC_START = 0; /** Start address of static memory */ static const uint8_t RAM_START = 32; /** Static memory size */ static const size_t RAM_MAX = 31; /** * Construct device driver for DS1302 Real-Time Clock with the given * pins. * @param[in] cs chip select pin (default D4). * @param[in] sda serial data pin (default D3). * @param[in] clk clock pin (default D2). */ DS1302(Board::DigitalPin cs = Board::D4, Board::DigitalPin sda = Board::D3, Board::DigitalPin clk = Board::D2) : m_cs(cs, 0), m_sda(sda, IOPin::OUTPUT_MODE), m_clk(clk, 0) { } /** * Write given data to the static memory (31 bytes) or * clock/calender register on the device. * @param[in] addr memory address. * @param[in] data to write to the memory address. */ void write(uint8_t addr, uint8_t data); /** * Read given static memory address on the device and return byte. * @param[in] addr memory address on the device. */ uint8_t read(uint8_t addr); /** * Set write protect-bit according to flag. * @param[in] flag write protect mode. */ void write_protect(bool flag); /** * Burst read memory block from the device starting at address * zero(0). Data block is returned in the given buffer. * @param[in] buf pointer to buffer to store data read. * @param[in] size number of bytes to read (max RAM_MAX(31)). */ void read_ram(void* buf, size_t size); /** * Burst write data in buffer with given size to the static memory * in the device (max 31 bytes). Burst write is always from address * zero(0). * @param[in] buf pointer to memory block to write. * @param[in] size number of bytes to write (max RAM_MAX(31)). */ void write_ram(void* buf, size_t size); /** * Write clock and calender to the device. * @param[in] now time to set. */ void set_time(time_t& now); /** * Read clock and calender from the device. * @param[inout] now time structure for return value. */ void get_time(time_t& now); }; #endif
[ "matt@majenko.co.uk" ]
matt@majenko.co.uk
8241502cba8d591516d76fe57d749debfc8772dd
582aa70acb599c63734caec165f0151acbe6925a
/TratamentoClassesAbstratas/reta.h
6911d8a46b8ffd8290f57b25ce1b4426dd38fea5
[]
no_license
Silvabrunu/DCA1201
903db0981b45c9db79a4d6d4cb79afacfc883411
be9b4946e73cdbf225ca0271e1521cdb5a497359
refs/heads/master
2020-03-28T11:47:48.322187
2018-12-12T02:52:26
2018-12-12T02:52:26
148,247,496
0
0
null
null
null
null
UTF-8
C++
false
false
341
h
#ifndef RETA_H #define RETA_H #include "figurageometrica.h" #include "screen.h" class Reta : public FiguraGeometrica{ private: int xi, yi, xf, yf; char brush; public: Reta(int _xi=0, int _yi=0, int _xf=0, int _yf=0,char _brush='*'); void draw(Screen &t); int Sinal(int x); }; #endif // RETA_H
[ "bss.santos.bruno@gmail.com" ]
bss.santos.bruno@gmail.com
c29604f20e46534b992b219de1cb25b2bf700ccf
f7730fc51afe47efb5282a78d1129f88a854cbee
/Flip_Equivalent_Binary_Trees.cpp
54655b4c21353c99b5807f610f1a9030944a1f45
[]
no_license
HaoYang0123/LeetCode
38ce5153984e92c71a89745e95b4cb0f0054b1e0
06a6f7df7078bcbb8b8599075a2122cc891526a2
refs/heads/master
2022-08-28T21:01:17.190403
2022-08-04T05:52:17
2022-08-04T05:52:17
97,311,685
4
0
null
2018-09-25T14:00:06
2017-07-15T11:30:26
C++
UTF-8
C++
false
false
736
cpp
//Leetcode 951 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: bool flipEquiv(TreeNode* root1, TreeNode* root2) { return dfs(root1, root2); } bool dfs(TreeNode* r1, TreeNode* r2) { if(r1 == NULL && r2 == NULL) return true; if(r1 == NULL) return false; if(r2 == NULL) return false; if(r1->val != r2->val) return false; if(dfs(r1->left, r2->left) && dfs(r1->right, r2->right)) return true; if(dfs(r1->left, r2->right) && dfs(r1->right, r2->left)) return true; return false; } };
[ "noreply@github.com" ]
noreply@github.com
c69b7bdf2a5c0e488b186d63c313c023b7ab693f
adec5bd578e60d241f33b9f67b8ba4af0357c1f7
/src/vivado/core_mem/solution1/syn/systemc/mem.cpp
822323b2f37cf446eb550138df0c21ce42e2ca81
[]
no_license
Blackhawk95/phase2
715aff94b531f9d28caec9fb03aeb7d3c3f81d55
89f1be850636f35212412948261f32a1b224d20d
refs/heads/master
2020-04-21T16:20:19.994835
2019-04-26T18:40:43
2019-04-26T18:40:43
169,697,543
0
0
null
null
null
null
UTF-8
C++
false
false
19,256
cpp
// ============================================================== // RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2018.3 // Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved. // // =========================================================== #include "mem.h" #include "AESL_pkg.h" using namespace std; namespace ap_rtl { const sc_logic mem::ap_const_logic_1 = sc_dt::Log_1; const sc_logic mem::ap_const_logic_0 = sc_dt::Log_0; const sc_lv<2> mem::ap_ST_fsm_state1 = "1"; const sc_lv<2> mem::ap_ST_fsm_state2 = "10"; const sc_lv<32> mem::ap_const_lv32_0 = "00000000000000000000000000000000"; const int mem::C_S_AXI_DATA_WIDTH = "100000"; const sc_lv<1> mem::ap_const_lv1_0 = "0"; const sc_lv<1> mem::ap_const_lv1_1 = "1"; const sc_lv<32> mem::ap_const_lv32_1 = "1"; const bool mem::ap_const_boolean_1 = true; mem::mem(sc_module_name name) : sc_module(name), mVcdFile(0) { nvm_U = new mem_nvm("nvm_U"); nvm_U->clk(ap_clk); nvm_U->reset(ap_rst_n_inv); nvm_U->address0(nvm_address0); nvm_U->ce0(nvm_ce0); nvm_U->we0(nvm_we0); nvm_U->d0(dram_q0); nvm_U->q0(nvm_q0); dram_U = new mem_dram("dram_U"); dram_U->clk(ap_clk); dram_U->reset(ap_rst_n_inv); dram_U->address0(dram_address0); dram_U->ce0(dram_ce0); dram_U->we0(dram_we0); dram_U->d0(data_i); dram_U->q0(dram_q0); mem_CRTL_BUS_s_axi_U = new mem_CRTL_BUS_s_axi<C_S_AXI_CRTL_BUS_ADDR_WIDTH,C_S_AXI_CRTL_BUS_DATA_WIDTH>("mem_CRTL_BUS_s_axi_U"); mem_CRTL_BUS_s_axi_U->AWVALID(s_axi_CRTL_BUS_AWVALID); mem_CRTL_BUS_s_axi_U->AWREADY(s_axi_CRTL_BUS_AWREADY); mem_CRTL_BUS_s_axi_U->AWADDR(s_axi_CRTL_BUS_AWADDR); mem_CRTL_BUS_s_axi_U->WVALID(s_axi_CRTL_BUS_WVALID); mem_CRTL_BUS_s_axi_U->WREADY(s_axi_CRTL_BUS_WREADY); mem_CRTL_BUS_s_axi_U->WDATA(s_axi_CRTL_BUS_WDATA); mem_CRTL_BUS_s_axi_U->WSTRB(s_axi_CRTL_BUS_WSTRB); mem_CRTL_BUS_s_axi_U->ARVALID(s_axi_CRTL_BUS_ARVALID); mem_CRTL_BUS_s_axi_U->ARREADY(s_axi_CRTL_BUS_ARREADY); mem_CRTL_BUS_s_axi_U->ARADDR(s_axi_CRTL_BUS_ARADDR); mem_CRTL_BUS_s_axi_U->RVALID(s_axi_CRTL_BUS_RVALID); mem_CRTL_BUS_s_axi_U->RREADY(s_axi_CRTL_BUS_RREADY); mem_CRTL_BUS_s_axi_U->RDATA(s_axi_CRTL_BUS_RDATA); mem_CRTL_BUS_s_axi_U->RRESP(s_axi_CRTL_BUS_RRESP); mem_CRTL_BUS_s_axi_U->BVALID(s_axi_CRTL_BUS_BVALID); mem_CRTL_BUS_s_axi_U->BREADY(s_axi_CRTL_BUS_BREADY); mem_CRTL_BUS_s_axi_U->BRESP(s_axi_CRTL_BUS_BRESP); mem_CRTL_BUS_s_axi_U->ACLK(ap_clk); mem_CRTL_BUS_s_axi_U->ARESET(ap_rst_n_inv); mem_CRTL_BUS_s_axi_U->ACLK_EN(ap_var_for_const0); mem_CRTL_BUS_s_axi_U->ap_start(ap_start); mem_CRTL_BUS_s_axi_U->interrupt(interrupt); mem_CRTL_BUS_s_axi_U->ap_ready(ap_ready); mem_CRTL_BUS_s_axi_U->ap_done(ap_done); mem_CRTL_BUS_s_axi_U->ap_idle(ap_idle); mem_CRTL_BUS_s_axi_U->a(a); mem_CRTL_BUS_s_axi_U->ma(ma); mem_CRTL_BUS_s_axi_U->data_o(data_o); mem_CRTL_BUS_s_axi_U->data_o_ap_vld(data_o_ap_vld); mem_CRTL_BUS_s_axi_U->data_i(data_i); mem_CRTL_BUS_s_axi_U->flag(flag); SC_METHOD(thread_ap_clk_no_reset_); dont_initialize(); sensitive << ( ap_clk.pos() ); SC_METHOD(thread_ap_CS_fsm_state1); sensitive << ( ap_CS_fsm ); SC_METHOD(thread_ap_CS_fsm_state2); sensitive << ( ap_CS_fsm ); SC_METHOD(thread_ap_done); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_ap_idle); sensitive << ( ap_start ); sensitive << ( ap_CS_fsm_state1 ); SC_METHOD(thread_ap_ready); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_ap_rst_n_inv); sensitive << ( ap_rst_n ); SC_METHOD(thread_data_o); sensitive << ( data_i ); sensitive << ( tmp_reg_172 ); sensitive << ( ap_CS_fsm_state2 ); sensitive << ( storemerge_fu_159_p3 ); SC_METHOD(thread_data_o_ap_vld); sensitive << ( tmp_reg_172 ); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_dram_address0); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( tmp_fu_132_p1 ); sensitive << ( tmp_1_fu_136_p3 ); sensitive << ( tmp_6_fu_144_p1 ); sensitive << ( tmp_7_fu_149_p1 ); sensitive << ( tmp_8_fu_154_p1 ); SC_METHOD(thread_dram_ce0); sensitive << ( ap_start ); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( tmp_fu_132_p1 ); sensitive << ( tmp_1_fu_136_p3 ); SC_METHOD(thread_dram_we0); sensitive << ( ap_start ); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( tmp_fu_132_p1 ); sensitive << ( tmp_1_fu_136_p3 ); SC_METHOD(thread_nvm_address0); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( a ); sensitive << ( a_read_reg_167 ); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_nvm_ce0); sensitive << ( ap_start ); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_nvm_we0); sensitive << ( tmp_reg_172 ); sensitive << ( tmp_1_reg_176 ); sensitive << ( ap_CS_fsm_state2 ); SC_METHOD(thread_storemerge_fu_159_p3); sensitive << ( nvm_q0 ); sensitive << ( dram_q0 ); sensitive << ( tmp_1_reg_176 ); SC_METHOD(thread_tmp_1_fu_136_p3); sensitive << ( flag ); SC_METHOD(thread_tmp_6_fu_144_p0); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( ma ); SC_METHOD(thread_tmp_6_fu_144_p1); sensitive << ( tmp_6_fu_144_p0 ); SC_METHOD(thread_tmp_7_fu_149_p0); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( ma ); SC_METHOD(thread_tmp_7_fu_149_p1); sensitive << ( tmp_7_fu_149_p0 ); SC_METHOD(thread_tmp_8_fu_154_p0); sensitive << ( ap_CS_fsm_state1 ); sensitive << ( ma ); SC_METHOD(thread_tmp_8_fu_154_p1); sensitive << ( tmp_8_fu_154_p0 ); SC_METHOD(thread_tmp_fu_132_p1); sensitive << ( flag ); SC_METHOD(thread_ap_NS_fsm); sensitive << ( ap_start ); sensitive << ( ap_CS_fsm ); sensitive << ( ap_CS_fsm_state1 ); SC_THREAD(thread_hdltv_gen); sensitive << ( ap_clk.pos() ); SC_THREAD(thread_ap_var_for_const0); ap_CS_fsm = "01"; static int apTFileNum = 0; stringstream apTFilenSS; apTFilenSS << "mem_sc_trace_" << apTFileNum ++; string apTFn = apTFilenSS.str(); mVcdFile = sc_create_vcd_trace_file(apTFn.c_str()); mVcdFile->set_time_unit(1, SC_PS); if (1) { #ifdef __HLS_TRACE_LEVEL_PORT__ sc_trace(mVcdFile, ap_clk, "(port)ap_clk"); sc_trace(mVcdFile, ap_rst_n, "(port)ap_rst_n"); sc_trace(mVcdFile, s_axi_CRTL_BUS_AWVALID, "(port)s_axi_CRTL_BUS_AWVALID"); sc_trace(mVcdFile, s_axi_CRTL_BUS_AWREADY, "(port)s_axi_CRTL_BUS_AWREADY"); sc_trace(mVcdFile, s_axi_CRTL_BUS_AWADDR, "(port)s_axi_CRTL_BUS_AWADDR"); sc_trace(mVcdFile, s_axi_CRTL_BUS_WVALID, "(port)s_axi_CRTL_BUS_WVALID"); sc_trace(mVcdFile, s_axi_CRTL_BUS_WREADY, "(port)s_axi_CRTL_BUS_WREADY"); sc_trace(mVcdFile, s_axi_CRTL_BUS_WDATA, "(port)s_axi_CRTL_BUS_WDATA"); sc_trace(mVcdFile, s_axi_CRTL_BUS_WSTRB, "(port)s_axi_CRTL_BUS_WSTRB"); sc_trace(mVcdFile, s_axi_CRTL_BUS_ARVALID, "(port)s_axi_CRTL_BUS_ARVALID"); sc_trace(mVcdFile, s_axi_CRTL_BUS_ARREADY, "(port)s_axi_CRTL_BUS_ARREADY"); sc_trace(mVcdFile, s_axi_CRTL_BUS_ARADDR, "(port)s_axi_CRTL_BUS_ARADDR"); sc_trace(mVcdFile, s_axi_CRTL_BUS_RVALID, "(port)s_axi_CRTL_BUS_RVALID"); sc_trace(mVcdFile, s_axi_CRTL_BUS_RREADY, "(port)s_axi_CRTL_BUS_RREADY"); sc_trace(mVcdFile, s_axi_CRTL_BUS_RDATA, "(port)s_axi_CRTL_BUS_RDATA"); sc_trace(mVcdFile, s_axi_CRTL_BUS_RRESP, "(port)s_axi_CRTL_BUS_RRESP"); sc_trace(mVcdFile, s_axi_CRTL_BUS_BVALID, "(port)s_axi_CRTL_BUS_BVALID"); sc_trace(mVcdFile, s_axi_CRTL_BUS_BREADY, "(port)s_axi_CRTL_BUS_BREADY"); sc_trace(mVcdFile, s_axi_CRTL_BUS_BRESP, "(port)s_axi_CRTL_BUS_BRESP"); sc_trace(mVcdFile, interrupt, "(port)interrupt"); #endif #ifdef __HLS_TRACE_LEVEL_INT__ sc_trace(mVcdFile, ap_rst_n_inv, "ap_rst_n_inv"); sc_trace(mVcdFile, ap_start, "ap_start"); sc_trace(mVcdFile, ap_done, "ap_done"); sc_trace(mVcdFile, ap_idle, "ap_idle"); sc_trace(mVcdFile, ap_CS_fsm, "ap_CS_fsm"); sc_trace(mVcdFile, ap_CS_fsm_state1, "ap_CS_fsm_state1"); sc_trace(mVcdFile, ap_ready, "ap_ready"); sc_trace(mVcdFile, a, "a"); sc_trace(mVcdFile, ma, "ma"); sc_trace(mVcdFile, data_i, "data_i"); sc_trace(mVcdFile, data_o, "data_o"); sc_trace(mVcdFile, data_o_ap_vld, "data_o_ap_vld"); sc_trace(mVcdFile, flag, "flag"); sc_trace(mVcdFile, nvm_address0, "nvm_address0"); sc_trace(mVcdFile, nvm_ce0, "nvm_ce0"); sc_trace(mVcdFile, nvm_we0, "nvm_we0"); sc_trace(mVcdFile, nvm_q0, "nvm_q0"); sc_trace(mVcdFile, dram_address0, "dram_address0"); sc_trace(mVcdFile, dram_ce0, "dram_ce0"); sc_trace(mVcdFile, dram_we0, "dram_we0"); sc_trace(mVcdFile, dram_q0, "dram_q0"); sc_trace(mVcdFile, a_read_reg_167, "a_read_reg_167"); sc_trace(mVcdFile, tmp_fu_132_p1, "tmp_fu_132_p1"); sc_trace(mVcdFile, tmp_reg_172, "tmp_reg_172"); sc_trace(mVcdFile, tmp_1_fu_136_p3, "tmp_1_fu_136_p3"); sc_trace(mVcdFile, tmp_1_reg_176, "tmp_1_reg_176"); sc_trace(mVcdFile, tmp_6_fu_144_p1, "tmp_6_fu_144_p1"); sc_trace(mVcdFile, tmp_7_fu_149_p1, "tmp_7_fu_149_p1"); sc_trace(mVcdFile, tmp_8_fu_154_p1, "tmp_8_fu_154_p1"); sc_trace(mVcdFile, ap_CS_fsm_state2, "ap_CS_fsm_state2"); sc_trace(mVcdFile, storemerge_fu_159_p3, "storemerge_fu_159_p3"); sc_trace(mVcdFile, tmp_6_fu_144_p0, "tmp_6_fu_144_p0"); sc_trace(mVcdFile, tmp_7_fu_149_p0, "tmp_7_fu_149_p0"); sc_trace(mVcdFile, tmp_8_fu_154_p0, "tmp_8_fu_154_p0"); sc_trace(mVcdFile, ap_NS_fsm, "ap_NS_fsm"); #endif } mHdltvinHandle.open("mem.hdltvin.dat"); mHdltvoutHandle.open("mem.hdltvout.dat"); } mem::~mem() { if (mVcdFile) sc_close_vcd_trace_file(mVcdFile); mHdltvinHandle << "] " << endl; mHdltvoutHandle << "] " << endl; mHdltvinHandle.close(); mHdltvoutHandle.close(); delete nvm_U; delete dram_U; delete mem_CRTL_BUS_s_axi_U; } void mem::thread_ap_var_for_const0() { ap_var_for_const0 = ap_const_logic_1; } void mem::thread_ap_clk_no_reset_() { if ( ap_rst_n_inv.read() == ap_const_logic_1) { ap_CS_fsm = ap_ST_fsm_state1; } else { ap_CS_fsm = ap_NS_fsm.read(); } if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1))) { a_read_reg_167 = a.read(); tmp_1_reg_176 = flag.read().range(1, 1); tmp_reg_172 = tmp_fu_132_p1.read(); } } void mem::thread_ap_CS_fsm_state1() { ap_CS_fsm_state1 = ap_CS_fsm.read()[0]; } void mem::thread_ap_CS_fsm_state2() { ap_CS_fsm_state2 = ap_CS_fsm.read()[1]; } void mem::thread_ap_done() { if (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read())) { ap_done = ap_const_logic_1; } else { ap_done = ap_const_logic_0; } } void mem::thread_ap_idle() { if ((esl_seteq<1,1,1>(ap_const_logic_0, ap_start.read()) && esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()))) { ap_idle = ap_const_logic_1; } else { ap_idle = ap_const_logic_0; } } void mem::thread_ap_ready() { if (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read())) { ap_ready = ap_const_logic_1; } else { ap_ready = ap_const_logic_0; } } void mem::thread_ap_rst_n_inv() { ap_rst_n_inv = (sc_logic) (~ap_rst_n.read()); } void mem::thread_data_o() { if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read()) && esl_seteq<1,1,1>(tmp_reg_172.read(), ap_const_lv1_1))) { data_o = storemerge_fu_159_p3.read(); } else { data_o = data_i.read(); } } void mem::thread_data_o_ap_vld() { if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read()) && esl_seteq<1,1,1>(tmp_reg_172.read(), ap_const_lv1_1))) { data_o_ap_vld = ap_const_logic_1; } else { data_o_ap_vld = ap_const_logic_0; } } void mem::thread_dram_address0() { if (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read())) { if (esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_1)) { dram_address0 = (sc_lv<6>) (tmp_8_fu_154_p1.read()); } else if ((esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_fu_136_p3.read(), ap_const_lv1_1))) { dram_address0 = (sc_lv<6>) (tmp_7_fu_149_p1.read()); } else if ((esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_fu_136_p3.read(), ap_const_lv1_0))) { dram_address0 = (sc_lv<6>) (tmp_6_fu_144_p1.read()); } else { dram_address0 = "XXXXXX"; } } else { dram_address0 = "XXXXXX"; } } void mem::thread_dram_ce0() { if (((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1) && esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_fu_136_p3.read(), ap_const_lv1_0)) || (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1) && esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_1)) || (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1) && esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_fu_136_p3.read(), ap_const_lv1_1)))) { dram_ce0 = ap_const_logic_1; } else { dram_ce0 = ap_const_logic_0; } } void mem::thread_dram_we0() { if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1) && esl_seteq<1,1,1>(tmp_fu_132_p1.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_fu_136_p3.read(), ap_const_lv1_1))) { dram_we0 = ap_const_logic_1; } else { dram_we0 = ap_const_logic_0; } } void mem::thread_nvm_address0() { if (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read())) { nvm_address0 = (sc_lv<16>) (a_read_reg_167.read()); } else if (esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read())) { nvm_address0 = (sc_lv<16>) (a.read()); } else { nvm_address0 = (sc_lv<16>) ("XXXXXXXXXXXXXXXX"); } } void mem::thread_nvm_ce0() { if (((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1)) || esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read()))) { nvm_ce0 = ap_const_logic_1; } else { nvm_ce0 = ap_const_logic_0; } } void mem::thread_nvm_we0() { if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state2.read()) && esl_seteq<1,1,1>(tmp_reg_172.read(), ap_const_lv1_0) && esl_seteq<1,1,1>(tmp_1_reg_176.read(), ap_const_lv1_0))) { nvm_we0 = ap_const_logic_1; } else { nvm_we0 = ap_const_logic_0; } } void mem::thread_storemerge_fu_159_p3() { storemerge_fu_159_p3 = (!tmp_1_reg_176.read()[0].is_01())? sc_lv<32>(): ((tmp_1_reg_176.read()[0].to_bool())? dram_q0.read(): nvm_q0.read()); } void mem::thread_tmp_1_fu_136_p3() { tmp_1_fu_136_p3 = flag.read().range(1, 1); } void mem::thread_tmp_6_fu_144_p0() { tmp_6_fu_144_p0 = ma.read(); } void mem::thread_tmp_6_fu_144_p1() { tmp_6_fu_144_p1 = esl_sext<64,32>(tmp_6_fu_144_p0.read()); } void mem::thread_tmp_7_fu_149_p0() { tmp_7_fu_149_p0 = ma.read(); } void mem::thread_tmp_7_fu_149_p1() { tmp_7_fu_149_p1 = esl_sext<64,32>(tmp_7_fu_149_p0.read()); } void mem::thread_tmp_8_fu_154_p0() { tmp_8_fu_154_p0 = ma.read(); } void mem::thread_tmp_8_fu_154_p1() { tmp_8_fu_154_p1 = esl_sext<64,32>(tmp_8_fu_154_p0.read()); } void mem::thread_tmp_fu_132_p1() { tmp_fu_132_p1 = flag.read().range(1-1, 0); } void mem::thread_ap_NS_fsm() { switch (ap_CS_fsm.read().to_uint64()) { case 1 : if ((esl_seteq<1,1,1>(ap_const_logic_1, ap_CS_fsm_state1.read()) && esl_seteq<1,1,1>(ap_start.read(), ap_const_logic_1))) { ap_NS_fsm = ap_ST_fsm_state2; } else { ap_NS_fsm = ap_ST_fsm_state1; } break; case 2 : ap_NS_fsm = ap_ST_fsm_state1; break; default : ap_NS_fsm = (sc_lv<2>) ("XX"); break; } } void mem::thread_hdltv_gen() { const char* dump_tv = std::getenv("AP_WRITE_TV"); if (!(dump_tv && string(dump_tv) == "on")) return; wait(); mHdltvinHandle << "[ " << endl; mHdltvoutHandle << "[ " << endl; int ap_cycleNo = 0; while (1) { wait(); const char* mComma = ap_cycleNo == 0 ? " " : ", " ; mHdltvinHandle << mComma << "{" << " \"ap_rst_n\" : \"" << ap_rst_n.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_AWVALID\" : \"" << s_axi_CRTL_BUS_AWVALID.read() << "\" "; mHdltvoutHandle << mComma << "{" << " \"s_axi_CRTL_BUS_AWREADY\" : \"" << s_axi_CRTL_BUS_AWREADY.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_AWADDR\" : \"" << s_axi_CRTL_BUS_AWADDR.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_WVALID\" : \"" << s_axi_CRTL_BUS_WVALID.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_WREADY\" : \"" << s_axi_CRTL_BUS_WREADY.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_WDATA\" : \"" << s_axi_CRTL_BUS_WDATA.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_WSTRB\" : \"" << s_axi_CRTL_BUS_WSTRB.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_ARVALID\" : \"" << s_axi_CRTL_BUS_ARVALID.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_ARREADY\" : \"" << s_axi_CRTL_BUS_ARREADY.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_ARADDR\" : \"" << s_axi_CRTL_BUS_ARADDR.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_RVALID\" : \"" << s_axi_CRTL_BUS_RVALID.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_RREADY\" : \"" << s_axi_CRTL_BUS_RREADY.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_RDATA\" : \"" << s_axi_CRTL_BUS_RDATA.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_RRESP\" : \"" << s_axi_CRTL_BUS_RRESP.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_BVALID\" : \"" << s_axi_CRTL_BUS_BVALID.read() << "\" "; mHdltvinHandle << " , " << " \"s_axi_CRTL_BUS_BREADY\" : \"" << s_axi_CRTL_BUS_BREADY.read() << "\" "; mHdltvoutHandle << " , " << " \"s_axi_CRTL_BUS_BRESP\" : \"" << s_axi_CRTL_BUS_BRESP.read() << "\" "; mHdltvoutHandle << " , " << " \"interrupt\" : \"" << interrupt.read() << "\" "; mHdltvinHandle << "}" << std::endl; mHdltvoutHandle << "}" << std::endl; ap_cycleNo++; } } }
[ "abhijith.newton@gmail.com" ]
abhijith.newton@gmail.com
acfe30c9f7074a77340abc07db859bcd28737392
e3dca932071ec6bac7c5d43512f5a437e456d0a0
/V4L2CamInterfaceGst.cpp
b8e48364fe48a5896dacb5603a443856d0257b9a
[]
no_license
qtec/GWT_Camera_jni
eff517ac88bdf51b52bc2b564fb68ec9f2044946
029c7acbfdb475eccdd975d2a81d58c868a775e4
refs/heads/master
2020-06-22T13:08:07.901164
2016-11-23T15:36:36
2016-11-23T15:37:19
74,591,540
0
0
null
null
null
null
UTF-8
C++
false
false
19,605
cpp
#include "V4L2CamInterfaceGst.h" //for standalone testing //compile with: //gcc -Wall V4L2CamInterfaceGst.cpp -o gstreamerTest $(pkg-config --cflags --libs gstreamer-1.0) /*int main(int argc, char *argv[]) { if (argc != 2) { g_printerr ("Usage: %s <device>\n", argv[0]); return -1; } VideoCapabilities vcaps = {"GRAY8", 1024, 544, 10}; Rect cropRect = {400, 200, 44, 224}; PID pidParams = {"v ramp"}; ErrorMsg res = gstCalib(argv[1], vcaps, cropRect, pidParams); return res.error; }*/ #define DEBUG_GST_INPUT 0 typedef struct BusArgs { GMainLoop* loop; ErrorMsg* result; GstElement *pipeline; }BusArgs; static gboolean bus_call (GstBus* bus, GstMessage* msg, gpointer data) { BusArgs* args = (BusArgs*)data; GMainLoop* loop = args->loop; ErrorMsg* result = args->result; GstElement *pipeline = args->pipeline; switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: strncpy(result->msg, "End-Of-Stream reached\n", MAX_ERROR_MSG_SIZE); g_print (result->msg); result->error = 0; g_main_loop_quit (loop); break; case GST_MESSAGE_ERROR: { gchar* debug = NULL; GError* err = NULL; gst_message_parse_error (msg, &err, &debug); snprintf(result->msg, MAX_ERROR_MSG_SIZE, "Error received from element %s:\n%s\n", GST_OBJECT_NAME (msg->src), err->message); g_printerr (result->msg); g_error_free (err); if (debug) { g_print ("Debug details: %s\n", debug); g_free (debug); } g_main_loop_quit (loop); break; } case GST_MESSAGE_WARNING: { gchar* debug = NULL; GError* err = NULL; gst_message_parse_warning (msg, &err, &debug); snprintf(result->msg, MAX_ERROR_MSG_SIZE, "Warning received from element %s:\n%s\n", GST_OBJECT_NAME (msg->src), err->message); g_printerr (result->msg); g_error_free (err); if (debug) { g_print ("Debug details: %s\n", debug); g_free (debug); } break; } case GST_MESSAGE_STATE_CHANGED: // We are only interested in state-changed messages from the pipeline if (GST_MESSAGE_SRC (msg) == GST_OBJECT (pipeline)) { GstState old_state, new_state, pending_state; gst_message_parse_state_changed (msg, &old_state, &new_state, &pending_state); g_print ("\nPipeline state changed from %s to %s:\n", gst_element_state_get_name (old_state), gst_element_state_get_name (new_state)); } break; default: break; } return TRUE; } ErrorMsg gstCalib(const char* videoDevice, VideoCapabilities vcaps, Rect hwRect, Rect swRect, PID pidParams) { ErrorMsg result = {-1, ""}; GstElement *pipeline, *source, *filter, *crop, *v4l2control; GstElement *hist, *pid; GstElement *avgframes, *avgrow, *fpnmagic, *sweep, *fpncsink; GMainLoop* loop; GstBus *bus; GstStateChangeReturn ret; guint watch_id; // Initialisation char arg0[] = "gstCalib"; //char arg1[] = "--gst-debug=v4l2src:9,v4l2:9"; char arg1[] = ""; char* argv[] = { &arg0[0], &arg1[0], NULL }; int argc = (int)(sizeof(argv) / sizeof(argv[0])) - 1; char** p = &argv[0]; gst_init (&argc, &p); loop = g_main_loop_new (NULL, FALSE); // Create gstreamer elements pipeline = gst_pipeline_new ("sensor-calib"); if(!pipeline){ strncpy(result.msg, "Could not create pipeline object\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); return result; } BusArgs args = {loop, &result, pipeline}; bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); watch_id = gst_bus_add_watch (bus, bus_call, &args); gst_object_unref (bus); source = gst_element_factory_make ("v4l2src", "video-source"); filter = gst_element_factory_make ("capsfilter", "filter"); crop = gst_element_factory_make ("videocrop", "image-cropping"); //sink = gst_element_factory_make ("ximagesink", "video-sink"); //convert = gst_element_factory_make ("videoconvert", "video-convert"); avgframes = gst_element_factory_make ("avgframes", "avg-frames"); v4l2control = gst_element_factory_make ("v4l2control", "v4l2-control"); if (!source || !filter || !crop || !v4l2control || !avgframes) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } #if DEBUG_GST_INPUT printf("VCaps: format=%s w=%d h=%d fps=%f\n", vcaps.format, vcaps.width, vcaps.height, vcaps.fps); printf("HwRect: top=%d left=%d width=%d height=%d\n", hwRect.top, hwRect.left, hwRect.width, hwRect.height); printf("SwRect: top=%d left=%d width=%d height=%d\n", swRect.top, swRect.left, swRect.width, swRect.height); printf("PidParams: name=%s value=%d type=%d step=%d stop=%d\n", pidParams.control_name, pidParams.target_value, pidParams.target_type, pidParams.control_step, pidParams.stop); #endif //device cropping GstStructure *s = gst_structure_new ( "crop", "top", G_TYPE_INT, hwRect.top, "left", G_TYPE_INT, hwRect.left, "height", G_TYPE_INT, hwRect.height, "width", G_TYPE_INT, hwRect.width, NULL); g_object_set (G_OBJECT (source), "device", videoDevice, "io-mode", 1, "selection", s, "useqtecgreen", vcaps.use_qtec_green, NULL); //set image cropping g_object_set (G_OBJECT (crop), "top", swRect.top, "left", swRect.left, "bottom", vcaps.height-(swRect.top+swRect.height), "right", vcaps.width-(swRect.left+swRect.width), NULL); //set video device for v4l2control g_object_set (G_OBJECT (v4l2control), "device", videoDevice, NULL); //set video capabilities GstCaps *filtercaps = gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, vcaps.format, "width", G_TYPE_INT, vcaps.width, "height", G_TYPE_INT, vcaps.height, "framerate", GST_TYPE_FRACTION, (int)(vcaps.fps*1000), 1000, NULL); g_object_set (G_OBJECT (filter), "caps", filtercaps, NULL); gst_caps_unref (filtercaps); if( strcmp(pidParams.control_name, "offset")==0 || strcmp(pidParams.control_name, "adc gain")==0){ hist = gst_element_factory_make ("vhist", "histogram"); pid = gst_element_factory_make ("v4l2pid", "pid-controller"); if (!hist || !pid ) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } //set nr avg frames to 5 g_object_set (G_OBJECT (avgframes), "frameno", 5, NULL); //set pid params g_object_set (G_OBJECT (pid), "control-name", pidParams.control_name, "target-value", pidParams.target_value, "target-type", pidParams.target_type, "stop", pidParams.stop, "control-step", pidParams.control_step, NULL); // Set up the pipeline // we add all elements into the pipeline gst_bin_add_many (GST_BIN (pipeline), source, filter, crop, v4l2control, avgframes, hist, pid, NULL); // we link the elements together if (gst_element_link_many (source, filter, v4l2control, avgframes, hist, pid, NULL) != TRUE) { strncpy(result.msg, "Elements could not be linked\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } }else{ avgrow = gst_element_factory_make ("avgrow", "avg-rows"); fpnmagic = gst_element_factory_make ("fpncmagic", "fpn-magic"); if (!avgrow || !fpnmagic) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } //set nr avg frames to 20 g_object_set (G_OBJECT (avgframes), "frameno", 20, NULL); //set avgrows g_object_set (G_OBJECT (avgrow), "total-avg", 1, NULL); if( strcmp(pidParams.control_name, "v ramp")==0){ sweep = gst_element_factory_make ("v4l2sweep", "sweep"); if (!sweep) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } //FIXME //v4l2sweep sweep from 102 to 115 (from CMV2 and 4 datasheets and suggested by Maxim) g_object_set (G_OBJECT (sweep), "sweep-min", 102, NULL); g_object_set (G_OBJECT (sweep), "sweep-max", 115, NULL); // Set up the pipeline // we add all elements into the pipeline gst_bin_add_many (GST_BIN (pipeline), source, filter, crop, v4l2control, avgframes, avgrow, fpnmagic, sweep, NULL); // we link the elements together if (gst_element_link_many (source, filter, crop, v4l2control, avgframes, avgrow, fpnmagic, sweep, NULL) != TRUE) { strncpy(result.msg, "Elements could not be linked\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } }else{ fpncsink = gst_element_factory_make ("fpncsink", "fpnc-sink"); if (!fpncsink) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } //write fpnc result to file g_object_set (G_OBJECT (fpncsink), "writefpn", 1, NULL); g_object_set (G_OBJECT (fpncsink), "filepath", "/etc/gwt_camera/", NULL); // Set up the pipeline // we add all elements into the pipeline gst_bin_add_many (GST_BIN (pipeline), source, filter, v4l2control, avgframes, avgrow, fpnmagic, fpncsink, NULL); // we link the elements together if (gst_element_link_many (source, filter, v4l2control, avgframes, avgrow, fpnmagic, fpncsink, NULL) != TRUE) { strncpy(result.msg, "Elements could not be linked\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } } } g_print ("In NULL state\n"); // Set the pipeline to "playing" state g_print ("Now playing \n"); ret = gst_element_set_state (pipeline, GST_STATE_PLAYING); if (ret == GST_STATE_CHANGE_FAILURE) { GstMessage* msg; strncpy(result.msg, "Unable to set the pipeline to the playing state (checking the bus for error messages)\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); // check if there is an error message with details on the bus msg = gst_bus_poll (bus, GST_MESSAGE_ERROR, 0); if (msg) { GError* err = NULL; gst_message_parse_error (msg, &err, NULL); g_print ("ERROR: %s\n", err->message); g_error_free (err); gst_message_unref (msg); } gst_object_unref (pipeline); return result; } g_main_loop_run (loop); // clean up g_print ("Setting pipeline to NULL\n"); ret = gst_element_set_state (pipeline, GST_STATE_NULL); if (ret == GST_STATE_CHANGE_FAILURE) { GstMessage* msg; strncpy(result.msg, "Unable to set the pipeline to the NULL state (checking the bus for error messages)\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); // check if there is an error message with details on the bus msg = gst_bus_poll (bus, GST_MESSAGE_ERROR, 0); if (msg) { GError* err = NULL; gst_message_parse_error (msg, &err, NULL); g_print ("ERROR: %s\n", err->message); g_error_free (err); gst_message_unref (msg); } }else if(ret == GST_STATE_CHANGE_ASYNC){ GstState state; GstState pending; ret = gst_element_get_state(pipeline, &state, &pending, GST_CLOCK_TIME_NONE); g_print ("\nPipeline state %s pending %s:\n", gst_element_state_get_name (state), gst_element_state_get_name (pending)); } gst_object_unref (pipeline); g_source_remove (watch_id); g_main_loop_unref (loop); return result; } ErrorMsg gstRecord(const char* videoDevice, VideoCapabilities vcaps, Rect hwRect, int nrImages, const char* imagesLocation) { ErrorMsg result = {-1, ""}; GstElement *pipeline, *source, *filter, *encoder, *sink; GMainLoop* loop; GstBus *bus; GstStateChangeReturn ret; guint watch_id; // Initialisation char arg0[] = "gstRecord"; //char arg1[] = "--gst-debug=v4l2src:9,v4l2:9"; char arg1[] = ""; char* argv[] = { &arg0[0], &arg1[0], NULL }; int argc = (int)(sizeof(argv) / sizeof(argv[0])) - 1; char** p = &argv[0]; gst_init (&argc, &p); loop = g_main_loop_new (NULL, FALSE); // Create gstreamer elements pipeline = gst_pipeline_new ("record-images"); if(!pipeline){ strncpy(result.msg, "Could not create pipeline object\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); return result; } BusArgs args = {loop, &result, pipeline}; bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); watch_id = gst_bus_add_watch (bus, bus_call, &args); gst_object_unref (bus); source = gst_element_factory_make ("v4l2src", "video-source"); filter = gst_element_factory_make ("capsfilter", "filter"); encoder = gst_element_factory_make ("pnmenc", "encoder"); sink = gst_element_factory_make ("multifilesink", "sink"); if (!source || !filter || !encoder || !sink) { strncpy(result.msg, "One element could not be created\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } #if DEBUG_GST_INPUT printf("VCaps: format=%s w=%d h=%d fps=%f\n", vcaps.format, vcaps.width, vcaps.height, vcaps.fps); printf("HwRect: top=%d left=%d width=%d height=%d\n", hwRect.top, hwRect.left, hwRect.width, hwRect.height); #endif //device cropping GstStructure *s = gst_structure_new ( "crop", "top", G_TYPE_INT, hwRect.top, "left", G_TYPE_INT, hwRect.left, "height", G_TYPE_INT, hwRect.height, "width", G_TYPE_INT, hwRect.width, NULL); g_object_set (G_OBJECT (source), "device", videoDevice, "io-mode", 1, "selection", s, "useqtecgreen", vcaps.use_qtec_green, "num-buffers", nrImages, NULL); //set video capabilities GstCaps *filtercaps = gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, vcaps.format, "width", G_TYPE_INT, vcaps.width, "height", G_TYPE_INT, vcaps.height, "framerate", GST_TYPE_FRACTION, (int)(vcaps.fps*1000), 1000, NULL); g_object_set (G_OBJECT (filter), "caps", filtercaps, NULL); gst_caps_unref (filtercaps); g_object_set (G_OBJECT (sink), "location", imagesLocation, NULL); // we add all elements into the pipeline gst_bin_add_many (GST_BIN (pipeline), source, filter, encoder, sink, NULL); // we link the elements together if (gst_element_link_many (source, filter, encoder, sink, NULL) != TRUE) { strncpy(result.msg, "Elements could not be linked\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); gst_object_unref (pipeline); return result; } g_print ("In NULL state\n"); // Set the pipeline to "playing" state g_print ("Now playing \n"); ret = gst_element_set_state (pipeline, GST_STATE_PLAYING); if (ret == GST_STATE_CHANGE_FAILURE) { GstMessage* msg; strncpy(result.msg, "Unable to set the pipeline to the playing state (checking the bus for error messages)\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); // check if there is an error message with details on the bus msg = gst_bus_poll (bus, GST_MESSAGE_ERROR, 0); if (msg) { GError* err = NULL; gst_message_parse_error (msg, &err, NULL); g_print ("ERROR: %s\n", err->message); g_error_free (err); gst_message_unref (msg); } gst_object_unref (pipeline); return result; } g_main_loop_run (loop); // clean up g_print ("Setting pipeline to NULL\n"); ret = gst_element_set_state (pipeline, GST_STATE_NULL); if (ret == GST_STATE_CHANGE_FAILURE) { GstMessage* msg; strncpy(result.msg, "Unable to set the pipeline to the NULL state (checking the bus for error messages)\n", MAX_ERROR_MSG_SIZE); g_printerr (result.msg); // check if there is an error message with details on the bus msg = gst_bus_poll (bus, GST_MESSAGE_ERROR, 0); if (msg) { GError* err = NULL; gst_message_parse_error (msg, &err, NULL); g_print ("ERROR: %s\n", err->message); g_error_free (err); gst_message_unref (msg); } }else if(ret == GST_STATE_CHANGE_ASYNC){ GstState state; GstState pending; ret = gst_element_get_state(pipeline, &state, &pending, GST_CLOCK_TIME_NONE); g_print ("\nPipeline state %s pending %s:\n", gst_element_state_get_name (state), gst_element_state_get_name (pending)); } gst_object_unref (pipeline); g_source_remove (watch_id); g_main_loop_unref (loop); return result; } int testApp() { GstElement *pipeline, *source, *sink, *filter, *convert; GstBus *bus; GstMessage *msg; GstStateChangeReturn ret; gboolean terminate = FALSE; // Initialisation gst_init (NULL, NULL); // Create gstreamer elements pipeline = gst_pipeline_new ("test-app"); source = gst_element_factory_make ("v4l2src", "video-source"); filter = gst_element_factory_make ("capsfilter", "filter"); convert = gst_element_factory_make ("videoconvert", "video-convert"); sink = gst_element_factory_make ("ximagesink", "video-sink"); if (!pipeline || !source || !sink || !filter || !convert) { g_printerr ("One element could not be created. Exiting.\n"); return -1; } // Set up the pipeline // we set the device to the source element g_object_set (G_OBJECT (source), "device", "/dev/qt5023_video0", "num-buffers", 10, NULL); //set video capabilities GstCaps *filtercaps = gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING, "GRAY8", "width", G_TYPE_INT, 1024, "height", G_TYPE_INT, 544, "framerate", GST_TYPE_FRACTION, 25, 1, NULL); g_object_set (G_OBJECT (filter), "caps", filtercaps, NULL); gst_caps_unref (filtercaps); // we add all elements into the pipeline // v4l2src | ximagesink gst_bin_add_many (GST_BIN (pipeline), source, filter, convert, sink, NULL); // we link the elements together // v4l2src -> ximagesink if (gst_element_link_many (source, filter, convert, sink, NULL) != TRUE) { g_printerr ("Elements could not be linked.\n"); gst_object_unref (pipeline); return -1; } g_print ("In NULL state\n"); // Set the pipeline to "playing" state g_print ("Now playing \n"); ret = gst_element_set_state (pipeline, GST_STATE_PLAYING); if (ret == GST_STATE_CHANGE_FAILURE) { g_printerr ("Unable to set the pipeline to the playing state (check the bus for error messages).\n"); } // Wait until error, EOS or State Change bus = gst_element_get_bus (pipeline); do { msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, (GstMessageType)(GST_MESSAGE_ERROR | GST_MESSAGE_EOS | GST_MESSAGE_STATE_CHANGED)); // Parse message if (msg != NULL) { GError *err; gchar *debug_info; switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_ERROR: gst_message_parse_error (msg, &err, &debug_info); g_printerr ("Error received from element %s: %s\n", GST_OBJECT_NAME (msg->src), err->message); g_printerr ("Debugging information: %s\n", debug_info ? debug_info : "none"); g_clear_error (&err); g_free (debug_info); terminate = TRUE; break; case GST_MESSAGE_EOS: g_print ("End-Of-Stream reached.\n"); terminate = TRUE; break; case GST_MESSAGE_STATE_CHANGED: // We are only interested in state-changed messages from the pipeline if (GST_MESSAGE_SRC (msg) == GST_OBJECT (pipeline)) { GstState old_state, new_state, pending_state; gst_message_parse_state_changed (msg, &old_state, &new_state, &pending_state); g_print ("\nPipeline state changed from %s to %s:\n", gst_element_state_get_name (old_state), gst_element_state_get_name (new_state)); } break; default: // We should not reach here because we only asked for ERRORs, EOS and STATE_CHANGED g_printerr ("Unexpected message received.\n"); break; } gst_message_unref (msg); } } while (!terminate); // Free resources gst_object_unref (bus); gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (pipeline); return 0; }
[ "ricardo.ribalda@gmail.com" ]
ricardo.ribalda@gmail.com
d8d62fa12d8a4d71df4a14864da41cc794c9f17a
3ec4daaad765e6f45ef3c391a1345bf90ed7a462
/src/Qt/Sensor/sa.cpp
cd0d358175524887f11885a021d5cb10171cb6bd
[]
no_license
realyao/Zigbee-Environmental-detection-system
4bdb5e17cc350946b862a727fdce04f91fd6b65a
4ce797655d5ea515f082b7017bd9a25c675dc94c
refs/heads/master
2021-07-13T11:11:59.453829
2021-03-08T07:50:47
2021-03-08T07:50:47
240,725,369
1
0
null
null
null
null
UTF-8
C++
false
false
20,881
cpp
#include "sa.h" #include "ui_sa.h" #include "mainwindow.h" #include "logindialog.h" #include <QSqlTableModel> #include <QMessageBox> #include <QStringList> #include <QSqlQuery> #include <QDebug> Sa::Sa(QWidget *parent) : QMainWindow(parent), ui(new Ui::Sa) { ui->setupUi(this); setWindowIcon(QIcon(":/myICO/my.ico")); setWindowTitle(tr("ZigBee小型环境监测系统")); //新建模型 model = new QSqlTableModel(this); //填充个人 QSqlQuery query; query.exec("select * from Employee"); while(query.next()) { if(query.value(0).toString() == Sa::SaID) { ui->Sa_IDLabel->setText(query.value(0).toString()); ui->Sa_ProIDLabel->setText(query.value(1).toString()); ui->Sa_NameLabel->setText(query.value(2).toString()); ui->Sa_AgeLabel->setText(query.value(3).toString()); ui->Sa_TitleLabel->setText(query.value(4).toString()); break; } } } Sa::~Sa() { delete ui; } void Sa::on_pushButton_4_clicked() { ui->Up_stackedWidget->setCurrentIndex(0); } void Sa::on_pushButton_5_clicked() { ui->Up_stackedWidget->setCurrentIndex(1); } void Sa::on_pushButton_6_clicked() { ui->Up_stackedWidget->setCurrentIndex(3); } //项目查询 void Sa::on_pushButton_11_clicked() { ui->Down_stackedWidget->setCurrentIndex(0); model->setTable("Project"); model->setHeaderData(0,Qt::Horizontal,tr("项目ID")); model->setHeaderData(1,Qt::Horizontal,tr("项目名称")); model->setHeaderData(2,Qt::Horizontal,tr("布局地点")); model->setHeaderData(3,Qt::Horizontal,tr("开始日期")); model->select(); ui->Sa_CheckProtableView->setModel(model); } //用户查询 void Sa::on_pushButton_12_clicked() { ui->Down_stackedWidget->setCurrentIndex(1); model->setTable("UserT"); model->setHeaderData(0,Qt::Horizontal,tr("用户ID")); model->setHeaderData(1,Qt::Horizontal,tr("项目ID")); model->setHeaderData(2,Qt::Horizontal,tr("用户名称")); model->setHeaderData(3,Qt::Horizontal,tr("用户密码")); model->setHeaderData(4,Qt::Horizontal,tr("用户权限")); model->select(); ui->Sa_CheckUsetableView->setModel(model); } //传感器查询 void Sa::on_pushButton_13_clicked() { ui->Down_stackedWidget->setCurrentIndex(2); model->setTable("Sensor"); model->setHeaderData(0,Qt::Horizontal,tr("传感器ID")); model->setHeaderData(1,Qt::Horizontal,tr("时间")); model->setHeaderData(2,Qt::Horizontal,tr("项目ID")); model->setHeaderData(3,Qt::Horizontal,tr("温度")); model->setHeaderData(4,Qt::Horizontal,tr("亮度")); model->select(); ui->Sa_CheckSentableView->setModel(model); } //职工查询 void Sa::on_pushButton_14_clicked() { ui->Down_stackedWidget->setCurrentIndex(3); model->setTable("Employee"); model->setHeaderData(0,Qt::Horizontal,tr("职工ID")); model->setHeaderData(1,Qt::Horizontal,tr("项目ID")); model->setHeaderData(2,Qt::Horizontal,tr("雇职工名称")); model->setHeaderData(3,Qt::Horizontal,tr("职工年龄")); model->setHeaderData(4,Qt::Horizontal,tr("职称")); model->setHeaderData(5,Qt::Horizontal,tr("职工密码")); model->select(); ui->Sa_CheckEmptableView->setModel(model); } void Sa::on_pushButton_3_clicked() { close(); } //sa个人 void Sa::on_pushButton_clicked() { ui->Up_stackedWidget->setCurrentIndex(2); } void Sa::on_pushButton_7_clicked() { ui->stackedWidget->setCurrentIndex(0); } void Sa::on_pushButton_8_clicked() { ui->stackedWidget->setCurrentIndex(1); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select ProID from Project")); ui->Sa_AddUse_ProID_ComBox->setModel(goodBrandModel); QString one("1"); QString two("2"); QString three("3"); ui->Sa_UseQuanxian_ComBox->addItem(one); ui->Sa_UseQuanxian_ComBox->addItem(two); ui->Sa_UseQuanxian_ComBox->addItem(three); } void Sa::on_pushButton_9_clicked() { ui->stackedWidget->setCurrentIndex(2); QSqlQueryModel *Model=new QSqlQueryModel(this); Model->setQuery(QString("select ProID from Project")); ui->Sa_AddSenProIDComBox->setModel(Model); } //职工添加 void Sa::on_pushButton_10_clicked() { ui->stackedWidget->setCurrentIndex(3); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select ProID from Project")); ui->Sa_EmpProIDComBox->setModel(goodBrandModel); QString sa("管理员"); QString emp("普通职工"); ui->Sa_EmpTitleComBox->addItem(sa); ui->Sa_EmpTitleComBox->addItem(emp); } //注销 void Sa::on_pushButton_2_clicked() { close(); loginDialog login; if(login.exec() == QDialog::Accepted) { if(loginDialog::User) { MainWindow *U = new MainWindow(this); U->setWindowModality(Qt::ApplicationModal); U->show(); } if(loginDialog::Sa) { Sa *S = new Sa(this); S->setWindowModality(Qt::ApplicationModal); S->show(); } } else { login.close(); } } void Sa::on_pushButton_17_clicked() { ui->Up_stackedWidget->setCurrentIndex(4); } void Sa::on_pushButton_27_clicked() { ui->Delete_stackedWidget->setCurrentIndex(0); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select ProID from Project")); ui->Sa_DeleteProComboBox->setModel(goodBrandModel); } void Sa::on_pushButton_28_clicked() { ui->Delete_stackedWidget->setCurrentIndex(1); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select UseID from UserT")); ui->Sa_Delete_UserID_comboBox->setModel(goodBrandModel); } void Sa::on_pushButton_29_clicked() { ui->Delete_stackedWidget->setCurrentIndex(2); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select EmpID from Employee")); ui->Sa_DelectEmpComboBox->setModel(goodBrandModel); } void Sa::on_pushButton_18_clicked() { ui->Receive_stackedWidget->setCurrentIndex(0); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select ProID from Project")); ui->Sa_R_ProIDcomboBox->setModel(goodBrandModel); } void Sa::on_pushButton_19_clicked() { ui->Receive_stackedWidget->setCurrentIndex(1); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select UseID from UserT")); ui->Sa_R_UseIDcomboBox->setModel(goodBrandModel); QString one("1"); QString two("2"); QString three("3"); ui->Sa_R_UsePowComboBox->addItem(one); ui->Sa_R_UsePowComboBox->addItem(two); ui->Sa_R_UsePowComboBox->addItem(three); } void Sa::on_pushButton_21_clicked() { ui->Receive_stackedWidget->setCurrentIndex(2); QSqlQueryModel *goodBrandModel=new QSqlQueryModel(this); goodBrandModel->setQuery(QString("select EmpID from Employee")); ui->Sa_R_EmpIDcomboBox->setModel(goodBrandModel); QSqlQueryModel *Model=new QSqlQueryModel(this); Model->setQuery(QString("select ProID from Project")); ui->Sa_R_EmpProIDComboBox->setModel(Model); QString sa("管理员"); QString emp("普通职工"); ui->Sa_R_EmpTitleComboBox->addItem(sa); ui->Sa_R_EmpTitleComboBox->addItem(emp); } void Sa::on_Sa_Emp_Clear_clicked() { ui->Sa_EmpAgeLine->setValue(0); ui->Sa_EmpIDLine->clear(); ui->Sa_EmpNaleLine->clear(); ui->Sa_EmpPassLine->clear(); ui->Sa_EmpProIDComBox->clear(); ui->Sa_EmpTitleComBox->clear(); } void Sa::on_Emp_Sen_Clear_clicked() { ui->Sa_ADDSenDateSpinBox->setValue(0); ui->Sa_ADDSenIDLine->clear(); ui->Sa_AddSenProIDComBox->clear(); } //项目添加 void Sa::on_Emp_Pro_Sure_clicked() { //获得编辑值 QString ProID = ui->Sa_AddProID->text(); if(ProID.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入项目ID!"),QMessageBox::Ok); ui->Sa_AddProID->setFocus(); } QString ProName = ui->Sa_AddProName->text(); if(ProName.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入项目名称!"),QMessageBox::Ok); ui->Sa_AddProName->setFocus(); } QString ProPos = ui->Sa_AddProPos->text(); if(ProPos.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入项目布局地点!"),QMessageBox::Ok); ui->Sa_AddProPos->setFocus(); } QString ProDate = ui->Sa_AdddateEdit->text(); for(int i = 0; i<ProDate.length();i++) if(ProDate.at(i) == '/') ProDate[i] = '.'; //插入数据库,设计事务 QSqlDatabase::database().transaction(); QSqlQuery query; bool success = query.exec(QString("insert into Project values('%1','%2','%3','%4');").arg(ProID).arg(ProName).arg(ProPos).arg(ProDate)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("添加成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("添加失败,请查询详细信息!"),QMessageBox::Ok); } on_Emp_Pro_Clear_clicked(); } void Sa::on_Emp_Pro_Clear_clicked() { ui->Sa_AddProID->clear(); ui->Sa_AddProName->clear(); ui->Sa_AddProPos->clear(); } //添加用户 void Sa::on_Emp_Use_Sure_clicked() { QString UseID = ui->Sa_AddUseID->text(); if(UseID.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入用户ID!"),QMessageBox::Ok); ui->Sa_AddUseID->setFocus(); } QString ProID = ui->Sa_AddUse_ProID_ComBox->currentText(); if(ProID.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请选择项目ID!"),QMessageBox::Ok); ui->Sa_AddUse_ProID_ComBox->setFocus(); } QString UseName = ui->Sa_AddUseName->text(); if(UseName.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请选填入用户名称!"),QMessageBox::Ok); ui->Sa_AddUseName->setFocus(); } QString UsePass = ui->Sa_AddUsePass->text(); if(UsePass.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入用户密码!"),QMessageBox::Ok); ui->Sa_AddUsePass->setFocus(); } QString UsePower = ui->Sa_UseQuanxian_ComBox->currentText(); if(UsePower.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请选择用户权限!"),QMessageBox::Ok); ui->Sa_UseQuanxian_ComBox->setFocus(); } //插入数据库,设计事务 QSqlDatabase::database().transaction(); QSqlQuery query; bool success = query.exec(QString("insert into UserT values('%1','%2','%3','%4','%5');").arg(UseID).arg(ProID).arg(UseName).arg(UsePass).arg(UsePower)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("添加成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("添加失败,请查询详细信息!"),QMessageBox::Ok); } on_Emp_Use_Clear_clicked(); } void Sa::on_Emp_Use_Clear_clicked() { ui->Sa_AddUseID->clear(); ui->Sa_AddUse_ProID_ComBox->clear(); ui->Sa_AddUseName->clear(); ui->Sa_AddUsePass->clear(); ui->Sa_UseQuanxian_ComBox->clear(); } void Sa::on_Emp_Sen_Sure_clicked() { //获得数据 QString SenID = ui->Sa_ADDSenIDLine->text(); if(SenID.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请填入传感器ID!"),QMessageBox::Ok); ui->Sa_ADDSenIDLine->setFocus(); } int SenData = ui->Sa_ADDSenDateSpinBox->value(); if(SenData == 0) { QMessageBox::warning(this,tr("空值"), tr("请选择使用年限!"),QMessageBox::Ok); ui->Sa_ADDSenDateSpinBox->setFocus(); } QString ProID = ui->Sa_AddSenProIDComBox->currentText(); if(ProID.isEmpty()) { QMessageBox::warning(this,tr("空值"), tr("请选择项目ID!"),QMessageBox::Ok); ui->Sa_AddSenProIDComBox->setFocus(); } //插入数据库 QSqlDatabase::database().transaction(); QSqlQuery query; bool success = query.exec(QString("insert into SenDate values('%1','%2','0');").arg(SenID).arg(SenData)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("添加成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("添加失败,请查询详细信息!"),QMessageBox::Ok); } on_Emp_Sen_Clear_clicked(); } void Sa::on_Sa_Emp_Sure_clicked() { QString EmpAge = ui->Sa_EmpAgeLine->text(); QString EmpID = ui->Sa_EmpIDLine->text(); QString EmpName = ui->Sa_EmpNaleLine->text(); QString EmpPass = ui->Sa_EmpPassLine->text(); QString EmpProID = ui->Sa_EmpProIDComBox->currentText(); QString EmpTitle = ui->Sa_EmpTitleComBox->currentText(); //插入数据库 QSqlDatabase::database().transaction(); QSqlQuery query; bool success = query.exec(QString("insert into Employee values('%1','%2','%3','%4','%5','%6');").arg(EmpID).arg(EmpProID).arg(EmpName).arg(EmpAge).arg(EmpTitle).arg(EmpPass)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("添加成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("添加失败,请查询详细信息!"),QMessageBox::Ok); } on_Sa_Emp_Clear_clicked(); } void Sa::on_pushButton_30_clicked() { QString ProID = ui->Sa_DeleteProComboBox->currentText(); QSqlDatabase::database().transaction(); QSqlQuery query; bool success; success = query.exec(QString("delete from Project where ProID = '%1'").arg(ProID)); success = success && query.exec(QString("delete from UserT where ProID = '%1'").arg(ProID)); success = success && query.exec(QString("delete from Sensor where ProID = '%1'").arg(ProID)); success = success && query.exec(QString("update Employee set ProID = " " where ProID = '%1'").arg(ProID)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("删除成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("删除失败,请查询详细信息!"),QMessageBox::Ok); } } void Sa::on_pushButton_32_clicked() { QString UseID = ui->Sa_Delete_UserID_comboBox->currentText(); QSqlDatabase::database().transaction(); QSqlQuery query; bool success; success = query.exec(QString("delete from UserT where UseID = '%1'").arg(UseID)); success = success && query.exec(QString("select ProID from UserT where UseID = '%1'").arg(UseID)); query.next(); QString ProID = query.value(0).toString(); success = success && query.exec(QString("delete from Sensor where ProID = '%1'").arg(ProID)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("删除成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("删除失败,请查询详细信息!"),QMessageBox::Ok); } } void Sa::on_pushButton_34_clicked() { QString EmpID = ui->Sa_DelectEmpComboBox->currentText(); QSqlDatabase::database().transaction(); QSqlQuery query; bool success; success = query.exec(QString("delete from Employee where EmpID = '%1'").arg(EmpID)); if(success) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("删除成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("删除失败,请查询详细信息!"),QMessageBox::Ok); } } void Sa::on_pushButton_23_clicked() { ui->Sa_R_ProDateLine->clear(); ui->Sa_R_ProIDcomboBox->clear(); ui->Sa_R_ProNameLine->clear(); ui->Sa_R_ProPosLine->clear(); } //项目修改 void Sa::on_pushButton_22_clicked() { QString ProDate = ui->Sa_R_ProDateLine->text(); QString ProID = ui->Sa_R_ProIDcomboBox->currentText(); QString ProName = ui->Sa_R_ProNameLine->text(); QString ProPos = ui->Sa_R_ProPosLine->text(); QSqlDatabase::database().transaction(); QSqlQuery query; bool yes = query.exec(QString("update Project set ProDate='%1',ProName='%2',ProPos='%3' where ProID = '%4'").arg(ProDate).arg(ProName).arg(ProPos).arg(ProID)); if(yes) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("修改成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("修改失败,请检查信息!"),QMessageBox::Ok); } on_pushButton_23_clicked(); } void Sa::on_pushButton_25_clicked() { ui->Sa_R_UseIDcomboBox->clear(); ui->Sa_R_UseNameLine->clear(); ui->Sa_R_UsePassLine->clear(); ui->Sa_R_UsePowComboBox->clear(); } void Sa::on_pushButton_24_clicked() { QString UseID = ui->Sa_R_UseIDcomboBox->currentText(); QString UseName = ui->Sa_R_UseNameLine->text(); QString UsePass = ui->Sa_R_UsePassLine->text(); QString UsePow = ui->Sa_R_UsePowComboBox->currentText(); QSqlDatabase::database().transaction(); QSqlQuery query; bool yes = query.exec(QString("update UserT set UseName='%1',UsePass='%2',UsePow='%3' where UseID='%4'").arg(UseName).arg(UsePass).arg(UsePow).arg(UseID)); if(yes) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("修改成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("修改失败,请检查信息!"),QMessageBox::Ok); } on_pushButton_25_clicked(); } void Sa::on_pushButton_26_clicked() { ui->Sa_R_EmpAgeSpinBox->setValue(0); ui->Sa_R_EmpIDcomboBox->clear(); ui->Sa_R_EmpNameLine->clear(); ui->Sa_R_EmpPassLine->clear(); ui->Sa_R_EmpProIDComboBox->clear(); ui->Sa_R_EmpTitleComboBox->clear(); } void Sa::on_pushButton_20_clicked() { int EmpAge = ui->Sa_R_EmpAgeSpinBox->value(); QString EmpID = ui->Sa_R_EmpIDcomboBox->currentText(); QString EmpName = ui->Sa_R_EmpNameLine->text(); QString EmpPass = ui->Sa_R_EmpPassLine->text(); QString ProID = ui->Sa_R_EmpProIDComboBox->currentText(); QString EmpTitle = ui->Sa_R_EmpTitleComboBox->currentText(); QSqlDatabase::database().transaction(); QSqlQuery query; //EmpAge EmpID EmpName EmpPass EmpID EmpTitle bool yes = query.exec(QString("update Employee set EmpAge='%1',ProID='%2',EmpName='%3',EmpPass='%4',EmpTitle='%5' where EmpID='%6'").arg(EmpAge).arg(ProID).arg(EmpName).arg(EmpPass).arg(EmpTitle).arg(EmpID)); if(yes) { QSqlDatabase::database().commit(); QMessageBox::information(this,tr("信息"), tr("修改成功!"),QMessageBox::Ok); } else { QSqlDatabase::database().rollback(); QMessageBox::warning(this,tr("警告"), tr("修改失败,请检查信息!"),QMessageBox::Ok); } on_pushButton_26_clicked(); }
[ "5315858+realyao@user.noreply.gitee.com" ]
5315858+realyao@user.noreply.gitee.com
fb7514d5dac24d776073ea0880f3ed010e5d752a
c530fe72c290f7e9b2a9cab6382ef0e79c5f3fe1
/Cellular-Server/Main.cpp
ee5e4a6b6877f16e41be4ea585642d8cd78320e5
[]
no_license
Halfbin/Cellular
080e380b7cd9abc81b005d2ce54f4d0fa7ffd540
48fca623b9c286d564c9e45d787d0c2dc1a0668e
refs/heads/master
2020-04-05T22:54:04.522564
2014-12-25T00:58:57
2014-12-25T00:58:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
48
cpp
namespace Ce { void true_main () { } }
[ "b.peggs@googlemail.com" ]
b.peggs@googlemail.com
b466a4c820fb3421ae1bb7e952c45fbe9fcba2f2
dbcae57ecc5f8d1f7ad2552465834da2784edd3f
/ECNU/ecnu_2062.cpp
7e1f506d1ef505ab8cb65d1f7b691c7f75c2515b
[]
no_license
AmazingCaddy/acm-codelab
13ccb2daa249f8df695fac5b7890e3f17bb40bf5
e22d732d468b748ff12885aed623ea3538058c68
refs/heads/master
2021-01-23T02:53:50.313479
2014-09-29T14:11:12
2014-09-29T14:11:12
14,780,683
1
0
null
null
null
null
UTF-8
C++
false
false
639
cpp
#include<stdio.h> int main() { char cow[2005],a[2005]; int i,j,m,n,k,l; scanf("%d",&n); for(i=0;i<n;i++) scanf(" %c",&a[i]); i=0;j=n-1;k=0; while(i<j) { if(a[i]>a[j]) { cow[k]=a[j]; j--; } else if(a[i]<a[j]) { cow[k]=a[i]; i++; } else { m=i+1;l=j-1; while(m<l&&a[m]==a[l]) { m++; l--; } if(m>=l){cow[k]=a[i];i++;} else { if(a[m]<a[l]){cow[k]=a[i];i++;} else {cow[k]=a[j];j--;} } } k++; } cow[k]=a[i]; for(i=0;i<n;i++) { if(i%80==0&&i!=0)printf("\n"); printf("%c",cow[i]); } printf("\n"); return 0; }
[ "ecnuwbwang@gmail.com" ]
ecnuwbwang@gmail.com
cc147474d81e56a13a4785ec96ed0aea3e15b93a
703d0014873a94c9b49977fe4e6251bee0e95141
/Police/Src/SettingsState.cpp
f8fea228ac2ccb12f425936c850804c22ab0c81f
[]
no_license
CyberWolf37/Project-Police
cb5383c7e5ce33d6ad57e8abb394ad9af7ce8fc5
8a6242431f581376e9d3fb54294e0bd6704a2746
refs/heads/master
2021-01-02T08:38:19.446380
2018-09-04T17:03:46
2018-09-04T17:03:46
99,039,027
1
0
null
2017-08-17T13:20:18
2017-08-01T20:08:13
HTML
UTF-8
C++
false
false
719
cpp
#include <SettingsState.hpp> #include <Utility.hpp> #include <ResourceHolder.hpp> #include <SFML/Graphics/RenderWindow.hpp> // For test #include <iostream> SettingsState::SettingsState(StateStack& stack, Context context) : State(stack, context) { mBackgroundSprite.setTexture(context.textures->get(Textures::TitleScreen)); } void SettingsState::draw() { sf::RenderWindow& window = *getContext().window; window.draw(mBackgroundSprite); } bool SettingsState::update(sf::Time dt) { } bool SettingsState::handleEvent(const sf::Event &event) { // If any key is pressed, trigger the next screen if (event.type == sf::Event::KeyPressed) { requestStackPop(); } return true; }
[ "borel.loic.37@gmail.com" ]
borel.loic.37@gmail.com
53704b414f5f91441317dfbd940cd525e6d6ed33
64718aa845514c22aa70636a61b6c977396997d4
/计算机网络/Lab/Lab 7/源代码/client/client/client.cpp
7016d7dc2ebd00ff4396240f5091c2135da5d683
[]
no_license
Draperx/ZJU-CS-3_1
aedd3c73c143ffce223d8c92d1f5a4ae0c263636
76f07ff6c9e15ae1af11cd73e47614acca96e738
refs/heads/master
2023-04-02T11:45:44.378319
2021-04-04T15:29:35
2021-04-04T15:29:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,003
cpp
/* Author: haochengxia@github Date: 17/12/2019 Contact me: hootch@126.com */ #include <iostream> #include <string> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> using namespace std; #define BUFFER_LENGTH 1024 // buffer length char request_buff[BUFFER_LENGTH]; enum{CONNECTED, UNCONNECTED, CONNECTFAIL}; void *listenResponse(void *arg); class client{ public: // ctor client(); // ~client(); void showFuncMenu(); string getAddr(); int getPort(); void setAddr(string addr); void setPort(string port); int init(pthread_t tid); int cliConnect(); int cliClose(); int cliSend(); int getServerTime(); int getServerName(); int activeList(); void solveCommand(int command); private: string ip_addr; int ip_port; int sock = -1; int status; struct sockaddr_in serv_addr; int rc_tid; pthread_t tidp; }; client::client(void){ } client::~client(void){ } void client::showFuncMenu(){ cout<<" +-------------------------------------+\n" <<" | Welcome! client func menu. |\n" <<" +-------------------------------------+\n" <<" | 1. connect |\n" <<" | 2. close |\n" <<" | 3. getServerTime |\n" <<" | 4. getServerName |\n" <<" | 5. activeList |\n" <<" | 6. send |\n" <<" | 7. exit |\n" <<" +-------------------------------------+"<<endl; cout<<"Tips: enter a number(from 1 to 7) to choose the function"<<endl; } string client::getAddr(){ return ip_addr; } int client::getPort(){ return ip_port; } void client::setAddr(string addr){ ip_addr = addr; } void client::setPort(string port){ ip_port = stoi(port); } int client::init(pthread_t tid){ /* int serv_sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); */ // use socket() to create socket status = UNCONNECTED; tidp = tid; sock = socket(AF_INET, SOCK_STREAM, 0); return 0; } int client::cliConnect(){ // in the connect user enter specific ip_addr & ip_port cout<<"please enter ip:"<<endl; cin>>ip_addr; cout<<"please enter port:"<<endl; cin>>ip_port; memset(&serv_addr, 0, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = inet_addr(ip_addr.c_str()); serv_addr.sin_port = htons(ip_port); /* int connect(int sock, struct sockaddr *serv_addr, socklen_t addrlen); */ // do connect int res = connect(sock, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); if (res == 0) status = CONNECTED; // create new thread to listen rc_tid = pthread_create(&tidp, NULL,&listenResponse,&sock); return res; } int client::cliClose(){ int res = close(sock); return res; } int client::cliSend(){ char msg[1014]; char msgno[1024]; int rv, no; printf("Please input the number of the client:\n"); scanf("%d", &no); printf("Please input the message you want to send:\n"); while(1){ scanf("%s", msg); //itoa(no, msgno, 10); sprintf(msgno, "send:%d:", no); strcat(msgno, msg); rv = send(sock ,msgno, sizeof(msgno), 0); if (rv == -1) return 1; // no connnect else //printf("Client has not send your message!\n"); return 0; } } void *listenResponse(void *arg){ int sock; char server_response[256]; memset(server_response, 0, sizeof(server_response)); sock = (int)(*(int*)arg); int type = -1; int timePackageNum =0; // block while(true){ int ret = recv(sock, &server_response, sizeof(server_response),0); if (ret > 0){ // judge the response type type = -1; string mark=""; if (!strncmp(server_response, "TIME", 4)){ // TIME type type = 0; mark = "Time info\n"; timePackageNum++; }else if(!strncmp(server_response, "NAME", 4)){ type = 1; mark = "Name info\n"; } else if(!strncmp(server_response, "LIST", 4)){ type = 2; mark = "List info\n"; } else if (!strncmp(server_response, "SEND", 4)){ type = 3; mark = "Send info\n"; } cout<<"count = "<<timePackageNum<<"\n" <<"[Data received] \n" <<"The data is\n" << mark <<": \n" <<(type==-1?server_response:(server_response+4)) <<endl; memset(server_response, 0, sizeof(server_response)); } else if (ret < 0){ // exception pthread_exit(NULL); } else if (ret == 0){ cout<<"Error: Socket closed, exiting current receive thread"<<endl; pthread_exit(NULL); } } pthread_exit(NULL); } int client::getServerName(){ int recv; sprintf(request_buff,"name"); recv = send(sock,request_buff,BUFFER_LENGTH,0); if (recv == -1) return 1; else return 0; } int client::getServerTime(){ int recv; sprintf(request_buff,"time"); for (int i = 0;i<100;i++){ recv = send(sock,request_buff,BUFFER_LENGTH,0); sleep(1); } if (recv == -1) return 1; else return 0; } int client::activeList(){ int recv; sprintf(request_buff,"list"); recv = send(sock,request_buff,BUFFER_LENGTH,0); if (recv == -1) return 1; else return 0; } void client::solveCommand(int command){ int recv; switch(command){ case 1: cliConnect(); break; case 2: cliClose(); cout<<"Connection has been closed"<<endl; break; case 3: recv = getServerTime(); break; case 4: recv = getServerName(); break; case 5: recv = activeList(); break; case 6: recv = cliSend(); break; case 7: if (sock == -1) exit(0); else { cliClose(); sock = -1; exit(0); } break; default: break; } } int main(int argc, char **argv){ bool first = true; int command; pthread_t tidp; client *myClient = new client(); myClient->init(tidp); while (true){ if (first) myClient->showFuncMenu(); // show the func menu when client has been initialized first = false; // make first false cin >> command; // wait for user's choice myClient->solveCommand(command); // loop } return 0; }
[ "percy@xiahaochengdeMacBook-Pro.local" ]
percy@xiahaochengdeMacBook-Pro.local
170012f9f6d317d5ecbb08e2b0cb184180ab53ef
ea25c3548f785849d42a4b81dfe5c1ff3c769007
/src/init.cpp
1cf336a1f21bc9efd1ac4105d8ac705366a5c1b4
[ "MIT" ]
permissive
coinlqx/lqx15x
7c71ccb8b689e703a3b3797c53a0e31bd84c7917
92ca719d09fb2d6b479b60ae348dc5bae83d10c0
refs/heads/master
2022-12-28T13:29:29.087027
2020-10-09T05:54:04
2020-10-09T05:54:04
295,742,831
0
3
MIT
2020-10-09T05:54:05
2020-09-15T13:48:40
C++
UTF-8
C++
false
false
112,851
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2020 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/dash-config.h" #endif #include "init.h" #include "addrman.h" #include "amount.h" #include "base58.h" #include "chain.h" #include "chainparams.h" #include "checkpoints.h" #include "compat/sanity.h" #include "consensus/validation.h" #include "fs.h" #include "httpserver.h" #include "httprpc.h" #include "key.h" #include "validation.h" #include "miner.h" #include "netbase.h" #include "net.h" #include "net_processing.h" #include "policy/feerate.h" #include "policy/fees.h" #include "policy/policy.h" #include "rpc/server.h" #include "rpc/register.h" #include "rpc/blockchain.h" #include "script/standard.h" #include "script/sigcache.h" #include "scheduler.h" #include "timedata.h" #include "txdb.h" #include "txmempool.h" #include "torcontrol.h" #include "ui_interface.h" #include "util.h" #include "utilmoneystr.h" #include "validationinterface.h" #ifdef ENABLE_WALLET #include "wallet/wallet.h" #endif #include "masternode/activemasternode.h" #include "dsnotificationinterface.h" #include "flat-database.h" #include "governance/governance.h" #ifdef ENABLE_WALLET #include "keepass.h" #endif #include "masternode/masternode-meta.h" #include "masternode/masternode-payments.h" #include "masternode/masternode-sync.h" #include "masternode/masternode-utils.h" #include "messagesigner.h" #include "netfulfilledman.h" #ifdef ENABLE_WALLET #include "privatesend/privatesend-client.h" #endif // ENABLE_WALLET #include "privatesend/privatesend-server.h" #include "spork.h" #include "warnings.h" #include "evo/deterministicmns.h" #include "llmq/quorums_init.h" #include "llmq/quorums_init.h" #include <stdint.h> #include <stdio.h> #include <memory> #include "bls/bls.h" #ifndef WIN32 #include <signal.h> #endif #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/bind.hpp> #include <boost/interprocess/sync/file_lock.hpp> #include <boost/thread.hpp> #include <openssl/crypto.h> #if ENABLE_ZMQ #include "zmq/zmqnotificationinterface.h" #endif bool fFeeEstimatesInitialized = false; static const bool DEFAULT_PROXYRANDOMIZE = true; static const bool DEFAULT_REST_ENABLE = false; static const bool DEFAULT_DISABLE_SAFEMODE = false; static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; std::unique_ptr<CConnman> g_connman; std::unique_ptr<PeerLogicValidation> peerLogic; #if ENABLE_ZMQ static CZMQNotificationInterface* pzmqNotificationInterface = nullptr; #endif static CDSNotificationInterface* pdsNotificationInterface = nullptr; #ifdef WIN32 // Win32 LevelDB doesn't use filedescriptors, and the ones used for // accessing block files don't count towards the fd_set size limit // anyway. #define MIN_CORE_FILEDESCRIPTORS 0 #else #define MIN_CORE_FILEDESCRIPTORS 150 #endif static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat"; ////////////////////////////////////////////////////////////////////////////// // // Shutdown // // // Thread management and startup/shutdown: // // The network-processing threads are all part of a thread group // created by AppInit() or the Qt main() function. // // A clean exit happens when StartShutdown() or the SIGTERM // signal handler sets fRequestShutdown, which triggers // the DetectShutdownThread(), which interrupts the main thread group. // DetectShutdownThread() then exits, which causes AppInit() to // continue (it .joins the shutdown thread). // Shutdown() is then // called to clean up database connections, and stop other // threads that should only be stopped after the main network-processing // threads have exited. // // Shutdown for Qt is very similar, only it uses a QTimer to detect // fRequestShutdown getting set, and then does the normal Qt // shutdown thing. // std::atomic<bool> fRequestShutdown(false); std::atomic<bool> fRequestRestart(false); std::atomic<bool> fDumpMempoolLater(false); void StartShutdown() { fRequestShutdown = true; } void StartRestart() { fRequestShutdown = fRequestRestart = true; } bool ShutdownRequested() { return fRequestShutdown; } /** * This is a minimally invasive approach to shutdown on LevelDB read errors from the * chainstate, while keeping user interface out of the common library, which is shared * between bitcoind, and bitcoin-qt and non-server tools. */ class CCoinsViewErrorCatcher : public CCoinsViewBacked { public: CCoinsViewErrorCatcher(CCoinsView* view) : CCoinsViewBacked(view) {} bool GetCoin(const COutPoint &outpoint, Coin &coin) const override { try { return CCoinsViewBacked::GetCoin(outpoint, coin); } catch(const std::runtime_error& e) { uiInterface.ThreadSafeMessageBox(_("Error reading from database, shutting down."), "", CClientUIInterface::MSG_ERROR); LogPrintf("Error reading from database: %s\n", e.what()); // Starting the shutdown sequence and returning false to the caller would be // interpreted as 'entry not found' (as opposed to unable to read data), and // could lead to invalid interpretation. Just exit immediately, as we can't // continue anyway, and all writes should be atomic. abort(); } } // Writes do not need similar protection, as failure to write is handled by the caller. }; static CCoinsViewErrorCatcher *pcoinscatcher = nullptr; static std::unique_ptr<ECCVerifyHandle> globalVerifyHandle; void Interrupt(boost::thread_group& threadGroup) { InterruptHTTPServer(); InterruptHTTPRPC(); InterruptRPC(); InterruptREST(); InterruptTorControl(); llmq::InterruptLLMQSystem(); if (g_connman) g_connman->Interrupt(); threadGroup.interrupt_all(); } /** Preparing steps before shutting down or restarting the wallet */ void PrepareShutdown() { LogPrintf("%s: In progress...\n", __func__); static CCriticalSection cs_Shutdown; TRY_LOCK(cs_Shutdown, lockShutdown); if (!lockShutdown) return; /// Note: Shutdown() must be able to handle cases in which initialization failed part of the way, /// for example if the data directory was found to be locked. /// Be sure that anything that writes files or flushes caches only does this if the respective /// module was initialized. RenameThread("lqx-shutoff"); mempool.AddTransactionsUpdated(1); StopHTTPRPC(); StopREST(); StopRPC(); StopHTTPServer(); llmq::StopLLMQSystem(); // fRPCInWarmup should be `false` if we completed the loading sequence // before a shutdown request was received std::string statusmessage; bool fRPCInWarmup = RPCIsInWarmup(&statusmessage); #ifdef ENABLE_WALLET if (privateSendClient.fEnablePrivateSend && !fRPCInWarmup) { // Stop PrivateSend, release keys privateSendClient.fPrivateSendRunning = false; privateSendClient.ResetPool(); } for (CWalletRef pwallet : vpwallets) { pwallet->Flush(false); } #endif MapPort(false); // Because these depend on each-other, we make sure that neither can be // using the other before destroying them. UnregisterValidationInterface(peerLogic.get()); if(g_connman) g_connman->Stop(); peerLogic.reset(); g_connman.reset(); if (!fLiteMode && !fRPCInWarmup) { // STORE DATA CACHES INTO SERIALIZED DAT FILES CFlatDB<CMasternodeMetaMan> flatdb1("mncache.dat", "magicMasternodeCache"); flatdb1.Dump(mmetaman); CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache"); flatdb3.Dump(governance); CFlatDB<CNetFulfilledRequestManager> flatdb4("netfulfilled.dat", "magicFulfilledCache"); flatdb4.Dump(netfulfilledman); CFlatDB<CSporkManager> flatdb6("sporks.dat", "magicSporkCache"); flatdb6.Dump(sporkManager); } if (fDumpMempoolLater && gArgs.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) { DumpMempool(); } if (fFeeEstimatesInitialized) { ::feeEstimator.FlushUnconfirmed(::mempool); fs::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME; CAutoFile est_fileout(fsbridge::fopen(est_path, "wb"), SER_DISK, CLIENT_VERSION); if (!est_fileout.IsNull()) ::feeEstimator.Write(est_fileout); else LogPrintf("%s: Failed to write fee estimates to %s\n", __func__, est_path.string()); fFeeEstimatesInitialized = false; } // FlushStateToDisk generates a SetBestChain callback, which we should avoid missing if (pcoinsTip != nullptr) { FlushStateToDisk(); } // After there are no more peers/RPC left to give us new data which may generate // CValidationInterface callbacks, flush them... GetMainSignals().FlushBackgroundCallbacks(); // Any future callbacks will be dropped. This should absolutely be safe - if // missing a callback results in an unrecoverable situation, unclean shutdown // would too. The only reason to do the above flushes is to let the wallet catch // up with our current chain to avoid any strange pruning edge cases and make // next startup faster by avoiding rescan. { LOCK(cs_main); if (pcoinsTip != nullptr) { FlushStateToDisk(); } delete pcoinsTip; pcoinsTip = nullptr; delete pcoinscatcher; pcoinscatcher = nullptr; delete pcoinsdbview; pcoinsdbview = nullptr; delete pblocktree; pblocktree = nullptr; llmq::DestroyLLMQSystem(); delete deterministicMNManager; deterministicMNManager = nullptr; delete evoDb; evoDb = nullptr; } #ifdef ENABLE_WALLET for (CWalletRef pwallet : vpwallets) { pwallet->Flush(true); } #endif #if ENABLE_ZMQ if (pzmqNotificationInterface) { UnregisterValidationInterface(pzmqNotificationInterface); delete pzmqNotificationInterface; pzmqNotificationInterface = nullptr; } #endif if (pdsNotificationInterface) { UnregisterValidationInterface(pdsNotificationInterface); delete pdsNotificationInterface; pdsNotificationInterface = nullptr; } if (fMasternodeMode) { UnregisterValidationInterface(activeMasternodeManager); } // make sure to clean up BLS keys before global destructors are called (they have allocated from the secure memory pool) activeMasternodeInfo.blsKeyOperator.reset(); activeMasternodeInfo.blsPubKeyOperator.reset(); #ifndef WIN32 try { fs::remove(GetPidFile()); } catch (const fs::filesystem_error& e) { LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what()); } #endif UnregisterAllValidationInterfaces(); GetMainSignals().UnregisterBackgroundSignalScheduler(); } /** * Shutdown is split into 2 parts: * Part 1: shut down everything but the main wallet instance (done in PrepareShutdown() ) * Part 2: delete wallet instance * * In case of a restart PrepareShutdown() was already called before, but this method here gets * called implicitly when the parent object is deleted. In this case we have to skip the * PrepareShutdown() part because it was already executed and just delete the wallet instance. */ void Shutdown() { // Shutdown part 1: prepare shutdown if(!fRequestRestart) { PrepareShutdown(); } // Shutdown part 2: Stop TOR thread and delete wallet instance StopTorControl(); #ifdef ENABLE_WALLET for (CWalletRef pwallet : vpwallets) { delete pwallet; } vpwallets.clear(); #endif globalVerifyHandle.reset(); ECC_Stop(); LogPrintf("%s: done\n", __func__); } /** * Signal handlers are very limited in what they are allowed to do. * The execution context the handler is invoked in is not guaranteed, * so we restrict handler operations to just touching variables: */ static void HandleSIGTERM(int) { fRequestShutdown = true; } static void HandleSIGHUP(int) { fReopenDebugLog = true; } #ifndef WIN32 static void registerSignalHandler(int signal, void(*handler)(int)) { struct sigaction sa; sa.sa_handler = handler; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; sigaction(signal, &sa, nullptr); } #endif void OnRPCStarted() { uiInterface.NotifyBlockTip.connect(&RPCNotifyBlockChange); } void OnRPCStopped() { uiInterface.NotifyBlockTip.disconnect(&RPCNotifyBlockChange); RPCNotifyBlockChange(false, nullptr); cvBlockChange.notify_all(); LogPrint(BCLog::RPC, "RPC stopped.\n"); } void OnRPCPreCommand(const CRPCCommand& cmd) { // Observe safe mode std::string strWarning = GetWarnings("rpc"); if (strWarning != "" && !gArgs.GetBoolArg("-disablesafemode", DEFAULT_DISABLE_SAFEMODE) && !cmd.okSafeMode) throw JSONRPCError(RPC_FORBIDDEN_BY_SAFE_MODE, std::string("Safe mode: ") + strWarning); } std::string HelpMessage(HelpMessageMode mode) { const auto defaultBaseParams = CreateBaseChainParams(CBaseChainParams::MAIN); const auto testnetBaseParams = CreateBaseChainParams(CBaseChainParams::TESTNET); const auto defaultChainParams = CreateChainParams(CBaseChainParams::MAIN); const auto testnetChainParams = CreateChainParams(CBaseChainParams::TESTNET); const bool showDebug = gArgs.GetBoolArg("-help-debug", false); // When adding new options to the categories, please keep and ensure alphabetical ordering. // Do not translate _(...) -help-debug options, Many technical terms, and only a very small audience, so is unnecessary stress to translators. std::string strUsage = HelpMessageGroup(_("Options:")); strUsage += HelpMessageOpt("-?", _("Print this help message and exit")); strUsage += HelpMessageOpt("-version", _("Print version and exit")); strUsage += HelpMessageOpt("-alertnotify=<cmd>", _("Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)")); strUsage += HelpMessageOpt("-blocknotify=<cmd>", _("Execute command when the best block changes (%s in cmd is replaced by block hash)")); if (showDebug) strUsage += HelpMessageOpt("-blocksonly", strprintf(_("Whether to operate in a blocks only mode (default: %u)"), DEFAULT_BLOCKSONLY)); strUsage +=HelpMessageOpt("-assumevalid=<hex>", strprintf(_("If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: %s, testnet: %s)"), defaultChainParams->GetConsensus().defaultAssumeValid.GetHex(), testnetChainParams->GetConsensus().defaultAssumeValid.GetHex())); strUsage += HelpMessageOpt("-conf=<file>", strprintf(_("Specify configuration file (default: %s)"), BITCOIN_CONF_FILENAME)); if (mode == HMM_BITCOIND) { #if HAVE_DECL_DAEMON strUsage += HelpMessageOpt("-daemon", _("Run in the background as a daemon and accept commands")); #endif } strUsage += HelpMessageOpt("-datadir=<dir>", _("Specify data directory")); if (showDebug) { strUsage += HelpMessageOpt("-dbbatchsize", strprintf("Maximum database write batch size in bytes (default: %u)", nDefaultDbBatchSize)); } strUsage += HelpMessageOpt("-dbcache=<n>", strprintf(_("Set database cache size in megabytes (%d to %d, default: %d)"), nMinDbCache, nMaxDbCache, nDefaultDbCache)); strUsage += HelpMessageOpt("-loadblock=<file>", _("Imports blocks from external blk000??.dat file on startup")); strUsage += HelpMessageOpt("-maxorphantxsize=<n>", strprintf(_("Maximum total size of all orphan transactions in megabytes (default: %u)"), DEFAULT_MAX_ORPHAN_TRANSACTIONS_SIZE)); strUsage += HelpMessageOpt("-maxmempool=<n>", strprintf(_("Keep the transaction memory pool below <n> megabytes (default: %u)"), DEFAULT_MAX_MEMPOOL_SIZE)); strUsage += HelpMessageOpt("-mempoolexpiry=<n>", strprintf(_("Do not keep transactions in the mempool longer than <n> hours (default: %u)"), DEFAULT_MEMPOOL_EXPIRY)); if (showDebug) { strUsage += HelpMessageOpt("-minimumchainwork=<hex>", strprintf("Minimum work assumed to exist on a valid chain in hex (default: %s, testnet: %s)", defaultChainParams->GetConsensus().nMinimumChainWork.GetHex(), testnetChainParams->GetConsensus().nMinimumChainWork.GetHex())); } strUsage += HelpMessageOpt("-persistmempool", strprintf(_("Whether to save the mempool on shutdown and load on restart (default: %u)"), DEFAULT_PERSIST_MEMPOOL)); strUsage += HelpMessageOpt("-syncmempool", strprintf(_("Sync mempool from other nodes on start (default: %u)"), DEFAULT_SYNC_MEMPOOL)); strUsage += HelpMessageOpt("-blockreconstructionextratxn=<n>", strprintf(_("Extra transactions to keep in memory for compact block reconstructions (default: %u)"), DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN)); strUsage += HelpMessageOpt("-par=<n>", strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"), -GetNumCores(), MAX_SCRIPTCHECK_THREADS, DEFAULT_SCRIPTCHECK_THREADS)); #ifndef WIN32 strUsage += HelpMessageOpt("-pid=<file>", strprintf(_("Specify pid file (default: %s)"), BITCOIN_PID_FILENAME)); #endif strUsage += HelpMessageOpt("-prune=<n>", strprintf(_("Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. " "Warning: Reverting this setting requires re-downloading the entire blockchain. " "(default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >%u = automatically prune block files to stay under the specified target size in MiB)"), MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024)); strUsage += HelpMessageOpt("-reindex-chainstate", _("Rebuild chain state from the currently indexed blocks")); strUsage += HelpMessageOpt("-reindex", _("Rebuild chain state and block index from the blk*.dat files on disk")); #ifndef WIN32 strUsage += HelpMessageOpt("-sysperms", _("Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)")); #endif strUsage += HelpMessageOpt("-txindex", strprintf(_("Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)"), DEFAULT_TXINDEX)); strUsage += HelpMessageOpt("-addressindex", strprintf(_("Maintain a full address index, used to query for the balance, txids and unspent outputs for addresses (default: %u)"), DEFAULT_ADDRESSINDEX)); strUsage += HelpMessageOpt("-timestampindex", strprintf(_("Maintain a timestamp index for block hashes, used to query blocks hashes by a range of timestamps (default: %u)"), DEFAULT_TIMESTAMPINDEX)); strUsage += HelpMessageOpt("-spentindex", strprintf(_("Maintain a full spent index, used to query the spending txid and input index for an outpoint (default: %u)"), DEFAULT_SPENTINDEX)); strUsage += HelpMessageGroup(_("Connection options:")); strUsage += HelpMessageOpt("-addnode=<ip>", _("Add a node to connect to and attempt to keep the connection open (see the `addnode` RPC command help for more info)")); strUsage += HelpMessageOpt("-allowprivatenet", strprintf(_("Allow RFC1918 addresses to be relayed and connected to (default: %u)"), DEFAULT_ALLOWPRIVATENET)); strUsage += HelpMessageOpt("-banscore=<n>", strprintf(_("Threshold for disconnecting misbehaving peers (default: %u)"), DEFAULT_BANSCORE_THRESHOLD)); strUsage += HelpMessageOpt("-bantime=<n>", strprintf(_("Number of seconds to keep misbehaving peers from reconnecting (default: %u)"), DEFAULT_MISBEHAVING_BANTIME)); strUsage += HelpMessageOpt("-bind=<addr>", _("Bind to given address and always listen on it. Use [host]:port notation for IPv6")); strUsage += HelpMessageOpt("-connect=<ip>", _("Connect only to the specified node(s); -connect=0 disables automatic connections (the rules for this peer are the same as for -addnode)")); strUsage += HelpMessageOpt("-discover", _("Discover own IP addresses (default: 1 when listening and no -externalip or -proxy)")); strUsage += HelpMessageOpt("-dns", _("Allow DNS lookups for -addnode, -seednode and -connect") + " " + strprintf(_("(default: %u)"), DEFAULT_NAME_LOOKUP)); strUsage += HelpMessageOpt("-dnsseed", _("Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect used)")); strUsage += HelpMessageOpt("-externalip=<ip>", _("Specify your own public address")); strUsage += HelpMessageOpt("-forcednsseed", strprintf(_("Always query for peer addresses via DNS lookup (default: %u)"), DEFAULT_FORCEDNSSEED)); strUsage += HelpMessageOpt("-listen", _("Accept connections from outside (default: 1 if no -proxy or -connect)")); strUsage += HelpMessageOpt("-listenonion", strprintf(_("Automatically create Tor hidden service (default: %d)"), DEFAULT_LISTEN_ONION)); strUsage += HelpMessageOpt("-maxconnections=<n>", strprintf(_("Maintain at most <n> connections to peers (temporary service connections excluded) (default: %u)"), DEFAULT_MAX_PEER_CONNECTIONS)); strUsage += HelpMessageOpt("-maxreceivebuffer=<n>", strprintf(_("Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)"), DEFAULT_MAXRECEIVEBUFFER)); strUsage += HelpMessageOpt("-maxsendbuffer=<n>", strprintf(_("Maximum per-connection send buffer, <n>*1000 bytes (default: %u)"), DEFAULT_MAXSENDBUFFER)); strUsage += HelpMessageOpt("-maxtimeadjustment", strprintf(_("Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: %u seconds)"), DEFAULT_MAX_TIME_ADJUSTMENT)); strUsage += HelpMessageOpt("-onion=<ip:port>", strprintf(_("Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: %s)"), "-proxy")); strUsage += HelpMessageOpt("-onlynet=<net>", _("Only connect to nodes in network <net> (ipv4, ipv6 or onion)")); strUsage += HelpMessageOpt("-permitbaremultisig", strprintf(_("Relay non-P2SH multisig (default: %u)"), DEFAULT_PERMIT_BAREMULTISIG)); strUsage += HelpMessageOpt("-peerbloomfilters", strprintf(_("Support filtering of blocks and transaction with bloom filters (default: %u)"), DEFAULT_PEERBLOOMFILTERS)); strUsage += HelpMessageOpt("-port=<port>", strprintf(_("Listen for connections on <port> (default: %u or testnet: %u)"), defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort())); strUsage += HelpMessageOpt("-proxy=<ip:port>", _("Connect through SOCKS5 proxy")); strUsage += HelpMessageOpt("-proxyrandomize", strprintf(_("Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)"), DEFAULT_PROXYRANDOMIZE)); strUsage += HelpMessageOpt("-seednode=<ip>", _("Connect to a node to retrieve peer addresses, and disconnect")); strUsage += HelpMessageOpt("-timeout=<n>", strprintf(_("Specify connection timeout in milliseconds (minimum: 1, default: %d)"), DEFAULT_CONNECT_TIMEOUT)); strUsage += HelpMessageOpt("-torcontrol=<ip>:<port>", strprintf(_("Tor control port to use if onion listening enabled (default: %s)"), DEFAULT_TOR_CONTROL)); strUsage += HelpMessageOpt("-torpassword=<pass>", _("Tor control port password (default: empty)")); #ifdef USE_UPNP #if USE_UPNP strUsage += HelpMessageOpt("-upnp", _("Use UPnP to map the listening port (default: 1 when listening and no -proxy)")); #else strUsage += HelpMessageOpt("-upnp", strprintf(_("Use UPnP to map the listening port (default: %u)"), 0)); #endif #endif strUsage += HelpMessageOpt("-whitebind=<addr>", _("Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6")); strUsage += HelpMessageOpt("-whitelist=<IP address or network>", _("Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR notated network (e.g. 1.2.3.0/24). Can be specified multiple times.") + " " + _("Whitelisted peers cannot be DoS banned and their transactions are always relayed, even if they are already in the mempool, useful e.g. for a gateway")); strUsage += HelpMessageOpt("-maxuploadtarget=<n>", strprintf(_("Tries to keep outbound traffic under the given target (in MiB per 24h), 0 = no limit (default: %d)"), DEFAULT_MAX_UPLOAD_TARGET)); #ifdef ENABLE_WALLET strUsage += CWallet::GetWalletHelpString(showDebug); if (mode == HMM_BITCOIN_QT) strUsage += HelpMessageOpt("-windowtitle=<name>", _("Wallet window title")); #endif #if ENABLE_ZMQ strUsage += HelpMessageGroup(_("ZeroMQ notification options:")); strUsage += HelpMessageOpt("-zmqpubhashblock=<address>", _("Enable publish hash block in <address>")); strUsage += HelpMessageOpt("-zmqpubhashtx=<address>", _("Enable publish hash transaction in <address>")); strUsage += HelpMessageOpt("-zmqpubhashtxlock=<address>", _("Enable publish hash transaction (locked via InstantSend) in <address>")); strUsage += HelpMessageOpt("-zmqpubhashgovernancevote=<address>", _("Enable publish hash of governance votes in <address>")); strUsage += HelpMessageOpt("-zmqpubhashgovernanceobject=<address>", _("Enable publish hash of governance objects (like proposals) in <address>")); strUsage += HelpMessageOpt("-zmqpubhashinstantsenddoublespend=<address>", _("Enable publish transaction hashes of attempted InstantSend double spend in <address>")); strUsage += HelpMessageOpt("-zmqpubrawblock=<address>", _("Enable publish raw block in <address>")); strUsage += HelpMessageOpt("-zmqpubrawtx=<address>", _("Enable publish raw transaction in <address>")); strUsage += HelpMessageOpt("-zmqpubrawtxlock=<address>", _("Enable publish raw transaction (locked via InstantSend) in <address>")); strUsage += HelpMessageOpt("-zmqpubrawinstantsenddoublespend=<address>", _("Enable publish raw transactions of attempted InstantSend double spend in <address>")); #endif strUsage += HelpMessageGroup(_("Debugging/Testing options:")); strUsage += HelpMessageOpt("-uacomment=<cmt>", _("Append comment to the user agent string")); if (showDebug) { strUsage += HelpMessageOpt("-checkblocks=<n>", strprintf(_("How many blocks to check at startup (default: %u, 0 = all)"), DEFAULT_CHECKBLOCKS)); strUsage += HelpMessageOpt("-checklevel=<n>", strprintf(_("How thorough the block verification of -checkblocks is (0-4, default: %u)"), DEFAULT_CHECKLEVEL)); strUsage += HelpMessageOpt("-checkblockindex", strprintf("Do a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive and mapBlocksUnlinked occasionally. Also sets -checkmempool (default: %u)", defaultChainParams->DefaultConsistencyChecks())); strUsage += HelpMessageOpt("-checkmempool=<n>", strprintf("Run checks every <n> transactions (default: %u)", defaultChainParams->DefaultConsistencyChecks())); strUsage += HelpMessageOpt("-checkpoints", strprintf("Disable expensive verification for known chain history (default: %u)", DEFAULT_CHECKPOINTS_ENABLED)); strUsage += HelpMessageOpt("-disablesafemode", strprintf("Disable safemode, override a real safe mode event (default: %u)", DEFAULT_DISABLE_SAFEMODE)); strUsage += HelpMessageOpt("-testsafemode", strprintf("Force safe mode (default: %u)", DEFAULT_TESTSAFEMODE)); strUsage += HelpMessageOpt("-dropmessagestest=<n>", "Randomly drop 1 of every <n> network messages"); strUsage += HelpMessageOpt("-fuzzmessagestest=<n>", "Randomly fuzz 1 of every <n> network messages"); strUsage += HelpMessageOpt("-stopafterblockimport", strprintf("Stop running after importing blocks from disk (default: %u)", DEFAULT_STOPAFTERBLOCKIMPORT)); strUsage += HelpMessageOpt("-stopatheight", strprintf("Stop running after reaching the given height in the main chain (default: %u)", DEFAULT_STOPATHEIGHT)); strUsage += HelpMessageOpt("-limitancestorcount=<n>", strprintf("Do not accept transactions if number of in-mempool ancestors is <n> or more (default: %u)", DEFAULT_ANCESTOR_LIMIT)); strUsage += HelpMessageOpt("-limitancestorsize=<n>", strprintf("Do not accept transactions whose size with all in-mempool ancestors exceeds <n> kilobytes (default: %u)", DEFAULT_ANCESTOR_SIZE_LIMIT)); strUsage += HelpMessageOpt("-limitdescendantcount=<n>", strprintf("Do not accept transactions if any ancestor would have <n> or more in-mempool descendants (default: %u)", DEFAULT_DESCENDANT_LIMIT)); strUsage += HelpMessageOpt("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT)); strUsage += HelpMessageOpt("-vbparams=<deployment>:<start>:<end>(:<window>:<threshold>)", "Use given start/end times for specified version bits deployment (regtest-only). Specifying window and threshold is optional."); strUsage += HelpMessageOpt("-watchquorums=<n>", strprintf("Watch and validate quorum communication (default: %u)", llmq::DEFAULT_WATCH_QUORUMS)); } strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " + _("If <category> is not supplied or if <category> = 1, output all debugging information.") + " " + _("<category> can be:") + " " + ListLogCategories() + "."); strUsage += HelpMessageOpt("-debugexclude=<category>", strprintf(_("Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories."))); if (showDebug) strUsage += HelpMessageOpt("-nodebug", "Turn off debugging messages, same as -debug=0"); strUsage += HelpMessageOpt("-help-debug", _("Show all debugging options (usage: --help -help-debug)")); strUsage += HelpMessageOpt("-logips", strprintf(_("Include IP addresses in debug output (default: %u)"), DEFAULT_LOGIPS)); strUsage += HelpMessageOpt("-logtimestamps", strprintf(_("Prepend debug output with timestamp (default: %u)"), DEFAULT_LOGTIMESTAMPS)); if (showDebug) { strUsage += HelpMessageOpt("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS)); strUsage += HelpMessageOpt("-logthreadnames", strprintf("Add thread names to debug messages (default: %u)", DEFAULT_LOGTHREADNAMES)); strUsage += HelpMessageOpt("-mocktime=<n>", "Replace actual time with <n> seconds since epoch (default: 0)"); strUsage += HelpMessageOpt("-maxsigcachesize=<n>", strprintf("Limit sum of signature cache and script execution cache sizes to <n> MiB (default: %u)", DEFAULT_MAX_SIG_CACHE_SIZE)); strUsage += HelpMessageOpt("-maxtipage=<n>", strprintf("Maximum tip age in seconds to consider node in initial block download (default: %u)", DEFAULT_MAX_TIP_AGE)); } strUsage += HelpMessageOpt("-maxtxfee=<amt>", strprintf(_("Maximum total fees (in %s) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MAXFEE))); strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file")); strUsage += HelpMessageOpt("-printtodebuglog", strprintf(_("Send trace/debug info to debug.log file (default: %u)"), 1)); if (showDebug) { strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY)); } strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)")); AppendParamsHelpMessages(strUsage, showDebug); strUsage += HelpMessageOpt("-litemode", strprintf(_("Disable all LQX specific functionality (Masternodes, PrivateSend, InstantSend, Governance) (0-1, default: %u)"), 0)); strUsage += HelpMessageOpt("-sporkaddr=<dashaddress>", strprintf(_("Override spork address. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you."))); strUsage += HelpMessageOpt("-minsporkkeys=<n>", strprintf(_("Overrides minimum spork signers to change spork value. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you."))); strUsage += HelpMessageGroup(_("Masternode options:")); strUsage += HelpMessageOpt("-masternodeblsprivkey=<hex>", _("Set the masternode BLS private key and enable the client to act as a masternode")); #ifdef ENABLE_WALLET strUsage += HelpMessageGroup(_("PrivateSend options:")); strUsage += HelpMessageOpt("-enableprivatesend", strprintf(_("Enable use of PrivateSend for funds stored in this wallet (0-1, default: %u)"), 0)); strUsage += HelpMessageOpt("-privatesendautostart", strprintf(_("Start PrivateSend automatically (0-1, default: %u)"), DEFAULT_PRIVATESEND_AUTOSTART)); strUsage += HelpMessageOpt("-privatesendmultisession", strprintf(_("Enable multiple PrivateSend mixing sessions per block, experimental (0-1, default: %u)"), DEFAULT_PRIVATESEND_MULTISESSION)); strUsage += HelpMessageOpt("-privatesendsessions=<n>", strprintf(_("Use N separate masternodes in parallel to mix funds (%u-%u, default: %u)"), MIN_PRIVATESEND_SESSIONS, MAX_PRIVATESEND_SESSIONS, DEFAULT_PRIVATESEND_SESSIONS)); strUsage += HelpMessageOpt("-privatesendrounds=<n>", strprintf(_("Use N separate masternodes for each denominated input to mix funds (%u-%u, default: %u)"), MIN_PRIVATESEND_ROUNDS, MAX_PRIVATESEND_ROUNDS, DEFAULT_PRIVATESEND_ROUNDS)); strUsage += HelpMessageOpt("-privatesendamount=<n>", strprintf(_("Target PrivateSend balance (%u-%u, default: %u)"), MIN_PRIVATESEND_AMOUNT, MAX_PRIVATESEND_AMOUNT, DEFAULT_PRIVATESEND_AMOUNT)); strUsage += HelpMessageOpt("-privatesenddenoms=<n>", strprintf(_("Create up to N inputs of each denominated amount (%u-%u, default: %u)"), MIN_PRIVATESEND_DENOMS, MAX_PRIVATESEND_DENOMS, DEFAULT_PRIVATESEND_DENOMS)); #endif // ENABLE_WALLET strUsage += HelpMessageGroup(_("InstantSend options:")); strUsage += HelpMessageOpt("-instantsendnotify=<cmd>", _("Execute command when a wallet InstantSend transaction is successfully locked (%s in cmd is replaced by TxID)")); strUsage += HelpMessageGroup(_("Node relay options:")); if (showDebug) { strUsage += HelpMessageOpt("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)", "testnet/regtest only; ", defaultChainParams->RequireStandard())); strUsage += HelpMessageOpt("-incrementalrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to define cost of relay, used for mempool limiting and BIP 125 replacement. (default: %s)", CURRENCY_UNIT, FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE))); strUsage += HelpMessageOpt("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to defined dust, the value of an output such that it will cost more than its value in fees at this fee rate to spend it. (default: %s)", CURRENCY_UNIT, FormatMoney(DUST_RELAY_TX_FEE))); } strUsage += HelpMessageOpt("-bytespersigop", strprintf(_("Minimum bytes per sigop in transactions we relay and mine (default: %u)"), DEFAULT_BYTES_PER_SIGOP)); strUsage += HelpMessageOpt("-datacarrier", strprintf(_("Relay and mine data carrier transactions (default: %u)"), DEFAULT_ACCEPT_DATACARRIER)); strUsage += HelpMessageOpt("-datacarriersize", strprintf(_("Maximum size of data in data carrier transactions we relay and mine (default: %u)"), MAX_OP_RETURN_RELAY)); strUsage += HelpMessageOpt("-minrelaytxfee=<amt>", strprintf(_("Fees (in %s/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_MIN_RELAY_TX_FEE))); strUsage += HelpMessageOpt("-whitelistrelay", strprintf(_("Accept relayed transactions received from whitelisted peers even when not relaying transactions (default: %d)"), DEFAULT_WHITELISTRELAY)); strUsage += HelpMessageOpt("-whitelistforcerelay", strprintf(_("Force relay of transactions from whitelisted peers even if they violate local relay policy (default: %d)"), DEFAULT_WHITELISTFORCERELAY)); strUsage += HelpMessageGroup(_("Block creation options:")); strUsage += HelpMessageOpt("-blockmaxsize=<n>", strprintf(_("Set maximum block size in bytes (default: %d)"), DEFAULT_BLOCK_MAX_SIZE)); strUsage += HelpMessageOpt("-blockmintxfee=<amt>", strprintf(_("Set lowest fee rate (in %s/kB) for transactions to be included in block creation. (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_BLOCK_MIN_TX_FEE))); if (showDebug) strUsage += HelpMessageOpt("-blockversion=<n>", "Override block version to test forking scenarios"); strUsage += HelpMessageGroup(_("RPC server options:")); strUsage += HelpMessageOpt("-server", _("Accept command line and JSON-RPC commands")); strUsage += HelpMessageOpt("-rest", strprintf(_("Accept public REST requests (default: %u)"), DEFAULT_REST_ENABLE)); strUsage += HelpMessageOpt("-rpcbind=<addr>[:port]", _("Bind to given address to listen for JSON-RPC connections. This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times (default: 127.0.0.1 and ::1 i.e., localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., all addresses)")); strUsage += HelpMessageOpt("-rpccookiefile=<loc>", _("Location of the auth cookie (default: data dir)")); strUsage += HelpMessageOpt("-rpcuser=<user>", _("Username for JSON-RPC connections")); strUsage += HelpMessageOpt("-rpcpassword=<pw>", _("Password for JSON-RPC connections")); strUsage += HelpMessageOpt("-rpcauth=<userpw>", _("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times")); strUsage += HelpMessageOpt("-rpcport=<port>", strprintf(_("Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"), defaultBaseParams->RPCPort(), testnetBaseParams->RPCPort())); strUsage += HelpMessageOpt("-rpcallowip=<ip>", _("Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times")); strUsage += HelpMessageOpt("-rpcthreads=<n>", strprintf(_("Set the number of threads to service RPC calls (default: %d)"), DEFAULT_HTTP_THREADS)); if (showDebug) { strUsage += HelpMessageOpt("-rpcworkqueue=<n>", strprintf("Set the depth of the work queue to service RPC calls (default: %d)", DEFAULT_HTTP_WORKQUEUE)); strUsage += HelpMessageOpt("-rpcservertimeout=<n>", strprintf("Timeout during HTTP requests (default: %d)", DEFAULT_HTTP_SERVER_TIMEOUT)); } return strUsage; } std::string LicenseInfo() { const std::string URL_SOURCE_CODE = "<https://github.com/coinlqx/lqx15x>"; const std::string URL_WEBSITE = "<https://lqxcoin.com/>"; return CopyrightHolders(_("Copyright (C)"), 2014, COPYRIGHT_YEAR) + "\n" + "\n" + strprintf(_("Please contribute if you find %s useful. " "Visit %s for further information about the software."), PACKAGE_NAME, URL_WEBSITE) + "\n" + strprintf(_("The source code is available from %s."), URL_SOURCE_CODE) + "\n" + "\n" + _("This is experimental software.") + "\n" + strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s"), "COPYING", "<https://opensource.org/licenses/MIT>") + "\n" + "\n" + strprintf(_("This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit %s and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard."), "<https://www.openssl.org>") + "\n"; } static void BlockNotifyCallback(bool initialSync, const CBlockIndex *pBlockIndex) { if (initialSync || !pBlockIndex) return; std::string strCmd = gArgs.GetArg("-blocknotify", ""); boost::replace_all(strCmd, "%s", pBlockIndex->GetBlockHash().GetHex()); boost::thread t(runCommand, strCmd); // thread runs free } static bool fHaveGenesis = false; static boost::mutex cs_GenesisWait; static CConditionVariable condvar_GenesisWait; static void BlockNotifyGenesisWait(bool, const CBlockIndex *pBlockIndex) { if (pBlockIndex != nullptr) { { boost::unique_lock<boost::mutex> lock_GenesisWait(cs_GenesisWait); fHaveGenesis = true; } condvar_GenesisWait.notify_all(); } } struct CImportingNow { CImportingNow() { assert(fImporting == false); fImporting = true; } ~CImportingNow() { assert(fImporting == true); fImporting = false; } }; // If we're using -prune with -reindex, then delete block files that will be ignored by the // reindex. Since reindexing works by starting at block file 0 and looping until a blockfile // is missing, do the same here to delete any later block files after a gap. Also delete all // rev files since they'll be rewritten by the reindex anyway. This ensures that vinfoBlockFile // is in sync with what's actually on disk by the time we start downloading, so that pruning // works correctly. void CleanupBlockRevFiles() { std::map<std::string, fs::path> mapBlockFiles; // Glob all blk?????.dat and rev?????.dat files from the blocks directory. // Remove the rev files immediately and insert the blk file paths into an // ordered map keyed by block file index. LogPrintf("Removing unusable blk?????.dat and rev?????.dat files for -reindex with -prune\n"); fs::path blocksdir = GetDataDir() / "blocks"; for (fs::directory_iterator it(blocksdir); it != fs::directory_iterator(); it++) { if (is_regular_file(*it) && it->path().filename().string().length() == 12 && it->path().filename().string().substr(8,4) == ".dat") { if (it->path().filename().string().substr(0,3) == "blk") mapBlockFiles[it->path().filename().string().substr(3,5)] = it->path(); else if (it->path().filename().string().substr(0,3) == "rev") remove(it->path()); } } // Remove all block files that aren't part of a contiguous set starting at // zero by walking the ordered map (keys are block file indices) by // keeping a separate counter. Once we hit a gap (or if 0 doesn't exist) // start removing block files. int nContigCounter = 0; for (const std::pair<std::string, fs::path>& item : mapBlockFiles) { if (atoi(item.first) == nContigCounter) { nContigCounter++; continue; } remove(item.second); } } void ThreadImport(std::vector<fs::path> vImportFiles) { const CChainParams& chainparams = Params(); RenameThread("lqx-loadblk"); { CImportingNow imp; // -reindex if (fReindex) { int nFile = 0; while (true) { CDiskBlockPos pos(nFile, 0); if (!fs::exists(GetBlockPosFilename(pos, "blk"))) break; // No block files left to reindex FILE *file = OpenBlockFile(pos, true); if (!file) break; // This error is logged in OpenBlockFile LogPrintf("Reindexing block file blk%05u.dat...\n", (unsigned int)nFile); LoadExternalBlockFile(chainparams, file, &pos); nFile++; } pblocktree->WriteReindexing(false); fReindex = false; LogPrintf("Reindexing finished\n"); // To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked): LoadGenesisBlock(chainparams); } // hardcoded $DATADIR/bootstrap.dat fs::path pathBootstrap = GetDataDir() / "bootstrap.dat"; if (fs::exists(pathBootstrap)) { FILE *file = fsbridge::fopen(pathBootstrap, "rb"); if (file) { fs::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old"; LogPrintf("Importing bootstrap.dat...\n"); LoadExternalBlockFile(chainparams, file); RenameOver(pathBootstrap, pathBootstrapOld); } else { LogPrintf("Warning: Could not open bootstrap file %s\n", pathBootstrap.string()); } } // -loadblock= for (const fs::path& path : vImportFiles) { FILE *file = fsbridge::fopen(path, "rb"); if (file) { LogPrintf("Importing blocks file %s...\n", path.string()); LoadExternalBlockFile(chainparams, file); } else { LogPrintf("Warning: Could not open blocks file %s\n", path.string()); } } // scan for better chains in the block chain database, that are not yet connected in the active best chain CValidationState state; if (!ActivateBestChain(state, chainparams)) { LogPrintf("Failed to connect best block (%s)\n", FormatStateMessage(state)); StartShutdown(); } if (gArgs.GetBoolArg("-stopafterblockimport", DEFAULT_STOPAFTERBLOCKIMPORT)) { LogPrintf("Stopping after block import\n"); StartShutdown(); } } // End scope of CImportingNow // force UpdatedBlockTip to initialize nCachedBlockHeight for DS, MN payments and budgets // but don't call it directly to prevent triggering of other listeners like zmq etc. // GetMainSignals().UpdatedBlockTip(chainActive.Tip()); pdsNotificationInterface->InitializeCurrentBlockTip(); { // Get all UTXOs for each MN collateral in one go so that we can fill coin cache early // and reduce further locking overhead for cs_main in other parts of code inclluding GUI LogPrintf("Filling coin cache with masternode UTXOs...\n"); LOCK(cs_main); int64_t nStart = GetTimeMillis(); auto mnList = deterministicMNManager->GetListAtChainTip(); mnList.ForEachMN(false, [&](const CDeterministicMNCPtr& dmn) { Coin coin; GetUTXOCoin(dmn->collateralOutpoint, coin); }); LogPrintf("Filling coin cache with masternode UTXOs: done in %dms\n", GetTimeMillis() - nStart); } if (fMasternodeMode) { assert(activeMasternodeManager); activeMasternodeManager->Init(); } #ifdef ENABLE_WALLET // we can't do this before DIP3 is fully initialized for (CWalletRef pwallet : vpwallets) { pwallet->AutoLockMasternodeCollaterals(); } #endif if (gArgs.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) { LoadMempool(); fDumpMempoolLater = !fRequestShutdown; } } /** Sanity checks * Ensure that Dash Core is running in a usable environment with all * necessary library support. */ bool InitSanityCheck(void) { if(!ECC_InitSanityCheck()) { InitError("Elliptic curve cryptography sanity check failure. Aborting."); return false; } if (!glibc_sanity_test() || !glibcxx_sanity_test()) return false; if (!BLSInit()) { return false; } if (!Random_SanityCheck()) { InitError("OS cryptographic RNG sanity check failure. Aborting."); return false; } return true; } bool AppInitServers(boost::thread_group& threadGroup) { RPCServer::OnStarted(&OnRPCStarted); RPCServer::OnStopped(&OnRPCStopped); RPCServer::OnPreCommand(&OnRPCPreCommand); if (!InitHTTPServer()) return false; if (!StartRPC()) return false; if (!StartHTTPRPC()) return false; if (gArgs.GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST()) return false; if (!StartHTTPServer()) return false; return true; } // Parameter interaction based on rules void InitParameterInteraction() { // when specifying an explicit binding address, you want to listen on it // even when -connect or -proxy is specified if (gArgs.IsArgSet("-bind")) { if (gArgs.SoftSetBoolArg("-listen", true)) LogPrintf("%s: parameter interaction: -bind set -> setting -listen=1\n", __func__); } if (gArgs.IsArgSet("-whitebind")) { if (gArgs.SoftSetBoolArg("-listen", true)) LogPrintf("%s: parameter interaction: -whitebind set -> setting -listen=1\n", __func__); } if (gArgs.IsArgSet("-masternodeblsprivkey")) { // masternodes MUST accept connections from outside gArgs.ForceSetArg("-listen", "1"); LogPrintf("%s: parameter interaction: -masternodeblsprivkey=... -> setting -listen=1\n", __func__); #ifdef ENABLE_WALLET // masternode should not have wallet enabled gArgs.ForceSetArg("-disablewallet", "1"); LogPrintf("%s: parameter interaction: -masternodeblsprivkey=... -> setting -disablewallet=1\n", __func__); #endif // ENABLE_WALLET if (gArgs.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS) < DEFAULT_MAX_PEER_CONNECTIONS) { // masternodes MUST be able to handle at least DEFAULT_MAX_PEER_CONNECTIONS connections gArgs.ForceSetArg("-maxconnections", itostr(DEFAULT_MAX_PEER_CONNECTIONS)); LogPrintf("%s: parameter interaction: -masternodeblsprivkey=... -> setting -maxconnections=%d instead of specified -maxconnections=%d\n", __func__, DEFAULT_MAX_PEER_CONNECTIONS, gArgs.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS)); } } if (gArgs.IsArgSet("-connect")) { // when only connecting to trusted nodes, do not seed via DNS, or listen by default if (gArgs.SoftSetBoolArg("-dnsseed", false)) LogPrintf("%s: parameter interaction: -connect set -> setting -dnsseed=0\n", __func__); if (gArgs.SoftSetBoolArg("-listen", false)) LogPrintf("%s: parameter interaction: -connect set -> setting -listen=0\n", __func__); } if (gArgs.IsArgSet("-proxy")) { // to protect privacy, do not listen by default if a default proxy server is specified if (gArgs.SoftSetBoolArg("-listen", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -listen=0\n", __func__); // to protect privacy, do not use UPNP when a proxy is set. The user may still specify -listen=1 // to listen locally, so don't rely on this happening through -listen below. if (gArgs.SoftSetBoolArg("-upnp", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -upnp=0\n", __func__); // to protect privacy, do not discover addresses by default if (gArgs.SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -proxy set -> setting -discover=0\n", __func__); } if (!gArgs.GetBoolArg("-listen", DEFAULT_LISTEN)) { // do not map ports or try to retrieve public IP when not listening (pointless) if (gArgs.SoftSetBoolArg("-upnp", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -upnp=0\n", __func__); if (gArgs.SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -discover=0\n", __func__); if (gArgs.SoftSetBoolArg("-listenonion", false)) LogPrintf("%s: parameter interaction: -listen=0 -> setting -listenonion=0\n", __func__); } if (gArgs.IsArgSet("-externalip")) { // if an explicit public IP is specified, do not try to find others if (gArgs.SoftSetBoolArg("-discover", false)) LogPrintf("%s: parameter interaction: -externalip set -> setting -discover=0\n", __func__); } // disable whitelistrelay in blocksonly mode if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) { if (gArgs.SoftSetBoolArg("-whitelistrelay", false)) LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n", __func__); } // Forcing relay from whitelisted hosts implies we will accept relays from them in the first place. if (gArgs.GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) { if (gArgs.SoftSetBoolArg("-whitelistrelay", true)) LogPrintf("%s: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1\n", __func__); } #ifdef ENABLE_WALLET if (gArgs.IsArgSet("-hdseed") && IsHex(gArgs.GetArg("-hdseed", "not hex")) && (gArgs.IsArgSet("-mnemonic") || gArgs.IsArgSet("-mnemonicpassphrase"))) { gArgs.ForceRemoveArg("-mnemonic"); gArgs.ForceRemoveArg("-mnemonicpassphrase"); LogPrintf("%s: parameter interaction: can't use -hdseed and -mnemonic/-mnemonicpassphrase together, will prefer -seed\n", __func__); } #endif // ENABLE_WALLET // Make sure additional indexes are recalculated correctly in VerifyDB // (we must reconnect blocks whenever we disconnect them for these indexes to work) bool fAdditionalIndexes = gArgs.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX) || gArgs.GetBoolArg("-spentindex", DEFAULT_SPENTINDEX) || gArgs.GetBoolArg("-timestampindex", DEFAULT_TIMESTAMPINDEX); if (fAdditionalIndexes && gArgs.GetArg("-checklevel", DEFAULT_CHECKLEVEL) < 4) { gArgs.ForceSetArg("-checklevel", "4"); LogPrintf("%s: parameter interaction: additional indexes -> setting -checklevel=4\n", __func__); } } static std::string ResolveErrMsg(const char * const optname, const std::string& strBind) { return strprintf(_("Cannot resolve -%s address: '%s'"), optname, strBind); } void InitLogging() { fPrintToConsole = gArgs.GetBoolArg("-printtoconsole", false); fPrintToDebugLog = gArgs.GetBoolArg("-printtodebuglog", true) && !fPrintToConsole; fLogTimestamps = gArgs.GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS); fLogTimeMicros = gArgs.GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); fLogThreadNames = gArgs.GetBoolArg("-logthreadnames", DEFAULT_LOGTHREADNAMES); fLogIPs = gArgs.GetBoolArg("-logips", DEFAULT_LOGIPS); LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); LogPrintf("Lqx Core version %s\n", FormatFullVersion()); } namespace { // Variables internal to initialization process only int nMaxConnections; int nUserMaxConnections; int nFD; ServiceFlags nLocalServices = NODE_NETWORK; } // namespace [[noreturn]] static void new_handler_terminate() { // Rather than throwing std::bad-alloc if allocation fails, terminate // immediately to (try to) avoid chain corruption. // Since LogPrintf may itself allocate memory, set the handler directly // to terminate first. std::set_new_handler(std::terminate); LogPrintf("Error: Out of memory. Terminating.\n"); // The log was successful, terminate now. std::terminate(); }; bool AppInitBasicSetup() { // ********************************************************* Step 1: setup #ifdef _MSC_VER // Turn off Microsoft heap dump noise _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, nullptr, OPEN_EXISTING, 0, 0)); // Disable confusing "helpful" text message on abort, Ctrl-C _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif #ifdef WIN32 // Enable Data Execution Prevention (DEP) // Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 // A failure is non-critical and needs no further attention! #ifndef PROCESS_DEP_ENABLE // We define this here, because GCCs winbase.h limits this to _WIN32_WINNT >= 0x0601 (Windows 7), // which is not correct. Can be removed, when GCCs winbase.h is fixed! #define PROCESS_DEP_ENABLE 0x00000001 #endif typedef BOOL (WINAPI *PSETPROCDEPPOL)(DWORD); PSETPROCDEPPOL setProcDEPPol = (PSETPROCDEPPOL)GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetProcessDEPPolicy"); if (setProcDEPPol != nullptr) setProcDEPPol(PROCESS_DEP_ENABLE); #endif if (!SetupNetworking()) return InitError("Initializing networking failed"); #ifndef WIN32 if (!gArgs.GetBoolArg("-sysperms", false)) { umask(077); } // Clean shutdown on SIGTERM registerSignalHandler(SIGTERM, HandleSIGTERM); registerSignalHandler(SIGINT, HandleSIGTERM); // Reopen debug.log on SIGHUP registerSignalHandler(SIGHUP, HandleSIGHUP); // Ignore SIGPIPE, otherwise it will bring the daemon down if the client closes unexpectedly signal(SIGPIPE, SIG_IGN); #endif std::set_new_handler(new_handler_terminate); return true; } bool AppInitParameterInteraction() { const CChainParams& chainparams = Params(); // ********************************************************* Step 2: parameter interactions // also see: InitParameterInteraction() // if using block pruning, then disallow txindex if (gArgs.GetArg("-prune", 0)) { if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) return InitError(_("Prune mode is incompatible with -txindex.")); } if (gArgs.IsArgSet("-devnet")) { // Require setting of ports when running devnet if (gArgs.GetArg("-listen", DEFAULT_LISTEN) && !gArgs.IsArgSet("-port")) { return InitError(_("-port must be specified when -devnet and -listen are specified")); } if (gArgs.GetArg("-server", false) && !gArgs.IsArgSet("-rpcport")) { return InitError(_("-rpcport must be specified when -devnet and -server are specified")); } if (gArgs.GetArgs("-devnet").size() > 1) { return InitError(_("-devnet can only be specified once")); } } fAllowPrivateNet = gArgs.GetBoolArg("-allowprivatenet", DEFAULT_ALLOWPRIVATENET); // -bind and -whitebind can't be set when not listening size_t nUserBind = gArgs.GetArgs("-bind").size() + gArgs.GetArgs("-whitebind").size(); if (nUserBind != 0 && !gArgs.GetBoolArg("-listen", DEFAULT_LISTEN)) { return InitError("Cannot set -bind or -whitebind together with -listen=0"); } // Make sure enough file descriptors are available int nBind = std::max(nUserBind, size_t(1)); nUserMaxConnections = gArgs.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS); nMaxConnections = std::max(nUserMaxConnections, 0); // Trim requested connection counts, to fit into system limitations nMaxConnections = std::max(std::min(nMaxConnections, (int)(FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS)), 0); nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS); if (nFD < MIN_CORE_FILEDESCRIPTORS) return InitError(_("Not enough file descriptors available.")); nMaxConnections = std::min(nFD - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS, nMaxConnections); if (nMaxConnections < nUserMaxConnections) InitWarning(strprintf(_("Reducing -maxconnections from %d to %d, because of system limitations."), nUserMaxConnections, nMaxConnections)); // ********************************************************* Step 3: parameter-to-internal-flags if (gArgs.IsArgSet("-debug")) { // Special-case: if -debug=0/-nodebug is set, turn off debugging messages const std::vector<std::string> categories = gArgs.GetArgs("-debug"); if (!(gArgs.GetBoolArg("-nodebug", false) || find(categories.begin(), categories.end(), std::string("0")) != categories.end())) { for (const auto& cat : categories) { uint64_t flag; if (!GetLogCategory(&flag, &cat)) { InitWarning(strprintf(_("Unsupported logging category %s=%s."), "-debug", cat)); } logCategories |= flag; } } } // Now remove the logging categories which were explicitly excluded for (const std::string& cat : gArgs.GetArgs("-debugexclude")) { uint64_t flag; if (!GetLogCategory(&flag, &cat)) { InitWarning(strprintf(_("Unsupported logging category %s=%s."), "-debugexclude", cat)); } logCategories &= ~flag; } // Check for -debugnet if (gArgs.GetBoolArg("-debugnet", false)) InitWarning(_("Unsupported argument -debugnet ignored, use -debug=net.")); // Check for -socks - as this is a privacy risk to continue, exit here if (gArgs.IsArgSet("-socks")) return InitError(_("Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.")); // Check for -tor - as this is a privacy risk to continue, exit here if (gArgs.GetBoolArg("-tor", false)) return InitError(_("Unsupported argument -tor found, use -onion.")); if (gArgs.GetBoolArg("-benchmark", false)) InitWarning(_("Unsupported argument -benchmark ignored, use -debug=bench.")); if (gArgs.GetBoolArg("-whitelistalwaysrelay", false)) InitWarning(_("Unsupported argument -whitelistalwaysrelay ignored, use -whitelistrelay and/or -whitelistforcerelay.")); if (gArgs.IsArgSet("-blockminsize")) InitWarning("Unsupported argument -blockminsize ignored."); // Checkmempool and checkblockindex default to true in regtest mode int ratio = std::min<int>(std::max<int>(gArgs.GetArg("-checkmempool", chainparams.DefaultConsistencyChecks() ? 1 : 0), 0), 1000000); if (ratio != 0) { mempool.setSanityCheck(1.0 / ratio); } fCheckBlockIndex = gArgs.GetBoolArg("-checkblockindex", chainparams.DefaultConsistencyChecks()); fCheckpointsEnabled = gArgs.GetBoolArg("-checkpoints", DEFAULT_CHECKPOINTS_ENABLED); hashAssumeValid = uint256S(gArgs.GetArg("-assumevalid", chainparams.GetConsensus().defaultAssumeValid.GetHex())); if (!hashAssumeValid.IsNull()) LogPrintf("Assuming ancestors of block %s have valid signatures.\n", hashAssumeValid.GetHex()); else LogPrintf("Validating signatures for all blocks.\n"); if (gArgs.IsArgSet("-minimumchainwork")) { const std::string minChainWorkStr = gArgs.GetArg("-minimumchainwork", ""); if (!IsHexNumber(minChainWorkStr)) { return InitError(strprintf("Invalid non-hex (%s) minimum chain work value specified", minChainWorkStr)); } nMinimumChainWork = UintToArith256(uint256S(minChainWorkStr)); } else { nMinimumChainWork = UintToArith256(chainparams.GetConsensus().nMinimumChainWork); } LogPrintf("Setting nMinimumChainWork=%s\n", nMinimumChainWork.GetHex()); if (nMinimumChainWork < UintToArith256(chainparams.GetConsensus().nMinimumChainWork)) { LogPrintf("Warning: nMinimumChainWork set below default value of %s\n", chainparams.GetConsensus().nMinimumChainWork.GetHex()); } // mempool limits int64_t nMempoolSizeMax = gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; int64_t nMempoolSizeMin = gArgs.GetArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40; if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin) return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0))); // incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool // and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting. if (gArgs.IsArgSet("-incrementalrelayfee")) { CAmount n = 0; if (!ParseMoney(gArgs.GetArg("-incrementalrelayfee", ""), n)) return InitError(AmountErrMsg("incrementalrelayfee", gArgs.GetArg("-incrementalrelayfee", ""))); incrementalRelayFee = CFeeRate(n); } // -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency nScriptCheckThreads = gArgs.GetArg("-par", DEFAULT_SCRIPTCHECK_THREADS); if (nScriptCheckThreads <= 0) nScriptCheckThreads += GetNumCores(); if (nScriptCheckThreads <= 1) nScriptCheckThreads = 0; else if (nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS) nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS; // block pruning; get the amount of disk space (in MiB) to allot for block & undo files int64_t nPruneArg = gArgs.GetArg("-prune", 0); if (nPruneArg < 0) { return InitError(_("Prune cannot be configured with a negative value.")); } nPruneTarget = (uint64_t) nPruneArg * 1024 * 1024; if (nPruneArg == 1) { // manual pruning: -prune=1 LogPrintf("Block pruning enabled. Use RPC call pruneblockchain(height) to manually prune block and undo files.\n"); nPruneTarget = std::numeric_limits<uint64_t>::max(); fPruneMode = true; } else if (nPruneTarget) { if (gArgs.GetBoolArg("-regtest", false)) { // we use 1MB blocks to test this on regtest if (nPruneTarget < 550 * 1024 * 1024) { return InitError(strprintf(_("Prune configured below the minimum of %d MiB. Please use a higher number."), 550)); } } else { if (nPruneTarget < MIN_DISK_SPACE_FOR_BLOCK_FILES) { return InitError(strprintf(_("Prune configured below the minimum of %d MiB. Please use a higher number."), MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024)); } } LogPrintf("Prune configured to target %uMiB on disk for block and undo files.\n", nPruneTarget / 1024 / 1024); fPruneMode = true; } RegisterAllCoreRPCCommands(tableRPC); #ifdef ENABLE_WALLET RegisterWalletRPCCommands(tableRPC); #endif nConnectTimeout = gArgs.GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); if (nConnectTimeout <= 0) nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; if (gArgs.IsArgSet("-minrelaytxfee")) { CAmount n = 0; if (!ParseMoney(gArgs.GetArg("-minrelaytxfee", ""), n)) { return InitError(AmountErrMsg("minrelaytxfee", gArgs.GetArg("-minrelaytxfee", ""))); } // High fee check is done afterward in CWallet::ParameterInteraction() ::minRelayTxFee = CFeeRate(n); } else if (incrementalRelayFee > ::minRelayTxFee) { // Allow only setting incrementalRelayFee to control both ::minRelayTxFee = incrementalRelayFee; LogPrintf("Increasing minrelaytxfee to %s to match incrementalrelayfee\n",::minRelayTxFee.ToString()); } // Sanity check argument for min fee for including tx in block // TODO: Harmonize which arguments need sanity checking and where that happens if (gArgs.IsArgSet("-blockmintxfee")) { CAmount n = 0; if (!ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) return InitError(AmountErrMsg("blockmintxfee", gArgs.GetArg("-blockmintxfee", ""))); } // Feerate used to define dust. Shouldn't be changed lightly as old // implementations may inadvertently create non-standard transactions if (gArgs.IsArgSet("-dustrelayfee")) { CAmount n = 0; if (!ParseMoney(gArgs.GetArg("-dustrelayfee", ""), n) || 0 == n) return InitError(AmountErrMsg("dustrelayfee", gArgs.GetArg("-dustrelayfee", ""))); dustRelayFee = CFeeRate(n); } fRequireStandard = !gArgs.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); if (chainparams.RequireStandard() && !fRequireStandard) return InitError(strprintf("acceptnonstdtxn is not currently supported for %s chain", chainparams.NetworkIDString())); nBytesPerSigOp = gArgs.GetArg("-bytespersigop", nBytesPerSigOp); #ifdef ENABLE_WALLET if (!CWallet::ParameterInteraction()) return false; #endif // ENABLE_WALLET fIsBareMultisigStd = gArgs.GetBoolArg("-permitbaremultisig", DEFAULT_PERMIT_BAREMULTISIG); fAcceptDatacarrier = gArgs.GetBoolArg("-datacarrier", DEFAULT_ACCEPT_DATACARRIER); nMaxDatacarrierBytes = gArgs.GetArg("-datacarriersize", nMaxDatacarrierBytes); // Option to startup with mocktime set (used for regression testing): SetMockTime(gArgs.GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op if (gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); nMaxTipAge = gArgs.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); if (gArgs.IsArgSet("-vbparams")) { // Allow overriding version bits parameters for testing if (!chainparams.MineBlocksOnDemand()) { return InitError("Version bits parameters may only be overridden on regtest."); } for (const std::string& strDeployment : gArgs.GetArgs("-vbparams")) { std::vector<std::string> vDeploymentParams; boost::split(vDeploymentParams, strDeployment, boost::is_any_of(":")); if (vDeploymentParams.size() != 3 && vDeploymentParams.size() != 5) { return InitError("Version bits parameters malformed, expecting deployment:start:end or deployment:start:end:window:threshold"); } int64_t nStartTime, nTimeout, nWindowSize = -1, nThreshold = -1; if (!ParseInt64(vDeploymentParams[1], &nStartTime)) { return InitError(strprintf("Invalid nStartTime (%s)", vDeploymentParams[1])); } if (!ParseInt64(vDeploymentParams[2], &nTimeout)) { return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2])); } if (vDeploymentParams.size() == 5) { if (!ParseInt64(vDeploymentParams[3], &nWindowSize)) { return InitError(strprintf("Invalid nWindowSize (%s)", vDeploymentParams[3])); } if (!ParseInt64(vDeploymentParams[4], &nThreshold)) { return InitError(strprintf("Invalid nThreshold (%s)", vDeploymentParams[4])); } } bool found = false; for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) { if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) { UpdateVersionBitsParameters(Consensus::DeploymentPos(j), nStartTime, nTimeout, nWindowSize, nThreshold); found = true; LogPrintf("Setting version bits activation parameters for %s to start=%ld, timeout=%ld, window=%ld, threshold=%ld\n", vDeploymentParams[0], nStartTime, nTimeout, nWindowSize, nThreshold); break; } } if (!found) { return InitError(strprintf("Invalid deployment (%s)", vDeploymentParams[0])); } } } if (gArgs.IsArgSet("-dip3params")) { // Allow overriding budget parameters for testing if (!chainparams.MineBlocksOnDemand()) { return InitError("DIP3 parameters may only be overridden on regtest."); } std::string strDIP3Params = gArgs.GetArg("-dip3params", ""); std::vector<std::string> vDIP3Params; boost::split(vDIP3Params, strDIP3Params, boost::is_any_of(":")); if (vDIP3Params.size() != 2) { return InitError("DIP3 parameters malformed, expecting DIP3ActivationHeight:DIP3EnforcementHeight"); } int nDIP3ActivationHeight, nDIP3EnforcementHeight; if (!ParseInt32(vDIP3Params[0], &nDIP3ActivationHeight)) { return InitError(strprintf("Invalid nDIP3ActivationHeight (%s)", vDIP3Params[0])); } if (!ParseInt32(vDIP3Params[1], &nDIP3EnforcementHeight)) { return InitError(strprintf("Invalid nDIP3EnforcementHeight (%s)", vDIP3Params[1])); } UpdateDIP3Parameters(nDIP3ActivationHeight, nDIP3EnforcementHeight); } if (gArgs.IsArgSet("-budgetparams")) { // Allow overriding budget parameters for testing if (!chainparams.MineBlocksOnDemand()) { return InitError("Budget parameters may only be overridden on regtest."); } std::string strBudgetParams = gArgs.GetArg("-budgetparams", ""); std::vector<std::string> vBudgetParams; boost::split(vBudgetParams, strBudgetParams, boost::is_any_of(":")); if (vBudgetParams.size() != 3) { return InitError("Budget parameters malformed, expecting masternodePaymentsStartBlock:budgetPaymentsStartBlock:superblockStartBlock"); } int nMasternodePaymentsStartBlock, nBudgetPaymentsStartBlock, nSuperblockStartBlock; if (!ParseInt32(vBudgetParams[0], &nMasternodePaymentsStartBlock)) { return InitError(strprintf("Invalid nMasternodePaymentsStartBlock (%s)", vBudgetParams[0])); } if (!ParseInt32(vBudgetParams[1], &nBudgetPaymentsStartBlock)) { return InitError(strprintf("Invalid nBudgetPaymentsStartBlock (%s)", vBudgetParams[1])); } if (!ParseInt32(vBudgetParams[2], &nSuperblockStartBlock)) { return InitError(strprintf("Invalid nSuperblockStartBlock (%s)", vBudgetParams[2])); } UpdateBudgetParameters(nMasternodePaymentsStartBlock, nBudgetPaymentsStartBlock, nSuperblockStartBlock); } if (chainparams.NetworkIDString() == CBaseChainParams::DEVNET) { int nMinimumDifficultyBlocks = gArgs.GetArg("-minimumdifficultyblocks", chainparams.GetConsensus().nMinimumDifficultyBlocks); int nHighSubsidyBlocks = gArgs.GetArg("-highsubsidyblocks", chainparams.GetConsensus().nHighSubsidyBlocks); int nHighSubsidyFactor = gArgs.GetArg("-highsubsidyfactor", chainparams.GetConsensus().nHighSubsidyFactor); UpdateDevnetSubsidyAndDiffParams(nMinimumDifficultyBlocks, nHighSubsidyBlocks, nHighSubsidyFactor); } else if (gArgs.IsArgSet("-minimumdifficultyblocks") || gArgs.IsArgSet("-highsubsidyblocks") || gArgs.IsArgSet("-highsubsidyfactor")) { return InitError("Difficulty and subsidy parameters may only be overridden on devnet."); } if (chainparams.NetworkIDString() == CBaseChainParams::DEVNET) { std::string llmqTypeChainLocks = gArgs.GetArg("-llmqchainlocks", Params().GetConsensus().llmqs.at(Params().GetConsensus().llmqTypeChainLocks).name); Consensus::LLMQType llmqType = Consensus::LLMQ_NONE; for (const auto& p : Params().GetConsensus().llmqs) { if (p.second.name == llmqTypeChainLocks) { llmqType = p.first; break; } } if (llmqType == Consensus::LLMQ_NONE) { return InitError("Invalid LLMQ type specified for -llmqchainlocks."); } UpdateDevnetLLMQChainLocks(llmqType); } else if (gArgs.IsArgSet("-llmqchainlocks")) { return InitError("LLMQ type for ChainLocks can only be overridden on devnet."); } if (gArgs.IsArgSet("-maxorphantx")) { InitWarning("-maxorphantx is not supported anymore. Use -maxorphantxsize instead."); } if (gArgs.IsArgSet("-masternode")) { InitWarning(_("-masternode option is deprecated and ignored, specifying -masternodeblsprivkey is enough to start this node as a masternode.")); } return true; } static bool LockDataDirectory(bool probeOnly) { std::string strDataDir = GetDataDir().string(); // Make sure only a single Dash Core process is using the data directory. fs::path pathLockFile = GetDataDir() / ".lock"; FILE* file = fsbridge::fopen(pathLockFile, "a"); // empty lock file; created if it doesn't exist. if (file) fclose(file); try { static boost::interprocess::file_lock lock(pathLockFile.string().c_str()); if (!lock.try_lock()) { return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running."), strDataDir, _(PACKAGE_NAME))); } if (probeOnly) { lock.unlock(); } } catch(const boost::interprocess::interprocess_exception& e) { return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running.") + " %s.", strDataDir, _(PACKAGE_NAME), e.what())); } return true; } bool AppInitSanityChecks() { // ********************************************************* Step 4: sanity checks // Initialize elliptic curve code std::string sha256_algo = SHA256AutoDetect(); LogPrintf("Using the '%s' SHA256 implementation\n", sha256_algo); RandomInit(); ECC_Start(); globalVerifyHandle.reset(new ECCVerifyHandle()); // Sanity check if (!InitSanityCheck()) return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), _(PACKAGE_NAME))); // Probe the data directory lock to give an early error message, if possible // We cannot hold the data directory lock here, as the forking for daemon() hasn't yet happened, // and a fork will cause weird behavior to it. return LockDataDirectory(true); } bool AppInitLockDataDirectory() { // After daemonization get the data directory lock again and hold on to it until exit // This creates a slight window for a race condition to happen, however this condition is harmless: it // will at most make us exit without printing a message to console. if (!LockDataDirectory(false)) { // Detailed error printed inside LockDataDirectory return false; } return true; } bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) { const CChainParams& chainparams = Params(); // ********************************************************* Step 4a: application initialization #ifndef WIN32 CreatePidFile(GetPidFile(), getpid()); #endif if (gArgs.GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) { // Do this first since it both loads a bunch of debug.log into memory, // and because this needs to happen before any other debug.log printing ShrinkDebugFile(); } if (fPrintToDebugLog) OpenDebugLog(); if (!fLogTimestamps) LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); LogPrintf("Using data directory %s\n", GetDataDir().string()); LogPrintf("Using config file %s\n", GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); LogPrintf("Using at most %i automatic connections (%i file descriptors available)\n", nMaxConnections, nFD); InitSignatureCache(); InitScriptExecutionCache(); LogPrintf("Using %u threads for script verification\n", nScriptCheckThreads); if (nScriptCheckThreads) { for (int i=0; i<nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); } std::vector<std::string> vSporkAddresses; if (gArgs.IsArgSet("-sporkaddr")) { vSporkAddresses = gArgs.GetArgs("-sporkaddr"); } else { vSporkAddresses = Params().SporkAddresses(); } for (const auto& address: vSporkAddresses) { if (!sporkManager.SetSporkAddress(address)) { return InitError(_("Invalid spork address specified with -sporkaddr")); } } int minsporkkeys = gArgs.GetArg("-minsporkkeys", Params().MinSporkKeys()); if (!sporkManager.SetMinSporkKeys(minsporkkeys)) { return InitError(_("Invalid minimum number of spork signers specified with -minsporkkeys")); } if (gArgs.IsArgSet("-sporkkey")) { // spork priv key if (!sporkManager.SetPrivKey(gArgs.GetArg("-sporkkey", ""))) { return InitError(_("Unable to sign spork message, wrong key?")); } } // Start the lightweight task scheduler thread CScheduler::Function serviceLoop = boost::bind(&CScheduler::serviceQueue, &scheduler); threadGroup.create_thread(boost::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop)); GetMainSignals().RegisterBackgroundSignalScheduler(scheduler); /* Start the RPC server already. It will be started in "warmup" mode * and not really process calls already (but it will signify connections * that the server is there and will be ready later). Warmup mode will * be disabled when initialisation is finished. */ if (gArgs.GetBoolArg("-server", false)) { uiInterface.InitMessage.connect(SetRPCWarmupStatus); if (!AppInitServers(threadGroup)) return InitError(_("Unable to start HTTP server. See debug log for details.")); } // ********************************************************* Step 5: Backup wallet and verify wallet database integrity #ifdef ENABLE_WALLET if (!CWallet::InitAutoBackup()) return false; if (!CWallet::Verify()) return false; // Initialize KeePass Integration keePassInt.init(); #endif // ENABLE_WALLET // ********************************************************* Step 6: network initialization // Note that we absolutely cannot open any actual connections // until the very end ("start node") as the UTXO/block state // is not yet setup and may end up being set up twice if we // need to reindex later. assert(!g_connman); g_connman = std::unique_ptr<CConnman>(new CConnman(GetRand(std::numeric_limits<uint64_t>::max()), GetRand(std::numeric_limits<uint64_t>::max()))); CConnman& connman = *g_connman; peerLogic.reset(new PeerLogicValidation(&connman, scheduler)); RegisterValidationInterface(peerLogic.get()); // sanitize comments per BIP-0014, format user agent and check total size std::vector<std::string> uacomments; if (chainparams.NetworkIDString() == CBaseChainParams::DEVNET) { // Add devnet name to user agent. This allows to disconnect nodes immediately if they don't belong to our own devnet uacomments.push_back(strprintf("devnet=%s", GetDevNetName())); } for (const std::string& cmt : gArgs.GetArgs("-uacomment")) { if (cmt != SanitizeString(cmt, SAFE_CHARS_UA_COMMENT)) return InitError(strprintf(_("User Agent comment (%s) contains unsafe characters."), cmt)); uacomments.push_back(cmt); } strSubVersion = FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, uacomments); if (strSubVersion.size() > MAX_SUBVERSION_LENGTH) { return InitError(strprintf(_("Total length of network version string (%i) exceeds maximum length (%i). Reduce the number or size of uacomments."), strSubVersion.size(), MAX_SUBVERSION_LENGTH)); } if (gArgs.IsArgSet("-onlynet")) { std::set<enum Network> nets; for (const std::string& snet : gArgs.GetArgs("-onlynet")) { enum Network net = ParseNetwork(snet); if (net == NET_UNROUTABLE) return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet)); nets.insert(net); } for (int n = 0; n < NET_MAX; n++) { enum Network net = (enum Network)n; if (!nets.count(net)) SetLimited(net); } } // Check for host lookup allowed before parsing any network related parameters fNameLookup = gArgs.GetBoolArg("-dns", DEFAULT_NAME_LOOKUP); bool proxyRandomize = gArgs.GetBoolArg("-proxyrandomize", DEFAULT_PROXYRANDOMIZE); // -proxy sets a proxy for all outgoing network traffic // -noproxy (or -proxy=0) as well as the empty string can be used to not set a proxy, this is the default std::string proxyArg = gArgs.GetArg("-proxy", ""); SetLimited(NET_TOR); if (proxyArg != "" && proxyArg != "0") { CService proxyAddr; if (!Lookup(proxyArg.c_str(), proxyAddr, 9050, fNameLookup)) { return InitError(strprintf(_("Invalid -proxy address or hostname: '%s'"), proxyArg)); } proxyType addrProxy = proxyType(proxyAddr, proxyRandomize); if (!addrProxy.IsValid()) return InitError(strprintf(_("Invalid -proxy address or hostname: '%s'"), proxyArg)); SetProxy(NET_IPV4, addrProxy); SetProxy(NET_IPV6, addrProxy); SetProxy(NET_TOR, addrProxy); SetNameProxy(addrProxy); SetLimited(NET_TOR, false); // by default, -proxy sets onion as reachable, unless -noonion later } // -onion can be used to set only a proxy for .onion, or override normal proxy for .onion addresses // -noonion (or -onion=0) disables connecting to .onion entirely // An empty string is used to not override the onion proxy (in which case it defaults to -proxy set above, or none) std::string onionArg = gArgs.GetArg("-onion", ""); if (onionArg != "") { if (onionArg == "0") { // Handle -noonion/-onion=0 SetLimited(NET_TOR); // set onions as unreachable } else { CService onionProxy; if (!Lookup(onionArg.c_str(), onionProxy, 9050, fNameLookup)) { return InitError(strprintf(_("Invalid -onion address or hostname: '%s'"), onionArg)); } proxyType addrOnion = proxyType(onionProxy, proxyRandomize); if (!addrOnion.IsValid()) return InitError(strprintf(_("Invalid -onion address or hostname: '%s'"), onionArg)); SetProxy(NET_TOR, addrOnion); SetLimited(NET_TOR, false); } } // see Step 2: parameter interactions for more information about these fListen = gArgs.GetBoolArg("-listen", DEFAULT_LISTEN); fDiscover = gArgs.GetBoolArg("-discover", true); fRelayTxes = !gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY); for (const std::string& strAddr : gArgs.GetArgs("-externalip")) { CService addrLocal; if (Lookup(strAddr.c_str(), addrLocal, GetListenPort(), fNameLookup) && addrLocal.IsValid()) AddLocal(addrLocal, LOCAL_MANUAL); else return InitError(ResolveErrMsg("externalip", strAddr)); } #if ENABLE_ZMQ pzmqNotificationInterface = CZMQNotificationInterface::Create(); if (pzmqNotificationInterface) { RegisterValidationInterface(pzmqNotificationInterface); } #endif pdsNotificationInterface = new CDSNotificationInterface(connman); RegisterValidationInterface(pdsNotificationInterface); uint64_t nMaxOutboundLimit = 0; //unlimited unless -maxuploadtarget is set uint64_t nMaxOutboundTimeframe = MAX_UPLOAD_TIMEFRAME; if (gArgs.IsArgSet("-maxuploadtarget")) { nMaxOutboundLimit = gArgs.GetArg("-maxuploadtarget", DEFAULT_MAX_UPLOAD_TARGET)*1024*1024; } // ********************************************************* Step 7a: check lite mode and load sporks // lite mode disables all Dash-specific functionality fLiteMode = gArgs.GetBoolArg("-litemode", false); LogPrintf("fLiteMode %d\n", fLiteMode); if(fLiteMode) { InitWarning(_("You are starting in lite mode, most Dash-specific functionality is disabled.")); } if((!fLiteMode && fTxIndex == false) && chainparams.NetworkIDString() != CBaseChainParams::REGTEST) { // TODO remove this when pruning is fixed. See https://github.com/dashpay/dash/pull/1817 and https://github.com/dashpay/dash/pull/1743 return InitError(_("Transaction index can't be disabled in full mode. Either start with -litemode command line switch or enable transaction index.")); } if (!fLiteMode) { uiInterface.InitMessage(_("Loading sporks cache...")); CFlatDB<CSporkManager> flatdb6("sporks.dat", "magicSporkCache"); if (!flatdb6.Load(sporkManager)) { return InitError(_("Failed to load sporks cache from") + "\n" + (GetDataDir() / "sporks.dat").string()); } } // ********************************************************* Step 7b: load block chain fReindex = gArgs.GetBoolArg("-reindex", false); bool fReindexChainState = gArgs.GetBoolArg("-reindex-chainstate", false); // cache size calculations int64_t nTotalCache = (gArgs.GetArg("-dbcache", nDefaultDbCache) << 20); nTotalCache = std::max(nTotalCache, nMinDbCache << 20); // total cache cannot be less than nMinDbCache nTotalCache = std::min(nTotalCache, nMaxDbCache << 20); // total cache cannot be greater than nMaxDbcache int64_t nBlockTreeDBCache = nTotalCache / 8; nBlockTreeDBCache = std::min(nBlockTreeDBCache, (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX) ? nMaxBlockDBAndTxIndexCache : nMaxBlockDBCache) << 20); nTotalCache -= nBlockTreeDBCache; int64_t nCoinDBCache = std::min(nTotalCache / 2, (nTotalCache / 4) + (1 << 23)); // use 25%-50% of the remainder for disk cache nCoinDBCache = std::min(nCoinDBCache, nMaxCoinsDBCache << 20); // cap total coins db cache nTotalCache -= nCoinDBCache; nCoinCacheUsage = nTotalCache; // the rest goes to in-memory cache int64_t nMempoolSizeMax = gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; int64_t nEvoDbCache = 1024 * 1024 * 16; // TODO LogPrintf("Cache configuration:\n"); LogPrintf("* Using %.1fMiB for block index database\n", nBlockTreeDBCache * (1.0 / 1024 / 1024)); LogPrintf("* Using %.1fMiB for chain state database\n", nCoinDBCache * (1.0 / 1024 / 1024)); LogPrintf("* Using %.1fMiB for in-memory UTXO set (plus up to %.1fMiB of unused mempool space)\n", nCoinCacheUsage * (1.0 / 1024 / 1024), nMempoolSizeMax * (1.0 / 1024 / 1024)); bool fLoaded = false; int64_t nStart = GetTimeMillis(); while (!fLoaded && !fRequestShutdown) { bool fReset = fReindex; std::string strLoadError; uiInterface.InitMessage(_("Loading block index...")); nStart = GetTimeMillis(); do { try { UnloadBlockIndex(); delete pcoinsTip; delete pcoinsdbview; delete pcoinscatcher; delete pblocktree; llmq::DestroyLLMQSystem(); delete deterministicMNManager; delete evoDb; evoDb = new CEvoDB(nEvoDbCache, false, fReset || fReindexChainState); deterministicMNManager = new CDeterministicMNManager(*evoDb); pblocktree = new CBlockTreeDB(nBlockTreeDBCache, false, fReset); llmq::InitLLMQSystem(*evoDb, &scheduler, false, fReset || fReindexChainState); if (fReset) { pblocktree->WriteReindexing(true); //If we're reindexing in prune mode, wipe away unusable block files and all undo data files if (fPruneMode) CleanupBlockRevFiles(); } if (fRequestShutdown) break; // LoadBlockIndex will load fTxIndex from the db, or set it if // we're reindexing. It will also load fHavePruned if we've // ever removed a block file from disk. // Note that it also sets fReindex based on the disk flag! // From here on out fReindex and fReset mean something different! if (!LoadBlockIndex(chainparams)) { strLoadError = _("Error loading block database"); break; } // If the loaded chain has a wrong genesis, bail out immediately // (we're likely using a testnet datadir, or the other way around). if (!mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus().hashGenesisBlock) == 0) return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?")); if (!chainparams.GetConsensus().hashDevnetGenesisBlock.IsNull() && !mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus().hashDevnetGenesisBlock) == 0) return InitError(_("Incorrect or no devnet genesis block found. Wrong datadir for devnet specified?")); // Check for changed -txindex state if (fTxIndex != gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) { strLoadError = _("You need to rebuild the database using -reindex to change -txindex"); break; } // Check for changed -addressindex state if (fAddressIndex != gArgs.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX)) { strLoadError = _("You need to rebuild the database using -reindex to change -addressindex"); break; } // Check for changed -timestampindex state if (fTimestampIndex != gArgs.GetBoolArg("-timestampindex", DEFAULT_TIMESTAMPINDEX)) { strLoadError = _("You need to rebuild the database using -reindex to change -timestampindex"); break; } // Check for changed -spentindex state if (fSpentIndex != gArgs.GetBoolArg("-spentindex", DEFAULT_SPENTINDEX)) { strLoadError = _("You need to rebuild the database using -reindex to change -spentindex"); break; } // Check for changed -prune state. What we are concerned about is a user who has pruned blocks // in the past, but is now trying to run unpruned. if (fHavePruned && !fPruneMode) { strLoadError = _("You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain"); break; } // At this point blocktree args are consistent with what's on disk. // If we're not mid-reindex (based on disk + args), add a genesis block on disk // (otherwise we use the one already on disk). // This is called again in ThreadImport after the reindex completes. if (!fReindex && !LoadGenesisBlock(chainparams)) { strLoadError = _("Error initializing block database"); break; } // At this point we're either in reindex or we've loaded a useful // block tree into mapBlockIndex! pcoinsdbview = new CCoinsViewDB(nCoinDBCache, false, fReset || fReindexChainState); pcoinscatcher = new CCoinsViewErrorCatcher(pcoinsdbview); // If necessary, upgrade from older database format. // This is a no-op if we cleared the coinsviewdb with -reindex or -reindex-chainstate if (!pcoinsdbview->Upgrade()) { strLoadError = _("Error upgrading chainstate database"); break; } // ReplayBlocks is a no-op if we cleared the coinsviewdb with -reindex or -reindex-chainstate if (!ReplayBlocks(chainparams, pcoinsdbview)) { strLoadError = _("Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate."); break; } // The on-disk coinsdb is now in a good state, create the cache pcoinsTip = new CCoinsViewCache(pcoinscatcher); bool is_coinsview_empty = fReset || fReindexChainState || pcoinsTip->GetBestBlock().IsNull(); if (!is_coinsview_empty) { // LoadChainTip sets chainActive based on pcoinsTip's best block if (!LoadChainTip(chainparams)) { strLoadError = _("Error initializing block database"); break; } assert(chainActive.Tip() != NULL); } deterministicMNManager->UpgradeDBIfNeeded(); if (!is_coinsview_empty) { uiInterface.InitMessage(_("Verifying blocks...")); if (fHavePruned && gArgs.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) { LogPrintf("Prune: pruned datadir may not have more than %d blocks; only checking available blocks", MIN_BLOCKS_TO_KEEP); } { LOCK(cs_main); CBlockIndex* tip = chainActive.Tip(); RPCNotifyBlockChange(true, tip); if (tip && tip->nTime > GetAdjustedTime() + 2 * 60 * 60) { strLoadError = _("The block database contains a block which appears to be from the future. " "This may be due to your computer's date and time being set incorrectly. " "Only rebuild the block database if you are sure that your computer's date and time are correct"); break; } } if (!CVerifyDB().VerifyDB(chainparams, pcoinsdbview, gArgs.GetArg("-checklevel", DEFAULT_CHECKLEVEL), gArgs.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS))) { strLoadError = _("Corrupted block database detected"); break; } } } catch (const std::exception& e) { LogPrintf("%s\n", e.what()); strLoadError = _("Error opening block database"); break; } fLoaded = true; } while(false); if (!fLoaded && !fRequestShutdown) { // first suggest a reindex if (!fReset) { bool fRet = uiInterface.ThreadSafeQuestion( strLoadError + ".\n\n" + _("Do you want to rebuild the block database now?"), strLoadError + ".\nPlease restart with -reindex or -reindex-chainstate to recover.", "", CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT); if (fRet) { fReindex = true; fRequestShutdown = false; } else { LogPrintf("Aborted block database rebuild. Exiting.\n"); return false; } } else { return InitError(strLoadError); } } } // As LoadBlockIndex can take several minutes, it's possible the user // requested to kill the GUI during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } if (fLoaded) { LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart); } fs::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME; CAutoFile est_filein(fsbridge::fopen(est_path, "rb"), SER_DISK, CLIENT_VERSION); // Allowed to fail as this file IS missing on first startup. if (!est_filein.IsNull()) ::feeEstimator.Read(est_filein); fFeeEstimatesInitialized = true; // ********************************************************* Step 8: load wallet #ifdef ENABLE_WALLET if (!CWallet::InitLoadWallet()) return false; #else LogPrintf("No wallet support compiled in!\n"); #endif // As InitLoadWallet can take several minutes, it's possible the user // requested to kill the GUI during the last operation. If so, exit. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } // ********************************************************* Step 9: data directory maintenance // if pruning, unset the service bit and perform the initial blockstore prune // after any wallet rescanning has taken place. if (fPruneMode) { LogPrintf("Unsetting NODE_NETWORK on prune mode\n"); nLocalServices = ServiceFlags(nLocalServices & ~NODE_NETWORK); if (!fReindex) { uiInterface.InitMessage(_("Pruning blockstore...")); PruneAndFlush(); } } // As PruneAndFlush can take several minutes, it's possible the user // requested to kill the GUI during the last operation. If so, exit. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } // ********************************************************* Step 10a: Prepare Masternode related stuff fMasternodeMode = false; std::string strMasterNodeBLSPrivKey = gArgs.GetArg("-masternodeblsprivkey", ""); if (!strMasterNodeBLSPrivKey.empty()) { auto binKey = ParseHex(strMasterNodeBLSPrivKey); CBLSSecretKey keyOperator; keyOperator.SetBuf(binKey); if (!keyOperator.IsValid()) { return InitError(_("Invalid masternodeblsprivkey. Please see documentation.")); } fMasternodeMode = true; activeMasternodeInfo.blsKeyOperator = std::make_unique<CBLSSecretKey>(keyOperator); activeMasternodeInfo.blsPubKeyOperator = std::make_unique<CBLSPublicKey>(activeMasternodeInfo.blsKeyOperator->GetPublicKey()); LogPrintf("MASTERNODE:\n"); LogPrintf(" blsPubKeyOperator: %s\n", keyOperator.GetPublicKey().ToString()); } if(fLiteMode && fMasternodeMode) { return InitError(_("You can not start a masternode in lite mode.")); } if(fMasternodeMode) { #ifdef ENABLE_WALLET if (!vpwallets.empty()) { return InitError(_("You can not start a masternode with wallet enabled.")); } #endif //ENABLE_WALLET // Create and register activeMasternodeManager, will init later in ThreadImport activeMasternodeManager = new CActiveMasternodeManager(); RegisterValidationInterface(activeMasternodeManager); } if (activeMasternodeInfo.blsKeyOperator == nullptr) { activeMasternodeInfo.blsKeyOperator = std::make_unique<CBLSSecretKey>(); } if (activeMasternodeInfo.blsPubKeyOperator == nullptr) { activeMasternodeInfo.blsPubKeyOperator = std::make_unique<CBLSPublicKey>(); } // ********************************************************* Step 10b: setup PrivateSend #ifdef ENABLE_WALLET int nMaxRounds = MAX_PRIVATESEND_ROUNDS; if (vpwallets.empty()) { privateSendClient.fEnablePrivateSend = privateSendClient.fPrivateSendRunning = false; } else { privateSendClient.fEnablePrivateSend = gArgs.GetBoolArg("-enableprivatesend", !fLiteMode); privateSendClient.fPrivateSendRunning = vpwallets[0]->IsLocked() ? false : gArgs.GetBoolArg("-privatesendautostart", DEFAULT_PRIVATESEND_AUTOSTART); } privateSendClient.fPrivateSendMultiSession = gArgs.GetBoolArg("-privatesendmultisession", DEFAULT_PRIVATESEND_MULTISESSION); privateSendClient.nPrivateSendSessions = std::min(std::max((int)gArgs.GetArg("-privatesendsessions", DEFAULT_PRIVATESEND_SESSIONS), MIN_PRIVATESEND_SESSIONS), MAX_PRIVATESEND_SESSIONS); privateSendClient.nPrivateSendRounds = std::min(std::max((int)gArgs.GetArg("-privatesendrounds", DEFAULT_PRIVATESEND_ROUNDS), MIN_PRIVATESEND_ROUNDS), nMaxRounds); privateSendClient.nPrivateSendAmount = std::min(std::max((int)gArgs.GetArg("-privatesendamount", DEFAULT_PRIVATESEND_AMOUNT), MIN_PRIVATESEND_AMOUNT), MAX_PRIVATESEND_AMOUNT); privateSendClient.nPrivateSendDenoms = std::min(std::max((int)gArgs.GetArg("-privatesenddenoms", DEFAULT_PRIVATESEND_DENOMS), MIN_PRIVATESEND_DENOMS), MAX_PRIVATESEND_DENOMS); if (privateSendClient.fEnablePrivateSend) { LogPrintf("PrivateSend: autostart=%d, multisession=%d, " "sessions=%d, rounds=%d, amount=%d, denoms=%d\n", privateSendClient.fPrivateSendRunning, privateSendClient.fPrivateSendMultiSession, privateSendClient.nPrivateSendSessions, privateSendClient.nPrivateSendRounds, privateSendClient.nPrivateSendAmount, privateSendClient.nPrivateSendDenoms); } #endif // ENABLE_WALLET CPrivateSend::InitStandardDenominations(); // ********************************************************* Step 10b: Load cache data // LOAD SERIALIZED DAT FILES INTO DATA CACHES FOR INTERNAL USE bool fLoadCacheFiles = !(fLiteMode || fReindex || fReindexChainState); { LOCK(cs_main); // was blocks/chainstate deleted? if (chainActive.Tip() == nullptr) { fLoadCacheFiles = false; } } fs::path pathDB = GetDataDir(); std::string strDBName; strDBName = "mncache.dat"; uiInterface.InitMessage(_("Loading masternode cache...")); CFlatDB<CMasternodeMetaMan> flatdb1(strDBName, "magicMasternodeCache"); if (fLoadCacheFiles) { if(!flatdb1.Load(mmetaman)) { return InitError(_("Failed to load masternode cache from") + "\n" + (pathDB / strDBName).string()); } } else { CMasternodeMetaMan mmetamanTmp; if(!flatdb1.Dump(mmetamanTmp)) { return InitError(_("Failed to clear masternode cache at") + "\n" + (pathDB / strDBName).string()); } } strDBName = "governance.dat"; uiInterface.InitMessage(_("Loading governance cache...")); CFlatDB<CGovernanceManager> flatdb3(strDBName, "magicGovernanceCache"); if (fLoadCacheFiles) { if(!flatdb3.Load(governance)) { return InitError(_("Failed to load governance cache from") + "\n" + (pathDB / strDBName).string()); } governance.InitOnLoad(); } else { CGovernanceManager governanceTmp; if(!flatdb3.Dump(governanceTmp)) { return InitError(_("Failed to clear governance cache at") + "\n" + (pathDB / strDBName).string()); } } strDBName = "netfulfilled.dat"; uiInterface.InitMessage(_("Loading fulfilled requests cache...")); CFlatDB<CNetFulfilledRequestManager> flatdb4(strDBName, "magicFulfilledCache"); if (fLoadCacheFiles) { if(!flatdb4.Load(netfulfilledman)) { return InitError(_("Failed to load fulfilled requests cache from") + "\n" + (pathDB / strDBName).string()); } } else { CNetFulfilledRequestManager netfulfilledmanTmp; if(!flatdb4.Dump(netfulfilledmanTmp)) { return InitError(_("Failed to clear fulfilled requests cache at") + "\n" + (pathDB / strDBName).string()); } } // ********************************************************* Step 10c: schedule Dash-specific tasks if (!fLiteMode) { scheduler.scheduleEvery(boost::bind(&CNetFulfilledRequestManager::DoMaintenance, boost::ref(netfulfilledman)), 60 * 1000); scheduler.scheduleEvery(boost::bind(&CMasternodeSync::DoMaintenance, boost::ref(masternodeSync), boost::ref(*g_connman)), 1 * 1000); scheduler.scheduleEvery(boost::bind(&CGovernanceManager::DoMaintenance, boost::ref(governance), boost::ref(*g_connman)), 60 * 5 * 1000); } scheduler.scheduleEvery(boost::bind(&CMasternodeUtils::DoMaintenance, boost::ref(*g_connman)), 1 * 1000); if (fMasternodeMode) { scheduler.scheduleEvery(boost::bind(&CPrivateSendServer::DoMaintenance, boost::ref(privateSendServer), boost::ref(*g_connman)), 1 * 1000); #ifdef ENABLE_WALLET } else if (privateSendClient.fEnablePrivateSend) { scheduler.scheduleEvery(boost::bind(&CPrivateSendClientManager::DoMaintenance, boost::ref(privateSendClient), boost::ref(*g_connman)), 1 * 1000); #endif // ENABLE_WALLET } llmq::StartLLMQSystem(); // ********************************************************* Step 11: import blocks if (!CheckDiskSpace()) return false; // Either install a handler to notify us when genesis activates, or set fHaveGenesis directly. // No locking, as this happens before any background thread is started. if (chainActive.Tip() == nullptr) { uiInterface.NotifyBlockTip.connect(BlockNotifyGenesisWait); } else { fHaveGenesis = true; } if (gArgs.IsArgSet("-blocknotify")) uiInterface.NotifyBlockTip.connect(BlockNotifyCallback); std::vector<fs::path> vImportFiles; for (const std::string& strFile : gArgs.GetArgs("-loadblock")) { vImportFiles.push_back(strFile); } threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles)); // Wait for genesis block to be processed { boost::unique_lock<boost::mutex> lock(cs_GenesisWait); while (!fHaveGenesis) { condvar_GenesisWait.wait(lock); } uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); } // As importing blocks can take several minutes, it's possible the user // requested to kill the GUI during one of the last operations. If so, exit. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } // ********************************************************* Step 12: start node //// debug print LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); LogPrintf("chainActive.Height() = %d\n", chainActive.Height()); if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION)) StartTorControl(threadGroup, scheduler); Discover(threadGroup); // Map ports with UPnP MapPort(gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)); CConnman::Options connOptions; connOptions.nLocalServices = nLocalServices; connOptions.nMaxConnections = nMaxConnections; connOptions.nMaxOutbound = std::min(MAX_OUTBOUND_CONNECTIONS, connOptions.nMaxConnections); connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS; connOptions.nMaxFeeler = 1; connOptions.nBestHeight = chainActive.Height(); connOptions.uiInterface = &uiInterface; connOptions.m_msgproc = peerLogic.get(); connOptions.nSendBufferMaxSize = 1000*gArgs.GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER); connOptions.nReceiveFloodSize = 1000*gArgs.GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER); connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe; connOptions.nMaxOutboundLimit = nMaxOutboundLimit; for (const std::string& strBind : gArgs.GetArgs("-bind")) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) { return InitError(ResolveErrMsg("bind", strBind)); } connOptions.vBinds.push_back(addrBind); } for (const std::string& strBind : gArgs.GetArgs("-whitebind")) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, 0, false)) { return InitError(ResolveErrMsg("whitebind", strBind)); } if (addrBind.GetPort() == 0) { return InitError(strprintf(_("Need to specify a port with -whitebind: '%s'"), strBind)); } connOptions.vWhiteBinds.push_back(addrBind); } for (const auto& net : gArgs.GetArgs("-whitelist")) { CSubNet subnet; LookupSubNet(net.c_str(), subnet); if (!subnet.IsValid()) return InitError(strprintf(_("Invalid netmask specified in -whitelist: '%s'"), net)); connOptions.vWhitelistedRange.push_back(subnet); } if (gArgs.IsArgSet("-seednode")) { connOptions.vSeedNodes = gArgs.GetArgs("-seednode"); } if (!connman.Start(scheduler, connOptions)) { return false; } // ********************************************************* Step 13: finished SetRPCWarmupFinished(); uiInterface.InitMessage(_("Done loading")); #ifdef ENABLE_WALLET for (CWalletRef pwallet : vpwallets) { pwallet->postInitProcess(scheduler); } #endif // Final check if the user requested to kill the GUI during one of the last operations. If so, exit. if (fRequestShutdown) { LogPrintf("Shutdown requested. Exiting.\n"); return false; } return true; }
[ "hser2bio@icloud.com" ]
hser2bio@icloud.com
0ecd930df89527e6ef1eec57c833629cd6b042d7
d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3
/chromium/content/shell/common/power_monitor_test_impl.cc
226d66c3e182078ab9b772633d32645273d7e625
[ "BSD-3-Clause" ]
permissive
Csineneo/Vivaldi
4eaad20fc0ff306ca60b400cd5fad930a9082087
d92465f71fb8e4345e27bd889532339204b26f1e
refs/heads/master
2022-11-23T17:11:50.714160
2019-05-25T11:45:11
2019-05-25T11:45:11
144,489,531
5
4
BSD-3-Clause
2022-11-04T05:55:33
2018-08-12T18:04:37
null
UTF-8
C++
false
false
1,438
cc
// Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/shell/common/power_monitor_test_impl.h" #include "mojo/public/cpp/bindings/strong_binding.h" namespace content { // static void PowerMonitorTestImpl::MakeStrongBinding( std::unique_ptr<PowerMonitorTestImpl> instance, mojom::PowerMonitorTestRequest request) { mojo::MakeStrongBinding(std::move(instance), std::move(request)); } PowerMonitorTestImpl::PowerMonitorTestImpl() { base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); if (power_monitor) power_monitor->AddObserver(this); } PowerMonitorTestImpl::~PowerMonitorTestImpl() { base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); if (power_monitor) power_monitor->RemoveObserver(this); } void PowerMonitorTestImpl::QueryNextState(QueryNextStateCallback callback) { // Do not allow overlapping call. DCHECK(callback_.is_null()); callback_ = std::move(callback); if (need_to_report_) ReportState(); } void PowerMonitorTestImpl::OnPowerStateChange(bool on_battery_power) { on_battery_power_ = on_battery_power; need_to_report_ = true; if (!callback_.is_null()) ReportState(); } void PowerMonitorTestImpl::ReportState() { std::move(callback_).Run(on_battery_power_); need_to_report_ = false; } } // namespace content
[ "csineneo@gmail.com" ]
csineneo@gmail.com
8f8e82d22f25f153448a5b32575685121fa2d3f1
fffc0e7860910ed1c7689b5c1349a35bdd5426da
/pitzDaily/constant/turbulenceProperties
f0746852a6b1ab0010c3834e404be3adaa3728bd
[]
no_license
asAmrita/adjointShapeOptimization
001fa7361c9a856dd0ebdf2b118af78c9fa4a5b4
2ffee0fc27832104ffc8535a784eba0e1e5d1e44
refs/heads/master
2020-07-31T12:33:51.409116
2019-09-28T15:06:34
2019-09-28T15:06:34
210,605,738
2
0
null
null
null
null
UTF-8
C++
false
false
988
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1806 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object turbulenceProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // simulationType laminar; RAS { RASModel kEpsilon; turbulence off; printCoeffs on; } // ************************************************************************* //
[ "as998@snu.edu.in" ]
as998@snu.edu.in
42d1eccc8d963dd9dc534f24f2666d36070b1d71
bb7bc122e4d7d7c3722c6a2f084d7fae88fa8d81
/D3D Framework/Log.cpp
2fc10ea85fb7e38d9b27fc11411ed408d57608d9
[]
no_license
REVOLUTION-Game-Creation-Club/DX11-Game-Engine
a3e62628419f25a1da747076e439d67024327287
dafa790fd0f6fdb5c03ce4e35f164692c77bd2b1
refs/heads/master
2022-01-17T02:10:33.549674
2019-05-16T12:12:43
2019-05-16T12:12:43
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
2,267
cpp
#include "pch.h" #include "Log.h" #define LOGNAME "log.txt" namespace D3D11Framework { Log* Log::m_instance = nullptr; Log::Log() { if (!m_instance) { m_file = nullptr; m_instance = this; m_init(); } else Err("Log уже был создан"); } Log::~Log() { m_close(); m_instance = nullptr; } void Log::m_init() { setlocale(LC_ALL, "rus"); if (fopen_s(&m_file, LOGNAME, "w") == 0) { char timer[9]; _strtime_s(timer, 9); char date[9]; _strdate_s(date, 9); fprintf(m_file, "Лог создан: %s %s.\n", date, timer); fprintf(m_file, "---------------------------------------\n\n"); } else { printf("Ошибка при создании файла лога...\n"); m_file = nullptr; } } void Log::m_close() { if (!m_file) return; char timer[9]; _strtime_s(timer, 9); char date[9]; _strdate_s(date, 9); fprintf(m_file, "\n---------------------------------------\n"); fprintf(m_file, "Конец лога: %s %s.", date, timer); fclose(m_file); } void Log::Print(const char* message, ...) { va_list args; va_start(args, message); int len = _vscprintf(message, args) + 1; char* buffer = static_cast<char*>(malloc(len * sizeof(char))); vsprintf_s(buffer, len, message, args); m_print("", buffer); va_end(args); free(buffer); } void Log::Debug(const char* message, ...) { #ifdef _DEBUG va_list args; va_start(args, message); int len = _vscprintf(message, args) + 1; char* buffer = static_cast<char*>(malloc(len * sizeof(char))); vsprintf_s(buffer, len, message, args); m_print("*DEBUG: ", buffer); va_end(args); free(buffer); #endif } void Log::Err(const char* message, ...) { va_list args; va_start(args, message); int len = _vscprintf(message, args) + 1; char* buffer = static_cast<char*>(malloc(len * sizeof(char))); vsprintf_s(buffer, len, message, args); m_print("*ERROR: ", buffer); va_end(args); free(buffer); } void Log::m_print(const char* levtext, const char* text) { char timer[9]; _strtime_s(timer, 9); clock_t cl = clock(); printf("%s::%d: %s%s\n", timer, cl, levtext, text); if (m_file) { fprintf(m_file, "%s::%d: %s%s\n", timer, cl, levtext, text); fflush(m_file); } } }
[ "powernic1@gmail.com" ]
powernic1@gmail.com
87c6a80a1f65954328f7c0e08547bcbf409c0706
262464181bb134094996f34dc000f999cd5e0d8b
/sources/Renderer/Vulkan/VKPtr.h
cb2c2b77dd3d62021a54e233ac782f9c93024b78
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
CaichaoGitHub/LLGL
a71a478408c037eb4cc2cfc0578219e1658a52b3
9a99b1d4e1bc7f3603e634442e7a6aae80af0200
refs/heads/master
2020-04-25T15:32:13.251302
2019-02-27T09:20:07
2019-02-27T09:20:07
172,882,083
0
0
NOASSERTION
2019-02-27T09:12:02
2019-02-27T09:12:01
null
UTF-8
C++
false
false
4,073
h
/* * VKPtr.h * * This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #ifndef LLGL_VK_PTR_H #define LLGL_VK_PTR_H #include <functional> #include <vulkan/vulkan.h> namespace LLGL { // Wrapper class for Vulkan objects (similar to ComPtr in DirectX). template <typename T> class VKPtr { public: VKPtr(const VKPtr<T>&) = delete; VKPtr<T>& operator = (const VKPtr& rhs) = delete; // Default constructor with dummy deleter. VKPtr() : VKPtr { [](T, VkAllocationCallbacks*) {} } { } // Constructs the handler with the specified deleter function. VKPtr(const std::function<void(T, VkAllocationCallbacks*)>& deleter) { deleter_ = [=](T obj) { deleter(obj, nullptr); }; } // Constructs the handler with the specified deleter function and the Vulkan instance. VKPtr( const VKPtr<VkInstance>& instance, const std::function<void(VkInstance, T, VkAllocationCallbacks*)>& deleter) { deleter_ = [&instance, deleter](T obj) { deleter(instance, obj, nullptr); }; } // Constructs the handler with the specified deleter function and the Vulkan device. VKPtr( const VKPtr<VkDevice>& device, const std::function<void(VkDevice, T, VkAllocationCallbacks*)>& deleter) { deleter_ = [&device, deleter](T obj) { deleter(device, obj, nullptr); }; } // Moves the native Vulkan object of the specified handler into this handler. VKPtr(VKPtr<T>&& rhs) : object_ { rhs.object_ }, deleter_ { rhs.deleter_ } { rhs.object_ = VK_NULL_HANDLE; } // Releases the native Vulkan object. ~VKPtr() { Release(); } // Returns a constant pointer to the native Vulkan object. const T* operator & () const { return &object_; } // Returns a pointer to the native Vulkan object. T* operator & () { return &object_; } // Deletes the native Vulkan object using the respective deleter function. void Release() { if (object_ != VK_NULL_HANDLE) { deleter_(object_); object_ = VK_NULL_HANDLE; } } // Releases and returns the address of the native Vulkan object. T* ReleaseAndGetAddressOf() { Release(); return &object_; } // Returns the native Vulkan object. inline T Get() const { return object_; } // Returns the native Vulkan object (shortcut for "Get()"). operator T () const { return object_; } // Release the object and takes the specified native Vulkan object. VKPtr<T>& operator = (const T& rhs) { Release(); object_ = rhs; return *this; } // Moves the specified VKPtr handler into this handler. VKPtr<T>& operator = (VKPtr&& rhs) { object_ = rhs.object_; rhs.object_ = VK_NULL_HANDLE; return *this; } // Returns true if this handler contains the same native Vulkan object as the specified parameter. template <typename U> bool operator == (const U& rhs) const { return (object_ == rhs); } private: T object_ { VK_NULL_HANDLE }; std::function<void(T)> deleter_; }; } // /namespace LLGL #endif // ================================================================================
[ "lukas.hermanns90@gmail.com" ]
lukas.hermanns90@gmail.com
e1334f7e1ed3df9d3a4e48bf922a710b8f16c19d
de5a211bbaaf52087b5ed4a7e845a0dbd22597a8
/统计各学生的总分和平均分以及所有学生各科的总分和平均分列指针法.cpp
e5c2a583fba994f015c52cd2786568daff9ec7e4
[]
no_license
zhangyangru/zyr
bba7d5d295bf652298010f712c090ae2cfba490f
e14fe0b6b18a88650bbbdace2225b4e49e7fda5f
refs/heads/master
2020-03-19T05:10:08.282700
2018-06-03T13:22:35
2018-06-03T13:22:35
135,905,881
0
0
null
null
null
null
GB18030
C++
false
false
808
cpp
#include<stdio.h> int main() { int a[5][4]={{98,78,88,87},{86,89,90,95},{94,80,77,93},{95,95,97,98},{90,84,89,90}}; int *p;//定义列指针 int sum; int i,j; float v; printf("各个学生各科总成绩及平均分:\n"); for(p=a[0];p<(a[0]+5);p++)//p要写成等于a[0],不能写成等于a,否则编译错误 {//这里的p不是列指针吗?这样写不是把行地址赋给了列指针? sum=0; for(j=0;j<4;j++) sum=sum+*(p+j); v=sum/4.0; printf("%d %.2f \n",sum,v); } printf("\n"); printf("所有学生各科总分及平均分:\n"); for(i=0;i<5;i++) { sum=0; for(p=a[0];p<(a[0]+4);p++) sum=sum+*(p+i); v=sum/5.0; printf("%d %.2f \n",sum,v);//出来的总分和上面的一样,为什么? } return 0; }
[ "18220473065@163.com" ]
18220473065@163.com
21f9890bd61fc138ecef2fe8c09348bb42c31240
eedd904304046caceb3e982dec1d829c529da653
/clanlib/ClanLib-2.2.8/Sources/Display/ImageProviders/jpeg_decompressor.cpp
7e24b2b2cb12841e20d798486f9831a51c4060cf
[]
no_license
PaulFSherwood/cplusplus
b550a9a573e9bca5b828b10849663e40fd614ff0
999c4d18d2dd4d0dd855e1547d2d2ad5eddc6938
refs/heads/master
2023-06-07T09:00:20.421362
2023-05-21T03:36:50
2023-05-21T03:36:50
12,607,904
4
0
null
null
null
null
UTF-8
C++
false
false
6,195
cpp
/* ** ClanLib SDK ** Copyright (c) 1997-2011 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for any purpose, ** including commercial applications, and to alter it and redistribute it ** freely, subject to the following restrictions: ** ** 1. The origin of this software must not be misrepresented; you must not ** claim that you wrote the original software. If you use this software ** in a product, an acknowledgment in the product documentation would be ** appreciated but is not required. ** 2. Altered source versions must be plainly marked as such, and must not be ** misrepresented as being the original software. ** 3. This notice may not be removed or altered from any source distribution. ** ** Note: Some of the libraries ClanLib may link to may have additional ** requirements or restrictions. ** ** File Author(s): ** ** Magnus Norddahl */ #include "Display/precomp.h" #include "API/Display/ImageProviders/jpeg_decompressor.h" #include "API/Core/IOData/iodevice.h" #include "API/Core/Text/string_help.h" #include "API/Core/Text/logger.h" // Seems VC8.0 suddenly defines boolean in its Platform SDK // Seems VC7.1 also defines that :) #if _MSC_VER >= 1301 #define HAVE_BOOLEAN #endif #ifdef WIN32 #define XMD_H #endif #include <cstdio> extern "C" { #undef FAR #include <jpeglib.h> } #if BITS_IN_JSAMPLE != 8 #error "CL_JPEGDecompressor::read_scanlines expects libjpeg to use 8 bits per color component" #endif ///////////////////////////////////////////////////////////////////////////// // CL_JPEGDecompressor_Impl class: class CL_JPEGDecompressor_Impl { public: CL_JPEGDecompressor_Impl() { memset(&cinfo, 0, sizeof(jpeg_decompress_struct)); memset(&src, 0, sizeof(jpeg_source_mgr)); memset(&jerr, 0, sizeof(jpeg_error_mgr)); src.init_source = &on_init_source; src.fill_input_buffer = &on_fill_input_buffer; src.skip_input_data = &on_skip_input_data; src.resync_to_restart = &on_resync_to_restart; src.term_source = &on_term_source; jpeg_std_error(&jerr); jerr.error_exit = &on_error_exit; jerr.emit_message = &on_emit_message; jerr.output_message = &on_output_message; cinfo.err = &jerr; cinfo.client_data = this; cinfo.src = &src; jpeg_create_decompress(&cinfo); } ~CL_JPEGDecompressor_Impl() { jpeg_destroy_decompress(&cinfo); } static void on_init_source(j_decompress_ptr cinfo) { CL_JPEGDecompressor_Impl *self = (CL_JPEGDecompressor_Impl *) cinfo->client_data; } static boolean on_fill_input_buffer(j_decompress_ptr cinfo) { CL_JPEGDecompressor_Impl *self = (CL_JPEGDecompressor_Impl *) cinfo->client_data; return TRUE; } static void on_skip_input_data(j_decompress_ptr cinfo, long num_bytes) { CL_JPEGDecompressor_Impl *self = (CL_JPEGDecompressor_Impl *) cinfo->client_data; } static boolean on_resync_to_restart(j_decompress_ptr cinfo, int desired) { CL_JPEGDecompressor_Impl *self = (CL_JPEGDecompressor_Impl *) cinfo->client_data; return TRUE; } static void on_term_source(j_decompress_ptr cinfo) { CL_JPEGDecompressor_Impl *self = (CL_JPEGDecompressor_Impl *) cinfo->client_data; } static void on_error_exit(j_common_ptr cinfo) { char message[JMSG_LENGTH_MAX]; cinfo->err->format_message(cinfo, message); throw CL_Exception(CL_StringHelp::local8_to_text(message)); } static void on_emit_message(j_common_ptr cinfo, int msg_level) { // Throw exception if its a warning message - we want cleanly written data: if (msg_level == -1) on_error_exit(cinfo); } static void on_output_message(j_common_ptr cinfo) { char message[JMSG_LENGTH_MAX]; cinfo->err->format_message(cinfo, message); cl_log_event("JPEGDecompressor", message); } struct jpeg_decompress_struct cinfo; struct jpeg_source_mgr src; struct jpeg_error_mgr jerr; CL_IODevice iodevice; }; ///////////////////////////////////////////////////////////////////////////// // CL_JPEGDecompressor Construction: CL_JPEGDecompressor::CL_JPEGDecompressor(CL_IODevice input_source) : impl(new CL_JPEGDecompressor_Impl) { impl->iodevice = input_source; } ///////////////////////////////////////////////////////////////////////////// // CL_JPEGDecompressor Attributes: int CL_JPEGDecompressor::get_output_width() const { return impl->cinfo.output_width; } int CL_JPEGDecompressor::get_output_height() const { return impl->cinfo.output_height; } int CL_JPEGDecompressor::get_output_components() const { return impl->cinfo.output_components; } ///////////////////////////////////////////////////////////////////////////// // CL_JPEGDecompressor Operations: void CL_JPEGDecompressor::record_marker(SpecialMarker marker_code, unsigned int length_limit) { jpeg_save_markers(&impl->cinfo, marker_code, length_limit); } std::vector<CL_JPEGDecompressor::SavedMarker> CL_JPEGDecompressor::get_saved_markers() const { std::vector<SavedMarker> markers; jpeg_saved_marker_ptr cur = impl->cinfo.marker_list; while (cur) { SavedMarker saved_marker; saved_marker.marker = cur->marker; saved_marker.data = cur->data; saved_marker.data_length = cur->data_length; saved_marker.original_length = cur->original_length; markers.push_back(saved_marker); cur = cur->next; } return markers; } void CL_JPEGDecompressor::start(bool raw_data) { jpeg_read_header(&impl->cinfo, TRUE); impl->cinfo.dct_method = JDCT_FLOAT; impl->cinfo.raw_data_out = raw_data ? TRUE : FALSE; jpeg_start_decompress(&impl->cinfo); } unsigned int CL_JPEGDecompressor::read_scanlines(unsigned char **data, unsigned int lines) { return jpeg_read_scanlines(&impl->cinfo, (JSAMPARRAY) data, lines); } unsigned int CL_JPEGDecompressor::read_raw_data(const unsigned char ***data, unsigned int lines) { return jpeg_read_raw_data(&impl->cinfo, (JSAMPIMAGE) data, lines); } void CL_JPEGDecompressor::finish() { jpeg_finish_decompress(&impl->cinfo); } ///////////////////////////////////////////////////////////////////////////// // CL_JPEGDecompressor Implementation:
[ "paulfsherwood@gmail.com" ]
paulfsherwood@gmail.com
512314a2a27f1a12359b0abc68e0ead2883b36f5
6ce22059ff64ecf67d7f4ff29b26d3f1de063f8e
/src/base/coordsystem/ICRFFile.cpp
c6634d3a9b6e5b3dc115eb75bbc94ca745e53067
[ "Apache-2.0" ]
permissive
spacecraft-ai/GMAT-R2016a
dec5e0124369bb3642d29d339fc267f991362b04
d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5
refs/heads/master
2021-01-23T12:47:19.009911
2017-06-05T08:24:32
2017-06-05T08:24:32
93,201,082
1
3
null
null
null
null
UTF-8
C++
false
false
11,458
cpp
//$Id: ICRFFile.cpp 9513 2012-02-24 21:23:06Z tuandangnguyen $ //------------------------------------------------------------------------------ // ICRFFile.cpp //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2015 United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. // All Other 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. // // Developed jointly by NASA/GSFC and Thinking Systems, Inc. under contract // number ##### // // Author: Tuan Nguyen (NASA/GSFC) // Created: 2012/05/30 // /** * Implements ICRFFile class as specified in the GMAT Math Spec. */ //------------------------------------------------------------------------------ #include "ICRFFile.hpp" #include <stdio.h> #include "LagrangeInterpolator.hpp" #include "FileManager.hpp" #include "MessageInterface.hpp" //------------------------------------------------------------------------------ // static data //------------------------------------------------------------------------------ const Integer ICRFFile::MAX_TABLE_SIZE = 128; ICRFFile* ICRFFile::instance = NULL; //------------------------------------------------------------------------------ // public methods //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // ICRFFile* Instance() //------------------------------------------------------------------------------ /** * Returns a pointer to the instance of the singleton. * * @return pointer to the instance */ //------------------------------------------------------------------------------ ICRFFile* ICRFFile::Instance() { if (instance == NULL) instance = new ICRFFile("ICRF_Table.txt",3); // this file contains a table of Euler rotation vectors for time range from 1957 to 2100 return instance; } //------------------------------------------------------------------------------ // void Initialize() //------------------------------------------------------------------------------ /** * Initializes the instance by reading data from the file. */ //------------------------------------------------------------------------------ void ICRFFile::Initialize() { if (isInitialized) return; // Allocate buffer to store ICRF rotation vector table: AllocateArrays(); // Use FileManager::FindPath() for new file path implementation (LOJ: 2014.07.01) // Open IAU2000/2006 data file: // FileManager* thefile = FileManager::Instance(); // std::string path = thefile->GetPathname(FileManager::ICRF_FILE); // std::string name = thefile->GetFilename(FileManager::ICRF_FILE); // icrfFileName = path+name; // FILE* fpt = fopen(icrfFileName.c_str(), "r"); // if (fpt == NULL) // throw GmatBaseException("Error: GMAT can't open '" + icrfFileName + "' file!!!\n"); FileManager *fm = FileManager::Instance(); icrfFileName = fm->GetFilename(FileManager::ICRF_FILE); icrfFileNameFullPath = fm->FindPath(icrfFileName, FileManager::ICRF_FILE, true, true, true); // Check full path file if (icrfFileNameFullPath == "") throw GmatBaseException("The ICRF file '" + icrfFileName + "' does not exist\n"); FILE* fpt = fopen(icrfFileNameFullPath.c_str(), "r"); if (fpt == NULL) throw GmatBaseException("Error: GMAT can't open '" + icrfFileName + "' file!!!\n"); // Read ICRF Euler rotation vector from data file and store to buffer: Real t; Real rotationvector[3]; int c; Integer i; for (i= 0; (c = fscanf(fpt, "%lf, %le, %le, %le\n",&t, &rotationvector[0],&rotationvector[1],&rotationvector[2])) != EOF; ++i) { // expend the buffer size when it has no room to contain data: if (i >= tableSz) { // create a new buffer with a larger size: Integer new_size = tableSz*2; Real* ind = new Real[new_size]; Real** dep = new Real*[new_size]; // copy contain in the current buffer to the new buffer: memcpy(ind, independence, tableSz*sizeof(Real)); memcpy(dep, dependences, tableSz*sizeof(Real*)); for (Integer k=tableSz; k < new_size; ++k) dep[k] = NULL; // delete the current buffer and use the new buffer as the current buffer: delete independence; delete dependences; independence = ind; dependences = dep; tableSz = new_size; } // store data to buffer: independence[i] = t; if (dependences[i] == NULL) dependences[i] = new Real[dimension]; for (Integer j = 0; j < dimension; ++j) dependences[i][j] = rotationvector[j]; } pointsCount = i; isInitialized = true; } //------------------------------------------------------------------------------ // void Finalize() //------------------------------------------------------------------------------ /* * Finalizes the system by closing an opened file and deleting objects. */ //------------------------------------------------------------------------------ void ICRFFile::Finalize() { CleanupArrays(); } //------------------------------------------------------------------------------ // bool GetICRFRotationVector(Real ind, Real* icrfRotationVector, Integer dim, // Integer order) //------------------------------------------------------------------------------ /* * Get ICRF Euler rotation vector for a given epoch * * @param <ind> epoch at which Euler rotation vector needed * @param <icrfRotationVector> the array containing the result of Euler * rotation vector * @param <dim> dimension of dependent vector * @param <order> interpolation order */ //------------------------------------------------------------------------------ bool ICRFFile::GetICRFRotationVector(Real ind, Real* icrfRotationVector, Integer dim, Integer order) { // Verify the feasibility of interpolation: if ((independence == NULL)||(pointsCount == 0)) { throw GmatBaseException("No data point is used for interpolation.\n"); } else { if((ind < independence[0])||(ind > independence[pointsCount-1])) { throw GmatBaseException("The value of independent variable is out of range.\n"); } if(order >= pointsCount) { throw GmatBaseException("Number of data points is not enough for interpolation.\n"); } } // Specify beginning index and ending index in order to run interpolation: // The ICRF table has unequal step size. Therefore, we cannot use stepsize // to specify midpoint but binary search: Integer start = 0; Integer end = pointsCount-1; Integer midpoint; while (start < end-1) { midpoint = (start + end)/2; if (ind > independence[midpoint]) start = midpoint; else end = midpoint; } Integer beginIndex = (0 > (midpoint-order/2))? 0:(midpoint-order/2); Integer endIndex = ((pointsCount-1) < (beginIndex+order))? (pointsCount-1):(beginIndex+order); beginIndex = (0 > (endIndex-order))? 0:(endIndex-order); // Run interpolation: // create an interpolator: LagrangeInterpolator* interpolator = new LagrangeInterpolator("", dim, order); // add data points in order to run interpolator: for (Integer i= beginIndex; i <= endIndex; ++i) { interpolator->AddPoint(independence[i], dependences[i]); } // run interpolator and get the result of dependent variables: interpolator->SetForceInterpolation(true); bool returnval = interpolator->Interpolate(ind, icrfRotationVector); delete interpolator; return returnval; } //------------------------------------------------------------------------------ // protected methods //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // void AllocateArrays() //------------------------------------------------------------------------------ /** * Allocates ICRFFile buffers to contain ICRF Euler rotation vector read from file. */ //------------------------------------------------------------------------------ void ICRFFile::AllocateArrays() { independence = new Real[tableSz]; dependences = new Real*[tableSz]; Integer i; for (i = 0; i < tableSz; ++i) { dependences[i] = new Real[dimension]; } } //------------------------------------------------------------------------------ // void CleanupArrays() //------------------------------------------------------------------------------ /** * Frees the memory used by the IAUFile buffer. */ //------------------------------------------------------------------------------ void ICRFFile::CleanupArrays() { if (independence != NULL) { // clean up the array of independent variable delete independence; independence = NULL; // clean up the array of dependent variables Integer i= 0; for (i=0; i <tableSz; ++i) { if (dependences[i] != NULL) delete dependences[i]; } delete dependences; dependences = NULL; } } //------------------------------------------------------------------------------ // private methods //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // ICRFFile(const std::string &fileName = "ICRF_Table.txt", // const Integer dim = 3); //------------------------------------------------------------------------------ /** * Constructs ICRFFile object (default constructor). * * @param <fileName> Name of ICRF data file * @param <dim> dimension of dependent vector */ //------------------------------------------------------------------------------ ICRFFile::ICRFFile(const std::string &fileName, Integer dim) : icrfFileName (fileName), icrfFileNameFullPath (""), independence (NULL), dependences (NULL), dimension (dim), tableSz (MAX_TABLE_SIZE), pointsCount (0), isInitialized (false) { } //------------------------------------------------------------------------------ // ~ICRFFile() //------------------------------------------------------------------------------ /** * Destroys ICRFFile object (destructor). */ //------------------------------------------------------------------------------ ICRFFile::~ICRFFile() { CleanupArrays(); }
[ "eabesea@rambler.ru" ]
eabesea@rambler.ru
f9112528ff66baf1169b17c8e877fe16ccbb4b14
53949d69f3fe0f4af0494f353a4a4805d2509a0c
/include/async++/fifo_queue.h
03aa83ea50cb4affde7ca469316ed8902f98007e
[ "MIT" ]
permissive
tankery/asyncplusplus
2403d67350f714d420216ccc666159afde0f8a67
54790e4f8507939632eef73e73cdc94633f8d9a8
refs/heads/master
2021-01-20T15:37:17.279180
2014-04-28T05:21:55
2014-04-28T05:21:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,312
h
// Copyright (c) 2013 Amanieu d'Antras // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #ifndef ASYNCXX_H_ # error "Do not include this header directly, include <async++.h> instead." #endif namespace async { // Queue which holds tasks in FIFO order. Note that this queue is not // thread-safe and must be protected by a lock. class fifo_queue { detail::aligned_array<void*, LIBASYNC_CACHELINE_SIZE> items; std::size_t head, tail; public: fifo_queue() : items(32), head(0), tail(0) {} // Push a task to the end of the queue void push(task_run_handle t) { // Resize queue if it is full if (head == ((tail + 1) & (items.size() - 1))) { detail::aligned_array<void*, LIBASYNC_CACHELINE_SIZE> new_items(items.size() * 2); for (std::size_t i = 0; i < tail - head; i++) new_items[i] = items[(i + head) & (items.size() - 1)]; items = std::move(new_items); } // Push the item items[tail] = t.to_void_ptr(); tail = (tail + 1) & (items.size() - 1); } // Pop a task from the front of the queue task_run_handle pop() { // See if an item is available if (head == tail) return task_run_handle(); else { void* x = items[head]; head = (head + 1) & (items.size() - 1); return task_run_handle::from_void_ptr(x); } } }; } // namespace async
[ "amanieu@gmail.com" ]
amanieu@gmail.com
a6a7bd4944ef506304614a42a01e422d2cdfea98
1be63540b84684259cd1f46652f1d4f72920e9c5
/src/Widgets/QuitWidget.hpp
15c795b253bd10b02e32b8851d0b942e65e09672
[]
no_license
jevarg/epitech-bomberman
5794598804041333e0dcb9489237166098e206f1
4f4e5f9e9250009cf43f6ad2602f2b440b3de337
refs/heads/master
2023-03-22T16:58:07.318028
2021-03-08T23:44:37
2021-03-08T23:44:37
345,822,961
0
0
null
null
null
null
UTF-8
C++
false
false
367
hpp
#ifndef _QUITWIDGET_HPP_ # define _QUITWIDGET_HPP_ #include "AWidget.hpp" #include "Menu.hpp" class QuitWidget : public AWidget { public: QuitWidget(int x, int y, int height, int width, const std::string &texture); ~QuitWidget(); virtual void draw(gdl::AShader &shader, const gdl::Clock &clock); void onClick(t_gameinfo &gameInfo, Menu &menu); }; #endif
[ "luc.sinet@epitech.eu" ]
luc.sinet@epitech.eu
c254765ed4048aed80ba083f1b70dbe47e8463cf
4e4ad34852965fc46a2b38e75e534958ae03892a
/core/vtk/ttkMergeBlockTables/ttkMergeBlockTables.cpp
59caabe6fcf07aacb3d82792b5940907adf54945
[ "BSD-3-Clause" ]
permissive
topology-tool-kit/ttk
169f1fb77ecb266c499f6bf9b33ebd9da18582b3
66e3ddd1af283edf39fa3ad15a516777d42fc488
refs/heads/dev
2023-09-06T09:56:19.255329
2023-09-05T11:39:36
2023-09-05T11:39:36
83,953,525
395
137
NOASSERTION
2023-09-08T03:39:41
2017-03-05T07:41:40
C++
UTF-8
C++
false
false
2,427
cpp
#include <ttkMergeBlockTables.h> #include <vtkFieldData.h> #include <vtkInformation.h> #include <vtkInformationVector.h> #include <vtkMultiBlockDataSet.h> #include <vtkNew.h> #include <vtkObjectFactory.h> #include <vtkTable.h> vtkStandardNewMacro(ttkMergeBlockTables); ttkMergeBlockTables::ttkMergeBlockTables() { this->setDebugMsgPrefix("MergeBlockTables"); this->SetNumberOfInputPorts(1); this->SetNumberOfOutputPorts(1); } int ttkMergeBlockTables::FillInputPortInformation(int port, vtkInformation *info) { if(port == 0) { info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkMultiBlockDataSet"); return 1; } return 0; } int ttkMergeBlockTables::FillOutputPortInformation(int port, vtkInformation *info) { if(port == 0) { info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkTable"); return 1; } return 0; } int ttkMergeBlockTables::RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) { // Get input data std::vector<vtkTable *> inputTables; auto blocks = vtkMultiBlockDataSet::GetData(inputVector[0], 0); // Number of input tables size_t nInputs{}; if(blocks != nullptr) { nInputs = blocks->GetNumberOfBlocks(); for(size_t i = 0; i < nInputs; ++i) { inputTables.emplace_back(vtkTable::SafeDownCast(blocks->GetBlock(i))); } } // Sanity check for(const auto table : inputTables) { if(table == nullptr) { this->printErr("Input tables are not all vtkTables"); return 0; } } // Sanity check if(nInputs == 0) { this->printErr("No input table"); return 0; } // Set output auto outputTable = vtkTable::GetData(outputVector); // Copy first table to output // (deep copy leaves the input untouched) outputTable->DeepCopy(inputTables[0]); // Clear out the FieldData that may have been copied const auto fd = outputTable->GetFieldData(); if(fd != nullptr) { fd->Reset(); } // Insert row of every other table into output for(size_t i = 1; i < nInputs; ++i) { const auto currTable{inputTables[i]}; for(vtkIdType j = 0; j < currTable->GetNumberOfRows(); ++j) { outputTable->InsertNextRow(currTable->GetRow(j)); } } return 1; }
[ "pierre.guillou@lip6.fr" ]
pierre.guillou@lip6.fr
b4267333032e761e347d843b9102929e09e22e13
60bb67415a192d0c421719de7822c1819d5ba7ac
/blazetest/src/mathtest/dmatdmatmult/DDbSLDa.cpp
ac946150a3fd9b79f97db1792d899ad319b318ee
[ "BSD-3-Clause" ]
permissive
rtohid/blaze
48decd51395d912730add9bc0d19e617ecae8624
7852d9e22aeb89b907cb878c28d6ca75e5528431
refs/heads/master
2020-04-16T16:48:03.915504
2018-12-19T20:29:42
2018-12-19T20:29:42
165,750,036
0
0
null
null
null
null
UTF-8
C++
false
false
4,345
cpp
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/DDbSLDa.cpp // \brief Source file for the DDbSLDa dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. 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 names of the Blaze development group 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. */ //================================================================================================= //************************************************************************************************* // Includes //************************************************************************************************* #include <cstdlib> #include <iostream> #include <blaze/math/DiagonalMatrix.h> #include <blaze/math/DynamicMatrix.h> #include <blaze/math/StrictlyLowerMatrix.h> #include <blazetest/mathtest/Creator.h> #include <blazetest/mathtest/dmatdmatmult/OperationTest.h> #include <blazetest/system/MathTest.h> //================================================================================================= // // MAIN FUNCTION // //================================================================================================= //************************************************************************************************* int main() { std::cout << " Running 'DDbSLDa'..." << std::endl; using blazetest::mathtest::TypeA; using blazetest::mathtest::TypeB; try { // Matrix type definitions using DDb = blaze::DiagonalMatrix< blaze::DynamicMatrix<TypeB> >; using SLDa = blaze::StrictlyLowerMatrix< blaze::DynamicMatrix<TypeA> >; // Creator type definitions using CDDb = blazetest::Creator<DDb>; using CSLDa = blazetest::Creator<SLDa>; // Running tests with small matrices for( size_t i=0UL; i<=6UL; ++i ) { RUN_DMATDMATMULT_OPERATION_TEST( CDDb( i ), CSLDa( i ) ); } // Running tests with large matrices RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 15UL ), CSLDa( 15UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 37UL ), CSLDa( 37UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 63UL ), CSLDa( 63UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 16UL ), CSLDa( 16UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 32UL ), CSLDa( 32UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CDDb( 64UL ), CSLDa( 64UL ) ); } catch( std::exception& ex ) { std::cerr << "\n\n ERROR DETECTED during dense matrix/dense matrix multiplication:\n" << ex.what() << "\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } //*************************************************************************************************
[ "klaus.iglberger@gmail.com" ]
klaus.iglberger@gmail.com
b6facac23c2e1e394fd63da209ed5d05fd2c30be
866cc796724ea7caad8cdd872bddc2419a069e66
/PropertyManager.cpp
2fd0f71ab7610b4c69a8bd399e8395c9eb043f0e
[]
no_license
Amaayezing/Monopoly
6602f005755604550241ece96736bd2b4571cce9
86eb5d14e551bb8ebcf79605c26eac27536bb686
refs/heads/master
2020-04-11T19:58:10.719189
2018-12-17T05:17:39
2018-12-17T05:17:39
162,054,764
0
0
null
null
null
null
UTF-8
C++
false
false
2,788
cpp
#include "PropertyManager.h" #include "Board.h" #include "Player.h" Monopoly::PropertyManager::PropertyManager(const Monopoly::Board& board) { for (const auto& space : board.getSpaces()) { if (space.getSpaceType() == SpaceType::propertySpace) { if (propertySets.count(space.getSetId()) == 0) { propertySets[space.getSetId()] = PropertySet(space.getSetId()); } else { propertySets.at(space.getSetId()).incNumPropertiesInSet(); } } } } void Monopoly::PropertyManager::takeOwnershipOf(Monopoly::Property& property) { propertySets.at(property.getSetId()).addProperty(property); } /** * Move all of the properties within the property set into this * property manager. Leaves the given propertySet empty * @param propertySet */ void Monopoly::PropertyManager::takeOwnershipOf(Monopoly::PropertySet& propertySet) { for (const auto& property : propertySet.getProperties()) { takeOwnershipOf(*property); } propertySet.clear(); } bool Monopoly::PropertyManager::ownsEntireSet(const int setId) const { return propertySets.at(setId).ownsAll(); } void Monopoly::PropertyManager::givePropertiesTo(Monopoly::PropertyManager& receiver) { for (auto& propertySet : propertySets) { receiver.takeOwnershipOf(propertySet.second); // second is the actual property. first is the property set id } } void Monopoly::PropertyManager::updateOwner(Monopoly::Player& newOwner) { for (auto& propertySet : propertySets) { propertySet.second.updateOwner(newOwner); } } int Monopoly::PropertyManager::getValue() const { int value = 0; for (const auto& propertySet : propertySets) { value += propertySet.second.getValue(); } return value; } std::vector<Monopoly::Property*> Monopoly::PropertyManager::getUpgradeableProperties(const Rules& rules, const int available_cash) const { std::vector<Property*> upgradeableProperties; for (const auto& propertySet: propertySets) { std::vector<Property*> addableProperties = propertySet.second.getUpgradeableProperties(rules, available_cash); upgradeableProperties.insert(upgradeableProperties.cend(), addableProperties.cbegin(), addableProperties.cend()); } return upgradeableProperties; } std::vector<Monopoly::Property*> Monopoly::PropertyManager::getDowngradeableProperties(const Monopoly::Rules& rules) const { std::vector<Property*> downgradeableProperties; for (const auto& propertySet: propertySets) { std::vector<Property*> addableProperties = propertySet.second.getDowngradeableProperties(rules); downgradeableProperties.insert(downgradeableProperties.cend(), addableProperties.cbegin(), addableProperties.cend()); } return downgradeableProperties; }
[ "noreply@github.com" ]
noreply@github.com
7fac2fe409f90aac4b4a10a1914bcc6b2bb91409
d9b49100d371847d91b6e3970d2511583698d095
/MenuBarSpectrumAnalyzer/SpectrumAnalyzer.cpp
3818e16c6eba57a491fa934ef58ac63ef805729c
[]
no_license
HaikuArchives/UselessSoundplayPlugins
d6ced4737a468a40fabc9dc01b3a81b4fa80e277
e95e882e53b2dca544e184c4480e363a6c276195
refs/heads/master
2021-01-20T23:32:32.234328
2014-10-26T16:32:28
2014-10-26T16:32:28
12,199,499
1
0
null
null
null
null
UTF-8
C++
false
false
9,155
cpp
/* MenuBar Spectrum Analyzer visualization plugin for SoundPlay. Copyright 2003 François Revol (revol@free.fr) Copyright 2001 Marco Nelissen (marcone@xs4all.nl) Permission is hereby granted to use this code for creating other SoundPlay-plugins. */ #include <string.h> #include <stdio.h> #include <malloc.h> #include <Alert.h> #include <Application.h> #include <ByteOrder.h> #include <Directory.h> #include <Font.h> #include <GraphicsDefs.h> #include <Handler.h> #include <MediaDefs.h> #include <Menu.h> #include <MenuBar.h> #include <MenuItem.h> #include <Path.h> #include <SupportDefs.h> #include <StopWatch.h> #include <TypeConstants.h> #include <View.h> #include <Window.h> #include "pluginproto.h" #include "SpectrumAnalyzer.h" #include "PaletteMenuItem.h" plugin_descriptor plugin={ PLUGIN_DESCRIPTOR_MAGIC,PLUGIN_DESCRIPTOR_VERSION, PLUGIN_NAME,1, PLUGIN_IS_VISUAL, PLUGIN_NAME, "By "PLUGIN_AUTHOR", Marco Nelissen.\n\n", NULL, // about NULL, //&configureplugin, // configure (if the plugin isn't running, options won't be saved for now... &getspectrumplugin, &destroyspectrumplugin }; BView* filter_configureplugin(void *); void SetConfig(void*, BMessage*); void GetConfig(void*, BMessage*); filter_plugin_ops ops={ // first some bookkeeping stuff PLUGIN_VISUAL_MAGIC, PLUGIN_VISUAL_VERSION, // and the function pointers. spectrumfilechange, spectrumfilter, //filter_configureplugin, //NULL, NULL, //SetConfig, NULL, //GetConfig NULL, NULL }; static plugin_descriptor *plugs[]={ &plugin, 0 }; plugin_descriptor **get_plugin_list(void) // this function gets exported { return plugs; } // ============================================================================== class MenuBarSpectrumAnalyzerPlugin : public BMenuItem { public: MenuBarSpectrumAnalyzerPlugin(plugin_info *info, BMenu *menu); virtual ~MenuBarSpectrumAnalyzerPlugin(); void Highlight(bool flag); virtual void GetContentSize(float *width, float *height); virtual void DrawContent(); status_t Render(const short *buffer, int32 count); SoundPlayController *fController; entry_ref fPluginRef; BString fCurrentPalette; const rgb_color *fPalette; int fColors; bool fKeepRunning; bool fCheckSelection; }; MenuBarSpectrumAnalyzerPlugin::MenuBarSpectrumAnalyzerPlugin(plugin_info *info, BMenu *menu) : BMenuItem(menu) { fController = info->controller; fPluginRef = *(info->ref); fPalette = kDefaultPalette; fColors = DEFAULT_PAL_CNT; fKeepRunning = true; fCheckSelection = true; BMessage config; fController->RetrievePreference(PLUGIN_NAME, &config); fCurrentPalette = "Default"; config.FindString(PREF_PAL, &fCurrentPalette); PaletteMenuItem *item = dynamic_cast<PaletteMenuItem *>(menu->FindItem(fCurrentPalette.String())); if (item) { fPalette = item->Palette(&fColors); if (!fPalette) { fPalette = kDefaultPalette; fColors = DEFAULT_PAL_CNT; } else { item->SetMarked(true); } } } MenuBarSpectrumAnalyzerPlugin::~MenuBarSpectrumAnalyzerPlugin() { BMessage config; config.AddString(PREF_PAL, fCurrentPalette); fController->StorePreference(PLUGIN_NAME, &config); } /* since BMenuItem isn't a BView/BHandler, we can't get notifications in MessageReceived() */ void MenuBarSpectrumAnalyzerPlugin::Highlight(bool flag) { BMenuItem::Highlight(flag); if (flag) return; fCheckSelection = true; } void MenuBarSpectrumAnalyzerPlugin::GetContentSize(float *width, float *height) { *width = DISPLAY_WIDTH; *height = DISPLAY_HEIGHT; } void MenuBarSpectrumAnalyzerPlugin::DrawContent() { /* draw nothing, the Render() method will do that when asked by SoundPlay */ /* we don't call BMenuItem::DrawContent() because we won't want the label */ } status_t MenuBarSpectrumAnalyzerPlugin::Render(const short *buf, int32 framecount) { BMenu *smenu, *menu; bool locked; /* last time we decided to exit... do it this time */ if (!fKeepRunning) return B_ERROR; menu = Menu(); if (fCheckSelection) { bool slocked; fCheckSelection = false; /* should be safe that way... didn't crash without locking, but better play safe */ smenu = Submenu(); if (menu) { locked = menu->LockLooper(); if (smenu && locked) slocked = smenu->LockLooper(); } if (locked) { /* the menu has been released, so maybe a choice has been made */ BMenuItem *item = smenu->FindMarked(); if (item) { //fprintf(stderr, PLUGIN_NAME": Selected Item: %s\n", item->Label()); PaletteMenuItem *pitem; pitem = dynamic_cast<PaletteMenuItem *>(item); if (!pitem) fKeepRunning = false; /* next time we'll exit */ else { fColors = 0; int cols; fPalette = pitem->Palette(&cols); fColors = cols; fCurrentPalette.SetTo(pitem->Label()); } } } if (locked) { if (slocked) { smenu->UnlockLooper(); } menu->UnlockLooper(); } } (void)framecount; const uint16 *fft = fController->GetFFTForBuffer(buf,SP_MONO_CHANNEL); if (!fPalette) return B_OK; if (!menu) return B_OK; locked = menu->LockLooper(); if (!locked) return B_OK; BRect r(0, 0, DISPLAY_WIDTH-1, DISPLAY_HEIGHT-1); r.OffsetTo(ContentLocation()); rgb_color col = menu->LowColor(); menu->SetLowColor(fPalette[0]); menu->StrokeRect(r, B_SOLID_LOW); r.InsetBy(1,1); if (fColors>1) menu->SetLowColor(fPalette[1]); else menu->SetLowColor(0x9e, 0x9e, 0x9e); menu->FillRect(r, B_SOLID_LOW); menu->SetLowColor(col); const uint16 *offt=fft; for(int x=0;x<32;x++) { uint32 total=0; for(int i=0;i<((x<5)?2:(x/3)) && (fft < (offt+256));i++) total+=*fft++; total/=4*512-x*50; total/=4; if (total > GRAPH_HEIGHT) total = GRAPH_HEIGHT; menu->BeginLineArray(total+1); int y, z; for (z=0, y=total; y>0; y--, z++) { BPoint pt(r.left+x, r.bottom-y+1); menu->AddLine(pt, pt, fPalette[(z+2>=fColors)?(fColors-1):(z+2)]); } menu->EndLineArray(); } menu->Flush(); menu->UnlockLooper(); return B_OK; } // ============================================================================== BView* configureplugin(BMessage *config) { return NULL; } BView* filter_configureplugin(void *) { return NULL; } void *getspectrumplugin(void **data,const char *, const char *, uint32, plugin_info *info ) { BMenu *menu = NULL; BMenuItem *item; BDirectory dir; BDirectory palDir; BEntry ent(info->ref); if (ent.InitCheck() == B_OK) { if (ent.GetParent(&dir) == B_OK) { BPath palpath; while (!dir.IsRootDirectory()) { ent.SetTo(&dir, PALETTES_FOLDER, true); if (palDir.SetTo(&ent) == B_OK) { ent.GetPath(&palpath); fprintf(stderr, "palettes in '%s'.\n", palpath.Path()); break; } if (dir.SetTo(&dir, "..") != B_OK) break; } } } menu = new BMenu("Palettes"); menu->SetRadioMode(true); if (palDir.InitCheck() == B_OK) { palDir.Rewind(); item = new BMenuItem("Quit Plugin", new BMessage('plop')); menu->AddItem(item); menu->AddItem(new BSeparatorItem); item = new BMenuItem("Palette:", NULL); item->SetEnabled(false); menu->AddItem(item); rgb_color *defPal = (rgb_color *)malloc(DEFAULT_PAL_CNT*sizeof(rgb_color)); if (defPal) { memcpy(defPal, kDefaultPalette, DEFAULT_PAL_CNT*sizeof(rgb_color)); item = new PaletteMenuItem(defPal, DEFAULT_PAL_CNT, "Default", new BMessage(MSG_SETCOL)); menu->AddItem(item); } while (palDir.GetNextEntry(&ent) == B_OK) { rgb_color *pal = NULL; BPath palpath; if (ent.GetPath(&palpath) != B_OK) continue; //fprintf(stderr, PLUGIN_NAME": loading palette '%s'\n", palpath.Path()); int32 count = LoadPalette(palpath.Path(), &pal); if (count < 1) continue; BString itemName(palpath.Leaf()); itemName.IReplaceAll(".txt", ""); //fprintf(stderr, PLUGIN_NAME": loaded palette '%s' has %d colors\n", itemName.String(), count); item = new PaletteMenuItem(pal, count, itemName.String(), new BMessage(MSG_SETCOL)); menu->AddItem(item); } } MenuBarSpectrumAnalyzerPlugin *plugin=new MenuBarSpectrumAnalyzerPlugin(info, menu); BWindow *spWin; BMenu *spMenuBar; spWin = be_app->WindowAt(0); if (spWin) { spWin->Lock(); spMenuBar = spWin->KeyMenuBar(); if (spMenuBar) { if (!(spMenuBar->AddItem(plugin))) { fprintf(stderr, PLUGIN_NAME": cannot add plugin to the menubar !!!\n"); } } spWin->Unlock(); } *data=plugin; return &ops; } void destroyspectrumplugin(void*,void *data) { MenuBarSpectrumAnalyzerPlugin *plugin=(MenuBarSpectrumAnalyzerPlugin *)data; BWindow *spWin; BMenu *spMenuBar; spWin = be_app->WindowAt(0); if (spWin) { spWin->Lock(); spMenuBar = spWin->KeyMenuBar(); if (spMenuBar) { if (!(spMenuBar->RemoveItem(plugin))) { fprintf(stderr, PLUGIN_NAME": cannot remove plugin from the menubar !!!\n"); } } spWin->Unlock(); } delete plugin; } void spectrumfilechange(void *data, const char *name, const char *path) { } status_t spectrumfilter(void *data, short *buffer, int32 count, filter_info*) { MenuBarSpectrumAnalyzerPlugin *plugin=(MenuBarSpectrumAnalyzerPlugin *)data; return plugin->Render(buffer, count); } void SetConfig(void *data, BMessage *config) { } void GetConfig(void *data, BMessage *config) { }
[ "mmu_man@e58de2dc-78bf-4b38-ba1b-cf7c7fb510bd" ]
mmu_man@e58de2dc-78bf-4b38-ba1b-cf7c7fb510bd
cc65f06b701eec5556be367e2056bc7a16590759
87c4740f91463b56fe5198b683ae0e51e2d191d7
/CActionFigureDialog.h
00f7dd2d8c974e402a2abba81fbb731b574d24a6
[]
no_license
MrDreek/mfc-game-life
fb5ffe6c1d0d22090a4418e31f95751f7e784c77
60403e69ae061e8ccfa4b2668039b4cf3432d438
refs/heads/master
2022-10-25T06:18:40.705943
2020-06-09T16:31:42
2020-06-09T16:31:42
270,848,143
0
0
null
null
null
null
UTF-8
C++
false
false
668
h
#pragma once // Диалоговое окно CActionFigureDialog class CActionFigureDialog : public CDialog { DECLARE_DYNAMIC(CActionFigureDialog) public: CActionFigureDialog(CWnd* pParent = nullptr); // стандартный конструктор virtual ~CActionFigureDialog(); // Данные диалогового окна #ifdef AFX_DESIGN_TIME enum { IDD = IDD_CActionFigureDialog }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // поддержка DDX/DDV DECLARE_MESSAGE_MAP() public: CStatic m_actionIcon; virtual BOOL OnInitDialog(); CStatic m_action2Icon; CStatic m_gosperIcon; CStatic m_gosper2Icon; };
[ "nikita.klesov@iac.spb.ru" ]
nikita.klesov@iac.spb.ru
dd8e1afe399b30e1628a0fc1411b38b56e4cef5c
ff722cf4c68055e36d590fd44146f36ef3df10c9
/Midi_Accordion.ino
bbab75dea5680c83f45e6c90042d7d88c7ce5cde
[]
no_license
EgorBlagov/arduino-midi-keyboard
7913fe1ca1c3c507c2c3ec3a3c112210dbd61594
aa2fbaf91887d861ed6e16fcf7f4cc63ac66a171
refs/heads/master
2021-07-14T09:15:15.365708
2020-12-03T13:41:17
2020-12-03T13:41:17
232,570,946
0
0
null
null
null
null
UTF-8
C++
false
false
3,034
ino
#include "MatrixHandler.h" #include "MidiNote.h" #include "MidiChord.h" #include <PitchToNote.h> const byte rows = 5; const byte columns = 13; const byte sequenceMap[rows][columns] = { // from right to left {1,2,3,4,5,6,7,8,9,10,11,12,13}, // 1 {14,15,16,17,18,19,20,21,22,23,24,25}, // 2 {43,44,45,46,47,48,49,50}, // 5 {35,36,37,38,39,40,41,42}, // 4 {26,27,28,29,30,31,32,33,34}, // 3 }; const IPlayable* musicKeys[rows][columns] = { { new Note(pitchE5b, 3), new Note(pitchA4b, 3), new Note(pitchC4, 3), new Note(pitchE4, 3), new Note(pitchG4, 3), new Note(pitchB4, 3), new Note(pitchD5, 3), new Note(pitchF5, 3), new Note(pitchA5, 3), new Note(pitchC6, 3), new Note(pitchE6, 3), new Note(pitchG6, 3), new Note(pitchB6, 3), }, { new Note(pitchG5b, 3), new Note(pitchD4, 3), new Note(pitchF4, 3), new Note(pitchA4, 3), new Note(pitchC5, 3), new Note(pitchE5, 3), new Note(pitchG5, 3), new Note(pitchB5, 3), new Note(pitchD6, 3), new Note(pitchF6, 3), new Note(pitchA6, 3), new Note(pitchC7, 3), }, { new Chord<4>(buildMaj7(pitchD4, 1)), new Note(pitchD4, 2), new Chord<3>(buildMaj(pitchG4)), new Note(pitchG3, 2), new Chord<3>(buildMaj(pitchC4, 2)), new Note(pitchC4, 2), new Chord<3>(buildMaj(pitchF4)), new Note(pitchF3, 2), }, { new Chord<4>(buildMaj7(pitchB3, 2)), new Note(pitchB3, 2), new Chord<4>(buildMaj7(pitchE4, 1)), new Note(pitchE4, 2), new Chord<3>(buildMin(pitchA4)), new Note(pitchA3, 2), new Chord<3>(buildMin(pitchD4, 1)), new Note(pitchD4, 2), }, { new Note(pitchG3b, 5), new Note(pitchA3, 5), new Note(pitchB3, 5), new Note(pitchC4, 5), new Note(pitchD4, 5), new Note(pitchE4, 5), new Note(pitchF4, 5), new Note(pitchG3, 5), new Note(pitchA3, 5), }, }; char data[10]; template<byte WIDTH, byte HEIGHT> class ConsoleLogHandler : public IKeyHandler { public: ConsoleLogHandler() { Serial.begin(9600); } void onPressed(byte x, byte y) { sprintf(data, "+%d ", sequenceMap[y][x]); Serial.print(data); } void onReleased(byte x, byte y) { sprintf(data, "-%d ", sequenceMap[y][x]); Serial.print(data); } }; class MidiPressHandler : public IKeyHandler { void onPressed(byte x, byte y) { musicKeys[y][x]->update(true); MidiUSB.flush(); } void onReleased(byte x, byte y) { musicKeys[y][x]->update(false); MidiUSB.flush(); } }; const MidiPressHandler midiHandler; //const ConsoleLogHandler<columns, rows> consoleHandler; const IKeyHandler* handler = &midiHandler; const FixedArray<byte, rows> rowReadPins(2, 3, 4, 5, 6); const MatrixKeyboard<columns, rows> keyboard(ShiftRegister(9, 7, 8), rowReadPins); const MatrixHandler<columns, rows> matrixHandler(keyboard, handler); void setup() { matrixHandler.onSetup(); } void loop() { matrixHandler.onFrame(); }
[ "e.m.blagov@gmail.com" ]
e.m.blagov@gmail.com
eac68716678866653eba1bd1c2868e2ec3f474cd
5694cf1b5ebaa9ca98e0d83fb131f3cd164a2177
/DirectXStudy1/ShadowShader2.cpp
35163220d1f18c9c7021be509ab4758bdf6c441c
[]
no_license
peartail/DirectXPractice2
0e89ce4b123ade12b7d93a34cdef7a6e3b97df81
9ca55a0e3673d3534133d9d40270de848ee27282
refs/heads/master
2020-05-30T14:56:34.345731
2014-12-11T12:05:03
2014-12-11T12:05:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
102
cpp
#include "ShadowShader2.h" ShadowShader2::ShadowShader2() { } ShadowShader2::~ShadowShader2() { }
[ "peartail2@gmail.com" ]
peartail2@gmail.com
9dee83cbf1b5e1ad1bd61b28e6db28a509162ae5
699c96e8c6df85b8be2b694156f91b0183a7eaae
/Lab5Dame/main.cpp
b062f0a3c3cee647de02f90a6e78135a48b14f9f
[]
no_license
egg-nation/Artificial-Intelligence
3f42965f7f7aa6829fe68b4cd3bf15d5a7bbbe37
28f1dc1300a5ceae77593a65fb161dc0e3386467
refs/heads/main
2023-01-18T19:20:49.862747
2020-11-16T19:20:30
2020-11-16T19:20:30
307,328,895
0
0
null
null
null
null
UTF-8
C++
false
false
3,589
cpp
#include <iostream> using namespace std; int possible_moves[9]; int mat[6][6]; void initialize_matrix() { for (int i = 0; i < 6; ++i) { for (int j = 0; j < 6; ++j) { mat[i][j] = 0; } } for (int i = 0; i < 6; ++i) { mat[0][i] = 5; mat[i][0] = 5; mat[5][i] = 5; mat[i][5] = 5; } for (int i = 1; i <= 4; ++i) { mat[1][i] = 1; } for (int i = 1; i <= 4; ++i) { mat[4][i] = 2; } } void show_board() { for (int i = 0; i < 6; ++i) { for (int j = 0; j < 6; ++j) { if (mat[i][j] == 1) { cout << " x "; } if (mat[i][j] == 2) { cout << " o "; } if (mat[i][j] == 0) { cout << " "; } if (mat[i][j] == 5) { cout << " . "; } } cout << endl; } } int is_valid_move(int ln1, int col1, int ln2, int col2) { if ((abs(ln1 - ln2) == 1 && abs(col1 - col2) == 1 && mat[ln2][col2] == 0) || (abs(ln1 - ln2) == 1 && abs(col1 - col2) == 0 && mat[ln2][col2] == 0) || (abs(ln1 - ln2) == 0 && abs(col1 - col2) == 1 && mat[ln2][col2] == 0)) { return 1; } return 0; } void make_manual_move(int ln1, int col1, int ln2, int col2, int turn) { if (is_valid_move(ln1, col1, ln2, col2) == 1) { mat[ln2][col2] = turn; mat[ln1][ln2] = 0; } } int is_final_state() { for (int i = 1; i <= 4; ++i) { if (mat[1][i] == 2) { cout << "o won!" << endl; return 1; } } for (int i = 1; i <= 4; ++i) { if (mat[4][i] == 1) { cout << "x won!" << endl; return 1; } } return 0; } void make_move(int ln, int col, int random_move, int turn) { mat[ln][col] = 0; if (random_move == 0) { mat[ln - 1][col - 1] = turn; } if (random_move == 1) { mat[ln - 1][col] = turn; } if (random_move == 2) { mat[ln - 1][col + 1] = turn; } if (random_move == 3) { mat[ln][col + 1] = turn; } if (random_move == 4) { mat[ln + 1][col + 1] = turn; } if (random_move == 5) { mat[ln + 1][col] = turn; } if (random_move == 6) { mat[ln + 1][col - 1] = turn; } if (random_move == 6) { mat[ln][col - 1] = turn; } } //possible_moves[0] is top left //possible_moves[1] is top //possible_moves[2] is top right //possible_moves[3] is right //possible_moves[4] is bottom right //possible_moves[5] is bottom //possible_moves[6] is bottom left //possible_moves[7] is left int make_random_move(int ln, int col, int turn) { if (mat[ln - 1][col - 1] == 0) { possible_moves[0] = 1; } if (mat[ln - 1][col] == 0) { possible_moves[1] = 1; } if (mat[ln - 1][col + 1] == 0) { possible_moves[2] = 1; } if (mat[ln][col + 1] == 0) { possible_moves[3] = 1; } if (mat[ln + 1][col + 1] == 0) { possible_moves[4] = 1; } if (mat[ln + 1][col] == 0) { possible_moves[5] = 1; } if (mat[ln + 1][col - 1] == 0) { possible_moves[6] = 1; } if (mat[ln][col - 1] == 0) { possible_moves[7] = 1; } int is_ok = 0; int random_move; while (!is_ok) { random_move = rand() % 7; if (possible_moves[random_move] == 1) { is_ok = 1; cout << "The move is possible." << endl; make_move(ln, col, random_move, turn); return 1; } } for (int i = 0; i < 8; ++i) { possible_moves[i] = 0; } return 0; } int main() { initialize_matrix(); show_board(); cout << endl; make_manual_move(1, 1, 2, 1, 1); show_board(); cout << endl; make_random_move(4, 1, 2); show_board(); system("pause"); return 0; }
[ "noreply@github.com" ]
noreply@github.com
0a10cdfff808545157e9beb9f206930c1f12ce52
4782190613fb373418c8c1f7c6c8358941700f93
/source/task4/Renderer.h
59a4271392534c9f3bdaa02fabb443cc1d615ebf
[]
no_license
Nalaxon/rtg
4167e5f4fff36982190a7eed70dbbfd9a8dc3494
fdb16fa0442ddf6f283c8d1ea42bebc318243dcc
refs/heads/master
2021-01-10T19:11:48.365522
2014-12-14T22:23:49
2014-12-14T22:23:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,875
h
#ifndef INCLUDED_RENDERER #define INCLUDED_RENDERER #pragma once #include <GL/platform/Renderer.h> #include <GL/platform/Window.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <string> #include <time.h> #include <vector> typedef struct { glm::vec3 v_up; glm::vec3 p_camera; glm::vec3 p_lookat; } Camera; typedef struct { float beta; float z_n; float z_f; float h; float w; float aspect; } View; class Renderer : public virtual GL::platform::Renderer, public virtual GL::platform::DisplayHandler { private: GL::platform::scoped_context context; int viewport_width; int viewport_height; GLuint programmId; GLuint vertexShaderId; GLuint fragmentShaderId; GLuint vaoId; GLuint structureVertexId; GLuint structureUvId; GLuint colorBufferId; GLuint normalId; GLuint indexId; GLuint lightId; GLuint textureId; std::vector<glm::vec3> vertices; std::vector<glm::vec2> uvs; std::vector<glm::vec3> normals; glm::mat4 modelMatrix; GLint uniMVP; glm::mat4 viewMatrix; glm::mat4 projectionMatrix; Camera camera; View view; clock_t lastTime; float rotateAngle; void CheckError(const std::string funcName); void calculateNormals(const int ind_size, const GLuint* indices, const std::vector<glm::vec3> &vertices, std::vector<glm::vec3> &normals); bool loadOBJ(const char * path, std::vector<glm::vec3> & out_vertices, std::vector<glm::vec2> & out_uvs, std::vector<glm::vec3> & out_normals); public: Renderer(const Renderer&) = delete; Renderer& operator =(const Renderer&) = delete; Renderer(GL::platform::Window& window); void resize(int width, int height); void render(); void createShader(const char* vertexShaderPath, const char* fragmentShaderPath); void destroyShader(void); void createStructure(void); void destroyStructure(void); }; #endif // INCLUDED_RENDERER
[ "bernhard.rapp@student.tugraz.at" ]
bernhard.rapp@student.tugraz.at
1382e9844bd4e86c6588ddb7abffadb0865802dc
85a381f34361a1f5ee18a5689e6403723f1bcd93
/PlyExportExample/src/testApp.cpp
bd7f915043fef3377d782b19e9166f7623bc1af8
[]
no_license
jorditost/ofxKinectExamples
6daf6bd5bbcf47d27c1abf3aaeb0b06ceae78ab2
fa731cc80f8f4be03bcf8779da8c77c96cba9972
refs/heads/master
2021-01-17T05:25:21.414089
2011-10-23T13:36:56
2011-10-23T13:36:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,321
cpp
#include "testApp.h" const float FovX = 1.0144686707507438; const float FovY = 0.78980943449644714; const float XtoZ = tanf(FovX / 2) * 2; const float YtoZ = tanf(FovY / 2) * 2; const unsigned int Xres = 640; const unsigned int Yres = 480; ofVec3f ConvertProjectiveToRealWorld(float x, float y, float z) { return ofVec3f((x / Xres - .5f) * z * XtoZ, (y / Yres - .5f) * z * YtoZ, z); } void exportPlyCloud(string filename, ofMesh& cloud) { ofFile ply; if (ply.open(filename, ofFile::WriteOnly)) { // write the header ply << "ply" << endl; ply << "format binary_little_endian 1.0" << endl; ply << "element vertex " << cloud.getVertices().size() << endl; ply << "property float x" << endl; ply << "property float y" << endl; ply << "property float z" << endl; ply << "end_header" << endl; // write all the vertices vector<ofVec3f>& surface = cloud.getVertices(); for(int i = 0; i < surface.size(); i++) { if (surface[i].z != 0) { // write the raw data as if it were a stream of bytes ply.write((char*) &surface[i], sizeof(ofVec3f)); } } } } void testApp::setup() { ofSetVerticalSync(true); kinect.init(false, false); // disable infrared/rgb video iamge (faster fps) kinect.open(); } void testApp::update() { kinect.update(); if(kinect.isFrameNew()) { int width = kinect.getWidth(); int height = kinect.getHeight(); float* distancePixels = kinect.getDistancePixels(); // distance in centimeters cloud.clear(); cloud.setMode(OF_PRIMITIVE_POINTS); for(int y = 0; y < height; y++) { for(int x = 0; x < width; x++) { int i = y * width + x; float z = distancePixels[i]; if(z != 0) { // ignore empty depth pixels cloud.addVertex(ConvertProjectiveToRealWorld(x, y, z)); } } } } if(exportPly) { exportPlyCloud("cloud.ply", cloud); exportPly = false; } } void testApp::draw() { ofBackground(0); ofSetColor(255); kinect.drawDepth(0, 0, 400, 300); easyCam.begin(); int width = kinect.getWidth(); int height = kinect.getHeight(); ofScale(1, -1, -1); // orient the point cloud properly ofTranslate(0, 0, -150); // rotate about z = 150 cm cloud.drawVertices(); easyCam.end(); } void testApp::exit() { kinect.close(); } void testApp::keyPressed(int key) { if(key == ' ') { exportPly = true; } }
[ "zach@eyebeam.org" ]
zach@eyebeam.org
5b323b4dc09ebc602ff294a32b76bb9f7c086aa5
8567438779e6af0754620a25d379c348e4cd5a5d
/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp
f97298f523d2f72eff2def1c48af0b7c8b39009a
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
C++
false
false
6,282
cpp
/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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. * * Neither the name of Google Inc. 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 * OWNER 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. */ #include "web/SharedWorkerRepositoryClientImpl.h" #include <memory> #include <utility> #include "core/dom/ExecutionContext.h" #include "core/events/Event.h" #include "core/frame/UseCounter.h" #include "core/frame/csp/ContentSecurityPolicy.h" #include "core/inspector/InspectorInstrumentation.h" #include "core/workers/SharedWorker.h" #include "platform/network/ResourceResponse.h" #include "public/platform/WebContentSecurityPolicy.h" #include "public/platform/WebMessagePortChannel.h" #include "public/platform/WebString.h" #include "public/platform/WebURL.h" #include "public/web/WebFrameClient.h" #include "public/web/WebKit.h" #include "public/web/WebSharedWorker.h" #include "public/web/WebSharedWorkerConnectListener.h" #include "public/web/WebSharedWorkerCreationErrors.h" #include "public/web/WebSharedWorkerRepositoryClient.h" #include "web/WebLocalFrameImpl.h" #include "wtf/PtrUtil.h" namespace blink { // Implementation of the callback interface passed to the embedder. This will be // destructed when a connection to a shared worker is established. class SharedWorkerConnectListener final : public WebSharedWorkerConnectListener { public: explicit SharedWorkerConnectListener(SharedWorker* worker) : m_worker(worker) {} ~SharedWorkerConnectListener() override { DCHECK(!m_worker->isBeingConnected()); } // WebSharedWorkerConnectListener overrides. void workerCreated(WebWorkerCreationError creationError) override { m_worker->setIsBeingConnected(true); // No nested workers (for now) - connect() should only be called from // document context. DCHECK(m_worker->getExecutionContext()->isDocument()); Document* document = toDocument(m_worker->getExecutionContext()); bool isSecureContext = m_worker->getExecutionContext()->isSecureContext(); switch (creationError) { case WebWorkerCreationErrorNone: return; case WebWorkerCreationErrorSecureContextMismatch: UseCounter::Feature feature = isSecureContext ? UseCounter::NonSecureSharedWorkerAccessedFromSecureContext : UseCounter::SecureSharedWorkerAccessedFromNonSecureContext; UseCounter::count(document, feature); return; } } void scriptLoadFailed() override { m_worker->dispatchEvent(Event::createCancelable(EventTypeNames::error)); m_worker->setIsBeingConnected(false); } void connected() override { m_worker->setIsBeingConnected(false); } void countFeature(uint32_t feature) override { UseCounter::count(m_worker->getExecutionContext(), static_cast<UseCounter::Feature>(feature)); } Persistent<SharedWorker> m_worker; }; static WebSharedWorkerRepositoryClient::DocumentID getId(void* document) { DCHECK(document); return reinterpret_cast<WebSharedWorkerRepositoryClient::DocumentID>( document); } void SharedWorkerRepositoryClientImpl::connect( SharedWorker* worker, WebMessagePortChannelUniquePtr port, const KURL& url, const String& name) { DCHECK(m_client); // No nested workers (for now) - connect() should only be called from document // context. DCHECK(worker->getExecutionContext()->isDocument()); Document* document = toDocument(worker->getExecutionContext()); // TODO(estark): this is broken, as it only uses the first header // when multiple might have been sent. Fix by making the // SharedWorkerConnectListener interface take a map that can contain // multiple headers. std::unique_ptr<Vector<CSPHeaderAndType>> headers = worker->getExecutionContext()->contentSecurityPolicy()->headers(); WebString header; WebContentSecurityPolicyType headerType = WebContentSecurityPolicyTypeReport; if (headers->size() > 0) { header = (*headers)[0].first; headerType = static_cast<WebContentSecurityPolicyType>((*headers)[0].second); } bool isSecureContext = worker->getExecutionContext()->isSecureContext(); std::unique_ptr<WebSharedWorkerConnectListener> listener = WTF::makeUnique<SharedWorkerConnectListener>(worker); m_client->connect( url, name, getId(document), header, headerType, worker->getExecutionContext()->securityContext().addressSpace(), isSecureContext ? WebSharedWorkerCreationContextTypeSecure : WebSharedWorkerCreationContextTypeNonsecure, port.release(), std::move(listener)); } void SharedWorkerRepositoryClientImpl::documentDetached(Document* document) { DCHECK(m_client); m_client->documentDetached(getId(document)); } SharedWorkerRepositoryClientImpl::SharedWorkerRepositoryClientImpl( WebSharedWorkerRepositoryClient* client) : m_client(client) {} } // namespace blink
[ "hedonist.ky@gmail.com" ]
hedonist.ky@gmail.com
af16894c91e5ba8087a0d03510b2b72d4f548fb4
133d21e4280ddd38c5d27192b5d517382ab3cdf1
/node/functionaltests/send_to_node_10tx_test.cpp
adf33e2a5283dd90ce5d8f0e4d454244925d6119
[ "Apache-2.0" ]
permissive
hadescoincom/hds-core
77b8d739fa14ac0ed502d9a8e56702445458346a
383a38da9a5e40de66ba2277b54fea41b7c32537
refs/heads/master
2022-12-14T04:06:52.733964
2020-08-29T06:02:08
2020-08-29T06:02:08
289,697,131
0
0
null
null
null
null
UTF-8
C++
false
false
1,653
cpp
// Copyright 2020 The Hds Team // // 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. #include "node/node.h" #include "utility/logger.h" #include "tools/base_node_connection.h" #include "tools/tx_generator.h" #include "tools/new_tx_tests.h" using namespace hds; class TestNodeConnection : public NewTxConnection { public: TestNodeConnection(int argc, char* argv[]); private: void GenerateTests() override; }; TestNodeConnection::TestNodeConnection(int argc, char* argv[]) : NewTxConnection(argc, argv) { } void TestNodeConnection::GenerateTests() { for (int i = 1; i <= 10; i++) { m_Tests.push_back([this, i]() { TxGenerator gen(*m_pKdf); // Inputs gen.GenerateInputInTx(i, 1); // Outputs gen.GenerateOutputInTx(i, 1); // Kernels gen.GenerateKernel(4); LOG_INFO() << "tx.IsValid == " << gen.IsValid(); Send(gen.GetTransaction()); }); m_Results.push_back(true); } } int main(int argc, char* argv[]) { int logLevel = LOG_LEVEL_DEBUG; auto logger = Logger::create(logLevel, logLevel); TestNodeConnection connection(argc, argv); connection.Run(); return connection.CheckOnFailed(); }
[ "hadescoincom@gmail.com" ]
hadescoincom@gmail.com
6556d04cdbf5bea23dd17b3c065f70405b774963
aaf052bb772a863f86512724373f51a2b6e39576
/include/proxemics_anytimerrts/grid.h~
c62774de70bf1d1972b03c81a1f85f360ff393c9
[ "BSD-2-Clause" ]
permissive
HsiaoRay/proxemics_anytimerrts
0cec5c1736ebd1df38319e24bf22ab1dd55475e1
6d1c76e04ace18d53af91c3bfcfc9eddbb9fec60
refs/heads/master
2020-07-07T13:35:44.064098
2016-06-16T15:13:48
2016-06-16T15:13:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
927
#include <srl_global_planner/cell.h> #include <cstdlib> #include <iostream> #include <vector> //TODO: ROS PARAMETERS!!! class Grid { // Constructor and Destructor public: //TODO: use a QRectF? Grid(double x, double y, double w, double h,double cw, double ch,int nx, int ny); virtual ~Grid(); // cell occupancy bool isOccupied(double x, double y); bool isCellOccupied(int x, int y); void setOccupied(double x, double y); void unSetOccupied(double x, double y); void setCost(double x, double y, int c); int getCost(double x, double y); void clearObstacles(); // Attributes std::vector< std::vector<Cell*> > cells; std::vector< std::vector<int> > cells_costs; double width; double height; double minx; double miny; double cellwidth; double cellheight; int n_cell_x; int n_cell_y; };
[ "charlyhuang@ira.e.ntu.edu.tw" ]
charlyhuang@ira.e.ntu.edu.tw
0c676541517e19cbe160346204e2fb505283a095
95675b15b654f66bbb1a2ff94b2aeda1edecd84d
/ACM/union.cpp
0ae8cbe6b5f4e9e7c4b19f02a704e1c800e5c512
[]
no_license
CooperXJ/VScode
ba1a4545438a6ee306d6bc0e5f7793b2e1ebbda5
ef014b1be87ccadd9fee6c28c7ee0013f8b6a835
refs/heads/master
2020-12-28T03:31:00.803698
2020-05-30T13:09:12
2020-05-30T13:09:12
238,139,254
0
0
null
null
null
null
UTF-8
C++
false
false
862
cpp
#include <iostream> #include <math.h> #include <algorithm> using namespace std; int pre[1010]; int unionsearch(int root) { int son,tmp; son = root; while(root!=pre[root]) root = pre[root]; while(son!=root) { tmp = pre[son]; pre[son] = root; son = tmp; } return root; } int main() { int num,road,total,i,start,end,root1,root2; while(scanf("%d%d",&num,&road)&&num) { total = num - 1; for(i = 1;i<=num;++i) pre[i] = i; while(road--) { scanf("%d%d",&start,&end); root1 = unionsearch(start); root2 = unionsearch(end); if(root1!=root2) { pre[root1] = root2; total--; } } printf("%d\n",total); } system("pause"); }
[ "1789023580@qq.com" ]
1789023580@qq.com
48bcaf25ff0667e76768b9493cf173317ec53778
e5ae81bc007768b9d14948c78b44d81c869c2339
/lib/hardwarestatus.h
f2a638d76cc65824778932e54e3c5661cb910b58
[]
no_license
BioBoost/Particula-Firmware
b81fbd0e30a19d54b0420943f450f56c414f56e7
0f4fd81ebaf9be8230dd82c417cde27129346df0
refs/heads/master
2022-11-11T02:28:43.108794
2020-05-15T15:54:35
2020-05-15T15:54:35
275,434,622
0
0
null
2020-06-27T18:51:36
2020-06-27T18:51:35
null
UTF-8
C++
false
false
1,595
h
#pragma once namespace Particula { class HardwareStatus { public: HardwareStatus(void); public: void tph_wakeup_failed(void); void tph_read_failed(void); void particle_wakeup_failed(void); void particle_read_failed(void); void particle_sleep_failed(void); void set_stat1(void); void set_stat2(void); void set_pg(void); char get_state(void); bool errors(void); private: // At the moment only takes into account sensors (not the battery indicator) char hardware_state = 0b0000000001100111; char successful_state = 0b0000000001100111; /** * Binary coded error values * bit 0 Particle Sensor Wake-up Successful * bit 1 Particle Sensor Read Successful * bit 2 Particle Sensor Sleep Successful * bit 3 not used * bit 4 not used * bit 5 TPH Sensor Wake-up Successful * bit 6 TPH Sensor Read Successful * bit 7 not used * bit 8 not used * bit 9 not used * bit 10 Battery Charge Output STAT1/-LBO // See MCP73871 Datasheet page 20 Table 5-1 for more information * bit 11 Battery Charge Output STAT2 * bit 12 Battery Charge Output -PG * bit 13 not used * bit 14 not used * bit 15 not used */ }; };
[ "maxim.vandenabeele@gmail.com" ]
maxim.vandenabeele@gmail.com
1af202fc6771528ecccf12ee74b8bc7286f3058b
ffa83215d4a44581f44173100331bda1900b24fe
/build/iOS/Preview/include/Fuse.Reactive.IsMobileFunction.h
fb2d58c861bc897cc0145c27bcb15b4327927a3a
[]
no_license
imkimbosung/ARkit_fuse
167d1c77ee497d5b626e69af16e0e84b13c54457
3b378d6408551d6867f2e5b3d7d8b6f5114e7f69
refs/heads/master
2020-04-19T02:34:33.970273
2019-02-04T08:26:54
2019-02-04T08:26:54
167,907,696
0
0
null
null
null
null
UTF-8
C++
false
false
927
h
// This file was generated based on /usr/local/share/uno/Packages/Fuse.Reactive.Expressions/1.10.0-rc1/PlatformFunctions.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.ISourceLocation.h> #include <Fuse.Reactive.IExpression.h> #include <Fuse.Reactive.PlatformFunction.h> namespace g{namespace Fuse{namespace Reactive{struct IsMobileFunction;}}} namespace g{ namespace Fuse{ namespace Reactive{ // public sealed class IsMobileFunction :86 // { ::g::Fuse::Reactive::PlatformFunction_type* IsMobileFunction_typeof(); void IsMobileFunction__ctor_2_fn(IsMobileFunction* __this); void IsMobileFunction__GetResult_fn(IsMobileFunction* __this, bool* __retval); void IsMobileFunction__New1_fn(IsMobileFunction** __retval); struct IsMobileFunction : ::g::Fuse::Reactive::PlatformFunction { void ctor_2(); static IsMobileFunction* New1(); }; // } }}} // ::g::Fuse::Reactive
[ "ghalsru@naver.com" ]
ghalsru@naver.com
d971c0408f9f2e7708b8b5947b48f678fdbf7e16
4a48ec0ffceb5e50704b53d56ca871475bb7f8bd
/Book Exercise 3.5/main.cpp
6072ee439efd7ef2f8843c80897738efd0a018f6
[]
no_license
aberry5621/Book-Exercise-3.5
90bd80390b68b29f0582c029150d6c2b2f609b69
7eda51652bcdf796d6074738d381bbb44997b7aa
refs/heads/master
2020-09-13T09:30:38.546750
2016-08-31T01:07:33
2016-08-31T01:07:33
66,989,886
0
0
null
null
null
null
UTF-8
C++
false
false
1,727
cpp
// // main.cpp // Book Exercise 3.5 // // Created by ax on 8/30/16. // Copyright © 2016 COMP130. All rights reserved. // // Find future dates // #include <iostream> #include <cmath> using namespace std; int main() { // insert code here... cout << "Find Future Dates \n"; // D int today_input = 0; int elapsed_day_input = 0; int calc_day = 0; // I cout << "Enter today's day: "; cin >> today_input; cout << "Enter the number of days elapsed since today: "; cin >> elapsed_day_input; // P calc_day = (today_input + elapsed_day_input) % 7; // O cout << "Today is "; if (today_input == 0) { cout << "Sunday"; } else if (today_input == 1) { cout << "Monday"; } else if (today_input == 2) { cout << "Tuesday"; } else if (today_input == 3) { cout << "Wednesday"; } else if (today_input == 4) { cout << "Thursday"; } else if (today_input == 5) { cout << "Friday"; } else if (today_input == 6) { cout << "Saturday"; } else { cout << "No day, oops!" << endl; } cout << " and the future day is "; if (calc_day == 0) { cout << "Sunday" << endl; } else if (calc_day == 1) { cout << "Monday" << endl; } else if (calc_day == 2) { cout << "Tuesday" << endl; } else if (calc_day == 3) { cout << "Wednesday" << endl; } else if (calc_day == 4) { cout << "Thursday" << endl; } else if (calc_day == 5) { cout << "Friday" << endl; } else if (calc_day == 6) { cout << "Saturday" << endl; } else { cout << "No day, oops!" << endl; } return 0; }
[ "alexberry721@gmail.com" ]
alexberry721@gmail.com
414e94ec89bd9ad13618e44dd9f4cf95bdf114d7
4bf2ee10c6594f70c32feb3bcb50eec186daa9cf
/solutions/1707/1707.cpp14.cpp
91daa2eb4c632a640b0dba327e714c5526c62e71
[]
no_license
jwvg0425/boj
7674928dc012ba3c404cef3a76aa753828e09761
4b7e7389cbe55270bd0dab546d6e84817477b0f1
refs/heads/master
2020-07-14T02:37:36.658675
2017-07-13T06:11:44
2017-07-13T06:11:44
94,295,654
0
0
null
null
null
null
UTF-8
C++
false
false
954
cpp
#include <stdio.h> #include <string> #include <algorithm> #include <iostream> #include <vector> #include <queue> void solve() { int color[20001] = { 0, }; std::vector<int> edges[20001]; int v, e; scanf("%d %d", &v, &e); for (int i = 0; i < e; i++) { int a, b; scanf("%d %d", &a, &b); edges[a].push_back(b); edges[b].push_back(a); } bool isBipartite = true; for (int i = 1; i <= v; i++) { if (color[i] != 0) continue; std::queue<int> q; color[i] = 1; q.push(i); while (!q.empty()) { int now = q.front(); q.pop(); for (auto& adj : edges[now]) { if (color[adj] == 0) { color[adj] = 3 - color[now]; q.push(adj); } else if (color[adj] == color[now]) { isBipartite = false; goto End; } } } } End: if (isBipartite) printf("YES\n"); else printf("NO\n"); } int main() { int k; scanf("%d", &k); for (int i = 0; i < k; i++) solve(); return 0; }
[ "jwvg0425@naver.com" ]
jwvg0425@naver.com
f4817a60b425be69e05853f315e1ee70465fc7b9
00e26788402ee7da09fa54ebea98fdc7383a0196
/code/Engine/PerlinNoise3D.cpp
a14f2da9df74227f43819e41d1422f44eefdf98f
[ "MIT" ]
permissive
warzes/SapphireShooter
9a36319aee07d9b42844187e1c9d064f38c55869
10ce2efbb9426050f0e16629aadc1977055ca62c
refs/heads/main
2023-03-21T14:38:14.561561
2021-03-11T11:48:25
2021-03-11T11:48:25
333,718,903
0
0
null
null
null
null
UTF-8
C++
false
false
1,730
cpp
#include "stdafx.h" #if SE_OPENGL #include "PerlinNoise3D.h" PerlinNoise3D::PerlinNoise3D(const double& pFrequency, const double& pAmplitude, const double& pPersistance, const unsigned& pOctaves, const double& pMulitplier, const unsigned& pOffsetX, const unsigned& pOffsetY, const unsigned& pOffsetZ) : frequency(pFrequency), amplitude(pAmplitude), persistence(pPersistance), octaves(pOctaves), multiplier(pMulitplier), offsetX(pOffsetX), offsetY(pOffsetY), offsetZ(pOffsetZ) { ; } double PerlinNoise3D::octavePerlin(const double& x, const double& y, const double& z) const { double total = 0; double freq = frequency; double amp = amplitude; double maxValue = 0; for (unsigned i = 0; i < octaves; ++i) { glm::vec3 p((x * freq + offsetX) * multiplier, (y * freq + offsetY) * multiplier, (z * freq + offsetZ) * multiplier); total += ((glm::simplex(p) + 1.0) / 2.0) * amp; maxValue += amp; amp *= persistence; freq *= 2; } return total / maxValue; } void PerlinNoise3D::fillData(std::vector<GLubyte>& data, const unsigned& width, const unsigned& height, const unsigned& depth) const { double xFactor = 1.0 / (width - 1); double yFactor = 1.0 / (height - 1); double zFactor = 1.0 / (depth - 1); for (unsigned w = 0; w < width; ++w) { for (unsigned h = 0; h < height; ++h) { for (unsigned d = 0; d < depth; ++d) { double x = xFactor * w; double y = yFactor * h; double z = zFactor * d; double perlin = octavePerlin(x, y, z); GLubyte result = (GLubyte)(perlin * 255); unsigned index = w * width * height * 4 + h * height * 4 + d * 4; data[index] = result; data[index + 1] = result; data[index + 2] = result; data[index + 3] = result; } } } } #endif
[ "warzes@mail.ru" ]
warzes@mail.ru
952d7de46f399f739514e9530b503309fa293217
7d7ac03a08be074ac43d477f4b659c2732f19982
/src/panel_manager.cpp
41656262925691043cd7b3445fbdc720dc069043
[ "Unlicense" ]
permissive
ghty826/foo_jscript_panel
3f752ca0fda2485e39250746ab5c2ccd6769c5e6
667ac4962a14a857f255f8030e598a036f952838
refs/heads/master
2020-06-07T06:22:38.782719
2019-06-13T21:41:00
2019-06-13T21:41:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,554
cpp
#include "stdafx.h" #include "panel_manager.h" panel_manager::panel_manager() {} panel_manager panel_manager::instance_; panel_manager& panel_manager::instance() { return instance_; } void panel_manager::add_window(HWND p_wnd) { if (m_hwnds.find_item(p_wnd) == pfc_infinite) { m_hwnds.add_item(p_wnd); } } void panel_manager::post_msg_to_all(UINT p_msg, WPARAM p_wp, LPARAM p_lp) { m_hwnds.for_each([p_msg, p_wp, p_lp](const HWND& hwnd) -> void { PostMessage(hwnd, p_msg, p_wp, p_lp); }); } void panel_manager::post_msg_to_all_pointer(UINT p_msg, pfc::refcounted_object_root* p_param) { t_size count = m_hwnds.get_count(); if (count < 1 || !p_param) return; for (t_size i = 0; i < count; ++i) p_param->refcount_add_ref(); m_hwnds.for_each([p_msg, p_param](const HWND& hwnd) -> void { PostMessage(hwnd, p_msg, reinterpret_cast<WPARAM>(p_param), 0); }); } void panel_manager::remove_window(HWND p_wnd) { m_hwnds.remove_item(p_wnd); } void panel_manager::send_msg_to_others_pointer(HWND p_wnd_except, UINT p_msg, pfc::refcounted_object_root* p_param) { t_size count = m_hwnds.get_count(); if (count < 2 || !p_param) return; for (t_size i = 0; i < count - 1; ++i) p_param->refcount_add_ref(); m_hwnds.for_each([p_msg, p_param, p_wnd_except](const HWND& hwnd) -> void { if (hwnd != p_wnd_except) { SendMessage(hwnd, p_msg, reinterpret_cast<WPARAM>(p_param), 0); } }); } void panel_manager::unload_all() { m_hwnds.for_each([](const HWND& hwnd) -> void { SendMessage(hwnd, UWM_UNLOAD, 0, 0); }); }
[ "34617027+marc2k3@users.noreply.github.com" ]
34617027+marc2k3@users.noreply.github.com
d1847bd4c984df888dfe3336d989fd962c9b7143
1b3d343ce1e8dfbacc3c698294798d0abd52c9a2
/Deploy/Instance/CapEuclideo.150.200.99.4.tpp
0951ea94ccb872375f93781ba9010d23f6a7115d
[]
no_license
lyandut/MyTravelingPurchaser
3ecdf849bd19473e92742ed4c6d8d99078351fd0
dca14f3d31e185c1a6f7bbd4a2e7a5cb3b0bd08c
refs/heads/master
2020-05-02T06:10:47.227729
2019-04-19T07:50:53
2019-04-19T07:50:53
177,788,811
0
1
null
2019-04-19T07:50:54
2019-03-26T12:56:50
C++
UTF-8
C++
false
false
131,386
tpp
NAME : TYPE : TPP COMMENT : DIMENSION : 150 EDGE_WEIGHT_TYPE : EUC_2D DISPLAY_DATA_TYPE : COORD_DISPLAY NODE_COORD_SECTION : 1 69 633 2 290 279 3 504 359 4 549 556 5 198 354 6 375 214 7 403 117 8 859 268 9 411 819 10 108 944 11 837 941 12 779 428 13 276 115 14 621 436 15 989 218 16 546 34 17 851 836 18 313 332 19 171 863 20 888 369 21 193 240 22 584 597 23 357 419 24 865 768 25 215 974 26 688 28 27 891 443 28 456 143 29 559 53 30 579 524 31 272 101 32 558 99 33 937 871 34 431 85 35 710 296 36 454 904 37 536 14 38 477 893 39 434 318 40 637 649 41 268 301 42 677 136 43 744 110 44 279 279 45 163 859 46 803 435 47 960 337 48 535 874 49 185 966 50 959 895 51 238 389 52 775 774 53 404 228 54 643 838 55 547 256 56 463 815 57 557 116 58 951 278 59 226 207 60 557 390 61 42 337 62 825 674 63 336 852 64 859 279 65 787 731 66 517 153 67 482 268 68 557 711 69 911 371 70 234 144 71 834 25 72 701 950 73 977 979 74 153 160 75 513 543 76 202 850 77 344 180 78 500 681 79 9 336 80 960 796 81 43 453 82 949 525 83 721 482 84 212 609 85 853 446 86 753 663 87 472 430 88 590 425 89 386 743 90 585 899 91 262 787 92 725 606 93 967 201 94 263 976 95 537 199 96 749 580 97 653 674 98 82 350 99 133 294 100 959 986 101 741 688 102 626 189 103 95 192 104 614 481 105 935 175 106 356 173 107 962 57 108 779 905 109 258 19 110 858 796 111 218 583 112 352 871 113 233 434 114 198 366 115 729 133 116 329 446 117 822 955 118 635 917 119 123 225 120 374 34 121 400 730 122 207 338 123 787 986 124 219 21 125 53 817 126 200 636 127 146 47 128 870 580 129 245 212 130 285 379 131 541 731 132 177 472 133 342 70 134 595 567 135 444 629 136 967 150 137 836 281 138 937 799 139 501 958 140 780 554 141 752 980 142 167 898 143 4 13 144 454 249 145 225 740 146 628 767 147 447 805 148 215 790 149 875 811 150 333 295 DEMAND_SECTION : 200 1 6 2 11 3 3 4 3 5 4 6 9 7 5 8 3 9 2 10 12 11 11 12 12 13 11 14 9 15 7 16 10 17 2 18 6 19 12 20 5 21 7 22 3 23 5 24 3 25 8 26 6 27 8 28 10 29 13 30 10 31 6 32 11 33 1 34 2 35 2 36 8 37 4 38 8 39 8 40 8 41 4 42 2 43 12 44 5 45 5 46 9 47 6 48 3 49 12 50 9 51 1 52 11 53 6 54 5 55 11 56 2 57 8 58 6 59 2 60 2 61 4 62 10 63 3 64 13 65 4 66 10 67 12 68 12 69 6 70 8 71 9 72 12 73 9 74 9 75 8 76 7 77 10 78 11 79 10 80 3 81 3 82 11 83 6 84 11 85 4 86 11 87 12 88 3 89 8 90 5 91 12 92 7 93 7 94 9 95 10 96 5 97 9 98 7 99 12 100 1 101 3 102 6 103 1 104 1 105 6 106 9 107 4 108 10 109 11 110 3 111 3 112 7 113 7 114 5 115 1 116 3 117 10 118 6 119 11 120 12 121 6 122 7 123 6 124 9 125 4 126 8 127 3 128 11 129 12 130 9 131 11 132 7 133 11 134 7 135 4 136 9 137 2 138 4 139 8 140 7 141 8 142 12 143 1 144 10 145 8 146 5 147 12 148 3 149 2 150 12 151 4 152 11 153 7 154 10 155 9 156 3 157 1 158 8 159 2 160 7 161 10 162 8 163 11 164 3 165 8 166 2 167 3 168 2 169 8 170 8 171 8 172 12 173 12 174 10 175 6 176 8 177 6 178 7 179 4 180 12 181 1 182 7 183 12 184 8 185 10 186 10 187 5 188 1 189 1 190 8 191 3 192 11 193 3 194 10 195 4 196 2 197 3 198 11 199 7 200 5 OFFER_SECTION : 1 0 2 85 198 1 6 195 10 11 194 10 9 192 1 9 186 5 1 185 4 11 184 1 7 182 4 6 180 4 15 178 1 5 175 1 11 174 7 2 173 10 3 170 4 14 169 1 7 163 4 14 162 9 3 161 1 9 160 9 7 154 0 4 152 6 2 150 2 14 147 6 2 144 5 10 142 2 7 136 8 9 135 0 7 133 5 5 131 4 2 130 0 13 129 0 9 126 3 5 124 0 8 120 4 10 119 5 12 117 10 5 112 10 10 110 3 3 109 9 8 106 4 6 105 4 9 102 1 11 99 3 6 97 8 12 95 4 13 94 4 12 91 0 13 86 5 1 84 8 15 82 5 13 79 6 6 78 10 9 75 10 15 74 3 13 73 5 11 72 8 13 70 9 4 69 4 3 68 7 12 66 0 12 65 3 15 64 3 5 62 6 3 57 0 10 55 6 10 52 8 2 50 6 3 49 0 13 44 4 10 43 10 11 38 4 11 36 3 3 32 9 4 29 5 12 28 9 14 25 8 13 19 0 2 16 0 10 14 2 13 13 9 1 12 2 14 11 5 3 10 6 15 6 7 3 2 7 2 3 105 198 7 8 194 6 15 192 2 1 190 5 7 187 7 5 186 6 6 183 3 11 182 1 12 180 10 14 176 6 8 174 4 9 173 7 10 172 1 7 171 6 2 170 10 5 164 3 7 163 6 2 162 10 1 158 6 5 155 10 7 154 8 9 153 5 9 151 0 8 150 5 3 149 6 12 147 7 1 145 3 9 144 6 13 142 1 6 139 10 10 138 9 15 136 2 6 134 2 2 132 10 8 131 5 11 130 8 2 129 2 13 128 8 7 126 9 12 125 9 3 121 9 11 120 8 6 119 1 2 114 7 7 113 7 4 112 2 8 109 4 6 108 10 1 106 2 10 105 2 13 99 2 6 98 3 13 97 1 1 96 4 11 95 5 4 93 4 4 92 5 1 91 4 11 87 7 2 86 1 6 85 1 1 84 4 5 82 6 8 81 9 12 79 0 13 78 3 1 77 4 5 75 6 13 74 6 10 72 7 3 71 4 1 70 0 6 68 6 9 67 6 14 66 5 9 65 5 14 64 5 10 61 2 11 58 9 4 57 8 14 55 6 10 53 3 12 52 5 15 50 2 6 49 6 10 46 2 14 45 5 2 43 2 10 39 9 6 38 2 3 37 8 8 31 7 14 30 2 10 29 1 6 28 9 9 19 0 7 16 4 11 14 7 15 13 7 8 12 2 1 11 3 8 10 6 5 6 6 14 2 0 4 1 1 15 4 116 200 0 13 199 4 7 198 6 10 195 6 6 194 6 7 193 1 12 192 3 2 186 3 9 185 3 14 184 6 6 183 1 15 182 7 7 180 10 6 178 0 9 175 4 12 174 4 13 173 3 3 172 10 5 171 2 8 170 8 3 169 6 10 168 4 11 167 5 10 165 4 2 163 4 1 162 8 9 161 1 4 160 4 13 158 2 10 155 1 11 154 4 8 153 2 4 152 5 13 150 2 14 147 6 2 146 9 3 144 10 9 142 6 9 141 2 8 140 7 4 136 5 8 135 7 6 134 6 9 133 0 8 131 0 5 130 7 11 129 9 13 128 2 13 126 5 5 124 3 14 123 3 14 122 7 8 120 9 14 119 9 11 118 2 4 117 8 1 112 0 2 110 1 13 109 5 3 108 8 10 106 8 3 104 8 4 102 1 11 101 1 5 99 2 14 97 0 4 96 2 9 95 1 15 94 9 2 91 9 7 90 0 12 89 3 3 87 4 2 86 7 13 84 7 13 83 9 4 82 5 6 79 1 5 78 10 11 77 7 6 75 5 13 74 0 14 73 5 12 72 8 11 70 2 15 69 7 9 68 3 12 67 0 15 66 8 12 64 2 15 63 5 13 62 3 7 57 7 8 55 2 14 54 3 9 52 4 11 50 6 5 49 2 10 47 7 11 44 0 13 43 9 6 42 6 12 41 5 9 40 7 15 38 7 3 36 0 7 34 3 7 32 3 15 30 4 14 29 8 11 28 1 3 16 7 5 13 2 12 12 2 11 11 10 13 10 2 10 5 98 199 9 10 195 10 7 194 3 10 192 9 6 186 3 8 185 4 10 184 6 13 180 3 14 178 10 2 174 4 3 173 0 15 170 1 4 169 5 4 165 8 5 162 9 15 161 3 10 160 2 8 154 7 3 152 10 1 150 6 6 147 1 10 146 4 1 142 5 8 140 9 2 136 3 7 135 7 15 133 3 15 131 8 9 130 8 4 129 10 13 126 0 11 124 2 14 122 4 1 120 1 4 119 4 14 117 0 2 112 4 2 110 5 11 109 1 1 105 8 2 102 1 5 99 1 10 97 6 11 95 10 12 94 1 1 91 6 10 89 7 4 86 3 2 84 1 15 83 3 4 82 4 4 79 5 6 78 4 13 74 0 13 72 5 13 70 10 10 69 8 2 68 6 14 65 0 9 64 3 11 62 5 4 57 10 5 55 2 15 54 2 1 50 5 8 49 1 3 48 10 1 44 1 12 43 10 7 40 8 3 38 4 4 36 0 14 32 1 13 30 8 14 29 2 12 28 3 9 27 8 11 26 4 12 25 7 10 23 8 3 21 4 3 19 5 15 18 0 7 17 9 14 16 10 3 15 8 11 14 0 12 13 10 9 12 10 11 11 10 4 10 5 9 8 7 11 7 6 3 6 8 9 4 9 6 3 2 11 2 9 1 1 2 3 6 113 198 5 14 193 0 9 192 7 13 190 3 4 187 1 2 185 7 3 183 6 8 182 6 7 180 0 12 177 4 5 176 0 10 174 1 3 173 0 3 172 3 5 171 6 8 169 10 2 165 1 6 164 4 9 163 4 2 161 7 8 158 7 7 155 0 10 154 1 11 153 3 2 152 5 15 151 4 2 150 1 10 147 8 1 145 9 5 144 6 13 142 9 10 141 3 5 139 4 10 137 7 1 134 2 12 133 2 7 132 5 5 131 0 3 130 6 13 129 8 15 128 2 14 126 7 10 124 10 3 121 6 9 120 2 9 119 0 9 118 0 1 116 1 2 114 4 1 113 8 4 109 7 10 108 2 3 106 5 1 102 8 1 99 10 12 98 4 1 97 0 11 95 4 11 93 6 15 92 2 15 91 9 4 90 0 1 89 0 8 87 7 11 86 9 13 84 9 10 82 9 8 81 8 8 79 5 10 78 10 13 77 10 8 75 6 11 74 9 11 73 2 7 72 6 3 71 8 3 68 6 4 67 10 15 66 8 3 64 1 1 62 8 14 61 4 1 58 3 15 55 5 2 53 9 13 52 4 2 49 8 8 47 7 4 46 6 14 45 9 13 43 8 5 40 5 9 39 0 9 38 0 10 36 4 3 32 0 11 31 10 10 30 6 8 29 9 12 28 6 6 25 10 7 21 1 5 19 2 6 18 8 13 16 3 10 15 10 11 14 7 2 13 10 10 12 8 7 11 2 10 10 2 9 6 4 10 2 4 3 7 112 200 10 12 199 5 8 198 7 1 192 1 7 187 6 4 185 2 11 184 2 2 183 1 10 182 10 3 180 5 9 178 2 4 176 6 6 173 5 9 172 8 3 171 6 12 170 3 10 168 2 3 165 1 5 163 1 9 161 6 15 160 1 2 158 8 15 155 6 4 153 1 5 152 2 14 150 7 6 147 10 15 146 1 2 144 5 14 142 5 4 141 0 13 140 5 2 138 7 11 134 6 1 133 6 15 131 2 6 129 3 15 128 9 11 126 2 6 123 0 11 122 7 14 120 8 11 118 3 11 117 3 7 113 3 13 109 1 10 108 5 13 106 4 9 101 7 11 99 2 4 97 4 1 95 10 12 94 2 3 92 0 13 91 8 3 89 10 13 87 7 12 86 3 15 84 6 14 83 3 9 82 0 4 81 1 11 78 5 4 77 4 12 75 0 13 73 4 5 72 10 1 71 8 13 68 10 15 67 3 13 66 5 9 64 3 11 62 7 13 58 8 2 55 5 13 54 1 12 52 1 5 50 0 13 49 4 10 47 8 7 45 3 15 43 3 4 42 5 8 40 1 4 38 8 3 36 4 3 34 2 5 32 4 13 30 9 9 29 3 3 28 2 8 27 0 14 26 7 15 25 1 4 23 8 3 21 4 2 19 4 11 18 6 12 16 3 7 15 1 4 14 7 1 13 4 6 12 0 9 11 2 8 10 10 12 9 0 2 7 1 15 6 1 6 4 10 7 3 0 15 2 2 14 1 8 10 8 91 198 9 9 195 8 4 194 9 14 192 6 2 190 10 4 186 1 1 185 1 7 184 6 11 183 6 9 182 3 14 180 3 1 178 4 5 176 5 13 175 1 4 174 10 9 173 3 8 172 6 15 170 2 11 169 8 13 162 6 6 161 8 2 155 8 6 154 7 15 152 5 7 150 2 6 147 0 1 144 8 6 142 7 15 139 7 13 136 10 5 135 2 8 133 3 8 132 9 2 131 0 1 130 0 2 129 4 2 128 9 11 126 2 12 125 6 7 124 9 12 120 7 14 119 10 4 117 2 12 112 2 14 110 10 10 109 5 15 108 5 15 106 9 2 105 8 6 102 10 3 99 4 10 97 1 5 95 0 8 94 3 11 91 3 13 87 1 15 86 7 2 84 4 5 83 0 10 82 10 13 80 6 6 79 5 6 75 7 14 74 1 11 72 7 10 70 0 6 69 10 6 68 8 3 67 4 3 66 2 12 65 2 6 64 8 15 58 5 1 57 7 10 55 5 13 50 4 9 49 7 13 46 9 6 44 0 14 43 1 1 39 10 11 38 9 13 36 7 2 32 2 12 30 2 6 29 6 15 16 7 8 13 10 15 11 0 7 10 0 15 2 9 6 9 107 198 10 14 192 5 12 190 5 6 187 1 12 185 9 8 184 7 11 183 1 11 182 8 14 180 9 13 178 3 7 176 6 11 173 6 7 172 9 8 171 7 11 164 0 5 163 8 7 157 7 4 156 3 3 155 8 14 154 9 14 153 7 5 151 10 11 150 10 9 147 7 6 145 6 10 144 2 14 142 7 9 139 9 5 137 6 13 134 4 7 133 1 6 132 10 4 131 8 5 129 4 15 128 1 3 126 7 8 121 5 2 120 2 15 119 9 3 118 6 13 117 2 13 114 9 13 113 3 10 109 5 1 108 0 6 107 0 9 106 5 13 99 7 13 98 0 15 97 0 2 95 6 3 94 10 4 93 8 11 92 9 4 91 6 13 87 7 13 86 2 12 84 9 1 82 5 3 81 9 6 79 10 7 78 8 11 76 6 10 75 1 9 73 7 13 72 2 8 71 8 10 68 2 15 67 10 11 66 0 3 64 10 9 61 7 6 58 4 14 55 2 4 52 7 9 49 7 14 46 3 10 45 9 5 43 8 8 39 4 8 38 6 9 31 5 9 30 7 10 29 6 12 28 0 13 27 3 3 26 2 10 25 2 9 23 0 12 21 1 14 19 8 10 18 2 8 17 8 13 16 3 10 15 5 1 14 0 11 13 7 5 12 7 14 11 7 11 10 1 13 8 10 10 7 10 11 6 5 2 4 9 10 3 4 3 2 7 10 1 10 14 10 111 200 8 11 199 0 14 198 4 2 197 10 3 194 5 13 192 2 1 186 9 1 185 8 7 184 9 1 183 9 5 182 8 6 180 6 11 178 8 10 175 8 15 174 9 11 173 9 3 172 3 8 171 10 9 170 0 9 169 8 1 168 9 6 165 8 4 163 0 11 161 7 8 160 9 2 158 9 9 155 4 9 154 5 15 153 0 8 152 9 13 150 10 10 147 2 8 146 9 14 144 8 13 142 7 10 141 0 1 140 8 2 136 10 11 134 0 7 133 6 15 131 10 2 129 0 12 128 1 15 126 4 11 124 9 15 123 2 4 122 4 2 120 8 15 119 8 15 117 5 6 112 10 5 109 7 7 108 8 8 106 4 6 105 4 13 101 3 10 99 1 6 97 7 7 95 0 9 94 6 4 92 10 10 91 7 10 89 9 4 87 2 5 86 1 10 84 0 10 83 1 1 82 7 2 80 10 10 79 10 5 78 4 7 77 9 13 75 2 15 74 0 4 73 7 8 72 9 13 71 0 7 70 8 1 68 4 11 67 4 6 66 4 14 64 1 7 62 2 4 58 8 13 57 2 5 55 6 4 54 5 3 52 6 11 50 2 10 49 1 13 47 6 7 45 10 4 43 3 1 42 1 10 40 1 2 38 9 2 34 3 1 32 1 15 30 9 15 29 2 3 28 6 14 19 7 15 16 4 10 14 4 4 13 9 2 12 5 4 11 8 8 10 6 3 6 6 14 2 9 14 1 5 2 11 113 198 9 5 195 2 9 194 7 1 192 7 7 190 7 1 186 2 15 185 3 5 183 8 11 182 3 4 180 9 7 177 8 7 175 1 10 174 0 3 173 6 12 172 5 2 171 5 8 170 7 9 169 6 6 162 10 10 161 3 2 160 5 2 158 5 8 155 1 3 154 3 14 152 10 4 150 1 4 149 1 8 148 6 12 147 3 6 145 9 3 144 9 10 142 6 15 141 6 11 139 0 10 136 5 9 135 3 15 133 8 5 131 1 12 130 7 12 129 10 11 128 6 4 126 10 2 125 3 4 124 10 8 123 9 12 121 9 2 120 0 11 119 9 11 117 3 10 112 0 8 111 10 10 110 1 1 109 4 8 108 6 11 106 8 14 105 7 13 102 5 10 99 6 2 97 3 11 96 7 7 95 4 10 94 7 12 93 5 2 91 8 7 89 8 2 87 6 12 86 0 6 85 5 1 84 4 3 82 7 8 80 1 6 79 3 6 78 1 4 77 2 13 75 3 13 74 4 7 72 3 5 70 7 11 69 2 9 68 5 3 67 4 9 66 9 15 65 9 13 64 10 12 62 8 4 58 10 13 57 7 15 55 6 2 53 3 6 52 5 10 50 9 4 49 10 4 45 10 5 44 8 3 43 6 10 38 6 9 37 10 11 36 6 15 32 9 4 30 10 10 29 5 6 28 0 4 27 2 7 19 10 9 16 7 4 15 2 12 14 3 3 13 2 14 12 4 5 11 7 6 10 1 4 6 4 12 2 8 12 12 89 198 1 4 192 2 7 190 3 1 187 1 1 185 10 11 183 2 12 182 5 13 179 5 15 176 4 8 173 10 2 172 10 5 171 9 13 169 0 4 165 8 7 164 0 6 163 3 6 161 4 9 157 3 8 155 6 15 154 3 7 153 6 3 152 0 14 151 8 15 150 7 1 147 8 12 145 7 13 144 4 12 142 5 13 141 7 15 139 2 11 137 8 9 134 1 15 133 6 11 132 7 9 131 3 7 129 4 5 128 8 6 126 6 5 124 0 4 121 8 3 120 7 8 119 5 14 118 4 4 114 3 15 113 3 10 109 8 15 108 8 15 106 10 6 102 7 9 99 6 11 98 1 15 97 5 13 95 8 4 93 3 7 92 3 5 91 6 11 89 3 11 87 4 6 86 6 3 84 10 3 82 7 7 81 5 7 79 5 4 78 3 13 76 3 3 75 5 3 73 2 10 72 2 9 71 5 2 68 2 11 67 3 13 66 3 9 64 6 10 62 8 1 61 0 13 58 7 5 55 10 7 52 2 6 49 7 13 46 4 15 45 0 10 43 3 14 39 2 13 38 3 6 35 5 4 31 9 12 30 2 1 29 6 1 2 5 6 13 123 200 3 6 199 7 13 198 9 10 194 0 1 192 8 9 191 6 7 186 5 8 184 0 2 183 7 8 180 5 4 178 9 1 177 2 7 174 10 12 173 4 12 172 10 7 170 8 13 167 8 14 165 9 2 162 1 4 161 0 9 160 3 13 159 1 4 158 8 1 154 1 12 153 10 5 152 8 1 150 3 9 148 9 10 147 3 7 146 0 6 145 3 11 144 5 8 142 10 14 141 8 1 140 8 2 136 6 14 134 10 1 133 0 4 131 9 11 130 4 13 129 5 10 128 1 5 125 10 1 123 7 2 122 1 9 120 9 14 119 2 4 117 0 15 112 5 12 111 6 10 109 8 9 108 0 14 105 6 15 101 1 10 99 2 3 96 1 3 95 7 6 94 7 9 91 9 5 89 0 1 88 3 15 87 8 9 86 4 9 85 4 2 84 0 2 83 8 4 82 6 15 79 9 7 78 0 10 77 2 5 74 3 4 73 4 5 72 5 11 70 9 10 69 9 10 68 9 4 67 0 1 65 4 12 64 6 3 62 9 9 57 4 4 55 10 5 54 10 14 53 3 13 50 4 1 49 6 5 48 4 11 47 10 2 43 2 15 42 8 7 40 9 4 37 2 8 34 5 1 32 1 11 30 2 5 29 7 14 28 3 7 27 1 7 26 10 3 25 8 15 23 6 15 22 10 2 21 7 5 20 6 7 19 2 14 18 9 13 17 6 14 16 10 12 15 2 6 14 2 4 13 4 3 12 5 4 11 3 9 10 6 4 9 8 3 8 0 6 7 10 6 6 1 10 5 5 4 4 7 4 3 7 3 2 7 15 1 4 4 14 77 198 2 10 195 3 14 194 4 1 186 8 10 185 3 9 180 6 14 176 3 6 174 2 9 172 9 5 170 3 9 169 8 6 165 9 15 162 5 7 161 9 11 154 10 15 153 3 2 152 7 11 150 10 8 147 9 7 142 10 1 136 1 1 135 7 12 133 5 6 131 7 2 130 4 9 129 10 1 128 8 12 125 6 3 124 7 15 119 4 8 112 3 6 110 0 11 109 1 2 105 10 12 102 1 2 99 7 12 97 1 4 95 0 9 91 3 15 87 8 13 86 9 2 84 10 6 79 8 10 78 2 8 74 0 14 73 3 9 72 6 6 71 10 3 70 10 4 69 7 6 68 0 9 67 7 1 65 1 2 64 2 15 62 0 7 57 8 9 55 6 5 52 2 4 50 9 3 49 1 8 44 4 2 43 3 5 40 1 14 38 4 15 36 8 14 30 0 4 29 7 7 28 5 10 19 7 12 16 1 1 15 10 4 13 6 6 12 7 2 11 7 10 10 10 1 6 8 6 2 1 7 15 118 200 6 13 198 3 5 197 9 9 192 6 12 190 1 3 187 3 2 184 10 13 183 5 14 182 7 5 180 2 6 178 9 2 176 2 3 175 0 5 173 5 15 172 2 10 171 4 3 167 10 14 164 4 10 163 3 15 160 0 13 157 9 8 155 4 5 153 6 7 152 7 10 151 0 13 150 7 8 147 10 14 146 9 9 145 5 5 144 0 9 142 8 10 141 2 10 139 9 15 137 5 2 136 0 10 133 6 9 132 5 10 131 5 14 129 2 2 128 8 8 126 8 8 123 10 15 121 4 12 120 9 11 117 2 2 114 2 13 113 7 4 109 8 2 108 5 14 106 5 2 99 10 12 98 3 2 97 5 3 94 8 1 93 6 7 92 7 7 89 6 11 87 5 7 86 10 13 84 6 2 83 4 5 82 9 2 81 8 5 80 4 10 78 0 10 77 7 9 76 4 8 75 9 1 73 10 8 72 2 10 71 10 5 70 2 7 68 4 1 67 5 14 66 6 12 64 1 14 63 6 12 62 0 7 61 1 4 58 2 6 55 5 5 54 5 3 52 8 8 49 6 5 46 3 14 45 2 3 43 5 4 41 8 10 40 0 1 39 4 10 38 5 5 32 4 12 31 1 13 30 7 8 29 4 14 28 4 1 27 5 10 26 10 5 25 10 3 23 4 3 22 2 5 21 3 15 20 8 2 19 8 8 18 4 1 16 1 10 15 8 10 14 6 15 13 10 7 12 0 8 11 1 4 10 5 2 7 10 14 6 7 8 5 6 4 3 1 8 2 5 14 1 7 2 16 93 200 6 3 199 10 11 198 8 6 194 3 10 193 0 15 192 9 11 191 4 13 185 6 4 184 1 13 183 3 13 180 7 12 179 1 6 178 2 5 177 7 11 176 7 6 173 7 9 172 4 11 169 2 14 167 3 10 165 9 9 163 10 7 161 5 11 160 4 2 158 10 6 153 4 1 152 3 7 150 4 2 147 3 8 146 5 14 145 2 9 144 1 14 142 3 1 141 2 15 140 5 1 134 6 11 133 5 3 131 5 1 129 7 2 128 9 3 124 7 13 123 3 5 122 10 4 120 7 14 118 9 7 117 7 6 116 0 2 109 9 10 108 0 2 102 10 11 101 10 5 99 9 12 98 1 5 95 8 5 94 8 8 93 10 4 91 2 10 89 5 14 87 10 13 86 3 13 84 4 7 83 7 4 82 10 6 78 2 2 77 10 10 76 0 12 73 10 5 72 8 1 71 5 5 68 2 3 67 4 10 64 4 5 62 10 2 55 7 8 54 6 15 53 6 7 52 4 15 49 2 5 47 7 11 43 10 12 41 8 12 40 10 11 39 8 11 36 0 11 34 1 4 32 8 5 30 10 7 29 0 4 19 3 6 16 9 1 13 2 2 11 2 14 10 3 2 2 7 9 17 109 198 0 5 195 6 7 194 7 8 190 6 6 186 5 7 185 0 9 183 4 4 180 5 15 179 0 10 176 2 13 174 10 6 173 3 5 172 5 4 170 0 8 169 4 2 163 10 13 162 3 8 161 10 2 155 9 14 154 5 15 153 4 8 152 0 9 150 5 15 147 10 1 144 2 2 142 9 1 141 7 4 138 4 9 136 2 1 135 4 14 134 7 8 132 3 8 131 8 7 130 7 4 129 9 13 128 6 4 125 8 4 124 0 13 120 6 8 119 1 9 118 5 12 113 4 14 112 10 11 110 1 13 109 4 4 107 0 10 105 1 4 102 6 8 99 3 2 98 6 9 97 0 9 95 5 4 92 6 9 91 9 12 90 9 14 87 0 9 86 8 3 84 0 6 82 4 15 79 2 5 78 2 9 76 5 2 74 6 8 73 7 14 72 0 3 71 4 12 70 0 15 69 4 3 68 5 12 67 9 14 65 10 15 64 9 6 60 0 13 57 10 2 56 1 2 55 8 14 52 10 4 50 10 7 49 0 8 46 8 14 44 10 14 43 9 10 39 5 12 37 10 11 36 8 15 30 7 9 29 7 6 28 5 9 27 5 2 26 7 7 25 9 11 23 8 8 21 1 1 19 3 12 18 0 11 17 6 5 16 10 10 15 4 13 14 0 7 13 3 3 12 9 14 11 3 12 10 0 13 8 10 6 7 5 11 6 2 4 4 5 12 2 5 4 1 4 6 18 109 200 2 12 198 1 8 197 10 2 195 10 13 192 10 9 190 6 11 187 10 11 186 1 14 184 10 14 183 7 14 182 6 12 180 8 12 178 8 13 176 7 4 175 5 12 173 1 6 172 1 4 171 2 6 170 4 9 163 7 5 162 9 13 160 4 7 157 0 15 155 8 13 154 3 3 152 5 12 151 3 8 150 0 3 147 6 10 145 7 4 144 6 6 142 5 12 141 7 5 139 5 11 137 1 3 136 1 15 133 2 13 132 1 5 131 0 12 129 6 6 128 2 4 126 9 6 123 6 9 121 7 1 120 3 4 119 8 9 117 6 14 114 7 8 113 4 15 112 8 5 109 1 3 107 4 10 106 10 2 99 3 11 98 8 15 97 9 10 94 9 1 93 3 11 92 4 14 91 1 12 89 7 8 87 7 1 86 1 2 82 7 13 81 6 11 80 7 1 79 5 3 78 5 6 77 6 10 76 0 13 75 3 1 73 6 1 72 8 3 71 7 9 70 7 15 68 8 1 67 5 13 66 7 14 64 0 7 63 5 1 62 7 15 61 5 7 58 10 1 55 9 1 52 7 11 50 5 3 49 7 9 46 10 11 45 2 5 44 2 7 43 7 2 41 8 3 40 4 3 39 5 6 38 4 11 31 4 8 30 2 14 29 2 6 28 4 4 19 1 1 16 3 9 15 10 14 14 3 1 13 4 4 12 2 13 11 6 1 10 5 1 6 2 10 2 7 12 19 113 200 7 14 199 3 10 198 9 11 194 8 10 192 10 11 190 2 9 186 5 1 185 8 2 184 9 6 183 5 10 180 1 7 179 5 7 178 9 14 177 1 3 174 4 3 173 5 10 172 7 3 171 7 6 170 2 3 169 9 14 167 7 4 165 5 15 162 2 4 161 2 2 160 9 9 158 8 3 155 3 2 154 8 9 153 4 12 152 8 8 151 5 5 150 7 9 147 4 10 146 1 4 144 8 1 142 3 8 141 3 1 140 8 11 139 8 6 136 6 13 135 5 2 134 10 14 133 5 9 132 1 13 131 7 11 130 3 15 129 8 9 128 5 12 124 3 5 123 1 1 122 4 10 120 4 12 119 2 6 118 2 3 117 9 4 110 9 15 109 7 5 108 3 14 106 4 15 103 8 3 100 0 11 99 5 2 96 10 7 95 9 8 94 1 13 93 9 2 91 9 13 89 2 13 87 3 14 86 6 8 85 1 8 84 6 12 83 6 12 82 10 11 79 4 4 78 9 14 77 10 2 74 7 14 73 6 2 72 4 7 69 5 7 68 9 2 67 6 10 64 7 14 62 3 11 57 8 15 56 10 1 55 0 10 54 0 11 50 8 9 49 1 14 47 0 6 46 3 8 43 4 7 41 7 3 40 1 12 39 9 1 36 6 15 34 7 1 32 9 15 31 2 1 30 8 10 29 7 12 28 7 8 19 5 14 16 10 3 14 4 5 13 5 15 12 5 1 11 3 11 10 8 7 6 9 1 2 9 8 20 98 198 5 1 195 9 6 194 0 14 192 10 10 190 2 11 186 9 10 185 1 3 183 9 15 180 10 10 178 6 13 176 5 4 174 9 15 173 8 5 172 10 14 170 3 13 169 4 4 163 8 13 162 10 12 161 5 12 156 10 15 154 7 6 153 5 5 152 5 2 151 3 12 150 7 4 147 1 3 145 7 5 144 7 7 142 6 14 139 10 12 136 3 3 134 10 2 133 8 12 132 1 15 131 9 6 130 0 3 129 6 15 128 10 5 126 6 5 125 3 14 124 7 8 120 4 6 119 6 2 118 7 11 117 2 8 114 9 3 112 10 1 109 8 6 107 5 9 105 10 8 102 5 13 99 5 7 98 8 3 97 0 12 95 7 14 94 1 10 93 3 1 91 10 7 90 5 15 87 0 11 86 4 7 84 4 5 82 2 1 79 10 10 78 9 10 76 7 5 74 4 15 73 9 10 71 0 5 70 10 9 69 7 3 68 6 9 67 0 12 65 9 11 64 0 11 61 3 4 57 5 15 55 10 12 52 4 9 50 7 10 49 9 4 46 0 9 44 10 14 43 4 9 39 1 13 38 9 7 37 7 5 36 7 2 32 9 3 31 7 12 29 8 7 28 0 13 19 2 5 13 1 10 12 0 12 11 3 1 10 0 15 2 10 11 21 120 198 0 11 197 7 2 195 1 11 194 4 5 192 0 10 190 5 3 187 8 13 186 10 12 185 8 4 183 1 6 182 8 5 180 9 12 176 8 11 175 2 3 174 6 4 173 3 6 172 10 13 171 1 11 170 3 12 163 1 3 162 10 11 156 1 8 155 5 4 154 5 10 152 5 1 151 3 7 150 3 1 147 9 11 145 8 8 144 3 14 143 3 14 142 2 2 139 5 13 137 9 13 136 6 5 133 9 11 132 5 12 131 8 5 130 4 9 129 10 9 128 0 7 126 4 9 125 7 12 120 7 14 119 2 7 117 5 12 114 0 12 113 7 4 112 10 10 107 2 3 106 7 3 105 4 9 99 7 10 98 1 13 97 0 3 96 7 2 95 9 9 94 3 13 93 7 5 92 0 13 91 0 15 87 2 14 86 2 5 85 10 5 84 10 4 82 3 6 81 1 13 79 2 5 76 4 7 75 8 7 74 9 15 72 3 3 71 2 11 70 8 5 68 9 6 67 3 6 66 1 5 65 2 3 64 6 5 62 8 8 61 10 5 58 2 5 57 4 1 52 8 5 50 7 9 49 0 6 46 6 7 45 6 2 44 6 12 43 10 5 39 5 9 38 4 12 37 5 5 32 1 6 31 3 4 30 8 7 29 2 11 28 4 4 27 6 10 26 4 13 25 10 2 23 8 12 21 9 11 20 8 5 19 0 3 18 9 3 17 0 9 16 2 3 15 4 12 14 5 15 13 9 4 12 3 2 11 5 11 10 7 13 8 1 8 7 10 11 6 10 2 4 9 14 2 6 4 1 0 13 22 108 200 5 12 199 6 6 198 9 13 194 2 8 192 9 6 191 5 12 185 4 12 184 7 3 183 0 12 180 7 14 178 9 2 177 0 11 176 5 11 174 9 4 173 2 10 172 0 4 171 2 10 169 6 1 167 5 8 165 10 4 163 3 7 161 4 15 160 4 9 158 1 6 155 7 3 154 9 4 153 2 9 152 0 5 150 7 6 147 5 5 146 1 7 144 6 15 142 0 2 141 9 13 140 10 15 138 1 14 134 10 6 133 2 2 131 3 15 129 1 4 128 8 8 127 3 4 124 1 9 123 8 14 122 0 12 120 5 14 119 10 7 118 9 3 117 10 14 113 2 3 109 10 8 108 4 10 106 3 15 102 9 15 100 0 5 99 5 1 98 8 14 95 6 9 94 4 4 92 5 9 90 10 6 89 3 1 87 0 1 86 4 1 84 9 7 83 4 1 82 2 9 79 6 7 78 2 2 77 7 5 76 2 2 74 9 3 73 9 3 72 1 5 71 6 10 68 10 3 67 0 14 66 4 5 64 6 13 63 3 13 62 10 8 59 1 14 55 10 7 54 2 9 52 4 2 49 1 13 47 7 1 46 9 14 43 10 11 41 6 5 40 1 6 39 6 10 36 3 10 34 0 6 32 7 10 30 1 4 29 10 4 28 0 13 27 5 7 19 10 10 16 4 13 14 2 14 13 0 5 12 7 14 11 5 6 10 4 10 6 10 3 2 6 11 23 125 200 9 6 198 9 7 195 1 12 194 5 4 192 2 9 190 5 8 186 6 8 185 7 7 184 2 9 183 9 2 180 2 11 178 9 8 176 1 13 174 8 15 173 1 15 172 0 3 170 1 12 169 7 10 166 2 14 165 10 8 163 0 5 162 7 15 161 5 9 160 1 13 156 2 8 154 1 15 153 7 12 152 7 11 151 6 2 150 7 4 147 9 2 146 2 4 144 8 1 142 1 1 141 6 12 139 9 13 136 2 13 134 7 14 133 5 3 132 8 15 130 2 15 129 5 6 128 10 14 125 7 12 124 10 11 123 6 10 120 5 10 119 10 7 117 3 12 114 5 4 112 3 5 109 4 2 107 6 4 105 5 8 102 10 11 99 7 15 98 9 3 97 9 2 95 10 13 94 7 14 91 0 4 90 6 11 89 8 10 87 0 7 86 0 11 84 9 15 83 1 6 82 4 14 79 0 5 78 7 2 77 9 13 76 5 14 74 1 6 73 6 3 72 6 1 71 2 3 70 0 4 69 2 7 68 8 4 67 7 1 65 4 13 64 0 7 63 5 6 62 1 8 57 1 9 55 4 4 54 8 2 52 7 11 50 2 8 49 2 5 48 9 12 46 0 7 44 8 7 43 10 6 41 2 6 40 4 12 39 10 5 37 5 14 36 10 8 34 7 3 32 10 12 29 9 13 28 2 12 27 7 10 25 10 10 23 5 12 22 9 14 21 10 11 20 7 4 19 10 14 18 7 2 16 0 10 15 8 9 14 4 13 13 9 3 12 4 2 11 2 10 10 7 11 9 6 11 7 2 1 6 10 5 5 10 2 3 3 5 2 9 15 1 8 9 24 108 198 7 9 197 8 10 194 4 7 190 4 7 187 9 13 186 8 9 185 1 11 183 5 1 182 1 5 180 3 11 177 2 1 176 3 8 175 6 4 174 0 15 172 3 4 171 5 14 170 9 10 169 6 15 165 0 12 163 8 14 162 7 1 161 3 15 158 4 5 156 8 10 155 6 8 154 10 12 152 7 4 151 5 10 150 6 3 148 3 5 147 3 8 145 3 10 144 10 13 142 7 14 139 3 15 137 7 13 136 4 11 135 6 13 133 1 6 132 10 3 131 6 8 130 1 4 129 0 3 128 5 10 126 4 14 125 8 12 124 1 12 121 6 12 120 4 7 119 5 14 116 1 3 114 3 7 113 10 1 112 5 7 111 4 14 110 2 7 108 9 14 107 6 9 106 8 9 105 1 12 99 0 6 98 3 6 97 4 14 96 8 8 95 9 12 93 0 2 92 10 8 91 3 6 87 7 3 86 6 8 85 3 1 84 6 8 82 10 2 81 4 8 79 6 10 77 9 4 76 0 15 75 1 7 74 3 7 72 7 13 71 6 12 70 10 2 69 1 7 68 6 10 67 3 11 66 0 3 65 4 5 64 9 4 62 6 15 61 6 6 58 8 7 57 6 9 56 5 14 53 1 3 52 5 2 50 8 8 47 3 13 46 7 11 45 8 12 43 0 10 40 9 5 39 8 5 38 5 8 37 10 13 36 3 9 31 0 10 30 1 11 29 7 11 25 116 200 7 9 199 3 14 198 4 1 192 4 6 191 4 1 187 6 2 185 3 6 184 6 9 183 7 15 179 0 8 178 4 4 177 6 10 176 0 12 173 10 15 172 1 10 171 8 5 168 5 8 167 2 2 165 8 14 163 3 15 160 3 2 158 0 12 155 5 4 153 9 4 152 5 6 150 6 14 147 4 14 146 8 8 144 0 6 141 9 6 140 8 7 138 0 14 134 4 3 133 3 3 131 7 9 129 7 14 128 3 3 127 10 12 123 5 7 122 9 8 120 2 5 118 10 8 117 6 7 113 9 13 109 2 5 108 7 5 106 9 1 101 0 6 100 5 7 99 0 3 98 3 15 95 7 7 94 0 2 92 4 10 91 0 12 89 4 15 88 5 7 87 7 14 86 7 11 84 1 14 83 4 4 82 2 10 81 3 13 78 4 3 77 0 15 76 9 8 73 1 6 72 6 10 71 0 12 68 8 5 67 8 6 66 6 14 64 4 10 63 1 3 62 6 4 59 5 4 55 1 4 54 4 3 53 2 2 52 0 5 49 10 12 48 8 7 47 6 8 46 2 1 42 9 4 41 7 6 40 7 1 39 7 11 34 0 12 32 1 13 30 8 11 29 10 4 28 3 1 27 0 13 26 2 10 25 5 10 24 4 15 23 4 4 21 4 10 20 8 5 19 3 10 18 1 14 17 7 5 16 7 10 15 8 11 14 4 5 13 8 3 12 8 6 11 6 14 10 4 1 8 10 1 7 7 9 6 2 1 4 4 7 2 9 8 1 3 6 26 118 198 6 6 195 7 13 194 5 9 188 9 11 186 6 14 185 4 7 183 2 7 180 0 1 176 3 5 174 8 5 173 1 5 172 4 10 171 7 11 170 4 8 169 1 1 165 2 12 163 6 10 162 1 2 161 5 2 155 1 2 154 5 8 153 0 8 152 9 12 150 8 11 147 1 1 144 1 3 142 10 9 138 5 1 136 1 15 134 3 8 133 9 9 131 5 9 130 5 4 129 2 15 128 8 10 127 6 3 126 0 3 125 9 8 124 7 3 120 10 2 119 7 11 113 1 15 112 0 6 109 4 1 108 1 6 106 4 12 105 7 7 102 2 5 99 9 12 98 7 10 97 10 2 96 8 2 95 4 10 92 4 10 91 3 6 90 4 10 87 0 14 86 6 10 85 7 1 84 0 7 82 5 1 79 10 6 78 5 2 77 6 4 76 4 12 74 8 9 73 3 2 72 3 14 71 5 5 70 9 4 69 10 4 68 1 13 67 3 12 66 3 12 65 7 10 64 6 2 62 7 12 59 1 11 57 9 9 55 1 14 52 6 11 50 4 5 49 8 12 47 1 14 46 4 12 44 4 8 43 7 6 40 2 6 39 7 8 38 10 9 37 5 9 36 10 2 30 0 5 29 9 15 28 8 4 27 8 5 26 0 2 25 2 11 23 4 10 22 7 6 21 2 6 20 8 5 19 1 11 18 8 10 16 7 4 15 9 14 14 0 14 13 7 5 12 4 2 11 8 1 10 0 14 9 1 10 7 8 9 6 9 11 5 5 13 3 5 8 2 3 3 1 0 13 27 92 198 7 11 197 4 12 194 6 5 192 5 2 190 0 15 187 7 15 186 8 6 183 2 9 182 6 3 180 9 5 176 5 14 175 2 12 174 0 8 173 3 8 172 3 9 171 9 5 170 4 2 163 10 10 162 1 4 156 4 1 155 0 13 154 6 2 151 8 3 150 5 6 147 4 15 145 2 7 144 6 11 142 3 14 139 0 4 137 10 13 136 8 1 132 3 13 131 1 9 130 10 9 129 7 4 128 6 15 126 2 4 120 6 15 119 0 4 114 1 5 113 9 11 109 6 2 107 9 8 106 4 10 99 0 3 98 0 14 97 5 1 93 4 7 92 8 14 91 2 15 87 2 5 86 4 9 84 5 8 82 9 12 81 0 8 79 4 4 76 5 8 75 9 13 74 10 10 72 5 8 71 8 4 68 2 12 67 1 3 66 9 14 64 9 7 61 1 15 58 2 11 57 10 3 55 4 6 52 10 13 50 8 11 49 5 2 46 0 14 45 9 6 43 5 3 39 3 7 38 7 3 31 10 1 30 10 1 29 3 14 28 6 7 27 10 13 25 0 14 19 4 14 16 7 15 14 6 4 13 2 6 12 9 15 11 10 6 10 6 12 6 2 11 2 10 10 28 100 200 5 14 199 8 5 198 0 3 197 1 10 192 6 2 191 8 13 187 1 10 186 9 7 184 0 6 183 8 15 182 8 2 180 1 7 178 2 8 177 0 15 175 1 2 174 4 8 173 4 10 172 2 5 171 0 6 170 9 14 167 9 8 165 10 14 163 2 11 160 7 10 158 1 3 155 5 4 154 9 1 153 2 5 152 8 13 150 4 12 147 10 1 146 5 13 144 1 2 142 5 3 141 4 2 140 3 10 136 0 9 133 9 1 131 8 3 129 1 10 128 8 3 126 8 13 123 5 13 122 6 2 120 1 7 119 3 14 117 5 15 113 8 12 109 3 2 108 4 5 106 8 6 100 8 6 99 8 3 97 6 11 94 5 6 92 0 6 91 0 10 89 6 4 87 4 10 86 4 5 84 1 14 82 6 1 80 0 7 79 2 6 78 6 9 77 4 14 75 10 10 74 2 9 73 3 4 72 4 15 70 0 2 68 9 3 67 2 10 66 8 14 64 8 8 63 6 2 62 9 7 58 4 8 57 5 8 55 6 9 53 1 2 52 3 14 50 3 1 49 4 1 47 9 10 45 4 4 43 7 2 41 5 2 40 5 1 38 8 3 34 2 3 32 1 14 30 6 11 29 10 2 28 3 8 16 10 10 13 5 10 12 5 5 11 6 8 10 0 15 29 119 200 10 11 198 2 2 194 10 8 192 0 1 186 8 15 185 3 12 184 4 15 183 5 4 182 8 14 180 4 1 178 5 3 175 10 4 174 5 11 173 3 14 172 8 13 170 5 7 169 6 6 163 6 3 162 9 12 161 2 3 160 4 5 154 1 9 153 8 1 152 8 10 150 9 10 148 0 14 147 10 13 144 0 15 142 7 11 141 8 9 136 0 11 134 6 14 133 2 3 131 10 13 130 3 10 129 10 5 128 7 1 126 2 6 125 10 10 124 3 6 123 3 5 120 3 6 119 9 7 118 8 6 117 3 9 112 3 4 111 7 5 109 8 13 106 3 9 105 4 6 102 8 6 99 10 15 97 2 1 96 0 7 95 10 12 93 7 9 91 9 6 90 2 14 89 4 6 87 8 8 86 2 8 85 0 10 84 0 1 82 4 14 79 3 12 78 8 11 77 6 5 75 5 8 74 0 5 73 5 3 72 3 4 70 8 12 69 9 11 68 7 11 67 1 13 66 7 8 65 6 10 64 5 5 62 2 11 57 5 8 55 9 13 52 7 6 50 7 15 49 0 8 43 9 7 41 0 13 40 2 4 38 2 7 37 6 5 36 10 11 30 1 7 29 0 11 28 0 1 27 3 15 26 1 15 25 10 13 24 3 12 23 7 7 22 6 5 21 7 4 20 0 6 19 7 1 18 1 13 17 8 6 16 7 7 15 0 8 14 1 7 13 6 5 12 3 11 11 4 3 10 3 3 8 10 10 7 3 12 6 6 9 5 7 7 4 4 3 3 8 13 2 4 7 1 3 7 30 99 198 8 11 197 0 11 193 0 11 190 8 14 187 10 6 185 8 15 183 4 4 182 4 9 180 3 14 179 8 2 176 0 2 175 5 5 173 2 4 172 9 8 171 9 2 169 10 15 163 7 4 161 2 9 156 2 1 155 7 10 153 6 3 152 6 5 151 10 1 150 2 12 147 7 11 144 6 10 142 5 8 141 3 14 139 7 15 136 4 9 134 8 1 133 10 2 132 5 9 131 7 5 129 10 13 128 10 15 126 1 4 124 3 2 120 9 3 118 5 12 114 5 9 113 3 3 109 9 3 108 2 9 107 9 10 106 5 14 102 3 6 99 8 3 98 6 12 97 2 14 95 8 9 93 6 15 92 9 1 91 1 12 89 3 4 87 5 7 86 4 4 84 10 7 82 6 14 81 10 9 78 2 10 76 5 14 75 3 3 73 2 1 72 8 5 71 3 6 68 1 2 67 10 8 66 6 5 64 9 3 62 7 5 61 2 9 58 5 5 55 7 6 52 2 6 49 7 13 46 7 6 45 5 1 43 3 14 40 4 8 39 9 15 38 7 14 36 2 3 31 5 13 30 7 2 29 2 11 28 0 11 27 10 1 25 8 14 21 8 6 19 6 2 16 6 14 14 2 2 13 9 11 12 8 4 11 7 14 10 7 1 6 6 9 2 4 15 31 103 200 9 11 199 10 12 192 6 14 191 3 13 185 5 15 184 6 5 180 5 10 179 10 9 178 1 7 177 6 7 174 3 4 173 4 15 172 7 9 169 10 5 167 0 14 165 2 1 161 9 7 160 3 13 159 1 12 158 0 13 154 2 9 153 2 13 152 9 5 150 1 13 147 8 6 146 4 9 145 1 10 142 10 4 141 5 9 140 10 7 134 3 1 133 9 10 131 1 1 129 7 12 128 6 12 124 6 9 123 5 3 122 7 7 119 5 3 118 6 1 117 9 13 109 3 1 108 4 7 106 5 9 101 5 3 99 3 12 95 3 12 94 8 7 91 4 11 89 0 14 88 2 2 87 0 1 86 2 11 84 7 14 83 3 14 82 10 7 79 6 12 78 10 6 77 0 5 74 10 2 73 6 12 72 1 12 68 9 8 67 0 15 66 7 12 64 8 11 63 2 2 62 9 14 55 5 1 54 0 1 53 2 15 49 1 2 48 5 8 47 0 5 43 7 11 41 4 3 40 7 13 35 9 9 32 5 8 30 8 1 29 4 9 28 0 7 27 0 14 26 8 14 25 5 11 23 3 11 21 6 14 19 3 12 18 7 6 16 2 5 15 7 10 14 0 8 13 4 3 12 0 12 11 0 12 10 2 4 9 6 7 7 6 3 6 6 4 5 5 2 3 2 10 2 1 7 1 7 1 32 96 200 9 3 198 10 15 194 0 2 192 10 5 190 8 6 186 0 9 185 7 5 183 5 14 180 7 13 178 2 2 176 1 3 174 5 5 173 7 4 172 5 6 170 2 3 169 3 9 164 8 4 162 5 12 161 8 12 160 2 7 158 1 8 154 1 1 153 10 5 151 8 5 150 9 11 149 1 9 147 9 15 145 4 3 142 10 7 141 9 15 139 5 1 136 0 5 134 3 10 132 1 15 130 5 9 129 3 11 128 1 10 125 8 4 124 8 13 123 9 5 121 10 7 119 2 10 118 1 4 117 0 5 114 3 12 112 10 6 109 8 12 108 0 15 105 0 8 102 8 14 99 3 4 98 2 3 96 5 15 95 5 12 93 10 10 91 6 9 90 8 6 89 6 8 87 2 10 85 8 3 84 4 8 82 8 3 79 6 15 78 1 10 77 2 1 74 0 5 73 0 13 72 8 5 71 1 12 70 1 1 69 2 1 68 8 7 67 3 1 65 2 11 64 10 7 62 4 14 57 9 10 55 10 1 53 3 13 52 3 14 50 1 8 49 9 1 46 9 12 43 7 3 39 9 10 37 8 11 36 6 12 31 1 15 30 2 12 29 2 4 16 1 2 13 0 3 12 2 11 11 4 7 10 8 4 6 8 7 33 125 198 8 15 197 7 15 194 8 15 192 8 7 190 10 7 187 1 11 186 3 10 185 4 7 184 6 12 183 4 8 182 10 7 180 8 1 178 1 9 176 0 6 175 3 4 174 4 5 173 4 4 172 7 14 171 6 13 170 0 4 169 10 3 163 7 3 161 2 4 156 10 6 155 5 13 154 3 15 153 0 11 152 0 5 151 5 5 150 0 3 147 8 2 144 4 8 142 7 5 139 5 6 136 3 7 135 5 9 134 8 11 133 1 3 132 5 4 131 1 11 130 1 13 129 10 13 128 5 7 126 2 15 124 5 3 120 6 11 119 1 8 118 10 4 117 5 6 114 7 14 113 6 3 110 2 1 109 7 13 107 4 2 106 7 7 102 2 4 99 7 6 98 2 14 97 0 4 95 1 2 93 4 15 92 4 15 91 8 3 87 8 6 86 8 2 84 2 14 82 5 9 81 3 7 79 0 7 78 0 11 77 5 2 76 7 2 75 10 7 74 3 14 73 7 12 72 1 1 71 8 15 70 2 3 69 2 12 68 1 15 67 7 7 66 10 12 64 9 8 62 4 4 61 2 6 58 1 8 57 1 7 56 5 3 55 1 3 52 4 4 50 2 7 49 3 5 46 6 7 45 7 15 43 4 2 39 9 9 38 5 9 36 2 10 31 6 4 30 9 3 29 5 15 28 5 7 27 2 7 26 0 14 25 7 9 24 9 6 23 1 6 21 4 11 20 6 7 19 9 7 18 7 4 17 9 3 16 2 13 15 6 7 14 5 7 13 0 13 12 10 3 11 1 2 10 9 5 8 9 7 7 6 10 6 10 8 4 7 13 2 8 8 1 7 3 34 100 200 8 13 199 4 7 198 8 7 195 1 8 194 10 8 192 8 13 191 1 8 186 4 3 184 8 9 183 9 2 180 9 13 178 6 12 177 9 9 175 9 10 174 9 3 173 8 5 172 9 7 170 7 2 167 5 1 165 4 14 163 3 14 162 7 9 160 4 12 158 8 5 154 0 13 153 9 12 152 4 11 150 4 13 147 10 1 145 5 14 144 6 1 142 7 4 141 7 11 140 10 1 136 6 15 133 7 1 131 8 7 130 10 7 129 1 4 128 0 1 126 6 4 123 3 2 122 1 5 120 6 8 119 3 1 117 2 6 112 3 14 109 2 9 108 5 13 106 8 7 105 1 12 99 4 10 97 4 14 94 6 3 91 8 2 89 5 5 87 7 3 86 7 8 84 1 15 83 1 9 82 0 13 79 7 3 78 8 4 77 10 6 74 9 1 73 2 15 72 6 2 70 7 13 68 2 12 67 10 14 66 3 6 65 0 6 63 10 13 62 3 5 57 6 3 55 2 6 53 9 7 52 10 14 50 6 6 49 9 11 47 2 15 44 3 1 43 6 2 41 8 11 40 10 3 38 8 4 32 6 15 30 5 3 29 7 2 28 2 7 19 4 6 16 6 12 14 8 5 13 5 2 12 4 12 11 7 11 10 10 13 6 10 6 2 7 7 1 1 6 35 116 198 1 2 194 9 13 192 3 12 190 2 9 186 4 5 185 6 4 184 2 8 183 8 2 180 4 11 178 2 10 177 3 9 176 7 10 174 7 3 173 5 7 172 0 3 170 9 8 169 10 10 163 4 14 162 5 7 161 7 7 160 7 5 158 0 14 156 0 5 154 9 13 153 6 3 152 6 9 151 3 10 150 8 2 149 7 1 147 2 5 145 0 4 144 0 7 142 9 9 139 9 13 136 9 6 134 4 4 133 8 3 132 6 10 131 4 4 130 8 13 129 6 7 128 7 6 126 10 5 125 0 13 124 4 8 120 5 8 119 5 12 118 10 14 117 3 14 114 1 13 112 7 4 109 1 2 108 7 9 107 1 5 105 1 11 102 8 5 99 2 10 98 10 2 97 7 13 96 5 9 95 1 1 94 3 6 92 10 8 91 4 14 90 9 15 89 0 4 87 3 12 86 4 14 85 7 10 84 5 1 83 5 13 82 8 10 79 8 14 78 0 2 77 7 3 76 8 2 74 2 14 73 3 15 72 5 11 71 10 9 70 6 4 69 3 1 68 8 8 67 4 14 65 10 8 64 6 5 62 4 3 60 0 1 57 3 8 55 6 15 53 0 8 52 9 7 50 3 15 49 2 9 46 7 12 43 6 6 40 8 2 39 4 10 38 1 5 37 0 10 36 4 12 32 2 8 30 1 13 29 5 1 28 1 1 25 2 7 19 2 6 16 2 13 15 8 13 14 2 11 13 3 10 12 7 14 11 5 12 10 6 12 6 4 11 2 3 8 36 98 198 10 4 197 4 3 196 8 12 192 9 8 190 8 10 187 1 10 186 0 8 185 6 5 183 9 11 182 1 15 180 10 9 179 5 9 176 10 5 175 9 13 174 5 1 173 9 5 172 1 5 171 6 8 169 0 3 165 8 6 163 3 9 162 8 6 161 1 14 156 8 7 155 7 7 153 8 7 152 9 6 151 1 13 150 1 12 147 9 13 144 6 12 142 6 8 141 3 12 139 10 11 136 5 7 134 0 6 133 1 3 132 9 14 131 0 14 129 8 13 128 5 6 126 10 9 124 4 3 120 9 6 118 10 5 117 8 5 114 4 14 113 2 12 112 0 3 109 4 9 107 7 3 106 3 14 102 7 6 99 5 11 98 0 5 97 5 3 95 9 3 93 10 10 92 2 5 91 10 6 89 6 2 87 3 15 86 1 7 84 0 15 82 10 12 81 1 4 80 4 8 78 1 9 76 7 6 75 7 7 73 0 1 72 1 5 71 3 5 70 9 14 68 4 1 67 3 10 66 5 2 64 4 8 62 6 6 61 4 9 58 7 2 55 8 10 52 0 6 51 3 6 49 6 13 46 3 9 45 4 13 43 7 7 39 4 5 38 3 12 35 5 13 32 3 8 31 1 13 30 10 15 29 0 2 16 4 15 13 3 7 2 6 3 37 114 200 4 14 199 2 7 198 1 12 194 8 5 192 4 4 191 3 8 186 6 1 185 0 13 184 1 15 183 5 15 180 5 13 178 9 14 177 8 3 174 5 10 173 8 10 172 3 11 170 5 2 167 5 10 165 6 11 162 7 11 161 3 9 160 5 11 158 2 13 155 5 11 154 0 7 152 1 3 150 9 6 148 9 12 147 8 13 145 9 5 144 2 10 142 0 15 141 10 11 140 5 3 136 6 1 135 6 11 133 5 15 130 1 3 129 5 4 128 8 3 124 4 2 123 4 15 122 5 2 120 6 3 119 3 15 117 10 5 111 7 7 110 5 10 109 4 9 108 8 2 106 5 9 105 10 4 104 5 12 99 2 12 96 10 6 95 5 1 94 3 10 91 10 7 89 7 14 87 2 7 86 6 14 85 3 8 84 7 6 83 2 8 82 8 12 79 1 6 78 10 4 77 10 1 74 4 4 73 8 1 72 8 13 69 9 11 68 4 8 67 9 10 64 10 4 63 5 13 62 0 3 57 4 3 55 1 15 53 1 10 50 6 4 49 9 2 47 3 6 43 8 7 41 9 13 40 6 13 36 0 11 32 3 10 30 9 3 29 9 14 28 1 15 27 10 11 26 8 2 25 7 11 24 4 5 23 10 4 21 4 6 20 6 7 19 1 13 18 4 10 17 6 13 16 6 6 15 8 7 14 2 3 13 10 3 12 4 12 11 1 8 10 8 2 8 1 4 7 4 12 6 8 3 4 2 4 2 10 2 1 6 13 38 103 198 5 12 195 5 9 194 5 14 192 3 8 186 10 10 185 5 9 184 0 7 183 1 7 182 10 9 180 7 1 179 2 3 174 4 15 173 2 8 172 7 4 170 0 8 169 2 1 168 6 2 162 5 14 161 5 5 160 6 9 155 1 3 154 0 7 153 4 6 152 3 10 150 0 15 149 8 12 147 4 14 144 7 11 142 3 14 141 9 12 136 3 2 134 4 14 133 8 4 131 1 12 130 10 10 129 9 2 128 6 15 126 4 13 125 6 6 124 6 1 123 5 5 120 9 6 119 7 14 118 3 3 117 6 10 112 9 9 109 1 5 106 8 6 105 1 14 102 10 8 101 7 2 99 1 6 97 8 8 96 1 2 95 3 12 91 2 10 90 3 10 89 5 13 87 3 5 86 4 4 85 5 9 84 4 3 79 8 9 78 7 13 75 2 7 74 4 13 73 6 7 72 3 5 70 2 4 69 1 6 68 0 5 67 8 2 66 7 11 65 10 5 64 1 1 58 2 13 57 2 3 55 10 15 50 8 6 49 5 7 44 2 9 43 7 12 42 0 4 38 1 15 37 7 14 36 1 10 35 9 13 32 10 8 29 5 12 28 0 12 25 2 2 21 9 6 19 7 12 16 8 5 15 9 15 14 8 2 13 4 15 12 2 13 11 0 5 10 7 9 6 5 4 2 4 5 1 10 4 39 129 199 3 14 198 9 9 197 4 13 194 3 14 190 5 4 187 9 11 186 2 13 185 9 4 183 6 11 182 0 9 180 8 12 177 4 12 176 5 12 175 0 14 174 7 9 172 2 13 171 7 14 170 4 4 165 5 10 163 4 4 161 5 6 158 8 13 156 0 6 155 2 1 154 6 13 153 2 3 152 3 3 151 1 4 150 1 10 148 5 13 147 0 8 145 4 4 144 6 1 142 9 3 140 5 14 139 2 5 138 9 11 136 5 12 135 6 7 134 7 4 133 2 14 132 0 2 131 8 7 130 8 12 129 0 12 128 1 8 127 4 13 126 0 14 124 3 15 122 6 6 121 4 12 120 8 12 119 9 10 118 6 2 117 7 15 116 9 2 114 7 5 113 1 2 111 2 11 109 10 13 108 6 5 107 6 14 106 10 6 105 5 12 99 4 1 98 5 7 97 9 3 96 9 15 95 8 7 94 10 2 93 4 3 92 2 15 91 7 2 87 2 3 86 10 5 85 9 5 84 1 10 82 1 12 80 9 11 79 9 15 78 8 14 77 10 15 76 7 13 75 5 15 74 10 2 73 4 2 72 5 6 71 6 3 70 6 11 69 1 5 68 10 11 67 6 11 66 8 4 64 4 14 62 8 14 61 10 7 59 10 11 58 0 13 57 8 15 55 0 10 53 3 11 52 5 10 50 9 6 49 10 14 47 7 5 46 8 7 45 6 12 43 2 7 40 9 12 39 10 15 38 1 9 36 7 7 32 10 14 30 8 5 29 4 2 28 9 8 25 10 15 21 6 1 19 4 9 18 8 2 16 2 1 15 0 15 14 7 5 13 7 2 12 2 12 11 7 2 10 4 8 6 0 5 2 8 15 40 101 200 5 5 199 8 1 198 10 4 197 3 10 194 1 3 192 4 9 191 5 1 187 6 5 185 6 5 184 4 8 183 8 1 182 0 12 180 0 4 178 2 14 177 2 6 176 1 7 175 10 13 174 0 2 173 9 7 172 9 10 171 5 5 169 8 14 167 10 9 165 4 5 163 9 13 161 1 10 160 9 4 158 5 13 155 9 12 153 1 12 152 9 8 150 8 11 147 8 4 145 7 1 144 6 5 142 7 12 141 8 8 140 4 13 136 1 1 134 8 2 133 5 1 131 5 3 130 7 10 129 3 7 128 10 11 126 0 13 124 1 6 123 8 1 122 8 5 120 0 2 118 3 3 117 2 5 113 6 7 109 6 6 108 6 10 106 1 5 102 10 13 99 1 13 97 2 9 95 8 8 94 5 8 92 9 4 90 5 9 89 6 3 87 6 11 86 3 11 84 5 12 83 5 11 82 0 15 80 7 9 78 5 7 77 4 7 75 4 2 73 5 13 72 1 12 71 9 11 70 2 13 69 0 2 68 10 13 67 2 15 66 10 9 64 3 10 63 6 6 62 3 4 58 9 12 55 0 5 53 6 4 52 10 4 49 10 5 47 2 10 45 10 3 43 8 13 41 0 13 40 0 9 38 3 11 36 7 3 32 7 8 30 5 3 29 4 8 16 4 10 13 5 6 41 122 200 0 1 199 10 12 198 0 5 196 4 7 194 6 7 192 3 9 186 3 11 185 2 14 184 9 3 182 2 1 180 0 6 178 6 1 175 10 13 174 3 5 173 6 8 172 8 13 171 2 3 170 9 9 169 8 9 166 2 12 163 6 1 162 1 9 161 9 12 160 5 11 155 5 7 154 6 14 153 5 14 152 5 11 150 1 3 149 4 9 147 0 9 146 0 5 144 5 3 142 7 14 141 8 9 140 9 10 136 6 2 134 8 13 133 7 9 131 8 5 130 1 13 129 10 1 128 6 1 126 2 3 125 5 3 124 10 1 123 5 7 120 5 14 119 10 14 118 9 15 117 4 2 112 0 8 109 1 6 106 7 1 105 10 8 102 3 7 99 0 10 97 2 11 96 6 3 95 6 8 94 7 12 91 6 5 90 9 7 89 1 1 87 9 8 86 3 5 85 9 1 84 3 7 83 4 1 80 10 1 79 3 3 78 7 12 75 9 11 74 9 3 73 2 1 72 7 3 70 4 8 68 7 11 67 0 6 66 0 13 65 5 2 64 2 12 63 7 4 58 3 7 57 1 13 55 5 13 52 1 13 50 8 1 49 7 12 45 10 10 43 0 15 41 4 14 38 4 4 37 6 13 36 1 14 32 9 7 30 10 12 29 3 15 28 6 10 27 1 11 26 2 5 25 3 11 24 4 3 23 2 7 21 8 4 20 9 5 19 4 15 18 8 2 17 5 11 16 3 5 15 8 12 14 9 14 13 7 5 12 5 4 11 3 10 10 6 2 8 2 1 7 1 6 6 4 7 4 1 5 2 2 8 1 5 8 42 94 198 9 8 197 2 2 192 7 5 190 3 13 187 9 6 183 8 15 182 1 15 180 3 13 177 3 2 176 6 3 175 3 1 173 2 9 172 7 8 171 3 4 165 7 11 163 8 8 161 6 9 158 10 11 156 8 12 155 8 15 152 8 9 151 1 9 150 3 13 147 8 5 145 8 11 144 4 1 142 6 11 139 7 2 136 6 11 133 3 3 132 6 3 131 9 10 129 5 2 128 1 15 126 6 6 124 1 4 121 10 13 120 1 8 116 9 12 114 8 4 113 4 2 109 7 5 108 3 4 107 6 14 106 2 5 99 8 10 98 7 5 97 2 5 93 10 3 92 9 15 91 6 11 87 3 1 86 3 3 82 1 7 80 8 11 78 8 13 77 0 8 76 2 10 75 6 5 73 1 10 72 10 14 71 2 13 70 2 12 68 1 13 67 4 9 66 0 9 64 8 15 62 7 2 61 10 15 58 5 5 55 5 14 53 8 4 52 0 4 49 0 14 47 6 2 46 10 10 45 10 5 43 6 11 40 10 3 39 8 2 38 4 8 36 1 12 32 9 4 30 1 3 29 0 11 28 5 8 19 1 12 16 0 9 13 2 3 12 9 8 11 7 8 10 5 5 6 6 2 2 4 4 43 124 200 7 8 199 6 3 198 4 11 194 8 6 192 8 4 191 1 5 190 5 3 188 4 4 186 10 2 185 6 7 184 3 2 183 7 6 180 6 8 178 4 7 177 0 1 176 8 14 174 4 3 173 8 15 172 0 1 171 2 10 170 9 12 169 9 9 167 10 9 165 10 11 163 7 10 161 4 5 160 6 2 158 6 2 155 7 6 154 10 14 152 6 1 150 0 14 148 7 11 147 7 15 145 4 2 144 8 10 142 0 3 141 5 3 140 5 13 139 1 10 138 0 7 136 5 4 133 4 3 131 8 14 130 7 9 129 7 14 128 6 3 127 6 13 125 2 6 124 3 13 123 0 10 122 6 10 120 2 5 119 4 11 117 8 12 113 3 11 111 6 6 109 4 2 108 0 8 106 7 6 105 4 12 102 3 14 99 8 15 98 3 6 96 2 3 95 4 7 94 6 3 93 3 14 92 2 6 91 1 11 89 3 10 87 2 7 86 10 2 85 0 2 84 9 6 83 3 3 82 6 4 79 7 4 78 5 11 77 3 2 76 9 7 74 10 10 73 8 3 72 6 15 71 5 2 69 9 7 68 1 4 67 3 2 66 8 12 64 4 5 63 7 6 62 1 8 59 6 7 57 6 9 55 5 4 53 2 4 52 9 8 50 8 8 49 1 11 47 3 15 46 7 12 43 2 15 41 6 14 40 2 13 39 8 2 36 8 8 32 8 14 31 0 12 30 1 15 29 4 10 28 1 12 27 2 5 25 0 14 19 1 13 16 9 15 15 7 9 14 7 2 13 3 11 12 4 5 11 0 4 10 3 7 7 6 2 6 3 11 2 4 2 44 80 195 3 6 194 7 8 186 0 9 185 2 5 183 6 11 180 5 7 175 7 3 174 10 6 173 5 15 172 5 1 170 9 8 169 2 7 162 0 14 161 8 13 154 6 6 153 5 6 152 6 7 150 10 4 149 9 8 147 7 7 142 3 9 136 4 12 134 8 12 131 3 9 130 8 1 129 7 6 128 1 2 126 5 6 125 1 13 124 3 4 119 4 15 118 1 12 112 8 9 109 4 5 108 3 4 106 3 5 105 1 3 102 9 13 99 3 5 97 6 8 96 6 9 95 8 8 91 0 7 90 6 11 87 10 6 86 10 13 85 4 10 84 0 3 82 0 3 79 8 4 78 0 11 77 0 3 75 10 6 74 9 3 73 0 13 72 3 7 70 2 11 68 3 6 67 9 2 65 5 4 64 5 3 62 3 2 57 1 14 55 10 15 50 7 12 49 10 5 44 10 15 43 4 5 40 8 12 38 9 13 37 7 10 36 7 7 29 2 9 28 10 7 19 2 1 13 4 10 12 8 14 11 2 9 10 0 7 2 4 10 45 108 198 6 8 197 3 15 194 8 8 192 0 4 190 5 11 187 3 7 184 6 6 183 3 5 182 3 5 180 1 15 178 2 13 176 5 5 175 2 6 174 3 1 173 9 7 172 1 13 171 4 12 163 2 14 160 7 9 156 7 2 155 7 9 154 3 12 153 2 3 151 8 2 150 10 13 147 4 14 144 8 1 142 2 8 141 8 9 139 6 1 136 0 14 133 7 6 132 4 5 131 10 3 130 8 6 129 3 1 128 6 13 126 7 10 120 7 14 119 2 10 117 0 1 114 3 1 113 3 3 109 9 3 107 4 4 106 1 5 99 10 6 98 7 3 97 4 14 94 4 12 93 9 1 92 2 4 91 5 5 87 10 12 86 9 13 84 5 2 82 4 8 80 3 5 79 0 8 78 5 7 76 8 6 75 7 2 74 0 1 73 7 1 72 1 13 71 5 14 70 3 7 69 10 13 68 10 13 67 7 11 66 9 10 64 9 7 61 10 12 58 6 1 55 1 13 52 0 11 49 0 10 46 5 12 45 4 13 43 6 4 39 1 2 38 4 1 30 8 7 29 9 10 28 4 1 27 4 12 26 4 6 25 5 8 24 7 9 23 2 14 21 3 6 20 9 2 19 2 5 18 5 14 17 4 8 16 2 12 15 10 11 14 5 9 13 3 8 12 5 8 11 7 11 10 6 9 8 4 3 7 0 10 6 10 5 4 2 14 2 1 4 1 8 8 46 130 200 4 15 199 2 6 198 1 5 197 9 9 194 2 7 192 5 15 191 3 10 190 3 11 187 4 9 185 0 11 184 5 7 183 9 2 182 0 6 180 1 4 178 9 12 177 8 3 176 4 7 175 6 11 174 1 13 173 7 2 172 1 14 171 1 14 167 10 2 165 4 12 163 6 4 161 0 13 160 1 2 158 6 5 156 10 7 155 3 2 152 9 11 151 8 3 150 10 4 147 3 7 145 6 12 144 5 11 142 5 15 141 3 13 140 7 11 139 4 4 138 3 4 137 10 15 133 9 5 132 9 14 131 0 9 130 6 7 129 7 7 128 0 2 126 2 7 124 0 12 123 4 1 122 1 15 120 7 1 117 0 13 114 9 6 113 7 9 109 8 12 108 9 1 107 0 8 106 1 4 99 0 5 98 2 13 97 4 13 95 5 5 94 8 14 93 5 12 92 9 7 91 6 1 89 3 9 87 2 13 86 1 9 84 6 13 83 2 7 82 9 10 81 3 10 78 5 4 77 10 5 76 5 7 75 3 7 73 8 4 72 2 11 71 3 4 68 6 5 67 5 5 66 3 4 64 4 13 63 8 6 62 9 1 61 5 5 58 5 13 55 7 1 53 1 4 52 3 9 49 7 10 47 9 1 46 2 4 45 4 13 43 10 7 41 5 8 40 10 10 39 8 13 38 3 14 36 0 10 32 8 10 30 9 5 29 5 10 28 4 1 27 4 3 26 10 9 25 5 1 23 5 1 22 4 7 21 4 10 20 6 7 19 2 7 18 8 1 16 4 11 15 1 6 14 3 14 13 0 8 12 4 5 11 1 6 10 5 11 9 5 5 7 10 13 6 7 8 5 7 11 3 6 8 2 1 12 1 8 9 47 95 198 10 8 194 8 12 192 3 15 186 10 1 185 8 9 182 0 15 180 8 8 174 6 3 173 1 2 171 3 10 170 4 6 169 0 6 162 9 11 161 6 3 155 4 9 154 6 14 153 8 12 152 7 13 150 5 6 149 0 1 147 5 4 144 4 13 142 2 6 136 9 5 134 10 15 133 3 7 131 4 15 130 4 6 129 2 3 125 7 8 124 7 14 120 1 2 119 8 11 118 3 7 111 10 5 109 10 8 106 3 15 105 6 5 102 7 10 99 1 11 96 3 2 95 4 8 91 9 5 90 7 1 86 4 6 85 6 3 84 4 2 82 9 8 79 2 2 78 9 8 74 5 10 73 9 12 72 3 3 69 6 10 68 10 4 67 9 1 66 2 2 65 6 11 64 6 5 58 6 2 57 4 15 55 1 14 52 2 13 50 5 1 49 7 6 45 9 7 43 6 2 37 5 9 36 6 11 30 2 13 29 2 2 28 1 3 27 1 7 26 7 9 25 8 13 23 9 1 22 8 5 21 9 15 20 2 7 19 7 10 18 4 7 16 8 14 15 2 14 14 5 13 13 1 5 12 1 1 11 2 11 10 9 12 9 0 7 7 2 11 6 8 1 5 4 1 3 10 14 2 2 7 1 7 15 48 115 198 9 8 197 8 12 193 10 15 192 6 6 190 6 4 187 6 13 186 10 4 185 10 6 184 0 6 183 5 8 182 8 14 180 5 13 179 2 5 177 8 14 176 8 6 175 7 14 174 9 12 173 3 13 172 4 3 171 5 13 170 5 3 169 7 9 163 10 15 161 0 4 158 9 15 156 4 6 155 9 10 154 3 5 153 6 5 152 5 7 151 6 9 150 7 11 147 5 15 145 10 13 144 10 10 142 10 8 141 9 4 139 7 14 136 6 6 134 8 8 133 6 12 132 7 11 131 9 4 129 10 14 128 1 5 126 8 1 124 8 10 121 5 10 120 0 13 119 7 7 118 7 3 117 0 11 116 0 1 114 5 8 113 8 9 109 6 12 108 0 12 107 10 12 106 7 7 102 7 1 99 1 14 98 6 13 97 7 14 95 10 15 94 4 15 93 7 10 92 7 7 91 5 7 90 0 14 87 1 8 86 4 12 84 9 7 82 9 6 80 10 10 79 0 6 78 3 15 77 7 14 76 8 5 75 3 10 74 3 1 73 8 11 72 5 12 71 10 6 70 0 4 68 4 8 67 3 15 66 7 11 64 10 8 62 10 5 61 10 4 58 3 3 55 9 10 53 10 5 52 7 4 50 7 1 49 4 11 47 5 3 46 10 2 45 5 1 43 9 4 40 10 4 39 8 15 38 7 13 36 8 2 32 5 1 30 8 12 29 3 8 28 5 3 19 6 14 16 7 5 13 7 15 12 1 13 11 3 5 10 8 2 2 5 6 49 98 200 3 15 199 3 1 198 5 3 192 8 3 191 0 7 184 9 12 183 2 4 178 0 11 177 4 10 173 3 14 172 7 11 167 8 2 166 6 1 165 2 10 163 0 9 161 9 6 160 6 7 158 6 8 154 6 12 153 2 5 152 2 5 150 9 10 147 8 10 146 4 2 145 2 15 142 8 15 141 2 13 140 3 13 133 7 8 129 8 9 128 10 10 124 9 9 123 3 2 122 10 5 120 1 14 119 6 7 117 5 10 109 3 1 108 8 1 100 5 1 99 0 7 94 6 14 91 3 15 89 3 13 88 5 3 87 2 4 84 0 3 83 6 12 82 9 3 79 0 12 78 7 10 77 4 5 73 6 12 72 3 14 71 0 9 68 1 13 67 2 11 64 10 2 63 2 15 62 7 14 55 6 2 54 3 1 53 2 13 52 3 2 49 0 14 48 6 3 47 8 11 43 1 5 41 9 11 40 6 13 34 4 6 32 7 13 30 0 2 29 5 7 28 7 3 27 5 12 26 0 1 25 4 15 24 3 7 23 10 4 21 7 3 20 10 12 19 8 6 18 5 9 17 6 12 16 6 13 15 10 3 14 6 3 13 4 5 12 8 8 11 10 3 10 2 15 8 2 15 7 5 7 6 6 8 4 5 8 2 2 3 1 2 10 50 93 198 5 2 194 8 9 192 9 4 190 10 14 186 8 10 185 9 13 183 9 3 180 9 13 177 3 2 174 0 1 173 0 15 172 8 6 170 1 8 169 6 6 164 5 6 162 2 10 161 10 15 158 7 9 154 7 2 153 1 7 152 3 10 150 7 12 149 2 12 147 8 7 145 4 13 142 6 5 139 10 2 136 0 12 135 1 15 134 8 5 132 6 5 130 5 7 129 7 6 128 5 1 125 9 13 124 6 12 121 8 3 120 4 15 119 5 9 118 8 8 115 1 15 111 0 1 110 4 7 109 4 4 108 6 1 105 0 8 102 2 5 99 10 10 96 9 8 95 1 7 93 10 2 91 3 2 90 4 13 87 5 10 85 3 7 84 10 13 82 2 13 79 2 8 78 0 1 77 0 4 74 4 2 73 10 8 72 1 9 69 2 8 68 4 2 67 0 4 65 7 1 64 5 11 62 0 4 57 4 10 55 10 8 53 1 5 52 1 9 50 9 1 49 4 15 46 9 15 43 4 8 40 2 8 37 6 10 36 7 2 31 2 13 29 10 7 28 7 14 25 4 4 19 3 10 16 8 13 14 5 2 13 0 4 12 10 5 11 7 13 10 10 7 6 0 8 2 5 8 51 90 198 1 4 197 8 11 192 4 11 190 6 9 187 6 9 185 6 13 184 9 1 183 7 14 182 1 4 176 8 13 175 2 5 173 10 4 172 3 10 171 10 9 163 6 13 161 1 14 156 8 14 155 9 5 154 3 13 152 10 11 151 9 12 150 6 15 147 7 11 144 0 1 142 3 3 139 9 13 136 5 7 133 3 1 132 4 8 131 6 7 129 2 11 128 4 14 126 9 14 124 0 13 120 4 6 119 0 3 117 5 15 114 5 14 113 2 6 109 9 7 107 10 2 106 5 2 99 2 1 98 6 13 97 3 15 95 7 8 94 5 14 93 6 11 92 5 7 91 2 5 87 4 13 86 9 2 84 9 12 82 5 9 80 3 5 79 1 12 78 5 13 76 5 7 75 10 9 72 8 5 71 3 10 70 0 15 68 5 1 67 4 11 66 10 15 64 7 8 61 6 11 58 10 9 52 6 14 50 4 12 49 4 11 46 4 6 45 0 10 43 1 7 39 2 13 38 1 4 32 0 3 30 2 9 29 0 5 28 2 6 25 6 13 19 6 5 16 8 2 14 5 12 13 1 8 12 1 5 11 0 3 10 2 11 6 6 9 2 5 6 52 105 200 9 11 199 5 7 198 2 1 194 1 1 192 8 4 191 2 12 187 5 14 185 10 9 184 9 10 183 8 11 182 7 5 180 9 5 178 0 12 177 9 3 176 5 3 174 5 12 173 4 4 172 10 7 171 6 13 169 6 5 166 0 2 165 0 15 163 10 5 161 4 15 160 4 12 158 7 12 155 8 13 154 1 11 153 7 11 152 5 14 150 9 11 147 0 8 146 8 5 145 2 10 144 6 3 142 0 7 141 3 3 140 2 11 138 1 14 135 5 15 134 6 14 133 7 15 131 6 6 130 7 10 129 2 6 128 8 6 126 0 11 124 5 11 123 9 15 122 9 14 120 1 7 119 4 11 118 3 5 117 9 11 113 1 15 109 3 4 108 2 6 106 1 1 99 8 6 98 8 5 97 8 14 95 0 2 94 8 13 92 3 2 91 8 5 89 3 9 87 1 11 86 3 10 84 0 15 83 4 1 82 4 1 81 6 1 79 9 8 78 5 1 77 7 6 75 8 4 74 3 11 73 1 2 72 8 7 71 1 13 69 4 4 68 5 14 67 1 4 66 1 9 64 5 10 63 1 7 62 0 5 58 4 11 55 6 5 53 10 5 52 9 3 50 8 1 49 2 8 47 3 12 45 8 5 43 4 3 41 7 2 40 7 9 39 2 6 36 3 9 32 5 7 30 6 6 29 0 2 13 3 6 10 10 5 53 121 199 9 11 198 8 9 194 7 7 192 7 6 190 2 4 186 4 12 185 6 15 184 9 13 183 9 8 180 9 2 178 2 14 176 6 1 174 6 2 173 4 4 172 7 6 170 4 9 169 6 15 163 5 10 162 6 7 161 8 3 156 7 14 154 8 9 153 9 5 152 10 11 151 2 1 150 0 6 149 8 1 147 8 3 146 6 6 144 2 4 142 0 3 140 3 13 139 6 11 136 1 12 134 9 3 133 2 4 132 2 10 131 5 14 130 8 13 129 5 6 128 6 13 125 4 11 124 5 1 122 4 11 120 9 9 119 9 11 118 2 7 117 9 13 114 10 5 111 8 13 109 1 3 107 5 10 106 6 13 105 6 13 102 7 8 99 4 15 98 8 4 96 3 11 95 7 6 94 3 9 93 7 1 91 5 1 90 0 7 87 5 11 86 6 13 85 2 5 84 6 13 83 2 5 82 7 11 79 5 4 78 4 7 76 3 10 74 10 6 73 4 1 72 0 11 71 2 8 69 9 5 68 4 11 67 6 8 65 3 7 64 0 15 62 3 12 61 4 14 57 0 1 55 1 13 54 0 8 52 5 14 50 3 13 49 10 9 46 2 12 43 10 13 39 6 8 37 3 10 36 7 14 32 10 8 30 6 15 29 1 2 28 7 4 27 9 8 26 10 12 25 4 2 24 1 7 23 0 13 21 6 5 20 5 8 19 8 5 18 10 15 17 8 6 16 6 4 15 8 12 14 4 11 13 5 2 12 3 15 11 9 8 10 2 6 8 10 4 7 7 9 6 7 8 4 0 7 2 9 8 1 5 13 54 93 198 9 6 197 10 10 196 7 3 190 3 11 187 10 11 186 4 13 183 10 12 182 5 3 180 0 13 177 3 2 176 7 8 175 6 10 173 9 8 172 8 2 171 2 10 165 3 9 163 2 12 162 6 1 158 5 10 156 4 9 155 5 8 152 4 14 151 0 4 150 10 13 147 10 3 144 7 10 142 8 2 139 4 2 136 3 2 133 1 6 132 5 14 131 6 13 129 2 1 128 4 1 126 0 14 120 4 14 117 8 5 114 5 9 112 2 11 109 1 11 108 3 8 107 10 10 106 5 13 99 3 1 98 8 1 97 9 15 93 8 5 92 10 6 91 6 3 87 6 13 86 4 7 82 6 9 80 2 12 78 8 14 77 1 7 76 2 10 75 4 1 73 2 2 72 0 7 71 0 15 70 9 4 68 2 3 67 2 1 66 8 15 64 9 15 62 3 14 60 7 9 58 4 3 55 4 10 52 9 15 50 0 1 49 1 14 47 7 7 46 2 1 45 2 14 44 2 8 43 2 14 40 4 15 39 4 10 38 5 9 32 10 15 30 3 1 29 9 15 28 3 3 19 9 1 16 2 2 14 0 11 13 0 7 12 3 4 11 2 12 10 3 5 6 2 14 2 9 6 55 123 200 5 9 199 1 5 198 5 5 195 5 15 194 2 11 192 4 7 191 0 3 190 5 4 186 7 11 184 7 1 183 5 11 180 2 9 178 5 8 177 9 8 175 8 1 174 1 12 173 2 12 172 0 13 170 1 7 166 9 7 165 7 2 162 6 14 161 1 9 160 0 6 158 1 14 155 7 4 154 4 11 152 8 13 150 9 14 148 0 3 147 7 6 145 6 10 144 8 6 142 1 15 141 2 1 140 4 13 139 6 14 136 0 1 135 8 4 133 8 11 131 7 10 130 6 10 129 9 11 128 10 1 126 7 9 124 10 11 123 0 7 122 8 10 120 9 10 119 1 4 117 2 14 116 1 6 112 10 14 111 6 3 109 0 9 108 9 8 106 8 10 105 0 4 99 2 4 97 8 5 96 0 2 94 6 13 93 6 1 91 10 5 89 10 13 87 5 3 86 7 12 85 4 9 83 4 3 82 5 3 79 3 6 78 3 3 77 4 9 74 6 4 72 0 7 70 3 5 69 0 6 68 9 14 67 7 8 66 4 5 65 9 2 64 5 8 63 10 14 62 10 7 57 9 8 55 10 14 53 2 13 50 1 4 49 10 6 47 10 6 44 2 14 43 9 7 41 6 9 40 5 10 38 1 14 36 3 14 32 2 11 30 1 2 29 10 11 28 10 7 27 3 9 26 3 11 25 2 8 23 2 14 22 3 3 21 3 3 20 8 10 19 7 2 18 6 2 16 5 4 15 1 8 14 10 11 13 8 11 12 7 12 11 3 2 10 9 1 9 6 4 7 2 3 6 5 4 5 2 10 3 5 13 2 10 11 1 3 6 56 93 198 4 5 194 10 3 193 1 15 192 10 3 190 10 9 186 10 9 185 0 9 183 9 11 180 5 6 179 6 7 174 1 6 173 2 2 172 10 2 170 9 3 169 7 14 164 2 6 162 10 9 161 7 15 158 5 11 154 7 13 153 9 12 152 0 14 150 7 4 148 3 7 147 3 6 145 2 12 144 3 3 142 8 8 141 1 6 139 8 14 136 0 10 134 0 8 133 7 13 132 0 9 131 3 4 130 4 9 129 0 2 128 5 2 125 4 8 124 3 13 123 0 14 121 10 9 120 0 10 119 8 6 118 0 2 111 6 14 109 6 3 108 9 2 106 3 4 105 3 2 102 2 2 101 3 12 99 2 3 96 7 13 95 5 2 93 10 2 91 8 15 90 6 15 89 8 2 87 6 14 86 0 7 85 2 15 84 7 8 82 0 4 79 0 12 78 7 4 77 7 12 74 9 4 73 10 6 72 3 12 69 0 2 68 10 12 67 3 15 66 2 6 65 4 10 64 0 4 57 6 11 55 3 5 53 10 9 50 5 15 49 8 15 43 0 3 37 7 4 36 3 3 35 8 13 32 2 4 31 7 11 29 6 12 28 7 13 13 4 10 12 1 13 11 9 13 10 0 15 57 129 199 5 4 198 5 6 197 5 12 194 2 10 192 5 9 190 4 3 186 3 3 184 0 10 183 4 3 182 8 9 180 5 14 178 5 1 176 6 2 175 3 15 174 3 14 173 7 8 172 5 9 171 5 5 170 1 1 165 8 13 163 5 4 162 6 5 159 6 5 156 5 5 155 5 5 154 7 15 152 5 11 151 7 8 150 0 6 149 1 11 147 9 6 146 7 15 144 8 4 142 6 3 140 6 8 139 5 12 136 6 12 133 4 4 132 5 13 131 7 12 130 5 7 129 3 6 128 3 1 126 0 5 125 5 2 122 2 13 120 9 6 119 10 6 117 6 12 114 2 12 112 4 14 109 3 7 108 0 9 107 10 15 106 7 12 105 0 4 99 10 13 98 2 6 97 8 5 96 7 10 94 8 2 93 4 13 91 1 4 88 1 3 87 3 2 86 10 10 85 5 13 83 5 2 82 9 1 80 10 11 79 5 1 78 4 3 77 10 14 76 8 11 75 10 12 74 6 5 72 5 13 71 10 15 70 9 9 69 6 5 68 8 8 67 3 1 66 1 11 65 9 2 62 9 13 60 5 9 58 7 9 57 8 11 55 9 11 54 8 5 52 3 2 50 7 14 49 0 1 48 9 11 47 0 2 46 8 7 45 1 3 43 4 14 40 2 11 39 1 1 38 5 1 37 1 4 32 1 1 30 1 2 29 1 13 28 3 6 27 3 11 26 6 10 25 7 3 24 10 3 23 2 3 21 9 15 20 8 15 19 10 3 18 7 12 17 7 15 16 4 11 15 3 10 14 4 7 13 0 7 12 4 5 11 8 14 10 7 8 8 6 1 7 0 11 6 10 9 4 1 3 2 5 6 1 0 1 58 95 200 7 13 199 9 15 194 9 12 192 7 10 191 2 7 186 3 8 185 5 15 184 3 8 183 4 9 180 3 3 178 10 10 177 6 15 174 5 7 173 4 5 172 6 7 169 3 3 166 3 9 165 6 9 163 6 13 161 5 4 160 3 14 158 8 13 154 10 7 152 1 9 150 1 2 147 5 15 145 1 4 142 4 1 141 7 11 140 6 6 136 10 5 134 0 11 133 1 1 131 10 8 130 5 5 129 1 6 128 6 15 124 9 2 123 10 4 121 3 15 117 7 12 116 3 6 112 0 2 109 0 9 108 9 10 102 1 10 99 7 15 97 0 13 95 7 5 94 10 4 93 7 15 91 5 9 90 0 9 89 7 8 87 3 12 86 8 12 84 1 8 83 7 13 82 2 14 79 6 10 78 4 1 77 5 13 72 0 1 71 3 9 70 4 9 69 3 5 68 10 9 67 7 15 64 10 12 63 10 15 62 1 13 55 1 10 53 9 10 52 2 15 49 3 8 47 7 8 43 6 8 41 3 10 40 6 13 36 10 11 32 1 10 30 7 15 29 6 9 28 10 14 25 2 12 21 10 14 19 9 5 16 6 5 14 1 8 13 8 1 12 8 8 11 10 12 10 2 15 6 10 7 2 0 14 59 109 200 7 11 198 9 7 194 7 13 193 3 8 192 6 12 190 6 15 186 8 9 185 10 1 184 7 8 183 2 14 180 4 7 178 4 5 176 3 6 174 5 15 173 9 3 172 10 12 170 7 14 169 8 13 167 3 14 163 7 15 162 1 3 161 1 11 160 5 9 155 4 12 154 5 10 153 3 13 152 9 9 150 1 9 148 0 12 147 8 5 144 7 6 142 10 12 141 2 4 139 8 4 136 9 9 135 1 7 134 4 1 133 1 10 132 5 6 131 3 11 130 0 2 129 6 2 128 7 7 125 8 14 124 10 15 123 5 15 120 5 10 119 8 12 118 4 7 117 10 7 113 2 14 111 8 15 110 9 2 109 7 14 107 7 4 105 6 12 104 10 10 102 4 3 99 3 11 98 2 5 96 1 11 95 0 13 94 0 4 92 2 13 91 2 14 90 0 1 89 9 4 87 7 4 86 3 5 85 2 6 84 5 15 83 1 13 82 7 7 79 5 13 78 0 12 76 3 6 74 1 10 73 1 6 72 7 6 71 0 2 69 10 3 68 10 7 67 9 13 64 6 15 63 10 4 60 1 10 57 1 1 55 0 8 52 2 9 50 7 10 49 1 12 46 4 7 43 0 1 41 3 3 39 3 8 37 6 15 36 3 13 32 5 3 30 6 1 29 7 5 28 0 5 19 8 11 16 0 4 13 9 9 12 6 9 11 2 15 10 6 13 6 3 3 2 0 13 60 99 199 4 13 198 1 11 197 6 10 194 7 3 191 2 1 190 5 1 186 6 9 185 7 11 183 10 4 182 9 12 180 1 4 177 2 7 176 9 4 175 2 8 174 7 2 172 6 4 171 0 9 170 4 1 165 9 11 163 4 14 161 6 7 158 2 8 156 6 12 155 4 2 154 1 1 152 0 10 151 6 7 150 2 8 148 4 9 147 1 6 145 6 7 144 3 14 142 4 4 140 9 10 139 4 12 136 1 14 133 2 14 132 7 10 131 4 8 130 7 3 128 6 10 126 6 11 122 10 3 121 6 3 120 1 3 119 5 11 116 6 13 114 0 2 112 2 3 108 8 9 107 9 9 106 3 8 99 5 12 98 9 1 97 2 1 96 10 12 93 6 2 92 7 12 91 8 12 87 4 4 86 9 8 85 9 13 82 0 12 80 6 3 79 3 14 77 4 4 76 1 5 75 7 9 74 2 10 72 10 7 71 1 14 70 6 3 69 9 10 67 6 14 66 8 2 64 6 8 62 10 12 60 9 14 58 3 8 57 6 8 53 3 8 52 6 12 50 1 13 47 4 6 46 9 4 45 1 5 43 0 8 40 1 2 39 2 11 38 3 11 32 6 13 30 6 4 29 3 11 16 8 4 13 1 12 12 3 1 11 10 2 10 1 8 2 0 3 61 124 200 3 4 199 9 5 198 9 1 197 6 2 192 7 9 191 1 8 190 9 11 187 1 15 184 6 3 183 8 14 182 1 2 178 4 10 177 10 2 176 8 4 175 10 8 173 7 2 172 0 11 171 4 2 166 0 4 165 10 8 163 4 2 161 10 15 160 1 1 158 3 2 155 3 15 153 6 5 152 3 6 150 0 2 147 3 7 145 10 10 144 6 13 141 1 2 140 3 6 138 2 12 136 8 10 134 7 11 133 2 10 132 1 11 131 4 8 129 1 7 128 4 6 127 10 15 126 1 12 123 9 4 122 5 3 121 3 8 120 9 1 117 7 7 116 8 1 113 0 8 109 4 13 108 3 13 106 6 15 99 8 5 98 0 12 97 9 13 95 8 2 94 2 7 93 4 5 92 4 3 91 2 9 89 9 2 87 3 5 86 6 1 84 8 13 83 3 11 82 9 3 81 6 15 78 4 12 77 0 4 76 7 12 75 1 9 73 3 12 72 9 12 71 7 7 68 8 13 67 0 12 66 6 12 64 2 11 63 6 3 62 2 3 60 1 7 58 9 7 55 10 13 54 10 4 53 0 9 52 9 2 49 8 4 47 9 5 46 8 11 45 2 12 43 6 11 41 5 6 40 7 15 39 1 5 38 4 4 32 4 9 30 4 11 29 1 5 28 3 8 27 6 15 26 4 3 25 1 13 24 8 10 23 9 8 21 8 1 20 9 8 19 7 12 18 7 8 17 10 14 16 1 4 15 0 4 14 9 10 13 3 2 12 4 10 11 7 14 10 1 4 8 0 10 7 5 12 6 9 15 5 5 9 4 4 7 2 5 15 1 9 10 62 106 199 0 12 198 2 3 195 4 9 194 4 2 193 9 10 192 9 6 186 5 11 185 0 11 184 8 6 183 3 8 182 2 10 180 3 4 176 4 6 175 5 15 174 4 6 173 6 6 172 6 11 170 8 13 169 4 7 165 9 1 163 5 1 162 8 11 161 3 8 154 9 4 153 10 1 152 8 15 150 8 11 148 9 5 147 9 8 144 10 7 143 7 6 142 10 13 140 3 14 136 2 14 134 5 8 133 2 4 131 1 1 130 2 9 129 6 2 128 8 7 126 10 8 125 4 13 124 5 13 122 5 13 120 1 10 119 5 9 118 1 11 117 10 14 112 8 9 111 4 4 109 3 12 106 0 11 105 2 10 102 10 10 99 5 2 97 6 11 96 3 15 95 2 7 94 2 14 91 4 15 90 0 10 86 7 9 85 7 12 84 6 6 82 4 6 79 4 10 78 10 4 77 2 15 75 0 6 74 6 12 73 2 12 72 7 7 71 4 13 70 0 3 69 8 13 68 10 5 66 9 11 64 5 12 62 0 7 57 9 12 55 2 11 52 2 8 50 3 10 49 1 2 44 7 8 43 9 2 40 2 6 39 8 5 38 4 15 37 7 3 36 7 5 32 1 9 30 6 7 29 1 11 28 4 13 27 1 15 19 8 9 16 10 10 15 0 11 14 3 7 13 9 2 12 5 7 11 5 1 10 4 11 6 3 12 2 2 7 63 119 198 5 2 196 8 10 194 0 11 190 7 2 186 8 11 185 8 15 183 4 12 182 9 15 180 0 9 176 0 6 175 4 9 174 8 6 173 8 2 172 8 1 171 0 15 169 5 2 163 10 10 161 6 4 158 5 14 156 2 9 155 10 8 154 0 4 153 3 12 152 5 1 151 0 8 150 10 15 147 1 15 145 5 10 144 3 13 142 8 1 139 3 3 136 5 8 135 3 1 134 1 10 133 4 13 132 5 11 131 3 10 130 10 3 129 8 13 128 8 11 126 4 15 124 5 13 121 2 6 120 9 2 119 4 1 114 7 5 112 9 10 110 6 8 109 7 10 108 5 3 107 8 6 106 3 1 102 6 11 99 9 5 98 3 4 97 10 1 95 9 7 93 10 2 92 7 9 91 0 6 87 2 15 86 7 6 84 5 9 82 0 6 80 0 12 79 8 14 78 2 14 77 8 9 76 3 7 75 4 13 74 7 3 73 4 12 72 6 4 71 7 6 70 5 14 69 10 15 68 6 13 67 1 15 66 2 6 64 4 9 62 10 3 60 10 1 58 9 5 56 2 14 55 6 2 53 8 2 52 3 12 49 10 6 46 9 12 45 0 13 43 4 8 39 0 3 38 7 14 36 5 7 31 7 5 30 5 12 29 1 14 28 0 7 27 7 13 26 2 5 25 0 8 23 3 2 21 7 11 19 3 12 18 1 14 16 5 3 15 8 1 14 4 8 13 5 6 12 5 3 11 10 1 10 5 1 9 3 10 7 9 12 6 8 10 4 6 1 3 6 3 2 5 3 1 1 2 64 96 200 3 11 198 7 8 194 9 14 192 6 9 191 7 2 190 6 9 185 4 9 184 4 12 183 3 1 180 2 5 178 1 14 177 10 6 174 9 9 173 10 7 172 8 7 169 10 5 166 0 1 165 6 4 161 2 3 160 3 7 158 9 10 155 10 8 154 10 6 152 0 4 151 0 15 150 5 4 147 2 15 146 2 15 145 5 15 144 7 7 142 3 6 141 0 11 140 2 11 139 7 12 135 2 10 133 1 3 132 10 2 131 3 11 130 5 11 129 9 11 128 7 5 124 9 10 123 3 13 121 8 5 120 0 3 119 3 5 117 2 9 116 7 9 110 10 8 109 6 11 108 8 9 102 3 6 99 10 8 97 1 15 95 8 7 94 5 1 93 3 11 91 9 11 89 8 6 87 1 6 86 0 4 84 2 11 83 0 5 82 2 5 79 9 11 78 7 8 77 6 13 74 7 12 72 5 1 69 7 14 68 5 11 67 4 8 64 6 2 63 5 4 62 3 8 56 10 7 54 10 7 53 2 15 52 10 4 49 8 4 47 2 13 46 9 8 43 5 10 41 2 11 40 3 7 38 3 6 36 9 6 32 9 6 31 3 2 30 4 10 29 0 11 19 6 14 16 7 5 13 4 12 10 10 13 2 5 13 65 120 199 1 5 198 1 8 194 3 10 193 4 11 191 1 6 186 6 14 185 6 9 180 9 2 179 4 9 177 2 11 174 0 11 173 10 14 172 4 11 171 7 6 170 10 1 169 9 13 165 5 15 163 10 6 162 6 13 161 8 11 158 4 13 155 5 1 154 7 8 153 4 5 152 10 9 150 5 10 149 9 14 148 3 15 147 7 2 145 9 2 144 6 7 142 1 4 141 1 2 140 4 8 136 9 5 134 3 8 133 5 2 131 0 8 130 8 1 129 9 8 128 10 1 125 8 7 124 1 13 122 9 14 120 2 8 119 7 6 118 1 8 117 0 12 113 10 10 112 4 13 111 3 13 109 2 10 108 2 12 106 8 5 105 4 12 102 4 7 99 2 5 96 8 8 95 9 11 94 9 1 92 5 9 91 5 13 90 3 4 87 1 1 86 5 11 85 7 15 84 3 11 82 5 14 79 10 7 78 3 2 77 2 4 74 2 4 73 1 13 72 3 5 70 7 9 69 9 15 68 0 6 67 10 12 65 7 12 64 5 8 62 9 10 57 3 8 55 9 5 53 0 12 52 4 10 50 10 11 49 6 1 47 5 12 43 2 1 40 2 5 37 3 10 36 6 15 32 6 6 30 2 3 29 9 5 28 6 3 27 0 13 26 4 11 25 2 3 24 5 4 23 0 2 21 3 12 20 7 14 19 0 9 18 10 12 17 6 6 16 1 9 15 1 12 14 9 13 13 6 13 12 7 13 11 0 8 10 3 1 8 0 15 7 1 1 6 7 14 5 2 14 4 1 11 2 0 6 1 4 5 66 98 198 1 9 196 9 1 194 4 7 190 5 4 186 8 11 185 3 12 183 1 6 182 3 10 180 4 12 177 7 13 176 2 7 175 2 6 173 0 7 172 3 9 171 6 1 169 4 2 163 3 5 161 2 15 158 8 2 156 9 15 155 2 13 153 5 12 152 4 1 151 4 6 150 6 15 147 8 2 144 1 10 142 5 11 139 6 11 136 1 12 134 3 12 132 0 5 131 6 4 129 5 6 128 3 7 126 6 4 124 0 12 120 3 15 118 0 6 114 3 6 112 10 14 109 3 1 108 8 11 107 10 1 106 5 2 102 7 11 99 7 11 98 8 5 97 6 11 95 10 1 92 2 14 91 4 1 90 9 3 87 10 3 86 9 1 84 0 4 82 4 5 80 9 1 78 9 15 77 4 15 76 4 10 75 10 15 73 3 10 72 3 5 71 8 14 70 4 12 68 7 12 67 8 14 66 4 2 64 9 2 62 3 1 60 8 5 58 0 8 55 7 15 52 5 4 49 1 2 47 2 15 46 10 2 45 0 3 43 6 7 40 1 14 39 5 8 38 9 8 36 7 6 30 5 6 29 8 5 28 10 14 27 9 11 19 1 4 16 8 3 15 2 15 14 2 2 13 0 1 12 1 6 11 0 4 10 0 1 6 4 12 2 1 13 67 97 200 1 2 199 0 6 198 4 13 195 1 9 192 9 2 190 0 12 186 7 12 184 9 11 183 8 1 182 6 3 178 7 3 177 2 1 175 0 9 173 1 9 172 0 15 171 7 6 170 10 12 166 9 13 165 8 8 162 8 5 160 3 12 158 9 6 155 0 7 154 10 8 152 7 9 150 3 8 147 0 10 146 5 9 145 0 13 144 1 4 141 9 7 140 1 3 139 10 6 136 4 13 133 9 2 131 3 13 129 2 4 128 1 10 126 8 9 123 8 7 122 10 2 121 9 4 120 10 5 117 4 13 116 8 12 112 2 7 109 3 15 108 9 5 106 1 3 99 8 8 97 3 11 94 2 5 93 7 6 91 1 15 89 7 8 87 1 12 86 5 10 83 0 10 82 8 9 79 9 6 78 10 10 77 8 1 75 5 7 72 1 3 70 1 6 68 1 15 67 1 2 66 9 10 64 4 15 63 10 6 62 9 8 57 0 15 55 8 11 54 7 13 53 2 3 50 6 3 49 5 14 48 0 8 47 3 13 44 5 5 41 10 13 40 3 3 38 5 3 32 8 5 29 1 5 28 2 15 25 3 6 21 2 4 19 9 9 16 10 5 14 1 12 13 0 9 12 8 11 11 6 12 10 8 5 6 8 5 2 9 12 68 88 198 5 11 194 9 5 193 10 5 190 10 13 186 6 15 185 1 7 183 6 3 180 10 12 179 2 3 177 2 10 174 1 5 173 0 15 172 6 10 170 6 12 169 1 3 164 5 9 162 0 10 161 5 11 158 0 1 154 3 14 153 8 10 152 3 9 150 4 3 148 9 9 147 3 2 145 10 15 142 4 6 141 8 7 139 0 14 136 4 10 134 9 4 133 7 1 132 0 15 131 1 15 130 6 1 129 3 1 128 8 3 125 3 6 124 8 14 121 8 11 120 1 11 119 6 12 118 1 8 117 4 9 116 10 1 111 10 2 109 8 8 108 2 3 106 0 3 105 7 11 102 5 12 99 6 2 96 8 4 95 7 9 94 5 14 93 1 13 91 4 14 90 1 15 87 9 8 86 8 8 85 6 14 84 3 2 82 8 11 79 0 2 78 9 13 77 10 2 74 3 6 73 0 6 72 5 7 69 10 13 68 10 7 67 1 4 66 7 7 64 1 12 62 3 12 57 5 2 55 5 15 53 2 13 50 9 5 49 0 5 47 9 2 43 2 14 40 7 9 37 1 4 36 3 4 32 1 7 31 8 3 2 7 12 69 115 198 0 4 196 8 5 190 0 13 187 6 7 186 1 8 184 8 15 183 7 12 182 9 14 180 1 5 176 8 6 175 6 5 173 5 8 172 3 4 171 6 12 170 7 5 164 10 5 163 7 3 162 9 9 158 7 3 155 0 2 154 2 9 152 0 11 151 6 8 150 2 3 147 10 12 145 1 10 144 3 12 142 2 12 139 5 6 138 0 7 136 3 6 133 10 4 132 9 9 131 8 5 129 6 4 128 0 9 127 7 1 126 2 1 121 8 12 120 8 13 119 10 15 117 9 15 115 5 13 113 10 14 112 10 15 109 3 6 108 3 4 107 1 4 106 6 12 99 5 5 98 0 1 97 5 9 94 8 4 93 1 6 92 0 6 91 7 1 87 3 3 86 5 11 82 7 3 81 1 9 80 4 7 79 5 14 78 3 15 77 8 9 76 5 2 75 1 6 72 2 6 71 6 10 70 3 4 68 4 2 67 6 13 66 3 14 64 5 9 62 3 6 60 7 9 58 6 10 57 0 6 53 8 5 52 2 4 50 2 1 49 9 10 46 7 1 45 0 13 40 6 8 39 8 14 38 10 2 32 0 5 31 9 10 30 10 2 29 2 12 28 2 5 27 1 8 26 4 10 25 7 10 24 6 2 23 2 10 21 5 14 20 4 5 19 1 9 18 8 6 17 2 1 16 7 2 15 0 13 14 4 12 13 1 10 12 9 12 11 7 3 10 9 7 8 6 13 7 3 7 6 3 11 5 1 10 4 9 13 2 3 5 1 8 3 70 92 199 9 11 198 4 6 192 2 3 190 6 3 185 3 7 184 7 11 183 7 3 180 1 4 178 3 11 177 10 11 174 2 1 173 4 11 172 1 8 169 3 10 166 9 7 165 3 7 163 5 12 160 0 15 158 3 3 155 3 7 154 0 14 152 0 15 150 9 3 147 7 13 146 4 6 145 6 12 144 4 11 142 8 10 141 10 13 139 8 7 133 7 3 131 10 6 129 6 11 128 6 12 126 3 13 123 2 7 121 10 3 120 6 15 119 9 13 117 7 6 116 0 15 113 0 9 109 2 14 108 6 5 99 5 4 97 0 10 95 2 9 94 10 12 93 7 2 92 5 12 91 3 15 89 1 10 87 7 2 86 8 12 84 4 12 83 8 2 82 6 13 79 10 3 78 2 14 77 4 12 74 8 12 72 2 10 68 5 10 67 5 14 64 2 13 63 4 6 62 5 3 54 7 13 53 3 3 52 4 12 49 2 10 48 0 3 47 4 6 43 7 1 41 10 9 40 9 7 38 6 8 32 7 5 30 0 15 29 5 13 28 5 2 27 4 9 25 6 9 19 6 6 16 8 3 14 8 7 13 0 6 12 6 12 11 4 13 10 10 11 6 10 8 2 0 1 71 130 199 8 6 198 8 3 194 5 13 193 10 10 192 2 10 190 10 13 186 4 9 185 7 4 184 1 5 183 6 15 180 4 10 179 9 10 178 7 10 176 1 7 174 4 8 173 2 14 172 8 2 170 10 6 169 10 8 166 8 9 165 6 7 163 4 4 162 3 11 161 9 7 160 10 6 156 5 13 154 7 9 153 6 14 152 1 13 151 2 15 150 8 9 148 10 6 147 3 12 146 5 5 145 1 12 142 3 4 141 10 10 140 10 11 139 6 6 136 6 11 134 10 9 133 1 2 132 0 3 130 8 9 129 1 14 128 2 6 125 2 10 124 6 6 123 2 6 122 6 12 120 2 10 119 2 11 118 1 8 117 7 7 114 5 10 111 7 6 109 1 2 108 5 11 107 3 11 105 8 3 102 1 5 99 7 10 98 9 14 96 5 3 95 2 12 94 6 3 93 7 7 91 7 13 90 7 11 89 2 15 87 5 6 85 10 8 84 8 2 83 0 3 82 1 1 79 1 10 78 2 4 77 5 7 76 10 10 74 5 1 73 9 15 72 10 15 71 4 12 69 2 1 68 2 10 67 10 6 64 4 3 63 0 8 62 0 2 61 6 10 57 4 10 55 8 6 54 9 11 52 5 6 50 7 3 49 7 8 48 10 3 46 7 5 43 3 2 41 5 1 40 5 14 39 7 5 37 1 5 36 2 11 32 1 15 31 3 5 29 7 3 28 3 12 27 6 9 26 3 6 25 10 4 23 5 6 22 0 11 21 7 9 20 5 6 19 4 5 18 6 12 16 7 7 15 2 1 14 8 15 13 10 6 12 1 12 11 1 13 10 2 7 7 7 3 6 10 15 5 7 5 3 9 3 2 8 2 1 9 11 72 101 198 2 3 197 2 4 196 5 1 194 3 3 192 0 15 190 0 11 189 1 13 187 4 6 186 10 7 185 1 12 184 4 3 183 0 15 182 9 11 180 6 11 178 10 4 176 10 1 175 1 6 174 4 11 173 4 14 172 6 7 171 3 12 169 0 15 163 0 12 162 5 2 161 5 7 160 6 5 155 3 15 153 9 9 152 8 1 150 2 9 147 5 10 144 7 8 142 0 3 141 10 3 138 10 11 136 9 6 134 1 1 133 8 9 132 8 3 131 5 15 130 9 5 129 9 5 128 0 14 127 1 13 126 2 8 124 2 1 120 5 15 118 8 8 117 4 8 113 6 4 112 1 11 109 0 7 107 7 4 106 10 2 102 8 10 99 9 3 98 9 12 97 9 7 95 8 3 94 9 4 92 3 3 91 9 8 90 9 14 89 1 3 87 6 7 86 8 2 84 1 13 83 6 13 82 5 14 80 2 7 78 6 12 76 4 8 75 2 9 74 6 14 73 10 13 72 10 13 71 5 9 70 1 7 69 7 2 68 9 12 67 3 3 66 8 14 64 8 8 60 10 13 58 8 11 55 9 11 52 9 2 51 2 14 49 8 14 46 8 15 45 9 14 43 6 2 39 8 12 38 0 6 36 9 5 32 1 6 30 4 1 29 3 6 19 7 5 13 7 3 2 3 7 73 115 199 6 9 198 1 12 194 0 4 192 7 14 190 6 11 186 1 13 185 4 9 184 0 14 183 6 5 180 2 8 178 0 7 177 6 11 174 6 2 173 0 14 172 0 10 170 5 3 166 3 15 165 8 6 164 4 1 162 9 4 161 10 1 160 4 3 158 0 15 154 5 6 152 4 10 150 2 7 148 1 3 147 7 8 146 3 1 145 4 3 142 6 9 140 1 11 139 2 10 136 2 9 133 4 6 132 8 1 130 3 9 129 4 12 128 7 14 125 0 9 124 1 2 123 7 1 121 2 10 120 2 3 119 9 12 117 5 7 116 2 1 112 3 2 111 8 9 109 8 7 108 4 11 105 5 3 99 4 5 96 10 5 94 2 12 93 5 2 91 3 3 89 5 14 87 6 1 86 2 6 85 9 14 84 5 3 83 0 6 82 5 15 79 9 1 78 9 3 77 9 6 74 8 11 72 3 14 70 8 9 69 6 9 68 3 12 67 10 1 64 3 13 63 2 13 62 8 11 57 9 7 54 7 12 53 3 14 50 0 12 48 1 4 47 6 2 43 3 12 41 0 5 40 1 10 37 6 13 36 2 9 32 4 6 31 1 10 30 0 6 29 10 14 28 4 3 27 0 1 26 7 14 25 2 15 24 3 7 23 7 9 21 5 15 20 5 10 19 7 13 18 5 9 16 10 2 15 7 4 14 3 11 13 2 9 12 9 12 11 9 6 10 6 14 8 6 2 7 7 12 6 7 2 5 10 7 4 8 9 2 6 15 1 10 2 74 112 199 6 15 198 8 12 197 5 4 194 2 14 193 3 9 192 3 1 187 4 15 186 10 2 185 0 13 184 4 4 183 5 4 182 3 12 180 0 8 179 5 14 175 2 1 174 2 8 173 7 10 171 8 12 170 2 2 169 7 11 165 1 7 163 3 8 161 6 15 155 1 6 154 7 13 153 9 2 152 8 12 150 3 9 148 9 13 147 8 2 144 5 4 142 9 1 141 9 3 140 9 8 136 7 8 134 2 7 133 8 14 131 7 8 130 2 9 129 3 13 126 5 4 125 0 5 124 1 4 122 0 4 120 5 15 119 2 1 118 5 5 117 9 10 113 3 2 111 2 5 109 2 5 108 1 1 106 4 14 105 7 4 102 9 9 99 8 13 97 8 15 96 7 15 95 6 8 94 8 15 92 8 2 91 8 8 90 4 5 89 1 10 86 4 4 85 8 2 84 9 9 82 4 10 80 5 4 79 9 12 78 0 8 77 5 10 75 3 13 74 6 6 73 5 10 72 10 2 71 2 11 70 10 6 69 6 14 68 3 1 67 9 10 66 4 7 64 6 9 62 1 12 58 8 7 57 2 13 55 0 11 52 2 11 50 3 7 49 7 3 45 5 3 43 6 11 40 5 4 38 3 13 37 8 6 36 1 8 35 10 6 32 10 5 30 10 1 29 6 12 28 9 1 25 9 15 21 8 4 19 9 8 16 3 10 14 7 3 13 2 2 12 3 3 11 10 5 10 6 11 6 8 3 2 10 1 75 101 199 2 2 198 0 6 196 4 5 192 2 4 190 1 13 186 6 5 184 8 1 183 8 5 182 3 10 180 5 15 178 1 1 176 8 9 175 0 8 173 10 12 172 5 7 171 0 2 165 4 11 163 5 15 162 4 14 159 3 7 155 7 7 153 3 9 152 2 9 150 10 2 147 2 9 146 5 4 144 9 1 142 9 3 141 2 2 140 2 6 138 7 13 136 3 13 133 10 3 132 9 5 131 2 11 129 1 10 127 8 2 126 10 11 122 8 2 120 8 7 117 9 8 113 6 1 112 3 13 109 10 6 108 5 7 107 10 15 106 7 7 99 8 6 98 9 5 97 0 3 94 3 15 92 2 7 91 4 14 88 0 7 86 5 5 84 4 14 83 7 10 82 3 2 80 3 9 78 2 15 77 7 13 76 2 14 75 8 5 73 9 15 72 9 9 71 0 6 70 8 11 68 1 1 67 8 6 66 7 3 64 9 1 62 5 1 60 3 13 58 5 12 55 3 7 54 4 15 52 10 10 51 9 12 49 7 1 48 5 2 46 7 14 45 5 10 40 4 6 39 6 11 38 10 5 32 0 4 30 1 1 29 3 3 28 5 11 27 9 14 25 1 4 19 6 12 16 3 14 15 8 6 14 5 14 13 4 5 12 6 6 11 10 5 10 8 15 6 9 3 2 3 14 76 81 199 6 4 198 2 2 192 9 3 190 9 14 187 4 1 185 0 13 184 8 13 183 2 3 178 9 15 177 10 5 176 10 9 173 9 14 172 6 11 171 2 4 169 5 1 166 7 10 165 7 4 163 5 8 161 5 4 160 5 2 158 0 11 155 4 10 152 5 12 150 7 14 147 1 13 146 7 5 145 10 3 144 0 4 142 3 8 140 10 1 139 2 14 133 0 4 131 10 12 129 9 6 128 1 14 124 8 14 122 7 9 121 0 4 120 2 14 117 0 13 116 5 4 113 7 4 109 7 2 108 1 7 106 3 8 99 3 11 95 5 3 94 8 6 93 3 3 92 9 7 89 3 4 87 6 12 86 8 4 84 10 5 83 3 10 82 8 3 78 9 15 77 7 4 72 2 7 68 4 7 67 8 2 66 10 4 64 0 6 62 5 4 55 9 9 54 5 10 53 0 15 52 5 12 49 6 5 48 2 5 47 0 10 43 0 11 41 8 7 40 5 10 32 7 11 30 0 6 29 9 8 19 9 11 13 7 4 11 9 7 10 6 14 77 105 200 9 15 198 9 5 194 4 8 193 1 4 192 3 4 186 9 6 185 9 3 184 10 6 183 3 2 180 7 12 179 4 5 178 3 8 176 0 1 174 9 15 173 7 13 172 1 12 170 7 12 169 4 8 167 9 14 161 0 7 160 0 10 154 2 3 153 9 6 152 0 12 150 3 13 148 5 7 147 10 15 142 1 2 141 4 13 136 7 1 134 10 10 133 5 9 130 10 13 129 2 6 128 1 7 125 3 12 124 3 14 123 6 10 119 8 11 118 7 3 117 3 2 111 7 10 109 0 14 105 9 12 102 0 15 100 6 6 99 3 11 98 8 15 96 9 3 95 0 10 94 5 8 91 0 13 90 2 14 89 1 15 86 5 12 85 9 14 84 7 1 82 4 7 79 8 11 78 9 12 74 7 2 73 8 3 72 7 2 69 2 8 68 10 12 67 4 11 64 7 15 63 1 10 57 3 4 55 1 13 52 3 4 50 8 8 49 5 9 43 5 14 41 7 6 39 1 13 36 4 12 34 6 15 32 9 10 30 1 1 29 9 13 28 3 3 27 8 4 26 3 15 25 9 3 24 7 12 23 2 11 21 9 2 20 0 7 19 4 13 18 6 7 16 7 1 15 10 9 14 10 9 13 6 15 12 8 11 11 8 7 10 10 5 8 1 4 7 2 7 6 2 8 5 8 1 4 9 10 2 5 14 1 0 10 78 128 199 7 7 198 9 7 196 0 13 194 10 3 192 3 12 191 10 9 190 8 11 186 8 6 185 6 2 184 1 7 183 8 4 182 2 12 180 6 2 177 6 9 176 0 10 175 5 2 174 7 8 173 5 3 172 7 3 171 2 5 169 3 11 165 10 3 163 6 12 162 6 15 161 10 8 160 7 7 158 0 15 155 9 4 154 1 8 152 0 7 150 9 2 147 10 4 145 0 2 144 7 6 142 9 2 140 3 10 138 3 4 136 8 12 135 8 5 133 1 12 132 4 13 131 10 11 130 6 2 129 10 12 128 4 2 127 1 13 126 6 10 124 5 2 122 4 9 120 5 10 119 1 8 117 8 13 113 10 3 112 7 7 110 9 2 109 6 11 108 4 9 106 4 1 103 3 2 99 6 12 98 0 15 97 3 9 95 7 15 94 3 6 92 1 3 91 10 11 89 8 9 87 8 8 86 2 4 84 10 2 82 7 1 80 2 2 79 9 14 78 2 4 77 6 11 76 8 9 75 4 4 74 6 7 72 0 9 71 3 9 70 3 2 69 3 4 68 8 10 67 7 11 66 3 9 64 5 9 62 1 5 60 5 10 58 6 7 56 1 3 53 10 2 52 6 2 51 7 11 50 5 1 49 1 15 47 4 10 46 6 6 45 10 9 43 3 15 40 1 2 39 9 14 38 9 10 36 0 7 32 2 5 30 0 15 29 1 8 28 5 4 27 0 4 26 4 12 25 6 6 23 10 5 21 2 5 19 4 4 18 1 15 16 6 12 15 5 8 14 6 7 13 1 15 12 4 11 11 9 14 10 6 8 9 3 9 7 3 4 6 1 15 5 9 4 3 6 11 2 0 3 1 1 4 79 121 199 1 6 198 9 13 194 5 13 192 10 10 190 4 11 185 0 13 184 1 1 183 7 4 180 6 5 178 7 2 177 1 13 176 2 12 174 10 11 173 7 15 172 6 6 169 8 7 165 10 8 164 10 10 163 7 5 161 9 4 160 7 14 158 2 13 156 4 9 154 7 2 153 5 4 152 3 13 151 7 9 147 6 14 146 7 9 145 8 5 144 9 6 142 8 7 141 0 13 140 1 5 139 0 11 134 9 6 133 7 1 132 3 13 130 7 10 129 6 4 128 9 2 124 3 13 122 4 5 121 6 5 120 1 6 119 4 5 118 3 5 117 9 8 116 7 12 115 2 8 114 3 9 109 1 5 108 1 14 107 9 5 102 6 6 99 10 2 98 1 10 95 0 10 94 6 13 93 5 8 92 9 5 91 1 5 89 2 13 87 6 2 84 5 1 83 10 1 82 1 12 79 0 13 78 4 12 77 0 5 76 2 2 74 10 1 73 9 6 72 9 7 71 5 3 69 3 10 68 2 11 67 4 2 64 9 12 62 9 4 61 0 12 60 8 9 55 3 9 54 10 4 53 8 6 52 5 7 49 2 6 48 3 6 47 0 1 46 1 15 43 7 7 41 3 8 40 3 13 39 2 9 32 3 4 31 4 12 30 6 10 29 4 8 28 4 11 27 7 7 25 10 5 23 3 4 22 7 6 21 5 10 20 5 13 19 6 10 18 2 1 16 3 2 15 2 5 14 1 8 13 5 2 12 8 10 11 3 13 10 4 9 9 10 5 7 9 2 6 10 13 5 9 8 3 9 5 2 9 6 1 2 15 80 96 196 2 11 195 7 12 194 9 12 193 10 13 186 8 11 185 2 15 183 5 7 182 10 4 180 0 3 179 1 13 175 2 15 174 3 6 173 2 5 172 5 3 171 4 11 170 4 9 169 7 14 165 9 2 162 6 1 161 1 8 155 4 6 154 5 4 153 5 13 152 8 2 150 5 10 148 9 10 147 3 3 145 2 5 144 10 6 142 9 15 141 5 13 136 0 8 135 4 12 134 10 9 133 6 12 131 3 2 130 8 8 129 10 11 128 6 9 126 8 5 125 7 7 124 1 1 120 8 8 119 5 9 118 7 6 112 1 7 111 4 2 109 2 7 106 5 12 105 6 8 102 1 6 99 3 2 97 9 15 96 3 11 95 6 13 91 3 7 89 4 14 87 6 14 86 7 9 85 8 13 84 5 15 82 1 3 80 1 4 79 9 5 78 4 13 75 3 14 74 7 5 73 7 9 72 3 14 70 2 3 69 0 1 68 6 12 67 10 6 66 3 7 64 10 5 62 2 8 58 1 13 57 10 5 55 5 4 50 5 15 49 9 4 44 8 12 43 7 5 40 6 9 38 6 9 36 5 3 32 6 2 29 1 13 28 7 12 19 0 7 16 4 2 13 6 9 12 7 12 11 0 6 10 6 5 2 4 13 81 109 198 10 15 196 4 5 194 5 8 189 5 4 186 5 4 185 7 14 184 10 13 183 7 7 182 10 5 180 3 13 176 5 15 175 2 11 174 4 3 172 3 15 171 5 8 170 8 2 163 2 15 162 4 3 161 1 2 155 0 4 154 1 14 152 5 1 150 0 9 147 3 1 144 3 1 142 8 10 138 6 3 136 6 11 135 3 7 133 3 12 131 7 4 130 2 2 129 10 13 128 3 1 127 8 11 126 6 3 124 8 14 120 6 15 119 10 6 117 7 9 113 5 11 112 8 3 110 9 13 109 3 4 106 10 1 103 1 8 99 6 3 98 6 11 97 5 12 96 7 7 94 7 10 92 4 14 91 1 6 87 5 7 86 6 15 84 7 1 82 7 14 80 3 11 79 6 2 76 1 15 75 1 6 74 10 2 71 10 2 70 9 1 69 3 9 68 7 9 67 4 2 66 9 13 64 1 6 60 7 14 58 10 4 56 6 6 55 2 7 52 1 5 50 4 15 49 1 8 46 10 12 44 1 1 43 10 10 39 10 7 38 10 11 36 3 3 32 5 2 30 6 4 29 2 2 28 10 5 27 0 9 26 4 15 25 3 14 24 6 9 23 8 13 21 5 9 20 8 6 19 8 3 18 4 7 16 3 8 15 0 2 14 3 14 13 7 5 12 6 14 11 4 13 10 3 3 8 10 13 7 2 2 6 8 4 5 1 3 4 4 1 2 5 1 1 3 2 82 89 199 4 7 198 1 11 192 4 7 190 3 8 185 9 4 184 1 3 183 1 7 180 10 12 179 5 10 178 1 8 177 0 7 176 4 9 173 5 11 172 3 7 168 7 2 165 9 6 160 0 7 158 0 7 153 5 10 152 10 11 150 3 14 147 2 10 146 7 6 145 5 15 142 2 13 141 0 5 140 7 12 139 7 15 134 4 2 133 1 12 131 2 12 129 10 10 128 7 8 126 8 9 123 7 9 122 9 15 121 10 12 119 2 13 118 7 2 117 4 11 116 0 5 109 7 8 108 5 1 101 9 6 99 9 13 97 3 15 95 0 2 94 10 8 93 2 2 91 2 3 89 8 15 87 9 12 86 3 3 84 4 7 83 1 1 82 9 7 78 5 7 77 2 13 73 1 6 72 4 7 68 9 4 67 8 10 64 3 13 62 2 4 55 4 12 54 1 6 53 3 2 49 0 11 48 10 1 47 9 7 43 9 13 42 9 6 41 4 15 40 3 8 38 8 3 35 3 8 32 6 10 31 10 11 29 7 2 28 6 14 19 0 1 16 8 1 14 4 14 13 0 12 12 9 2 11 0 9 10 2 5 6 6 11 2 6 5 83 70 194 2 11 193 10 6 186 6 15 185 4 2 183 8 7 180 0 5 179 6 9 174 10 13 173 8 13 172 4 4 170 7 7 169 9 3 161 5 13 154 1 15 153 0 3 150 6 14 148 9 2 147 2 5 142 3 1 141 4 4 135 0 12 134 6 3 130 6 8 129 0 3 128 5 12 124 6 10 120 10 5 119 1 13 118 1 10 111 0 1 109 4 15 105 10 3 102 8 5 99 5 14 96 4 1 95 4 6 91 1 9 89 3 3 87 1 9 85 4 12 84 7 3 82 8 8 79 3 8 78 0 2 74 0 14 73 6 9 69 7 10 68 3 9 67 8 12 64 5 10 57 0 8 55 9 13 50 6 9 49 5 5 43 10 11 36 7 14 29 6 3 28 7 3 25 10 9 21 2 3 19 6 10 16 10 1 15 9 3 14 3 4 13 2 14 12 6 12 11 1 4 10 10 9 6 3 8 2 3 9 84 109 199 5 5 198 5 6 196 3 11 194 7 15 191 9 5 188 7 12 186 9 6 185 0 8 184 8 1 183 1 8 182 7 5 180 9 1 177 10 3 176 1 7 175 5 9 174 7 13 172 5 11 171 9 11 169 4 9 165 0 6 163 1 1 162 2 14 161 0 5 158 4 10 155 2 13 154 9 3 153 7 1 152 8 15 150 0 4 147 3 6 145 4 7 144 2 12 142 2 4 140 4 10 138 8 6 136 1 3 134 1 12 133 3 2 131 2 7 130 7 11 128 7 11 127 0 8 126 2 2 124 10 6 122 8 4 120 4 3 119 3 7 118 2 15 117 7 11 113 0 9 112 3 6 109 7 15 108 5 9 106 3 12 102 0 15 99 4 2 98 9 9 97 4 5 95 6 8 94 5 7 92 6 2 91 4 2 90 6 14 87 5 9 86 2 13 84 4 5 82 8 5 80 8 13 79 3 8 78 9 13 77 8 8 76 5 14 75 0 3 74 3 2 73 6 6 72 5 1 71 2 7 70 2 1 69 4 1 68 3 1 67 5 4 66 3 11 64 2 14 62 6 8 60 7 9 58 3 6 55 1 8 53 4 7 52 9 15 50 5 9 49 6 5 47 4 5 46 0 1 44 2 1 43 8 10 40 4 3 39 5 14 38 4 4 36 4 3 32 3 6 30 8 6 29 4 15 28 8 1 16 9 1 13 1 15 12 6 5 11 3 8 10 4 5 2 3 13 85 117 200 6 5 199 4 8 198 6 15 192 6 1 190 7 14 188 7 14 186 1 1 184 1 13 183 2 10 180 0 2 178 5 4 177 2 11 176 4 13 173 3 3 172 1 11 171 8 14 166 0 15 165 4 7 163 4 1 160 0 2 158 9 10 155 6 13 152 3 12 150 0 4 147 7 8 146 4 8 145 2 12 144 5 14 142 4 9 141 2 2 140 3 4 139 1 6 138 0 14 136 0 1 133 4 4 132 1 4 131 2 6 129 9 14 128 9 6 127 4 5 123 7 6 122 7 13 121 0 10 120 1 4 117 1 10 116 9 11 113 8 2 112 10 12 109 8 5 108 7 15 106 7 7 99 7 13 98 1 4 97 2 4 94 0 10 93 8 5 92 4 14 91 4 2 89 2 9 87 3 15 86 7 13 83 10 13 82 7 3 78 8 7 77 3 5 76 7 6 72 5 11 71 6 10 70 2 15 68 1 2 67 10 8 66 6 9 64 1 9 63 10 7 62 9 15 59 4 12 55 1 14 54 2 3 53 2 12 52 10 14 49 5 8 48 2 10 47 5 6 46 1 9 43 8 6 41 8 3 40 3 3 39 5 12 38 8 11 32 2 7 31 4 12 30 2 15 29 5 5 28 5 6 27 2 7 26 6 5 25 5 14 24 9 2 23 2 11 21 5 13 20 6 13 19 2 11 18 10 15 16 2 1 15 9 3 14 5 8 13 3 4 12 0 13 11 3 2 10 9 15 8 3 13 7 0 13 6 9 2 5 10 3 4 4 15 2 7 7 1 6 10 86 100 198 2 1 194 9 12 193 7 9 190 1 9 186 7 11 185 6 13 183 4 12 182 3 13 180 6 8 179 7 10 177 2 5 175 7 11 174 8 14 173 10 8 172 2 12 170 3 4 169 10 12 165 9 11 161 5 7 158 7 15 154 3 14 153 5 1 152 3 10 150 1 15 148 10 6 147 1 4 145 3 5 142 4 12 141 10 1 139 3 15 136 6 15 135 3 1 134 1 6 133 10 1 131 4 8 130 2 15 129 2 14 128 9 1 126 7 2 124 4 10 121 5 15 120 9 6 119 3 3 118 10 5 116 5 12 112 1 10 111 3 5 109 3 11 108 4 6 106 3 14 105 7 7 102 9 8 99 5 6 97 4 7 96 3 14 95 2 11 93 9 11 91 2 7 89 3 13 87 3 6 86 6 10 85 6 1 84 3 2 82 1 2 79 6 1 78 4 6 77 1 3 75 3 15 74 10 2 73 5 1 72 7 15 70 6 11 69 2 8 68 3 12 67 3 2 66 10 13 64 4 8 62 1 1 57 7 13 55 1 9 53 6 4 50 7 4 49 0 11 47 5 2 43 2 4 40 1 11 38 7 8 36 4 11 32 10 14 29 1 7 28 7 11 19 8 10 16 1 1 15 10 13 13 7 3 12 8 5 11 10 7 10 8 5 6 4 3 2 5 8 87 117 199 3 7 198 8 14 196 2 8 192 10 15 188 10 13 187 3 15 186 7 14 185 1 5 184 7 10 183 7 2 182 0 5 179 5 15 178 10 3 176 7 13 175 5 6 173 3 14 171 3 11 170 9 1 169 5 8 165 4 4 163 7 9 162 6 3 161 2 14 155 9 15 153 10 13 152 2 1 150 2 1 147 2 12 146 0 4 144 9 8 141 3 9 140 4 13 138 7 8 136 2 1 134 3 4 133 8 14 131 10 15 129 4 4 127 4 15 126 1 7 123 1 4 122 1 13 120 0 11 118 7 1 117 0 2 113 4 3 112 8 5 109 1 1 108 3 8 106 4 4 101 8 5 99 8 12 98 3 3 97 4 3 95 0 11 94 1 1 92 5 7 91 4 10 89 1 2 86 0 4 84 1 5 83 1 15 82 2 13 80 9 1 78 0 6 77 10 12 76 1 11 75 4 12 73 8 13 72 3 14 71 8 4 70 8 7 68 6 8 66 4 15 64 10 14 62 9 15 59 1 13 58 0 11 55 6 15 54 1 3 52 5 14 50 0 14 49 6 5 46 5 13 45 9 9 44 9 5 43 5 13 40 10 8 39 4 6 38 2 2 35 4 1 32 6 2 30 6 13 29 10 3 28 5 10 27 9 4 26 3 5 25 8 5 23 8 14 21 1 7 20 6 15 19 1 8 18 5 8 16 9 15 15 6 1 14 6 11 13 2 4 12 10 13 11 1 13 10 1 11 9 1 4 7 9 12 6 7 14 5 10 12 3 3 14 2 4 8 1 0 15 88 101 199 8 14 198 3 5 195 10 3 192 0 4 190 2 2 186 2 1 184 10 13 183 10 14 180 4 5 178 2 14 177 7 1 176 1 7 175 0 8 173 4 3 172 2 12 170 8 13 165 8 15 163 10 12 162 2 5 161 7 14 160 4 10 158 3 7 155 10 15 154 7 8 152 5 12 150 10 4 147 2 1 146 5 15 145 9 11 144 1 4 142 8 4 140 7 3 139 4 2 138 7 6 136 5 1 133 9 14 131 7 5 129 3 7 128 4 8 126 5 13 124 4 5 122 7 3 121 1 11 120 3 3 119 9 5 117 9 8 116 0 2 113 2 12 112 4 14 109 7 1 108 4 9 106 7 1 105 3 5 99 4 1 98 5 1 97 10 7 94 6 12 93 0 1 92 1 15 91 1 10 88 3 4 87 4 10 86 0 5 83 8 2 82 10 10 79 0 14 78 0 10 77 10 1 76 0 4 74 8 10 72 2 1 71 10 7 70 7 1 68 8 5 67 4 13 65 0 9 64 3 6 62 9 15 60 3 9 57 2 12 54 1 7 53 0 13 52 10 15 50 6 6 48 10 2 47 7 3 46 0 4 44 7 15 43 6 7 40 1 3 39 7 11 38 7 3 36 6 7 32 4 4 31 10 5 30 4 7 29 4 1 13 4 9 12 6 11 11 4 13 10 3 11 89 111 198 10 6 194 5 15 192 3 6 190 6 15 186 3 2 185 1 4 183 9 4 180 3 7 179 3 3 177 7 12 174 4 10 173 7 9 172 4 13 170 1 7 169 10 7 165 4 15 163 8 13 161 9 13 158 3 7 154 6 9 153 6 14 152 6 6 150 0 7 148 7 3 147 2 3 145 6 11 144 3 2 142 4 12 141 7 3 139 10 13 135 8 3 134 5 6 133 1 7 131 2 11 130 9 9 129 8 14 128 6 15 124 1 1 121 6 11 120 4 3 119 6 9 118 0 15 116 7 11 111 3 9 109 8 2 108 8 5 106 0 5 105 5 11 102 10 15 99 5 12 96 8 3 95 9 8 93 10 14 91 9 3 90 7 4 89 3 6 87 3 14 86 1 4 85 2 4 84 9 8 82 4 5 79 0 9 78 6 6 77 10 2 74 4 1 73 4 11 72 8 1 69 5 6 68 1 9 67 4 7 66 2 7 64 8 2 62 0 7 57 5 8 55 2 8 53 0 2 52 6 2 50 8 7 49 7 15 47 8 13 46 4 8 43 7 11 40 9 15 36 2 2 31 0 15 30 8 6 29 10 10 28 2 2 27 4 3 26 4 5 25 5 6 24 1 12 23 3 3 21 1 13 20 10 7 19 6 13 18 1 15 16 3 11 15 2 1 14 9 11 13 8 5 12 0 13 11 10 14 10 9 11 8 1 15 7 9 11 6 7 4 5 2 8 4 1 3 2 7 6 1 2 1 90 85 198 4 4 197 3 9 195 4 6 190 4 9 188 7 10 187 4 15 186 0 15 184 10 2 183 5 4 182 1 5 180 5 5 176 5 10 175 1 6 172 9 15 171 1 12 170 10 2 163 4 12 162 5 9 155 5 8 151 2 10 150 1 2 147 2 15 144 3 5 139 5 3 138 6 4 136 10 13 133 4 7 132 9 7 131 6 3 128 9 15 127 3 11 126 6 9 120 2 8 117 3 3 113 4 4 112 9 8 109 4 9 106 9 8 99 8 2 98 1 13 97 9 6 94 2 13 93 7 7 92 8 11 91 5 2 87 6 15 86 1 3 82 5 7 81 8 3 80 10 4 76 0 10 75 2 6 72 5 6 71 6 8 70 7 3 68 9 12 67 2 13 66 6 15 64 8 6 59 6 14 58 8 14 52 4 6 50 4 5 49 4 14 46 0 11 45 8 14 44 2 3 43 1 13 39 10 14 38 10 6 32 1 13 30 8 9 29 0 3 28 7 1 27 5 6 19 6 12 16 6 2 15 6 14 14 4 14 13 3 1 12 6 6 11 4 13 10 10 7 6 1 14 2 8 15 91 117 199 4 4 198 9 2 194 4 14 192 0 6 190 4 6 186 2 7 185 9 13 184 9 7 183 0 5 182 2 15 180 6 1 178 10 11 177 2 8 176 8 13 175 0 8 174 5 8 173 2 12 172 7 9 171 6 13 170 9 5 166 3 5 165 0 9 162 2 10 161 9 1 160 2 12 158 8 4 155 7 2 154 7 2 152 4 10 150 10 2 148 4 6 147 0 10 146 0 8 145 5 2 144 6 2 142 7 13 140 8 1 139 6 6 136 3 2 133 1 15 131 2 4 130 10 1 129 9 5 128 6 15 126 0 13 125 6 1 122 9 5 121 10 6 120 4 11 119 4 3 117 0 10 116 5 5 111 2 9 109 2 6 108 8 2 106 7 7 105 8 10 99 5 11 97 9 1 96 7 7 94 9 13 93 6 2 91 6 12 89 8 8 88 8 5 87 10 13 86 1 4 85 6 3 84 5 12 83 6 3 82 8 6 79 9 3 78 2 15 77 0 11 75 0 2 74 4 14 72 0 7 70 1 6 69 3 13 68 6 7 67 5 9 66 5 10 65 10 14 64 9 12 62 2 5 58 6 9 57 5 3 54 5 15 53 9 11 50 1 6 49 2 3 48 3 13 47 10 6 46 7 3 45 9 2 43 5 10 41 3 4 40 9 4 39 1 14 38 6 12 37 9 10 32 2 14 31 5 14 30 0 9 29 8 2 28 7 14 25 7 6 21 10 1 19 4 1 16 2 3 14 0 9 13 10 10 12 8 6 11 7 10 10 5 13 6 8 15 2 5 12 92 100 198 10 5 195 4 7 194 9 8 193 8 12 192 1 13 190 7 5 186 0 13 185 8 8 184 7 14 183 3 6 180 0 2 179 3 9 178 0 6 176 0 12 174 5 3 173 4 9 172 2 12 170 6 11 169 1 1 163 5 5 162 3 3 161 1 5 156 2 13 155 8 14 154 7 4 153 9 6 151 9 2 150 0 12 148 7 11 147 0 13 144 7 6 142 8 10 141 9 15 139 9 13 136 2 14 135 2 1 134 4 5 133 0 6 132 10 12 131 5 7 130 7 12 129 1 10 128 2 9 124 4 10 120 7 5 119 10 15 118 7 13 117 0 15 114 8 11 112 6 8 110 10 1 109 9 2 107 4 15 104 0 2 102 2 8 99 8 13 98 0 4 97 3 3 96 3 12 95 7 10 94 0 4 93 1 9 91 7 14 90 6 14 89 6 9 87 4 15 86 8 3 85 3 1 84 3 7 82 10 6 79 2 10 78 3 14 76 1 12 74 10 2 73 5 15 71 1 4 70 5 5 69 6 12 68 7 12 67 9 9 64 7 10 61 3 12 57 6 13 55 4 11 52 7 9 50 9 7 49 3 11 46 5 13 44 2 1 43 3 9 39 0 13 38 9 8 36 4 12 35 9 7 30 10 7 29 2 15 19 0 13 16 0 13 13 4 14 10 2 12 93 115 199 10 2 198 3 11 195 10 1 192 1 5 188 4 4 186 10 11 184 9 4 183 3 3 182 10 14 180 9 7 178 0 12 176 8 13 175 8 7 174 6 8 173 4 3 172 3 12 171 1 14 170 4 9 165 5 12 163 4 8 162 6 13 159 6 7 155 1 4 154 1 2 152 0 9 150 9 11 147 3 10 146 1 13 144 1 6 142 4 15 140 10 5 138 6 13 136 2 12 133 1 6 131 2 5 129 4 4 127 7 6 126 7 4 122 0 4 120 5 11 119 3 14 117 0 8 113 4 14 112 6 5 109 3 13 108 5 3 106 5 14 105 1 2 99 4 10 98 5 6 97 5 8 94 7 5 92 5 14 91 2 4 88 1 14 86 1 15 83 10 6 82 8 1 80 5 4 79 9 14 77 3 6 76 4 13 75 7 14 74 9 15 72 3 12 71 7 5 70 9 15 68 5 11 67 5 7 66 3 15 65 5 13 64 2 12 62 10 15 59 0 1 58 10 6 57 10 12 55 5 5 54 7 14 52 0 1 50 2 14 49 10 13 48 1 1 46 10 12 44 3 10 43 0 7 40 4 8 39 1 2 38 8 7 32 1 4 30 1 9 29 3 8 28 6 15 27 2 15 26 5 5 25 5 10 24 2 3 23 10 10 21 0 3 20 5 1 19 3 11 18 10 15 16 0 4 15 0 13 14 3 14 13 0 3 12 6 6 11 2 13 10 2 1 8 6 3 7 8 11 6 5 11 5 0 1 4 7 14 2 5 10 1 10 10 94 143 199 1 3 198 5 7 194 1 7 193 10 1 192 0 13 190 3 6 186 1 14 185 9 2 184 1 10 183 6 4 182 7 8 180 4 10 179 6 2 178 10 10 177 1 12 174 8 3 173 3 12 172 0 4 170 8 4 169 10 13 165 8 3 164 8 11 163 8 4 162 10 14 161 4 1 160 2 9 158 5 1 155 8 8 154 8 2 153 8 14 152 0 6 151 10 5 150 5 13 149 6 8 147 0 4 146 8 3 145 5 10 144 2 7 142 5 15 141 10 4 140 1 9 139 8 7 136 2 7 134 10 4 133 0 2 132 7 2 131 6 7 130 6 6 129 3 5 128 2 9 126 7 2 125 10 2 124 0 5 122 8 5 121 6 7 120 7 5 119 0 6 118 3 10 117 0 8 116 2 5 115 8 8 113 10 11 112 5 12 109 8 13 108 10 13 106 8 13 105 9 6 102 6 1 99 5 6 97 8 3 96 2 13 95 4 11 94 3 1 93 2 4 92 1 12 91 5 15 90 0 15 88 4 13 87 1 7 86 4 1 85 9 7 84 3 2 83 3 4 82 4 10 79 5 9 78 0 14 77 0 13 75 4 12 74 1 4 73 5 2 72 4 15 71 5 3 70 4 11 68 7 11 67 9 6 66 6 15 65 8 5 64 6 15 62 3 12 58 0 9 57 2 4 55 0 4 54 5 13 53 10 3 52 4 11 50 6 10 49 3 9 48 2 8 47 8 7 46 9 14 43 0 12 40 6 7 39 4 12 38 8 1 37 0 12 36 7 1 32 5 13 31 7 10 30 8 1 29 7 1 28 9 13 27 8 9 26 5 3 25 1 4 23 5 7 22 0 10 21 9 1 20 2 2 19 5 2 18 10 13 16 0 5 15 5 13 14 7 1 13 2 15 12 3 11 11 3 7 10 4 14 7 8 14 6 2 6 5 10 12 3 5 1 2 5 11 1 0 4 95 94 198 9 15 194 9 9 192 4 15 186 3 4 185 6 10 183 3 15 180 8 4 179 4 14 178 9 2 176 5 5 174 4 4 173 8 15 172 9 13 170 9 5 169 9 4 163 2 3 162 8 5 161 4 6 154 8 14 153 0 3 152 7 14 150 6 14 148 5 13 147 8 4 144 9 6 142 2 6 141 7 13 136 0 6 135 10 10 134 5 3 131 7 12 130 10 14 129 6 11 128 2 7 124 6 10 120 2 15 119 9 12 118 5 10 117 8 14 112 10 5 110 4 11 109 10 3 108 8 8 104 6 13 102 4 14 99 0 10 98 1 6 97 2 11 96 5 6 95 0 7 91 4 1 89 9 8 87 4 9 86 2 15 85 7 9 84 6 3 82 3 7 79 10 4 78 8 10 76 8 1 74 3 12 73 9 12 72 0 2 71 4 1 69 3 1 68 6 6 67 3 9 64 6 14 57 8 4 55 3 13 52 2 3 50 3 4 49 4 15 46 2 2 43 9 10 39 9 15 38 4 6 36 8 9 35 5 4 30 2 13 29 4 2 28 5 2 25 6 13 21 6 7 19 7 4 16 3 13 15 3 14 14 9 1 13 1 7 12 3 8 11 8 12 10 3 5 6 3 10 2 4 10 96 100 199 5 5 198 5 15 195 6 14 194 4 15 192 2 15 191 9 1 188 4 4 186 4 9 184 2 10 183 10 12 182 0 7 180 0 2 178 3 6 177 6 14 176 4 12 175 2 7 174 10 2 173 7 1 172 1 10 171 9 9 170 9 1 165 5 4 163 3 13 162 7 1 159 6 3 158 10 9 155 8 9 154 1 9 152 2 14 150 6 12 146 5 4 145 5 8 144 9 2 142 7 14 140 4 2 138 9 5 136 2 5 133 10 12 131 3 14 130 0 15 129 10 5 128 4 6 127 0 2 126 3 9 125 2 2 122 2 9 120 2 14 119 8 2 117 10 7 113 5 7 112 7 13 109 1 9 108 7 3 106 2 7 105 3 11 99 10 3 98 3 4 97 1 2 96 9 1 94 8 3 92 8 5 91 9 10 88 7 15 87 8 4 86 4 2 85 5 9 83 0 5 82 3 6 79 2 4 78 4 9 77 7 14 76 10 10 75 7 4 74 7 7 72 2 5 71 3 4 70 7 15 68 3 5 67 4 4 66 4 5 64 5 7 62 3 10 59 1 3 57 7 12 54 6 14 53 8 3 52 0 14 50 1 3 48 1 7 47 9 15 46 3 14 44 10 15 43 6 3 40 1 2 39 10 9 38 3 10 37 5 1 32 3 3 30 10 10 2 4 3 97 108 199 5 11 198 2 10 194 9 10 192 7 6 190 6 4 185 0 5 184 4 4 183 10 9 180 1 15 178 0 13 177 9 13 176 9 12 174 10 4 173 10 14 172 4 5 165 8 1 164 0 5 163 6 5 159 5 13 158 7 15 156 6 3 154 7 9 152 2 3 151 1 9 150 9 4 147 9 1 146 5 8 145 5 7 144 1 9 142 9 1 140 7 1 139 1 10 133 3 4 132 7 3 131 7 9 130 2 3 129 4 6 128 4 9 122 4 11 121 8 12 120 7 4 119 10 3 117 4 8 116 5 10 114 10 7 109 5 1 108 9 6 107 7 5 99 7 8 98 10 10 94 10 14 93 6 11 91 7 8 88 10 9 87 3 1 86 4 3 83 5 3 82 4 10 79 3 7 77 5 12 76 7 12 74 2 1 72 10 9 71 3 10 69 1 13 68 10 3 67 7 9 64 5 12 62 0 12 61 2 5 54 8 5 53 4 4 52 0 1 49 4 8 48 6 11 47 0 8 46 10 1 43 7 12 40 2 2 39 5 6 32 5 15 31 6 2 30 1 10 29 4 6 28 0 12 27 8 1 26 2 3 25 3 7 24 6 4 23 5 14 21 1 7 20 4 9 19 6 6 18 6 2 16 5 6 15 2 12 14 2 8 13 2 5 12 5 2 11 4 6 10 2 13 8 1 5 7 8 6 6 7 3 5 3 13 4 8 14 2 1 10 1 7 13 98 128 198 9 6 196 3 3 194 3 2 192 3 2 190 3 2 187 8 11 186 1 6 185 0 2 183 10 3 182 1 12 180 10 2 179 9 7 176 9 8 175 6 6 174 1 10 173 3 4 172 3 11 171 2 11 170 6 8 169 1 7 163 4 6 162 2 14 161 3 11 155 6 3 154 4 9 153 10 9 152 6 5 150 8 7 148 9 14 147 2 15 144 7 9 142 3 12 141 5 14 139 0 8 138 4 3 136 0 5 135 8 3 134 6 15 133 10 13 131 3 15 130 3 9 129 4 10 128 1 9 127 7 11 126 5 14 124 10 1 120 2 6 119 10 10 118 8 8 113 10 11 112 10 12 110 5 15 109 10 5 108 4 14 106 1 7 104 9 12 102 3 11 99 9 2 98 0 3 97 2 10 96 7 7 95 3 6 93 1 9 92 7 1 91 5 6 89 0 13 87 3 15 86 8 11 85 8 7 84 10 2 82 4 13 81 6 4 80 6 2 79 0 9 78 3 15 77 3 6 76 4 12 75 10 8 74 4 6 73 9 12 72 5 5 71 5 7 70 3 13 69 2 14 68 9 3 67 0 10 66 1 1 64 4 1 59 8 8 58 9 11 57 3 2 55 6 10 52 9 1 51 3 15 50 7 3 49 8 15 46 0 7 45 8 15 43 4 2 39 2 13 38 9 2 36 8 14 35 3 1 32 1 13 30 8 7 29 9 14 28 4 13 27 8 15 26 10 3 25 9 1 23 8 7 21 9 14 19 4 13 18 3 12 16 2 11 15 4 14 14 0 7 13 0 3 12 8 8 11 10 9 10 3 3 9 9 3 7 7 14 6 1 1 5 8 6 3 5 14 2 0 6 1 5 6 99 112 199 9 8 198 8 9 195 7 2 194 5 8 187 1 14 186 6 8 184 0 5 183 7 1 182 4 2 180 5 11 177 7 14 176 10 5 175 6 7 174 4 3 173 10 11 172 1 13 171 2 13 170 6 6 165 8 4 163 8 13 162 5 1 161 7 11 158 2 9 155 0 3 154 10 14 153 10 4 152 2 6 150 1 3 148 6 8 147 4 11 144 9 2 143 4 8 142 8 2 141 6 7 140 9 11 138 0 2 136 1 3 135 6 1 134 10 6 133 9 9 131 6 11 130 9 8 129 0 5 128 3 1 127 7 14 126 3 13 124 9 15 120 3 1 119 8 6 117 8 15 113 3 1 112 6 1 111 0 1 109 8 15 108 3 15 106 1 6 105 3 14 99 6 8 98 2 8 97 9 8 96 2 3 95 1 6 94 4 4 92 1 1 91 9 8 87 9 6 86 8 3 85 2 9 84 2 12 82 2 15 79 6 15 78 1 12 77 3 14 76 7 15 75 9 3 74 1 10 72 0 1 71 0 14 70 4 1 69 2 11 68 3 4 67 1 2 66 9 12 64 0 4 62 4 7 59 6 12 57 9 4 55 8 6 52 3 11 50 4 9 49 6 15 47 7 13 46 5 6 44 6 2 43 4 4 40 7 1 39 3 13 38 6 7 36 2 7 32 8 3 30 2 6 29 3 10 28 10 6 19 9 6 16 4 15 14 8 1 13 5 3 12 1 15 11 10 13 10 9 11 6 8 4 2 5 7 100 115 199 2 2 198 7 13 196 6 10 192 10 5 190 1 10 187 4 1 186 8 13 185 8 5 184 3 1 183 6 2 182 2 1 180 8 2 179 7 12 178 6 3 177 6 6 176 8 9 175 4 7 174 8 1 173 4 10 172 8 8 171 3 14 169 7 13 165 2 12 164 1 12 163 8 12 161 3 15 159 10 5 158 7 8 155 7 2 153 5 7 152 9 13 150 4 15 147 2 13 146 0 14 145 5 8 144 5 6 142 6 9 141 8 6 140 9 14 139 1 6 138 8 3 136 8 7 134 1 11 133 4 13 132 3 11 131 10 11 130 1 8 129 1 12 128 9 7 126 0 15 123 1 12 122 7 8 121 2 14 120 0 9 118 1 11 117 3 9 116 10 4 113 6 1 112 9 12 109 9 1 108 7 5 106 10 15 101 2 9 99 9 5 97 2 11 95 3 9 94 7 10 93 6 4 92 3 4 91 9 13 89 7 4 88 5 12 87 10 4 86 6 6 84 5 9 83 1 9 82 1 4 81 5 13 80 6 13 78 2 4 77 5 8 75 3 3 73 0 10 72 0 11 71 0 1 70 9 7 68 2 9 67 9 14 66 4 3 64 9 5 62 8 14 58 5 5 55 3 1 54 9 3 53 4 6 52 1 4 49 6 8 48 8 2 47 0 1 43 3 13 40 2 10 38 7 11 35 9 4 32 1 15 31 10 13 30 1 15 29 2 8 28 4 9 19 10 11 16 9 8 13 10 9 12 6 3 11 1 7 10 10 8 2 5 6 101 105 198 7 7 194 6 15 192 10 12 185 6 3 183 10 2 180 9 5 179 10 2 176 7 7 174 2 14 173 9 9 172 8 13 171 10 8 170 1 2 169 0 6 163 8 4 161 3 10 155 2 13 154 7 7 153 10 14 150 0 14 147 2 7 144 4 1 142 6 3 141 6 11 138 5 3 135 6 4 134 1 15 131 5 12 130 9 6 129 0 7 127 7 8 124 7 12 120 10 1 119 4 15 118 9 14 117 8 3 113 5 13 110 2 14 109 8 1 108 0 3 106 7 9 104 8 14 102 9 12 101 8 2 98 6 11 96 4 14 95 8 13 92 7 11 91 9 5 89 6 8 86 3 4 85 3 13 84 1 12 82 7 8 79 4 15 78 7 8 77 8 8 76 5 8 74 10 3 73 6 4 72 9 13 71 1 1 69 3 3 68 8 15 67 7 4 66 6 15 64 9 10 62 3 4 59 3 6 57 0 11 55 9 8 52 5 15 50 1 4 49 10 9 46 2 6 43 6 14 39 0 2 36 4 5 35 4 5 30 5 6 29 5 14 28 2 7 27 5 11 26 0 7 25 3 4 24 3 12 23 7 11 21 8 13 20 3 9 19 3 6 18 8 15 16 6 12 15 0 9 14 2 14 13 2 14 12 3 15 11 1 4 10 6 7 8 8 11 7 2 3 6 10 14 5 8 11 4 5 4 2 6 5 1 2 10 102 118 198 2 13 195 4 4 194 6 1 192 9 1 190 1 6 187 6 2 186 9 14 185 8 7 183 2 13 182 5 2 180 5 11 177 7 9 176 1 9 175 6 7 174 10 1 173 5 10 172 6 15 171 9 5 170 5 3 169 8 9 164 6 11 163 9 12 162 6 3 161 4 2 158 4 5 155 6 8 154 0 2 152 9 15 150 0 2 147 6 15 145 9 13 144 10 11 143 0 3 142 6 5 139 2 10 138 2 10 136 5 10 134 2 4 132 2 12 131 9 5 130 10 5 129 6 7 128 10 12 127 1 13 126 8 3 124 5 5 121 4 5 120 7 15 119 5 4 116 4 3 113 10 2 112 3 6 109 4 2 108 3 13 106 6 8 102 7 5 99 5 14 98 7 14 97 4 7 95 5 13 93 4 10 92 5 10 91 1 13 90 9 8 87 8 6 86 2 4 84 8 4 82 10 6 79 8 5 78 2 15 77 0 10 76 9 12 75 9 15 74 3 2 72 8 15 71 1 13 70 9 5 69 6 14 68 6 12 67 3 1 66 3 5 64 3 6 62 10 1 59 7 8 57 0 3 55 7 2 53 1 2 52 8 10 50 0 11 49 10 15 47 9 1 46 9 6 44 4 14 43 10 5 40 9 4 39 2 3 38 2 12 36 3 13 31 3 10 30 3 6 29 6 6 28 7 15 27 2 6 26 3 13 25 8 11 21 8 15 20 5 4 19 5 13 18 9 9 16 6 3 14 10 2 13 0 14 12 10 10 11 6 4 10 8 12 6 0 10 2 4 6 1 9 15 103 122 200 10 15 199 5 12 198 3 11 194 3 12 192 0 5 190 4 2 186 2 11 185 5 12 184 2 15 183 3 9 180 9 15 178 7 2 177 0 4 176 8 10 174 9 13 173 5 5 172 3 13 171 6 2 169 9 10 167 1 11 165 7 4 164 4 10 163 3 1 161 9 11 160 8 6 159 1 9 158 8 14 155 0 10 153 7 4 152 4 9 150 2 3 147 1 3 146 2 8 145 2 4 144 9 7 142 10 1 141 8 15 140 7 1 139 4 12 134 4 10 133 5 15 132 9 8 131 1 14 130 2 15 129 3 2 128 0 9 124 10 4 123 10 10 122 5 1 121 3 9 120 5 11 118 6 8 117 7 7 116 10 9 109 6 6 108 5 1 106 0 13 102 4 9 99 0 11 95 2 10 94 9 14 93 3 3 91 3 3 90 7 9 89 1 13 88 9 3 87 1 15 86 9 15 84 5 14 83 7 5 82 9 11 78 8 2 77 7 14 73 3 7 72 1 8 71 10 12 69 3 6 68 10 13 67 9 11 66 5 12 64 9 8 63 5 4 62 7 12 55 1 13 54 0 4 53 4 15 52 10 4 49 1 3 48 7 4 47 3 11 43 0 1 41 2 14 40 1 10 36 1 15 32 6 15 31 7 7 30 2 2 29 8 5 28 5 14 27 8 10 26 3 6 25 9 10 23 8 14 22 3 8 21 0 5 20 7 9 19 7 5 18 0 5 16 1 14 15 3 8 14 6 4 13 9 4 12 6 3 11 8 11 10 5 8 9 2 2 7 3 7 6 3 3 5 5 12 3 1 7 2 10 1 1 3 8 104 91 198 2 11 194 0 7 192 1 12 190 5 9 186 4 13 185 3 3 183 1 5 180 8 15 179 6 9 177 10 11 174 6 12 173 2 12 172 0 1 170 2 1 169 8 11 165 1 10 163 3 13 162 5 12 161 3 12 158 9 15 154 7 9 153 1 9 152 4 9 150 9 8 147 7 3 145 8 15 144 2 13 142 3 10 141 1 9 139 1 15 136 9 5 135 0 8 134 3 4 133 4 1 130 4 6 129 7 8 128 10 4 125 3 9 124 7 1 123 3 7 121 4 7 120 9 9 119 8 10 118 1 10 116 0 1 110 6 10 109 8 3 108 3 6 105 8 2 103 9 13 101 1 13 99 4 2 96 5 6 95 9 8 93 6 13 91 4 14 89 1 2 87 4 15 84 9 6 82 0 13 79 6 7 78 9 8 77 8 4 74 6 10 73 9 7 72 1 1 69 3 6 68 7 5 67 5 11 65 3 2 64 9 9 62 0 8 57 0 5 56 0 15 55 9 9 53 0 1 52 6 2 50 4 15 49 2 3 47 8 13 43 7 8 40 9 10 36 9 3 35 2 10 32 8 14 29 6 5 19 2 7 16 4 7 13 1 2 11 0 5 2 5 5 105 120 198 2 6 195 8 7 192 10 13 190 1 8 188 0 10 187 2 3 186 4 11 185 8 9 183 8 14 182 4 7 180 4 15 177 6 1 176 9 1 175 4 13 173 5 6 172 8 2 171 10 13 170 7 1 169 9 1 164 3 4 163 0 9 162 1 7 161 3 11 158 8 15 156 10 7 155 0 2 154 1 10 152 10 6 151 0 1 150 4 11 147 6 15 145 9 6 144 10 7 143 4 5 139 0 14 138 8 8 136 6 11 133 5 7 132 8 14 131 2 14 129 1 13 128 5 6 127 0 5 126 4 4 124 3 13 121 0 12 120 2 15 119 9 15 116 2 2 114 10 15 113 5 2 112 7 1 109 1 2 108 8 12 107 2 10 106 2 8 99 9 13 98 3 13 97 1 4 95 2 8 93 2 4 92 0 5 91 5 8 87 7 5 86 7 15 84 8 14 82 9 8 79 3 9 77 9 10 76 4 14 75 6 6 72 7 2 71 5 7 70 3 7 68 0 14 67 2 9 66 6 2 64 3 7 62 0 3 60 4 10 59 1 13 57 8 2 53 3 10 52 2 12 50 7 8 46 5 6 44 0 13 43 4 2 40 10 1 39 8 14 38 9 3 36 6 5 32 8 8 31 9 6 30 1 9 29 2 14 28 8 13 27 10 14 26 0 9 25 6 9 24 10 6 23 2 3 21 9 10 20 2 15 19 1 12 18 6 1 16 6 8 15 5 3 14 2 3 13 5 10 12 10 14 11 10 1 10 4 9 8 4 13 7 6 4 6 1 13 5 10 10 4 3 14 2 2 8 1 5 4 106 101 199 5 11 198 3 3 195 7 5 194 3 4 192 0 9 191 8 6 190 5 8 186 4 14 184 7 5 183 8 10 182 0 5 180 8 10 178 10 2 177 7 12 175 10 13 174 6 12 173 8 12 172 0 11 170 1 9 165 1 14 164 0 8 163 10 8 162 2 9 161 9 1 159 10 12 158 0 7 154 2 5 152 8 8 150 0 2 146 2 13 145 4 15 144 7 5 142 8 13 140 2 14 139 3 10 136 5 6 133 6 11 132 0 8 131 5 4 130 3 5 129 3 13 128 4 1 126 7 3 122 9 7 121 8 7 120 10 4 119 7 14 117 7 12 116 10 13 112 8 4 108 6 10 106 5 5 99 5 14 97 10 13 94 4 9 93 3 13 91 3 15 88 0 12 87 9 7 86 2 7 83 8 11 82 7 2 79 8 13 77 10 13 75 8 9 74 0 15 72 4 5 70 8 11 69 2 1 68 9 4 67 3 8 66 7 9 64 3 4 62 4 11 57 7 5 54 2 5 53 0 6 52 10 11 50 8 5 48 8 11 47 9 13 46 8 7 44 8 4 43 8 4 40 8 10 38 8 8 36 5 8 32 1 11 31 4 13 29 6 8 28 8 11 25 7 14 19 2 6 16 6 13 14 3 13 13 5 6 12 1 11 11 6 14 10 6 12 6 5 6 2 5 5 107 107 198 5 7 197 10 2 194 6 13 192 6 11 190 5 6 187 4 3 185 3 1 183 3 8 182 0 14 180 5 3 179 3 9 177 4 5 175 7 9 174 0 13 173 3 15 172 0 1 171 0 1 170 0 3 169 1 7 163 6 10 161 9 11 158 7 14 155 4 5 154 7 3 153 5 5 152 7 2 150 1 11 147 3 11 145 4 6 144 9 11 142 10 3 141 8 15 139 7 4 137 8 13 135 6 11 134 1 6 131 10 14 130 6 11 129 3 11 128 9 1 126 8 9 124 8 2 123 0 9 120 7 7 119 10 12 118 2 1 113 5 14 110 0 7 109 3 8 108 7 5 106 10 7 103 8 7 102 4 8 101 8 15 99 9 12 97 5 3 96 7 2 95 0 3 93 5 11 92 6 13 91 5 1 89 6 12 87 10 15 86 3 11 84 9 4 82 10 15 81 3 9 79 1 13 78 9 11 77 0 3 75 10 1 74 4 5 73 7 13 72 9 14 71 10 15 69 8 5 68 10 15 67 8 1 66 6 8 64 5 3 62 10 13 58 3 2 56 4 8 55 0 3 53 8 1 52 10 14 50 10 8 49 2 11 45 3 2 43 7 1 40 0 5 38 4 10 36 6 15 35 7 5 30 2 12 29 4 12 28 3 2 27 1 6 19 1 5 16 2 8 15 3 4 13 1 15 12 9 8 11 2 4 10 3 4 6 9 5 2 4 10 108 73 198 3 4 195 8 11 194 6 9 192 7 6 187 4 5 186 7 11 184 5 9 183 9 1 182 7 3 180 0 13 176 1 11 175 2 14 173 1 6 171 2 1 170 8 6 163 9 1 162 9 1 161 8 5 155 6 11 154 2 4 150 3 4 147 6 1 144 1 9 142 2 9 138 7 3 136 6 8 133 7 9 131 8 3 129 5 1 127 2 4 126 3 4 124 0 8 120 4 8 119 8 1 117 10 4 113 7 4 112 2 12 109 8 9 106 4 11 99 4 11 98 1 12 97 10 7 92 4 15 91 9 10 86 1 5 84 8 10 82 2 4 79 5 3 76 2 1 75 5 6 74 4 8 72 6 11 71 10 15 70 6 5 68 5 4 67 4 14 66 1 2 64 1 4 59 7 9 57 4 12 52 4 3 50 8 8 46 3 1 44 5 14 43 1 15 39 5 1 38 5 5 36 5 2 30 9 12 29 6 9 16 5 12 13 1 12 10 10 3 109 111 199 5 2 198 4 4 194 4 11 192 4 7 191 5 9 190 2 7 186 8 4 185 4 6 184 0 9 183 4 13 180 9 15 178 5 7 177 10 5 174 3 2 173 4 2 172 5 12 170 10 3 165 1 9 164 3 15 162 10 4 159 3 4 158 1 4 154 6 15 152 10 6 149 10 13 147 10 4 146 0 15 145 6 1 144 5 9 142 0 4 140 5 13 139 4 4 136 7 1 133 9 11 132 4 6 130 3 11 129 10 4 128 7 7 125 6 1 122 9 11 121 9 14 120 1 8 119 2 12 117 8 12 115 4 9 112 4 1 109 9 8 108 0 12 105 8 9 99 10 11 96 2 13 95 0 8 94 2 1 93 8 6 91 2 1 88 3 2 87 6 14 85 4 3 84 0 7 83 3 15 82 9 5 79 6 9 78 7 9 77 3 13 74 7 7 72 5 13 70 1 10 68 1 3 67 7 5 65 9 12 64 6 15 62 8 7 57 5 9 55 1 3 54 9 10 53 8 3 50 8 14 49 8 8 48 10 2 47 7 14 46 5 13 43 9 5 40 7 2 37 2 15 32 0 13 31 9 9 29 1 8 28 7 6 27 5 15 26 0 4 25 0 13 24 10 6 23 8 5 21 2 8 20 3 9 19 1 4 18 1 13 16 3 8 15 4 5 14 10 10 13 6 14 12 8 11 11 10 14 10 4 15 8 3 14 7 5 11 6 10 11 5 3 7 4 6 2 2 4 1 1 7 5 110 101 199 6 10 194 3 12 193 6 12 192 4 3 186 4 2 185 7 6 184 5 3 180 7 15 179 4 5 178 3 10 174 5 7 173 7 5 170 2 7 169 10 15 165 7 1 163 7 15 162 7 6 161 4 1 154 8 10 153 1 10 152 7 7 150 7 7 147 1 2 146 7 15 144 8 4 142 2 11 141 9 9 140 1 2 136 0 6 135 1 1 134 4 15 133 7 4 130 3 8 129 10 3 124 3 5 123 7 10 122 6 5 120 8 10 119 2 2 118 9 7 117 6 7 110 9 10 109 1 8 103 2 7 102 8 3 101 7 6 99 8 12 95 9 15 94 9 15 91 5 14 90 8 11 89 10 12 88 5 13 86 1 9 84 2 9 83 7 3 79 5 10 78 10 15 77 9 2 74 2 11 73 2 8 72 4 14 69 9 8 68 8 6 64 7 2 62 1 2 56 8 15 55 7 15 54 3 12 52 5 11 50 0 15 49 1 7 48 1 13 43 6 15 40 6 6 36 0 5 35 2 4 32 10 9 30 3 9 29 3 2 28 9 4 27 2 4 26 5 14 25 3 1 23 5 1 21 5 3 19 2 13 18 4 12 16 9 13 15 8 2 14 6 13 13 5 5 12 1 14 11 9 14 10 8 1 7 10 4 6 3 10 5 6 10 3 10 10 2 9 10 1 3 6 111 117 199 1 2 198 3 9 196 10 13 195 5 10 192 6 5 190 1 9 187 8 4 186 3 3 184 3 7 183 8 10 182 9 11 178 5 10 176 3 2 175 5 11 173 2 12 172 2 12 171 9 13 170 6 15 165 8 4 163 8 9 162 10 10 160 1 7 155 3 8 154 3 4 152 5 10 150 10 9 147 3 12 146 9 11 144 5 12 142 0 4 140 5 6 139 0 3 138 10 10 136 0 5 133 10 14 131 1 10 129 2 12 128 7 3 127 5 6 126 6 9 122 9 10 120 2 3 119 8 8 117 8 3 113 2 13 112 3 3 109 2 1 108 0 2 106 10 8 99 0 4 98 7 2 97 6 4 94 4 8 92 1 3 91 1 4 89 3 5 87 4 5 86 9 10 83 10 15 82 4 9 81 6 7 80 3 4 79 10 15 78 2 13 77 0 8 76 2 3 75 7 7 72 9 9 71 0 7 70 9 1 68 7 9 67 5 3 66 6 12 64 7 10 62 6 2 59 8 11 58 10 7 57 2 9 55 9 2 54 9 5 52 4 6 50 9 13 49 8 6 48 0 6 46 3 3 45 0 9 44 5 14 41 3 10 39 8 6 38 6 12 32 7 13 30 0 8 29 6 13 28 2 9 27 9 5 26 10 5 25 6 9 23 10 15 22 6 2 21 3 11 20 7 11 19 0 15 18 4 2 16 0 15 15 10 15 14 5 1 13 2 15 12 5 3 11 6 3 10 7 6 9 8 9 7 5 13 6 1 6 5 5 5 3 3 1 2 0 8 1 7 10 112 99 200 3 13 199 6 10 198 4 15 194 5 7 192 5 15 190 2 9 185 2 14 184 10 6 183 5 10 180 9 4 178 6 1 177 9 1 176 9 10 174 5 8 173 8 13 172 7 11 167 10 11 165 6 12 164 9 7 163 4 6 161 10 8 160 7 10 159 9 12 158 0 8 154 1 1 152 3 9 150 10 4 147 3 14 146 5 3 145 8 14 144 4 15 142 7 1 141 7 10 140 7 1 139 4 5 136 9 6 133 7 1 132 8 6 131 9 4 130 3 11 129 0 3 128 8 11 124 9 9 123 0 3 122 9 14 121 3 5 120 9 7 119 3 6 117 0 8 116 6 9 115 1 12 109 5 14 108 1 14 106 9 9 99 3 12 98 5 2 94 9 12 93 1 9 91 3 2 89 10 9 88 0 4 87 3 8 86 3 11 83 10 15 82 2 10 79 9 7 78 0 15 77 1 10 76 4 11 74 9 2 73 6 13 72 1 15 71 5 5 68 8 9 67 6 1 66 3 2 64 5 15 63 3 14 62 1 14 55 3 13 54 1 4 53 10 7 52 4 13 49 9 5 48 4 13 47 3 14 46 10 6 43 10 6 41 0 2 40 10 4 39 10 13 36 2 12 32 1 6 31 10 12 30 5 1 29 3 2 28 6 14 19 4 12 10 8 7 113 137 199 9 4 198 4 11 194 2 4 192 2 14 187 2 14 186 1 5 185 1 14 184 2 2 182 0 7 180 2 4 179 1 6 178 6 15 176 10 11 174 6 4 173 8 13 172 9 12 171 3 4 170 2 5 169 10 12 165 0 3 163 8 1 162 4 8 161 9 9 160 3 3 159 0 6 155 6 7 154 8 13 153 2 4 152 4 1 150 2 10 149 6 10 147 8 5 146 7 3 144 6 11 142 9 9 141 8 8 140 0 7 138 1 1 136 4 10 135 6 9 134 2 3 133 0 9 131 10 1 130 8 5 129 1 15 126 0 13 125 0 10 124 1 3 123 4 1 122 9 11 120 4 2 119 5 11 118 3 8 117 9 10 113 9 15 112 0 9 110 0 5 109 9 5 108 5 8 106 8 4 105 5 14 103 3 8 101 4 1 99 10 14 98 10 10 97 7 14 96 8 11 95 3 1 94 10 11 92 8 9 91 5 14 89 6 13 88 6 9 86 2 13 85 4 7 84 10 6 83 10 15 81 4 6 79 8 9 78 6 12 77 4 6 75 10 10 74 5 3 73 0 3 72 0 14 71 10 8 70 3 3 69 3 9 68 4 14 66 8 8 65 0 3 64 0 3 62 1 7 58 6 15 57 3 2 56 5 9 55 8 3 54 0 8 52 10 1 50 3 12 49 7 9 48 4 10 45 3 6 43 0 9 42 9 10 40 4 11 39 7 2 37 0 1 36 6 12 35 6 13 32 7 8 30 10 12 29 7 13 28 2 15 27 3 13 26 1 15 25 6 10 24 3 5 22 0 6 21 0 9 20 9 1 19 10 9 18 5 6 16 9 3 15 5 3 14 2 2 13 10 7 12 0 5 11 6 9 10 3 4 8 0 2 7 10 12 6 2 12 5 3 1 4 10 14 2 10 15 1 0 3 114 116 199 8 10 198 4 5 195 9 9 193 7 3 192 0 12 187 5 1 186 1 4 185 7 8 184 2 3 183 10 15 181 2 15 180 3 6 179 5 15 177 6 12 176 3 2 175 7 7 174 10 3 173 1 7 172 1 1 171 10 8 170 10 10 169 0 15 165 4 1 163 3 5 162 3 6 161 2 13 158 1 11 155 3 10 154 4 2 153 10 12 152 6 5 150 3 3 147 2 12 146 10 12 144 2 1 142 0 9 141 1 8 140 0 15 138 9 7 136 2 8 134 8 15 133 8 2 131 1 9 129 10 9 128 3 2 127 7 1 126 4 9 124 10 14 122 0 9 120 0 4 119 4 1 118 10 11 117 1 4 113 7 14 112 2 4 109 7 10 108 4 6 106 4 1 102 2 4 99 9 6 98 0 5 97 7 15 95 10 12 94 7 9 92 6 3 91 10 2 90 6 1 87 6 1 86 0 10 84 8 11 82 3 14 81 9 4 79 2 11 78 3 2 77 10 3 76 5 7 75 10 13 74 0 13 73 5 15 72 9 2 71 5 2 70 9 2 68 8 9 67 7 4 66 3 4 64 3 9 62 0 4 59 4 14 57 6 11 55 8 1 52 7 15 50 8 12 49 2 14 47 7 3 45 0 3 44 10 1 43 2 15 40 8 2 39 8 1 38 4 4 36 4 9 32 8 5 30 2 10 29 5 9 28 7 9 27 0 8 19 7 2 16 0 3 15 3 10 14 0 7 13 8 1 12 6 7 11 1 6 10 1 5 6 2 3 2 9 9 115 101 199 2 9 198 8 12 194 10 11 192 10 8 190 4 13 184 0 1 183 4 7 180 9 9 178 8 6 177 4 2 176 5 14 174 9 8 173 7 6 172 8 14 165 1 12 164 3 3 163 6 11 159 2 4 158 3 8 156 2 8 155 10 5 154 7 10 152 3 4 151 3 15 150 5 15 147 6 11 146 6 6 145 5 7 144 9 14 142 7 15 140 6 10 139 8 1 133 8 8 132 6 8 130 1 15 129 0 13 128 0 6 122 10 7 121 9 10 120 2 2 119 10 5 117 9 5 115 4 6 114 2 15 109 10 6 108 2 15 107 4 1 106 1 11 99 7 2 98 5 1 94 7 10 93 3 6 91 6 2 88 1 15 87 0 4 86 4 1 83 3 14 82 5 13 79 9 6 78 1 5 77 1 1 76 6 12 74 8 15 73 4 13 72 7 11 71 3 15 68 0 6 67 10 4 64 1 14 62 3 1 61 6 15 55 0 3 54 4 7 53 2 14 52 5 5 50 5 15 49 5 7 48 10 8 46 2 11 43 10 8 40 10 8 39 8 1 32 6 2 31 2 12 30 7 6 29 7 9 28 2 15 27 6 13 25 7 5 21 6 1 19 4 9 18 8 10 16 9 8 14 9 8 13 1 13 12 2 7 11 2 10 10 5 15 6 6 9 2 4 7 1 8 8 116 100 198 5 5 197 10 14 194 7 12 192 1 8 190 2 5 187 0 1 186 4 13 185 4 9 183 1 3 182 2 3 180 7 10 179 10 7 175 10 8 174 5 14 173 9 1 172 8 11 171 4 5 170 9 13 169 7 2 163 5 9 161 2 10 160 2 11 155 4 12 154 9 5 153 6 15 152 1 3 150 0 15 147 9 7 144 10 2 142 2 13 141 4 8 139 0 1 136 8 6 135 6 13 134 3 4 133 7 12 131 4 14 130 4 3 129 4 15 128 9 10 126 10 8 124 5 2 123 5 8 120 2 12 119 5 3 118 1 2 112 1 1 111 3 8 110 5 7 109 2 2 108 3 4 106 6 13 105 9 6 102 9 15 101 10 13 99 0 6 97 3 8 96 2 2 95 2 8 93 3 11 91 7 12 89 0 6 87 3 2 86 5 5 85 0 14 84 7 11 82 5 13 80 4 13 79 3 4 78 7 5 77 3 3 75 9 8 74 7 3 73 2 13 72 2 6 70 8 3 69 10 10 68 8 10 67 0 5 66 2 10 64 9 10 62 9 9 58 1 4 57 6 11 56 5 9 55 4 3 52 0 7 50 0 10 49 1 5 45 10 8 43 2 3 42 6 1 38 10 14 36 9 8 35 1 2 32 8 10 30 3 1 29 2 6 19 7 13 10 5 3 117 117 198 10 4 195 4 14 194 9 12 190 3 2 187 0 6 186 2 2 183 2 14 182 10 12 180 0 5 177 8 2 176 7 10 175 8 12 174 0 14 172 2 12 171 1 13 170 2 14 163 3 6 162 8 11 161 6 11 158 5 6 155 9 1 154 10 2 150 3 11 148 4 13 147 4 3 145 7 12 144 4 4 142 10 11 139 7 3 138 9 9 136 1 1 131 6 7 130 1 3 128 0 4 127 7 2 126 4 3 125 6 7 121 8 14 120 6 9 119 5 1 113 5 11 112 4 3 111 9 1 109 6 12 108 4 2 106 3 15 105 1 12 99 3 13 98 10 1 97 8 12 96 3 13 95 2 3 93 4 9 92 3 2 91 2 11 87 8 14 86 10 9 85 5 9 84 10 12 82 0 1 81 9 13 79 3 14 77 0 3 75 9 5 74 7 7 72 10 10 71 6 1 70 5 3 69 4 3 67 2 1 66 3 10 65 0 13 64 3 7 62 9 6 58 10 11 57 4 1 55 7 1 53 6 10 52 0 7 50 1 8 49 3 3 45 5 4 44 3 2 43 9 2 39 4 11 38 3 15 37 5 1 36 0 14 30 2 4 29 3 14 28 0 2 27 2 8 26 6 10 25 9 11 24 0 10 23 9 6 22 5 5 21 2 5 20 0 3 19 5 6 18 3 2 16 1 7 15 8 12 14 10 6 13 1 9 12 1 2 11 9 3 10 10 7 9 2 10 8 2 4 7 8 10 6 5 4 5 8 5 4 4 2 3 7 2 2 6 3 1 6 9 118 122 199 3 11 198 1 8 192 6 1 190 2 14 185 3 10 184 0 5 183 0 7 180 7 10 179 3 10 178 2 10 177 0 5 176 6 1 173 9 9 172 9 10 169 8 14 165 6 4 164 0 8 163 8 15 161 10 13 159 5 3 158 2 11 155 0 15 154 0 11 153 3 5 152 5 4 151 2 11 150 10 7 147 2 3 146 8 13 145 0 6 144 9 8 142 8 14 141 5 3 140 7 8 139 0 6 138 7 8 136 4 10 134 0 1 133 4 12 132 2 13 131 1 11 129 3 12 128 7 5 127 2 1 124 4 2 122 3 1 121 10 9 120 2 5 118 8 4 117 0 7 115 9 4 113 2 2 109 1 7 108 3 15 106 7 13 102 7 15 99 9 1 98 3 5 95 1 5 94 7 9 93 3 4 92 10 1 91 1 3 89 2 12 88 0 6 87 10 4 86 9 11 84 1 13 83 1 6 82 6 4 79 8 3 78 0 5 77 5 10 76 5 6 73 7 10 72 10 8 71 4 1 68 5 8 67 5 11 66 10 13 64 9 1 62 3 4 60 0 4 55 8 13 54 7 2 53 1 4 52 6 7 49 5 10 48 9 11 46 0 13 43 10 13 40 8 2 39 8 15 35 9 1 32 5 3 31 0 9 30 7 8 29 0 9 28 2 14 27 7 6 26 8 12 25 2 14 23 3 15 22 7 5 21 0 15 20 3 4 19 10 13 18 6 2 16 8 9 15 10 1 14 10 11 13 8 4 12 4 8 11 9 15 10 0 7 9 1 3 7 2 6 6 6 3 5 4 13 3 10 15 2 9 8 1 6 6 119 132 199 8 2 198 1 12 194 0 8 192 5 14 190 0 11 186 0 12 185 10 9 184 6 5 183 3 9 180 8 11 179 5 4 178 8 13 177 10 8 174 5 8 173 5 9 172 9 14 170 1 12 169 6 14 168 9 13 165 0 13 164 5 15 163 6 8 161 0 7 160 9 11 159 7 11 158 6 9 155 8 2 154 9 3 153 9 13 152 8 12 150 6 14 147 4 11 146 10 7 145 10 9 144 5 4 142 4 15 141 7 3 140 1 2 139 3 3 136 2 12 135 0 9 134 2 14 133 8 2 131 7 12 130 3 6 129 5 8 128 10 13 124 6 9 123 0 6 122 3 14 121 1 11 120 5 12 119 4 2 118 7 6 117 5 6 113 0 15 110 8 9 109 0 8 108 0 11 106 4 8 105 0 2 102 3 6 101 1 14 99 8 1 95 0 14 94 8 6 93 0 5 92 2 2 91 6 4 89 0 6 88 2 6 87 3 6 86 5 15 84 0 10 83 1 11 82 10 2 79 4 1 78 0 7 77 5 14 74 3 12 73 0 10 72 4 15 71 7 10 69 7 4 68 0 3 67 10 5 66 4 15 64 6 13 62 2 2 57 5 12 56 10 6 55 3 11 54 2 13 53 1 14 52 6 1 50 4 13 49 4 9 48 1 9 46 6 12 43 1 8 42 10 12 40 1 2 36 9 11 35 9 8 32 6 3 31 3 4 30 7 2 29 8 1 28 3 15 27 6 15 26 6 12 25 0 11 23 3 6 22 8 10 21 0 11 20 7 13 19 1 5 18 2 14 16 5 4 15 0 8 14 0 2 13 2 7 12 0 14 11 6 8 10 5 10 9 10 4 7 7 15 6 8 6 5 10 9 3 7 7 2 10 7 1 8 1 120 122 199 2 3 198 6 13 195 10 12 194 9 12 192 10 1 190 5 1 187 1 2 186 6 8 185 1 7 184 3 5 183 5 8 182 8 14 180 8 12 178 8 1 176 5 2 175 0 10 174 6 6 173 5 6 172 3 11 171 5 3 170 2 7 166 3 15 165 9 14 163 0 12 162 7 11 160 2 12 159 0 13 155 0 3 154 0 7 152 6 6 151 3 9 150 8 3 149 2 1 147 9 12 146 5 8 144 8 5 142 8 11 140 6 15 139 4 1 138 1 8 136 1 1 133 4 2 132 5 8 131 1 14 130 6 10 129 1 2 128 4 15 126 0 7 125 1 8 122 5 14 120 10 6 119 4 5 117 3 3 114 7 9 113 2 11 112 1 14 111 9 14 109 0 14 108 9 13 106 5 4 105 10 4 99 6 2 98 2 6 97 2 8 96 9 7 95 0 5 94 1 7 93 1 11 92 2 5 91 1 8 89 2 7 88 10 14 87 3 10 86 1 7 85 10 1 84 2 2 83 10 15 82 8 8 81 2 9 79 9 14 78 1 2 77 2 8 76 2 5 75 7 4 74 6 7 72 1 8 71 7 11 70 10 6 69 6 4 68 3 8 67 3 6 66 6 7 65 4 7 64 1 4 63 1 3 62 9 6 61 8 15 58 9 15 57 10 2 55 0 7 54 4 1 52 6 5 50 7 3 49 3 7 48 5 1 46 7 7 45 2 1 44 9 2 43 7 15 41 2 2 40 4 13 39 3 3 38 9 11 37 5 5 32 3 8 31 7 14 30 7 3 29 2 7 19 4 6 16 1 11 13 5 15 10 10 7 121 109 200 7 8 199 6 7 198 10 2 194 10 8 192 4 5 190 4 15 186 1 7 185 7 11 184 5 15 183 6 14 180 1 6 178 1 7 176 8 8 174 8 13 173 7 9 172 3 12 167 7 7 165 0 10 164 2 8 163 7 12 160 8 13 159 4 4 158 4 1 153 8 13 152 4 9 151 7 11 150 6 15 147 7 10 146 1 10 145 5 6 144 8 4 142 9 10 141 1 3 140 3 6 139 4 15 133 2 13 132 10 3 131 8 2 130 2 8 129 8 11 128 6 10 123 8 14 122 7 8 121 0 5 120 4 3 117 0 9 115 10 11 109 7 3 108 9 12 100 3 10 99 1 3 94 1 3 93 8 1 91 1 12 89 9 7 88 10 15 87 3 2 86 8 3 84 6 14 83 1 10 82 8 14 78 2 15 77 0 4 73 10 1 72 1 1 68 2 6 67 4 13 64 2 12 63 9 2 62 10 5 55 6 7 54 4 4 53 9 13 52 3 11 49 6 4 48 2 15 46 0 3 43 9 6 41 2 8 40 5 7 39 4 10 33 2 2 32 1 14 31 4 13 30 10 3 29 6 12 28 8 1 27 4 14 26 8 5 25 0 9 24 4 12 22 4 14 21 0 4 20 0 3 19 3 11 18 10 9 16 1 8 15 10 8 14 9 6 13 0 3 12 1 5 11 10 4 10 10 3 8 2 11 6 6 14 5 2 12 4 5 4 2 9 5 1 1 11 122 103 199 4 1 194 8 7 192 7 4 191 2 8 186 0 11 185 3 12 184 6 10 183 4 15 180 1 11 179 2 1 178 4 3 177 7 15 174 5 7 173 6 11 172 2 5 170 5 13 169 1 8 168 10 9 165 0 9 162 4 5 161 8 14 160 6 15 158 1 15 154 4 7 153 9 7 152 7 2 150 6 6 147 5 11 146 6 2 145 4 7 142 10 3 141 3 4 140 9 11 136 4 5 135 3 1 134 8 13 133 9 14 130 4 7 129 2 6 128 1 7 124 0 8 123 3 2 122 1 15 121 5 10 119 3 9 118 8 14 117 2 15 116 6 6 110 7 4 109 6 6 108 1 2 105 8 12 102 8 9 101 4 1 99 5 4 95 6 13 94 6 14 93 0 11 91 7 9 89 6 3 87 2 3 84 10 4 83 10 7 82 6 13 79 5 7 78 2 4 77 1 8 74 10 8 73 3 2 72 8 2 69 2 6 68 7 12 67 0 13 64 9 7 62 7 2 57 10 7 56 10 12 55 5 9 54 1 4 53 2 2 50 6 8 49 4 9 47 5 5 43 1 3 42 2 3 40 2 11 36 7 4 35 2 1 32 3 5 29 10 10 28 4 13 25 4 5 21 1 14 19 6 10 18 10 2 16 2 8 14 5 6 13 1 1 12 10 15 11 8 11 10 7 9 6 6 7 2 6 4 123 103 199 2 2 198 10 4 195 9 3 192 1 14 190 5 6 187 2 10 186 2 5 185 3 4 183 0 3 182 2 6 180 0 15 176 9 5 175 7 1 174 3 7 173 7 12 172 6 2 171 6 11 170 1 9 165 8 9 163 7 7 162 10 14 155 5 7 154 0 3 152 1 11 150 9 9 147 7 7 144 8 1 142 10 13 140 1 5 138 7 10 136 3 14 133 0 11 132 10 10 131 5 7 129 5 14 128 3 10 126 4 14 122 0 13 120 0 2 119 9 6 117 4 10 113 1 11 112 2 7 109 8 13 108 6 15 107 2 8 106 6 15 105 5 13 99 4 9 98 9 8 97 4 11 95 8 2 94 9 11 92 4 6 91 5 3 87 0 7 86 9 1 84 0 10 82 5 1 81 3 10 79 0 7 78 6 11 77 1 1 76 0 1 75 9 10 74 0 7 72 1 5 71 0 15 70 8 1 68 5 12 67 3 9 66 2 11 65 0 8 64 7 15 62 2 6 60 10 11 58 8 13 57 10 4 55 9 4 52 7 15 50 3 1 49 5 15 46 3 3 45 7 2 44 2 11 40 5 4 39 0 8 38 1 4 32 5 10 30 2 3 29 0 15 28 9 2 25 5 15 21 5 7 19 6 8 16 2 1 14 4 2 13 3 9 12 3 13 11 6 1 10 9 3 6 10 15 2 0 4 124 93 199 10 6 198 7 2 195 0 6 192 10 11 190 6 2 186 2 10 184 9 13 183 1 6 182 7 9 180 7 5 178 3 5 176 6 10 175 9 5 174 10 5 173 9 7 172 7 3 170 10 4 165 0 3 164 7 10 162 0 5 160 3 14 159 3 12 158 4 8 155 3 12 154 9 2 152 2 10 151 7 4 150 0 1 146 3 2 145 1 15 144 0 8 142 0 9 140 7 10 139 3 15 136 5 6 133 2 8 132 7 2 131 6 2 129 2 7 128 4 7 126 2 8 122 7 10 121 2 9 120 4 2 119 7 15 117 10 13 114 2 5 112 0 5 109 1 13 108 5 5 106 7 2 99 1 10 97 3 13 94 6 3 93 7 5 91 3 4 88 10 14 87 1 1 86 1 12 83 2 5 82 8 2 80 4 8 79 3 9 77 3 12 75 4 10 74 10 14 72 5 13 70 9 10 68 5 9 67 0 6 66 5 4 62 4 6 58 1 1 54 1 4 53 8 13 50 4 3 48 0 12 47 7 8 46 4 6 44 10 8 43 5 15 40 0 2 39 7 3 38 0 8 32 2 7 31 3 2 29 1 8 16 10 4 13 9 14 12 9 10 11 2 13 10 5 2 2 6 15 125 133 199 2 7 198 1 1 194 3 13 192 7 7 190 8 2 185 10 10 183 1 14 182 2 4 180 4 12 179 8 6 176 4 1 175 6 7 174 4 8 173 10 12 172 0 8 171 5 11 169 8 5 168 10 1 165 2 2 163 1 6 161 9 5 160 1 4 156 9 2 155 4 8 154 3 6 153 4 8 152 4 4 151 5 4 150 0 2 147 6 14 145 2 7 144 2 15 142 3 9 141 4 11 140 10 10 139 0 11 136 1 1 135 2 2 134 2 11 133 2 9 132 2 1 131 0 4 130 3 1 129 4 2 128 6 2 126 5 15 124 10 13 123 10 6 120 2 4 119 3 12 118 9 2 114 7 6 113 6 11 110 9 4 109 1 4 108 7 1 107 1 6 106 8 9 103 0 9 102 8 6 101 6 14 99 9 1 98 8 2 97 3 5 95 1 15 93 6 8 92 6 7 91 10 9 89 4 4 87 9 5 86 5 9 84 2 13 82 5 7 80 2 6 79 6 1 78 4 4 77 6 2 76 10 5 75 1 6 74 8 10 73 0 7 72 9 12 71 7 15 70 2 5 69 1 1 68 10 7 67 2 7 66 10 12 64 7 3 62 1 13 61 9 9 58 0 4 56 9 5 55 9 2 52 5 6 50 1 14 49 2 12 46 6 10 45 5 13 43 6 10 42 7 10 40 0 14 39 5 8 38 8 5 36 6 4 35 2 9 32 10 15 31 0 15 30 0 4 29 10 8 28 9 8 27 8 1 26 0 2 25 7 13 24 1 8 22 0 4 21 6 5 20 7 9 19 0 13 18 9 15 16 3 2 15 7 3 14 6 7 13 2 7 12 0 12 11 1 13 10 10 12 8 6 4 6 7 11 5 1 7 4 4 11 2 6 8 1 6 3 126 112 200 7 4 199 1 4 198 2 14 195 2 5 194 5 9 192 6 10 191 7 11 187 2 10 186 0 4 183 1 10 182 6 5 180 3 1 178 7 5 177 9 7 176 2 4 175 2 6 174 4 10 173 1 15 172 2 11 171 5 10 170 9 8 165 2 1 163 10 12 162 2 2 160 9 13 158 7 13 155 2 14 154 8 2 152 2 10 150 8 7 147 8 15 145 4 10 144 6 1 142 7 5 141 7 4 140 4 13 138 2 6 136 5 9 133 6 6 131 5 2 130 4 3 129 2 1 128 8 8 126 4 12 123 9 14 122 10 1 120 10 2 119 10 14 116 2 5 113 10 10 112 0 3 109 1 6 108 0 13 106 2 13 105 1 11 99 9 11 97 8 4 93 0 5 92 7 11 91 4 5 89 10 2 87 9 15 86 10 3 82 7 12 81 6 10 79 6 13 78 6 5 77 9 2 75 3 10 74 2 3 73 10 2 72 7 3 71 5 15 70 9 2 69 0 11 68 2 2 67 0 15 66 10 9 65 10 14 64 4 5 62 8 1 58 7 5 57 6 14 55 7 15 53 2 4 52 9 2 50 7 9 49 7 1 47 3 9 45 1 13 44 6 12 43 10 12 40 1 11 38 4 1 32 9 14 30 4 8 29 3 10 28 3 4 27 3 8 25 7 2 23 2 2 19 9 13 16 1 15 15 5 11 14 8 4 13 0 5 12 6 12 11 9 14 10 6 10 6 0 6 2 10 14 1 6 8 127 124 200 4 9 199 5 7 198 2 11 195 3 14 192 3 14 190 8 7 186 3 14 184 3 5 183 9 3 180 2 5 178 1 7 176 10 13 174 8 10 173 6 7 172 1 1 170 2 6 166 1 10 165 4 2 164 5 6 162 7 15 161 5 1 160 10 12 159 2 6 158 0 14 154 3 6 152 7 11 151 3 6 150 4 1 147 2 2 146 3 4 145 8 10 144 8 5 142 9 13 141 3 4 140 2 14 139 5 8 136 0 3 133 4 3 132 4 14 131 5 3 130 6 13 129 3 6 128 9 4 126 4 5 125 5 3 123 6 3 122 6 12 121 5 2 120 5 3 119 7 1 117 5 2 114 2 8 112 5 11 109 10 3 108 6 1 105 2 4 99 5 1 98 6 11 96 5 2 95 1 8 94 10 15 93 6 5 91 5 7 89 4 15 88 1 11 87 6 11 86 4 12 84 0 4 83 0 5 82 10 2 79 10 2 78 8 12 77 9 10 74 2 7 73 4 1 72 2 11 70 0 15 68 6 11 67 6 8 65 4 6 64 7 7 63 3 7 62 2 10 57 9 2 55 6 4 54 6 10 53 1 1 50 6 1 49 8 15 47 9 14 46 2 15 44 9 12 43 8 1 41 0 9 40 6 5 39 8 5 37 9 15 32 1 4 31 3 8 30 9 5 29 6 11 28 8 15 27 3 5 26 0 8 25 0 1 23 4 10 22 2 2 21 8 11 20 4 11 19 4 9 18 7 6 16 7 2 15 8 3 14 8 2 13 4 3 12 3 8 11 1 7 10 8 15 7 1 8 6 2 5 5 2 6 3 2 4 2 2 13 1 5 7 128 98 198 2 10 194 2 15 192 7 14 190 3 6 186 10 7 185 3 12 184 2 4 183 8 15 180 2 2 179 0 5 178 5 5 176 7 11 174 2 9 173 3 1 172 4 14 170 2 9 169 8 6 168 6 15 164 9 6 163 1 2 162 9 10 161 6 12 160 2 10 158 7 8 154 6 3 153 3 1 152 5 2 151 2 2 150 7 1 147 3 9 145 1 10 144 0 7 142 1 7 141 0 14 139 9 12 136 5 4 135 4 5 134 10 13 133 8 4 132 10 13 130 7 14 129 6 10 128 0 8 124 1 8 123 1 13 121 9 11 120 2 10 119 10 2 118 3 11 117 10 1 114 6 15 110 0 15 109 9 3 108 4 15 102 3 9 101 3 12 99 9 1 98 8 3 95 9 2 94 8 5 93 1 15 91 10 8 90 0 11 89 0 13 87 2 10 86 2 15 84 5 1 83 2 10 82 9 8 79 4 15 78 4 1 77 4 6 74 10 1 73 2 6 72 0 12 69 0 6 68 1 4 67 9 2 64 0 14 62 2 13 57 8 5 55 7 6 53 9 5 52 6 11 50 9 15 49 4 15 46 3 4 43 2 4 42 1 2 39 7 11 36 9 11 35 4 14 32 2 12 31 1 15 30 0 7 29 2 1 19 6 4 2 9 5 129 123 200 7 6 198 7 3 195 0 8 192 4 6 190 2 3 187 10 2 186 6 2 185 8 12 184 8 15 183 0 9 182 8 11 180 7 11 178 5 13 176 10 11 174 8 12 173 8 1 172 8 11 171 8 12 170 1 13 166 1 8 163 10 13 162 0 6 160 4 3 155 7 11 154 0 11 153 8 1 152 2 2 150 7 15 147 3 8 146 9 10 145 4 5 144 5 4 142 0 4 141 6 14 139 10 14 138 7 13 136 5 3 134 3 10 133 4 6 132 8 11 131 10 4 129 2 5 128 2 15 126 1 13 123 1 4 121 3 5 120 4 5 119 9 2 118 2 8 117 1 11 113 8 11 112 8 6 109 3 10 108 2 5 106 1 5 105 1 4 99 10 4 97 0 10 95 5 8 94 9 1 93 6 4 92 3 14 91 3 14 89 9 2 87 2 6 86 4 15 84 2 15 83 2 2 82 3 5 81 7 1 79 7 15 78 6 10 75 7 4 74 5 13 73 0 13 72 8 14 71 10 12 70 7 15 68 10 8 67 1 3 66 2 4 65 8 3 64 5 7 63 10 1 58 9 7 57 1 13 55 2 14 54 4 11 52 4 9 50 6 15 49 8 11 45 7 2 44 1 12 43 9 12 41 3 2 38 7 10 32 9 12 31 1 4 30 5 3 29 4 6 28 3 11 27 10 15 26 3 10 25 10 8 24 2 6 22 4 9 21 7 13 20 0 12 19 1 7 18 4 6 16 9 12 15 6 1 14 10 5 13 5 11 12 5 11 11 0 9 10 2 5 8 7 6 6 4 4 5 6 11 4 3 10 2 5 8 1 6 8 130 85 199 3 12 198 9 11 192 4 9 190 9 12 186 3 9 185 5 4 184 2 10 183 3 8 178 4 3 177 4 7 176 3 1 173 7 15 172 7 5 165 3 14 164 3 3 163 9 10 161 7 3 159 3 11 158 3 1 152 7 11 151 2 1 150 5 5 147 10 13 146 9 2 145 3 5 144 5 11 140 5 1 139 2 7 133 5 12 132 0 2 129 2 8 128 6 7 124 3 4 122 6 10 121 9 3 120 7 5 117 8 9 116 4 2 114 3 5 109 4 6 108 4 1 99 7 13 98 1 11 95 5 6 94 4 9 93 5 15 91 7 8 88 5 2 87 10 15 86 1 6 84 7 9 83 4 12 82 8 11 77 3 9 72 2 11 68 2 9 67 9 11 64 2 5 62 3 15 55 4 14 54 3 13 53 6 12 52 7 15 50 0 1 49 2 3 47 2 11 46 4 9 43 0 12 40 5 9 39 1 9 36 1 9 32 2 10 31 7 14 30 4 8 29 8 9 28 3 11 19 5 5 16 3 11 14 3 14 13 10 6 12 10 7 11 9 9 10 3 5 6 0 8 2 2 15 131 101 200 6 14 199 2 15 198 1 3 194 7 8 192 5 3 187 2 1 185 4 5 183 3 13 180 7 10 178 3 3 176 10 7 174 2 11 173 0 8 172 10 11 171 7 6 169 8 1 168 0 15 165 6 3 163 9 14 161 10 3 160 0 13 155 0 12 154 4 7 153 7 3 152 1 4 150 10 12 147 9 5 144 4 11 142 10 3 141 3 8 140 5 3 138 4 12 135 7 11 134 2 7 133 3 5 131 9 15 130 8 6 129 7 11 128 4 10 127 4 12 124 2 12 123 9 10 120 1 4 119 10 11 118 5 12 113 7 7 110 6 5 109 5 12 106 4 6 102 2 1 101 2 2 99 4 15 98 2 15 95 0 7 92 10 12 91 8 9 89 9 12 87 2 12 86 1 10 84 10 15 82 3 7 79 5 6 78 7 9 77 4 1 76 2 4 74 7 6 73 4 9 72 7 1 71 4 13 69 3 5 68 9 2 67 8 7 66 8 6 64 10 14 62 10 7 59 8 5 55 5 6 52 2 5 49 0 10 46 1 15 43 2 6 42 4 4 40 1 7 39 1 13 36 8 9 34 8 12 32 9 14 30 3 13 29 5 12 28 6 3 27 1 9 19 3 1 16 9 8 15 0 5 14 4 2 13 5 7 12 0 14 11 0 2 10 10 2 6 4 11 2 3 11 132 68 198 0 1 195 5 10 194 10 2 187 0 2 186 4 14 182 6 3 180 1 13 176 8 13 174 6 9 172 7 15 171 10 1 170 8 8 163 7 14 162 7 9 155 10 15 154 7 3 150 4 15 147 3 4 144 3 14 142 3 11 138 0 8 136 4 7 131 7 15 128 9 6 126 6 12 120 6 13 119 3 9 113 4 15 112 7 10 109 10 7 108 8 11 106 5 11 105 0 3 99 8 10 97 8 1 92 0 3 91 5 6 87 0 11 86 9 15 84 3 11 82 0 7 81 2 1 79 10 6 77 8 12 75 4 6 74 8 2 72 1 12 71 9 5 70 0 9 68 1 12 67 8 4 66 8 2 65 3 4 64 3 3 62 4 3 58 4 2 57 1 9 52 5 10 50 4 7 45 4 2 44 3 9 43 4 13 38 10 8 30 2 5 29 7 11 19 4 9 13 4 6 10 0 11 133 101 199 10 2 198 3 8 194 2 12 192 6 1 190 6 5 186 2 13 185 8 7 184 6 1 183 10 9 180 9 9 178 2 7 176 1 14 174 5 6 173 1 2 172 4 11 169 5 10 165 0 3 164 10 1 163 9 13 161 3 10 159 3 13 158 4 12 152 10 1 151 10 13 147 5 10 146 8 15 145 1 7 142 0 2 140 4 9 139 9 4 134 8 7 133 2 14 132 3 7 130 9 10 129 8 9 128 2 2 124 5 6 122 9 13 121 2 13 117 5 15 114 4 15 109 7 5 108 1 9 102 7 4 99 1 12 98 2 9 95 8 2 94 3 1 93 9 14 91 4 6 90 6 13 88 2 2 87 1 8 84 5 12 83 4 6 82 8 5 77 1 5 72 9 11 68 6 7 67 8 4 64 8 1 62 5 1 61 6 15 55 5 2 54 1 8 53 2 12 52 8 11 49 1 12 48 4 1 47 8 4 46 8 11 43 5 6 40 4 10 39 0 5 36 5 12 32 8 8 31 0 12 29 1 4 28 10 10 27 6 5 26 9 8 25 5 11 24 6 14 22 7 3 21 9 7 20 10 7 19 9 4 18 3 14 16 4 4 15 1 3 14 4 9 13 4 11 12 6 14 11 0 4 10 6 5 8 0 11 6 10 14 5 6 1 4 3 3 2 3 7 1 4 14 134 99 200 0 10 198 7 4 197 3 10 194 4 13 192 2 6 187 0 13 185 2 9 183 6 3 182 4 7 180 10 6 178 1 10 175 6 8 174 9 8 173 2 10 172 7 9 171 6 6 169 8 3 168 4 2 163 4 1 161 6 5 160 0 7 155 0 14 154 6 2 153 0 15 152 3 8 150 6 4 147 8 4 144 3 5 142 4 5 141 9 1 136 5 7 135 7 5 134 8 7 133 0 11 131 3 12 130 2 13 129 6 7 128 6 15 126 6 7 124 2 14 123 4 6 120 9 4 119 10 8 118 8 9 117 8 13 113 6 2 110 6 10 109 1 9 106 9 12 102 5 2 101 9 7 99 0 10 97 7 13 95 6 4 94 5 11 92 10 3 91 6 15 89 9 5 87 5 9 86 0 5 84 5 11 82 4 9 80 0 4 79 0 2 78 1 2 75 7 8 74 3 12 73 9 7 70 3 3 69 4 3 68 10 8 67 0 6 66 10 8 64 4 14 58 6 13 55 6 4 52 6 15 49 2 7 45 8 4 43 6 4 42 2 11 38 1 14 36 1 2 34 8 4 32 8 15 30 9 3 29 3 10 28 5 5 27 1 4 19 7 3 16 10 13 15 8 5 14 4 1 13 2 3 12 9 12 11 0 15 10 3 13 6 8 1 2 4 2 135 118 198 3 1 195 2 4 194 7 11 192 1 10 190 10 14 187 8 4 186 8 7 183 3 13 182 1 9 180 1 5 177 7 9 176 9 6 174 9 12 173 0 10 172 10 10 171 3 6 170 0 14 165 10 11 163 4 10 162 9 6 158 9 7 155 9 12 154 9 5 152 10 13 150 4 13 148 3 9 147 8 8 145 6 8 144 1 7 142 2 11 141 10 4 139 2 5 137 10 1 136 10 7 133 4 6 131 1 13 130 1 14 129 5 13 128 10 7 126 5 10 125 5 1 121 8 13 120 5 6 119 8 4 116 9 10 113 4 10 112 0 5 111 8 8 109 10 8 108 9 14 106 2 14 105 4 5 99 5 13 97 3 15 96 8 13 93 8 6 92 8 8 91 7 13 89 8 12 87 1 13 86 5 4 85 8 12 82 10 2 81 9 7 79 6 8 78 10 10 77 1 13 75 5 8 74 9 7 72 1 5 71 7 14 70 8 13 69 5 7 68 10 5 67 2 3 66 1 10 65 4 12 64 3 3 62 4 10 58 2 13 57 2 3 53 2 3 52 4 4 50 8 11 49 1 8 47 1 7 45 5 15 44 1 8 43 3 3 40 5 5 38 7 1 37 4 2 32 4 14 30 5 11 29 6 5 28 10 9 27 6 4 25 1 14 23 5 12 22 10 13 21 3 15 20 6 13 19 3 14 18 2 6 16 8 7 15 5 12 14 7 6 13 3 11 12 5 5 11 2 10 10 7 13 9 3 3 7 8 1 6 10 13 5 5 6 3 10 14 2 6 15 1 9 15 136 111 199 4 14 198 9 13 193 2 13 192 1 12 190 0 14 186 1 4 185 5 3 184 6 15 183 10 9 180 4 4 179 4 9 178 9 11 176 8 6 174 9 10 173 3 10 172 2 11 170 6 5 169 1 4 168 9 15 165 5 14 164 8 9 162 3 2 161 2 5 160 7 14 158 5 9 157 6 5 155 0 11 154 6 13 153 0 10 152 6 6 151 2 11 150 2 3 147 10 15 146 6 14 145 2 3 144 9 11 142 0 9 141 2 1 140 10 12 139 5 4 136 9 6 134 1 3 133 8 10 132 10 4 131 10 13 129 8 10 128 4 5 126 8 2 124 9 1 123 6 15 122 2 9 121 4 11 120 0 11 119 9 8 118 7 1 117 4 5 114 8 12 109 9 15 108 6 10 106 3 12 105 9 7 102 2 2 101 6 5 99 1 4 98 4 8 97 5 14 95 6 5 94 8 14 93 1 12 91 8 1 89 0 12 87 5 7 86 10 14 84 3 9 83 1 11 82 1 1 79 8 10 78 4 11 77 6 14 76 8 6 74 4 5 73 10 9 72 0 14 68 0 4 67 1 13 65 9 3 64 3 10 62 9 13 61 5 13 57 0 1 55 7 3 54 5 4 52 4 5 50 8 4 49 6 14 47 10 2 46 4 14 43 1 1 42 0 11 40 3 14 39 1 11 36 0 8 35 3 2 32 4 4 31 0 10 29 7 10 28 4 10 19 0 14 13 4 7 11 10 12 10 4 5 137 99 200 6 14 199 7 4 194 1 12 192 2 11 185 4 5 184 8 5 183 3 11 180 9 1 178 6 3 174 0 15 173 7 12 169 5 15 168 6 1 165 1 6 163 9 15 161 3 4 160 3 8 159 9 7 154 5 7 153 0 2 152 5 1 150 1 11 147 4 7 146 10 1 144 6 12 142 0 14 141 4 5 140 8 7 135 5 5 134 5 4 133 9 4 131 9 3 130 1 4 129 8 1 124 10 8 123 8 7 122 9 12 120 7 5 119 3 13 117 2 2 110 4 7 109 8 12 108 7 15 102 6 2 101 9 12 99 4 14 95 2 13 94 7 9 91 4 12 89 5 10 88 10 14 86 3 10 84 10 5 83 0 15 79 9 3 78 0 5 77 6 7 74 3 4 73 3 14 72 5 9 69 5 1 68 1 3 64 7 13 62 10 7 55 9 5 54 4 3 52 9 10 49 1 8 48 6 4 43 4 1 42 6 15 40 7 6 36 0 14 34 9 14 32 10 11 29 5 15 28 4 2 27 3 8 26 1 8 25 6 9 24 5 3 22 5 3 21 7 9 20 4 12 19 3 4 18 5 14 16 7 9 15 0 15 14 8 2 13 7 6 12 5 12 11 8 15 10 0 1 8 4 7 6 4 3 5 2 3 3 4 11 2 6 9 1 0 4 138 126 198 6 3 195 6 8 194 4 10 192 4 7 190 3 13 187 4 1 186 0 2 185 3 4 184 4 2 183 8 14 182 8 10 180 1 2 176 0 2 175 1 2 174 9 1 172 7 12 171 9 3 170 10 13 169 6 11 164 9 7 163 9 8 162 6 8 161 2 11 158 4 2 156 8 12 155 4 2 154 5 12 152 10 11 151 10 9 150 9 5 147 6 7 145 7 13 144 2 3 142 1 10 139 7 10 137 1 1 136 2 9 133 1 5 132 5 10 131 7 9 128 7 13 126 6 6 125 3 9 124 9 9 121 0 12 120 10 6 119 9 13 117 6 9 115 5 7 114 3 13 113 1 3 112 0 4 109 1 12 108 8 15 107 7 2 106 1 3 105 0 4 99 7 2 98 3 10 97 3 13 95 7 2 94 7 5 93 10 3 92 8 3 91 2 11 87 6 2 86 7 14 84 2 6 82 9 3 81 9 14 79 9 6 77 6 13 76 5 3 75 7 12 74 7 11 72 3 6 71 4 6 70 3 13 68 5 4 67 5 10 66 1 3 65 3 10 64 5 1 62 10 12 61 10 15 58 6 10 57 5 15 55 4 9 53 7 2 52 5 13 50 4 6 49 2 2 46 2 15 45 4 11 44 0 15 43 3 10 39 8 9 38 5 13 36 6 9 32 1 12 31 10 13 30 1 8 29 4 8 28 5 14 27 6 15 26 9 11 25 0 7 23 3 6 22 1 10 21 1 12 20 7 11 19 6 5 18 7 1 16 6 10 15 2 13 14 8 12 13 8 6 12 5 14 11 0 6 10 9 15 7 7 4 6 6 4 5 7 5 3 2 7 2 3 3 1 3 12 139 112 199 9 13 198 1 1 197 3 3 194 9 15 192 10 9 190 5 9 187 10 8 185 3 14 184 6 11 183 8 12 182 4 15 180 3 13 178 0 15 177 4 8 176 1 12 175 2 4 174 7 7 173 2 1 172 1 12 171 4 5 169 5 3 165 3 12 164 3 13 163 3 2 161 8 10 158 3 1 157 10 15 155 9 8 154 1 3 152 7 14 151 5 2 150 6 8 147 8 11 146 10 10 145 5 1 144 7 12 142 3 6 140 7 15 139 9 7 136 9 1 135 2 9 133 5 15 132 7 9 131 6 9 130 1 12 129 10 11 128 3 2 126 8 15 124 2 13 122 8 5 121 8 13 120 1 6 119 0 12 117 5 10 114 5 14 113 3 9 108 8 4 106 6 2 102 2 9 99 4 6 98 7 11 97 1 5 95 1 6 94 8 1 93 10 1 92 1 7 91 2 13 87 1 14 86 3 8 84 4 10 83 6 9 82 7 7 79 2 14 77 8 15 76 0 11 75 4 2 74 9 12 72 5 8 70 7 3 69 1 11 68 0 2 67 6 3 66 2 12 64 0 9 62 6 12 61 9 15 58 2 7 54 1 8 52 0 1 49 7 9 47 2 6 46 9 10 45 9 1 43 1 15 40 1 13 39 0 4 38 10 2 36 7 12 32 9 11 31 8 10 30 10 1 29 7 14 28 9 2 19 6 15 16 8 5 15 3 15 13 6 5 12 3 12 11 10 4 10 4 9 6 4 1 2 6 13 140 117 200 4 15 199 9 14 196 4 1 194 4 3 193 8 10 192 5 7 191 4 2 186 3 5 185 0 4 184 1 14 183 2 5 182 2 14 180 7 1 178 8 7 177 9 9 175 0 9 174 1 3 173 10 5 172 4 8 171 4 2 170 2 6 169 5 4 168 7 3 166 9 8 165 5 12 163 2 6 162 8 12 161 5 11 160 7 11 158 1 10 155 6 10 154 9 6 153 3 3 152 6 8 150 10 14 147 8 2 146 8 1 145 10 9 144 1 7 142 5 13 141 7 12 140 7 11 136 4 1 135 10 15 134 5 15 133 9 14 131 8 12 130 7 15 129 0 14 128 0 10 126 2 13 124 10 7 123 9 15 122 10 12 120 0 11 119 4 14 118 7 11 117 5 2 112 5 6 110 3 14 109 8 12 108 3 12 106 2 7 102 10 13 101 0 4 99 9 8 97 5 9 95 4 7 94 6 7 91 2 10 90 2 6 89 3 8 87 2 4 86 6 11 84 2 13 83 2 4 82 7 15 80 3 2 79 4 11 78 3 15 77 3 12 75 1 12 74 4 5 73 6 11 72 8 13 70 3 8 69 1 6 68 6 3 67 8 11 66 3 8 64 10 13 63 0 11 62 8 4 58 6 12 57 6 13 55 6 15 54 0 8 53 8 6 52 0 12 51 6 6 50 2 14 49 2 9 47 10 13 45 9 12 43 6 7 42 9 4 41 7 15 40 0 3 38 7 6 36 1 9 34 5 15 32 10 3 30 3 10 29 4 11 28 0 7 19 10 15 10 0 15 141 114 198 9 2 195 3 4 192 8 7 190 7 4 187 8 8 186 9 4 185 10 3 183 10 13 182 0 7 180 2 7 176 6 5 174 8 9 173 10 2 172 2 12 171 9 12 170 9 11 169 7 10 163 5 13 162 7 3 161 4 2 156 0 8 155 4 9 154 2 3 153 9 8 152 6 4 151 6 5 150 1 1 147 5 4 144 9 6 142 5 9 139 0 14 137 8 15 136 2 5 134 9 4 132 9 5 131 0 7 129 3 8 128 3 14 126 0 9 125 4 9 120 10 6 119 4 11 118 8 10 114 6 15 113 3 7 112 8 8 109 10 15 107 4 11 106 6 9 105 3 12 99 3 1 98 4 15 97 2 12 95 3 10 93 10 15 92 0 6 91 5 4 87 5 7 86 9 10 84 10 8 82 9 13 81 2 9 79 3 4 78 9 12 76 5 14 75 10 9 74 1 3 73 7 6 72 9 5 71 2 1 70 10 11 68 2 8 67 8 10 66 10 1 65 3 11 64 5 1 60 3 13 58 3 14 57 5 9 55 6 10 52 9 6 50 5 4 49 10 9 46 3 15 45 2 2 44 9 9 43 9 6 39 7 15 38 4 2 30 6 4 29 2 5 28 10 15 27 1 13 26 5 4 25 0 11 24 1 10 22 8 11 21 8 10 20 2 10 19 3 3 18 0 11 16 8 9 15 2 3 14 2 1 13 0 3 12 9 12 11 7 6 10 4 10 8 3 6 6 8 14 5 1 5 3 10 3 2 1 14 1 6 4 142 115 199 9 2 198 6 10 196 0 14 194 10 6 192 2 8 191 1 11 190 1 10 186 2 8 184 6 9 183 3 4 182 2 4 180 8 8 177 0 14 176 4 5 175 1 13 174 9 14 173 9 13 172 0 13 171 10 5 170 9 3 165 4 3 164 3 6 163 1 4 162 5 3 161 6 7 158 8 14 157 3 11 155 6 6 154 8 12 152 9 9 151 0 3 150 9 1 147 7 8 146 0 15 145 9 15 144 10 8 142 8 3 140 2 13 139 7 4 136 10 13 133 10 11 132 4 8 131 5 4 129 1 6 128 3 14 126 10 4 124 1 4 122 5 1 121 10 13 120 7 4 119 1 10 117 10 1 114 9 8 112 6 12 109 1 2 108 7 15 106 8 5 99 5 11 98 4 8 97 1 8 94 9 9 93 9 4 91 4 4 87 2 15 86 0 11 83 5 2 82 9 3 80 10 4 79 4 14 78 4 1 77 0 6 76 5 8 75 10 11 73 6 14 72 3 4 71 1 15 70 0 11 68 6 3 67 8 5 66 4 13 64 8 5 62 6 11 61 6 1 58 0 8 57 6 15 55 9 5 54 10 13 53 9 7 52 9 5 51 5 10 50 2 8 49 5 7 47 7 3 46 4 4 45 1 7 43 7 12 40 0 12 39 10 11 38 4 13 36 4 4 32 10 4 31 4 6 30 7 6 29 5 1 28 8 10 25 5 13 19 6 9 16 8 15 14 1 11 13 8 15 12 1 13 11 9 7 10 1 10 6 1 9 2 6 4 143 109 200 8 14 198 9 8 194 3 13 192 10 8 190 8 5 186 4 14 185 9 9 184 6 2 183 4 2 180 1 3 178 10 9 176 2 2 174 8 11 173 7 5 172 7 7 170 10 7 169 9 13 167 10 15 163 10 13 162 3 13 161 3 15 160 3 6 154 9 6 153 2 15 152 5 12 150 0 14 148 7 7 147 4 8 144 3 5 142 4 10 141 0 11 139 4 10 136 8 14 135 0 5 134 8 3 133 3 12 132 2 5 131 8 12 130 6 14 129 6 12 128 2 7 124 1 14 123 7 2 120 6 5 119 10 9 117 3 7 110 7 8 109 4 2 104 2 15 102 6 6 101 9 2 99 9 4 96 7 8 95 2 11 94 2 7 93 7 9 91 10 13 90 3 6 89 3 10 87 6 9 86 7 14 85 3 1 84 1 8 82 6 12 79 10 13 78 7 2 74 4 5 73 6 5 71 10 11 69 3 8 68 1 14 67 0 10 64 5 9 57 6 13 55 8 8 52 6 5 50 0 12 49 0 13 43 4 13 42 0 8 36 2 7 34 0 6 32 0 2 30 4 9 29 7 7 28 2 1 27 3 12 26 10 12 25 1 5 23 8 8 22 3 2 21 6 2 20 2 12 19 2 2 18 2 13 16 9 1 15 5 12 14 10 6 13 5 3 12 3 11 11 1 11 10 2 2 9 2 14 7 9 1 6 8 3 5 10 13 3 8 14 2 2 14 1 8 13 144 110 199 5 1 198 7 12 197 5 13 195 1 5 192 3 12 191 5 6 187 9 10 186 10 9 185 5 6 183 6 5 182 5 10 180 1 8 179 7 2 177 6 14 175 2 4 174 2 15 173 1 2 172 0 14 171 8 10 170 9 5 169 9 6 165 1 15 163 8 15 162 7 8 160 6 5 158 7 12 155 4 9 154 3 6 153 6 15 152 9 3 150 4 13 147 1 4 144 6 1 142 6 4 141 7 8 140 3 15 137 5 9 136 8 9 134 10 11 133 6 14 131 7 1 130 1 11 129 9 10 128 6 12 126 10 3 125 0 4 123 0 2 122 0 12 120 10 4 119 1 1 118 5 15 117 10 15 113 0 2 112 6 12 109 2 7 108 3 1 106 1 5 105 4 9 101 0 2 99 5 9 97 1 5 95 0 12 94 5 15 92 9 8 91 5 6 89 0 3 87 7 15 86 4 4 84 1 8 82 8 9 81 0 3 79 1 4 78 6 3 77 4 3 75 9 7 74 4 4 73 8 8 72 10 12 71 9 14 70 2 4 68 8 2 67 4 13 66 5 7 65 7 7 64 10 12 62 6 5 58 7 5 57 8 6 55 7 14 53 2 14 52 4 13 50 7 7 49 10 3 47 4 9 45 6 2 44 3 8 42 3 7 40 3 3 38 2 1 37 9 11 35 10 12 32 9 14 30 3 5 29 0 8 28 2 2 19 1 12 13 7 15 12 5 13 11 7 2 10 10 11 145 93 199 5 11 198 0 6 192 0 10 190 2 14 185 4 14 184 2 10 183 7 5 180 7 4 178 10 2 177 3 10 176 3 14 175 3 3 173 1 1 172 0 5 165 4 11 163 6 3 158 10 10 157 10 8 152 5 2 151 1 12 150 1 2 147 8 4 146 4 10 145 9 10 142 0 9 140 2 3 139 7 11 133 4 3 132 2 14 131 3 14 129 1 9 128 8 9 126 9 11 122 4 13 121 4 9 117 9 8 114 4 5 108 7 8 99 4 13 98 8 13 97 0 4 95 5 10 94 1 10 93 7 9 87 7 2 86 1 14 84 7 6 83 8 2 82 6 2 77 5 2 76 8 11 72 5 9 71 8 14 68 4 7 67 4 7 64 4 15 62 10 6 61 10 12 54 7 10 52 10 9 49 2 2 47 8 9 46 4 9 43 3 14 40 6 14 39 6 1 38 0 9 32 5 15 31 10 1 29 8 4 28 7 1 27 0 11 26 2 3 25 4 7 23 5 7 22 7 15 21 1 4 20 1 13 19 6 15 18 8 11 16 6 3 15 3 8 14 10 3 13 3 8 12 10 5 11 0 12 10 0 15 8 10 11 6 8 11 5 3 3 3 10 12 2 4 6 1 4 5 146 109 200 5 10 199 4 12 198 3 5 194 8 1 192 3 14 190 3 2 185 8 8 184 0 15 183 3 6 180 8 4 178 5 8 174 7 4 173 5 4 172 8 14 169 9 4 167 8 15 165 10 6 163 10 11 161 7 14 160 1 10 159 7 9 154 10 9 153 1 10 152 5 3 150 5 10 147 0 2 146 2 8 144 1 5 142 0 3 141 5 11 140 8 1 134 2 10 133 7 9 132 8 3 130 7 9 129 9 1 128 6 15 124 0 8 123 1 1 122 8 11 120 10 4 119 5 15 118 5 7 117 2 15 109 8 13 108 3 1 102 1 7 100 1 5 99 6 11 95 0 6 94 5 15 91 0 2 90 5 10 89 5 12 88 2 9 87 6 6 84 3 8 83 5 3 82 9 5 79 1 10 78 0 10 77 4 2 74 10 2 73 8 1 72 1 9 71 7 5 69 1 13 68 9 10 67 5 8 64 9 15 62 1 15 55 9 8 54 10 11 52 7 15 49 3 12 47 9 5 46 3 14 43 6 13 41 5 2 40 9 2 39 4 7 36 8 7 34 5 6 32 6 4 30 9 11 29 4 13 28 2 3 27 10 7 26 7 14 25 10 7 23 5 1 21 0 5 19 6 13 18 4 14 17 5 3 16 9 7 15 4 5 14 2 11 13 6 13 12 3 2 11 10 6 10 7 15 9 9 13 7 9 1 6 7 13 4 10 1 3 1 11 2 4 8 1 4 4 147 95 200 7 10 198 10 4 197 10 12 195 10 13 192 1 12 187 6 14 186 4 5 185 10 13 184 2 11 183 8 11 182 10 5 180 1 4 178 6 3 175 4 6 174 1 2 173 4 3 171 8 8 170 2 5 169 9 14 166 8 12 163 0 3 162 1 10 160 0 4 155 9 6 154 0 9 152 4 6 150 9 3 147 4 15 144 10 8 142 6 2 141 8 6 137 1 1 136 3 1 133 0 13 131 2 15 129 10 1 126 6 2 125 7 8 123 4 12 120 0 5 119 2 7 117 1 3 113 6 2 112 10 15 109 4 8 106 2 14 105 0 15 99 6 1 97 0 15 95 4 11 94 10 2 92 3 7 91 8 4 89 9 11 86 0 12 84 1 5 83 8 2 82 1 10 81 7 7 79 2 1 78 10 10 75 5 3 74 2 10 73 8 10 71 4 6 70 9 14 68 5 13 66 10 11 65 4 4 64 7 13 63 1 10 58 1 12 57 4 2 55 1 2 52 1 14 50 0 3 49 5 3 45 8 4 44 10 9 43 8 14 41 9 10 38 9 11 37 1 7 32 7 12 30 5 12 29 1 9 28 2 9 19 5 13 16 7 10 13 5 14 12 3 11 11 3 5 10 6 12 6 6 7 2 1 12 148 84 199 6 2 198 7 13 192 7 8 190 4 2 186 5 1 184 1 8 183 4 4 182 9 3 180 5 13 177 7 6 176 3 5 172 3 14 171 7 15 165 6 7 164 7 14 163 9 9 158 7 13 157 4 5 155 3 5 154 0 4 152 5 4 151 1 2 150 6 11 147 8 11 146 6 5 145 4 7 144 5 11 142 3 11 140 0 14 139 5 9 136 2 12 133 0 10 132 7 7 131 2 7 128 1 2 126 7 6 122 1 9 121 7 5 120 0 8 117 6 4 116 4 12 114 10 12 108 10 11 107 0 15 106 3 10 99 5 9 98 4 14 97 3 3 94 10 14 93 2 6 91 6 3 87 4 11 86 0 4 83 8 8 82 4 9 79 8 15 77 1 14 76 9 8 75 8 15 72 1 9 71 3 14 67 2 11 66 9 5 64 5 2 62 5 13 61 2 15 58 9 14 54 3 14 53 1 3 52 0 4 50 4 14 47 4 1 46 4 12 43 6 14 40 4 4 39 9 7 38 4 11 32 4 10 31 8 7 30 8 8 29 9 14 16 2 9 13 4 9 2 8 4 149 136 200 1 14 199 1 8 198 2 1 194 4 4 192 9 15 188 10 3 186 0 4 185 8 6 184 4 13 183 9 7 180 5 13 178 7 10 176 6 9 174 5 8 173 5 15 172 9 1 171 2 13 170 4 10 169 9 13 167 5 4 166 8 5 165 9 9 163 7 6 162 8 5 161 8 10 160 0 3 158 0 5 155 7 12 154 5 1 153 3 5 152 4 4 150 2 14 147 3 4 144 9 5 142 3 14 141 9 15 140 6 5 138 4 15 136 9 6 134 8 9 133 8 9 131 0 10 130 5 8 129 9 12 128 10 6 127 0 6 125 10 2 124 1 6 123 6 11 122 7 9 120 2 9 119 7 12 117 8 8 113 10 15 112 0 5 109 2 12 108 8 1 106 6 5 105 7 8 102 1 9 100 8 8 99 6 2 98 6 3 97 0 6 96 1 9 95 1 14 94 10 7 92 3 5 91 3 6 90 0 15 89 3 4 87 4 14 86 7 1 85 2 10 84 7 14 83 0 3 82 3 3 79 1 1 78 5 12 77 8 12 76 4 8 74 7 3 73 3 10 72 4 6 71 4 11 70 0 12 69 0 10 68 8 1 67 6 3 66 3 8 64 1 1 63 6 6 62 1 4 59 3 9 57 1 3 55 1 3 52 3 9 50 10 9 49 1 9 46 2 3 44 2 14 43 8 15 41 6 12 40 3 7 39 0 15 37 4 11 36 6 3 34 4 9 32 7 12 30 7 7 29 2 5 28 7 15 27 9 11 26 9 11 25 7 1 23 4 12 22 2 11 21 2 11 20 4 10 19 8 12 18 8 15 16 2 7 15 6 4 14 5 8 13 1 12 12 10 2 11 4 13 10 10 13 9 5 1 8 3 10 7 7 8 6 5 8 5 3 14 3 0 3 2 5 12 1 5 13 150 111 197 6 14 195 5 3 192 0 3 187 3 14 186 10 1 185 1 10 184 1 3 182 10 10 180 6 5 179 4 5 178 8 3 175 1 3 174 5 13 173 5 15 172 3 4 171 0 5 170 4 1 169 2 12 163 9 6 162 8 11 161 7 12 160 6 8 155 5 13 154 2 3 153 4 4 152 9 14 150 8 13 147 4 6 144 0 15 142 10 11 141 7 7 137 2 15 136 5 15 134 5 1 133 3 9 131 6 2 130 9 13 129 8 6 126 7 7 125 2 6 124 9 6 123 6 9 120 9 9 119 3 9 118 0 2 117 4 6 113 0 2 112 3 9 109 9 8 108 2 9 106 4 12 105 3 4 102 0 2 101 4 11 99 6 2 97 5 14 95 2 3 94 0 11 92 1 3 91 8 11 89 10 8 86 2 7 84 4 7 83 0 13 82 7 10 81 1 11 79 4 14 78 5 9 77 2 7 75 0 11 74 6 15 73 10 1 72 7 11 71 2 8 70 4 7 68 10 3 67 4 13 66 6 11 65 0 14 64 7 7 62 3 2 58 6 3 57 3 2 55 10 6 52 1 14 50 4 8 49 5 14 45 0 7 44 1 9 43 1 1 42 7 12 40 4 7 38 8 13 37 9 10 36 3 15 35 0 14 32 4 10 30 3 6 29 3 12 28 5 4 19 7 2 16 8 4 15 0 1 14 1 12 13 4 5 12 9 9 11 5 1 10 4 11 6 9 9 2 4 1 1 4 3 EOF
[ "noreply@github.com" ]
noreply@github.com
152e9814c517601e3ffbf9a43196586be619b9e1
6140426c8e80fd62ac8f307776d8df7c1518605e
/src/DPMatcher.hpp
f65ec25d25981f18e448b3f4190c8777aa63c182
[ "MIT" ]
permissive
djhaskin987/FireflyAssembler
6a96f9a16f1495916c19aea1f3495ed88b996171
1baa2bc76a27083a1544a889e0f9525d6c56939b
refs/heads/master
2020-12-24T17:17:20.620501
2013-12-10T22:22:57
2013-12-10T22:22:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,127
hpp
#ifndef __FireflyAssemblerDPMatcher__ #define __FireflyAssemblerDPMatcher__ #include <vector> #include <memory> #include "Matcher.hpp" namespace FireflyAssembler { class DPMatcher : Matcher { private: int getScore(const std::vector<char> & a, const std::vector<char> & b) const; double getMinEntryScore(int entry, int size, double minScore) const; double scoreShortcut(const std::vector<char> & a, const std::vector<char> & b) const; public: const static int INSERT_SCORE; const static int DELETE_SCORE; const static int SUBST_SCORE; const static int MATCH_SCORE; virtual int overlapSize(const std::vector<char> & a, const std::vector<char> & b) const; virtual int containSize(const std::vector<char> & a, const std::vector<char> & b) const; virtual ~DPMatcher(); }; typedef std::shared_ptr<DPMatcher> DPMatcherPointer; typedef std::shared_ptr<const DPMatcher> DPMatcherConstPtr; } #endif
[ "djhaskin987@gmail.com" ]
djhaskin987@gmail.com
1155b95f450be9d344aff15263eb5a039a5b03af
8e87cf744303f8b9058c35a13118cee7ceac5fc1
/hw08/test_priority_queue.cpp
5ee0a976c7be7f9bef98dcd5bd3125f544bce8dd
[]
no_license
rasmuskozak/starterCode-302
b75bf2ce0375fc3dcac562ebd7c2b0e276de1d77
71df7745a0ebf2c6bc991ccaf16b6cf3c7739698
refs/heads/main
2023-08-07T02:32:15.522591
2021-09-22T07:03:46
2021-09-22T07:03:46
409,099,075
0
0
null
2021-09-22T07:05:32
2021-09-22T07:05:31
null
UTF-8
C++
false
false
272
cpp
#include "dynamic_array_list.h" #include "sorted_list.h" #include "priority_queue.h" int main() { typedef SortedList<int, DynamicArrayList<int> > SortedListType; typedef PriorityQueue<int, SortedListType> PriorityQueueType; PriorityQueueType pq; return 0; }
[ "77019344+azime-dev@users.noreply.github.com" ]
77019344+azime-dev@users.noreply.github.com
875df55ab8996c9f29e07b1f14ac782ea7ebb610
b3e525a3c48800303019adac8f9079109c88004e
/nic/athena/test/api/flow_session_info/utils.cc
14dd1f70bc920cc2d697fc023c1e1abc713014d7
[]
no_license
PsymonLi/sw
d272aee23bf66ebb1143785d6cb5e6fa3927f784
3890a88283a4a4b4f7488f0f79698445c814ee81
refs/heads/master
2022-12-16T21:04:26.379534
2020-08-27T07:57:22
2020-08-28T01:15:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,449
cc
//------------------------------------------------------------------------------ // {C} Copyright 2019 Pensando Systems Inc. All rights reserved //------------------------------------------------------------------------------ #include "nic/sdk/include/sdk/eth.hpp" #include "nic/sdk/include/sdk/if.hpp" #include "nic/athena/api/include/pds_flow_session_info.h" #include "nic/athena/test/api/flow_session_info/utils.hpp" #define UPDATE_DELTA 20 // Data templates uint16_t epoch_vnic = 20; uint16_t epoch_mapping = 30; uint8_t host_mac[ETH_ADDR_LEN] = { 0x22, 0x33, 0x44, 0x11, 0x00, 0x0 }; uint8_t vnic_stats_mask[PDS_FLOW_STATS_MASK_LEN] = { 0, 0x0F, 0x2F, 0xFF }; void fill_key (pds_flow_session_key_t *key, uint32_t index, uint8_t direction) { memset(key, 0, sizeof(pds_flow_session_key_t)); key->direction = direction; key->session_info_id = index; return; } void fill_data (pds_flow_session_data_t *data, uint32_t index, uint8_t direction, bool update) { pds_flow_session_flow_data_t *h2s_info; pds_flow_session_flow_data_t *s2h_info; uint32_t info_index = 0; if (!update) { info_index = index; data->skip_flow_log = index % 2; memcpy(data->host_mac, host_mac, ETH_ADDR_LEN); } else { info_index = index + 300; } data->conntrack_id = index; if (direction & HOST_TO_SWITCH) { h2s_info = &data->host_to_switch_flow_info; h2s_info->epoch_vnic = epoch_vnic + info_index; h2s_info->epoch_vnic_id = info_index; h2s_info->epoch_mapping = epoch_mapping + info_index; h2s_info->epoch_mapping_id = info_index; h2s_info->policer_bw1_id = info_index; h2s_info->policer_bw2_id = info_index; h2s_info->vnic_stats_id = info_index; memcpy(h2s_info->vnic_stats_mask, vnic_stats_mask, PDS_FLOW_STATS_MASK_LEN); h2s_info->vnic_histogram_latency_id = info_index; h2s_info->vnic_histogram_packet_len_id = info_index; h2s_info->tcp_flags_bitmap = 0xCF; h2s_info->rewrite_id = info_index; h2s_info->allowed_flow_state_bitmask = 0x3FF; h2s_info->egress_action = EGRESS_ACTION_TX_TO_SWITCH; } if (direction & SWITCH_TO_HOST) { s2h_info = &data->switch_to_host_flow_info; s2h_info->epoch_vnic = epoch_vnic + info_index; s2h_info->epoch_vnic_id = info_index; s2h_info->epoch_mapping = epoch_mapping + info_index; s2h_info->epoch_mapping_id = info_index; s2h_info->policer_bw1_id = info_index; s2h_info->policer_bw2_id = info_index; s2h_info->vnic_stats_id = info_index; memcpy(s2h_info->vnic_stats_mask, vnic_stats_mask, PDS_FLOW_STATS_MASK_LEN); s2h_info->vnic_histogram_latency_id = info_index; s2h_info->vnic_histogram_packet_len_id = info_index; s2h_info->tcp_flags_bitmap = 0xFC; s2h_info->rewrite_id = info_index; s2h_info->allowed_flow_state_bitmask = 0x11; s2h_info->egress_action = EGRESS_ACTION_TX_TO_HOST; } return; } void fill_scale_data (pds_flow_session_data_t *data, uint32_t index) { pds_flow_session_flow_data_t *h2s_info; pds_flow_session_flow_data_t *s2h_info; uint32_t info_index = 0; uint8_t direction = (index % 2) + 1; info_index = index; data->conntrack_id = index; data->skip_flow_log = index % 2; memcpy(data->host_mac, host_mac, ETH_ADDR_LEN); if (direction & HOST_TO_SWITCH) { h2s_info = &data->host_to_switch_flow_info; h2s_info->epoch_vnic = epoch_vnic + info_index; h2s_info->epoch_vnic_id = info_index; h2s_info->epoch_mapping = epoch_mapping + info_index; h2s_info->epoch_mapping_id = info_index; h2s_info->policer_bw1_id = info_index; h2s_info->policer_bw2_id = info_index; h2s_info->vnic_stats_id = info_index; memcpy(h2s_info->vnic_stats_mask, vnic_stats_mask, PDS_FLOW_STATS_MASK_LEN); h2s_info->vnic_histogram_latency_id = info_index; h2s_info->vnic_histogram_packet_len_id = info_index; h2s_info->tcp_flags_bitmap = 0xCF; h2s_info->rewrite_id = info_index; h2s_info->allowed_flow_state_bitmask = 0x3FF; h2s_info->egress_action = EGRESS_ACTION_TX_TO_SWITCH; } if (direction & SWITCH_TO_HOST) { s2h_info = &data->switch_to_host_flow_info; s2h_info->epoch_vnic = epoch_vnic + info_index; s2h_info->epoch_vnic_id = info_index; s2h_info->epoch_mapping = epoch_mapping + info_index; s2h_info->epoch_mapping_id = info_index; s2h_info->policer_bw1_id = info_index; s2h_info->policer_bw2_id = info_index; s2h_info->vnic_stats_id = info_index; memcpy(s2h_info->vnic_stats_mask, vnic_stats_mask, PDS_FLOW_STATS_MASK_LEN); s2h_info->vnic_histogram_latency_id = info_index; s2h_info->vnic_histogram_packet_len_id = info_index; s2h_info->tcp_flags_bitmap = 0xFC; s2h_info->rewrite_id = info_index; s2h_info->allowed_flow_state_bitmask = 0x11; s2h_info->egress_action = EGRESS_ACTION_TX_TO_HOST; } return; } void update_scale_data (pds_flow_session_data_t *data, uint32_t index) { uint32_t updated_index = index + UPDATE_DELTA; uint8_t direction = (index % 2) + 1; fill_scale_data(data, updated_index); return; }
[ "noreply@github.com" ]
noreply@github.com
4951ef8e28f4223d6da3e39b84e51f422282a4d3
eb6f8317c6c361e05df91ae16fd66ecf3a3a8b01
/数据结构编程实验/1_4_1/Project1/源.cpp
a194c64167c5f6930e7ea918fc8b03277e4bafad
[]
no_license
Joey-Liu/online-judge-old-version
b00a12ec2da0053c461e914433ccb6760f7e8c50
c452ecee203c20e2856faa8ef876ad855e6c8957
refs/heads/master
2020-03-16T00:53:56.668165
2018-10-28T02:54:28
2018-10-28T02:54:28
132,428,000
1
0
null
null
null
null
UTF-8
C++
false
false
695
cpp
#include <iostream> using namespace std; const int maxn = 300; const double delta = 1e-8; int zero(double x) { if(x > delta) return 1; else if(x < -delta) return -1; return 0; } int main() { double len[maxn]; int i; len[0] = 0.0; len[1] = 1.0/2.0; for(i =2; i < maxn;i++) len[i] = len[i-1] + 1.0/(i+1); double x; cin>>x; while(zero(x)) { int l=0,r = maxn - 1; int mid = (l+r)/2; while(l + 1 < r) { if(zero(len[mid] - x) > 0) { r = mid; mid = (r+l)/2; } else if(zero(len[mid] - x) < 0) { l = mid; mid = (r+l)/2; } else { r = mid; break; } } cout<<r<<" card(s)"<<endl; cin>>x; } system("pause"); return 0; }
[ "joey_liucoder@163.com" ]
joey_liucoder@163.com
28043982af29b9e628aca60dacfe6fd9f1aab1d0
027b3f6774e9ef58bdccba1e311ab2337a67195a
/WCuda/Student_Cuda_Demo3D/INC_SYMLINK/EXT/MeshGeomBase.h
ce025212f2e81b68fe47c39098e4462f7debf531
[]
no_license
Globaxe/CUDALOL
6b1cb552dbaca112fffa8bb6be796fed63b50362
5f2cd4ccdbcb11fd8abf8bd8d62d0666d87634f8
refs/heads/master
2020-03-15T12:08:32.539414
2018-05-04T14:37:34
2018-05-04T14:37:34
132,137,704
1
0
null
null
null
null
UTF-8
C++
false
false
1,905
h
#ifndef MESH_GEOM_BASE_H_ #define MESH_GEOM_BASE_H_ #include "envGLSurface.h" #include "Mesh_I.h" #include "NormalCompute_I.h" #include "ShapeGeomAnimable.h" /*----------------------------------------------------------------------*\ |* Declaration *| \*---------------------------------------------------------------------*/ /*--------------------------------------*\ |* Public *| \*-------------------------------------*/ class CBI_SURFACE_GL MeshGeomBase: public ShapeGeomAnimable { /*--------------------------------------*\ |* Constructor *| \*-------------------------------------*/ public: MeshGeomBase(Mesh_I* ptrMesh, BufferFactory_I* ptrBufferFactory,NormalCompute_I* ptrNormalCompute); virtual ~MeshGeomBase(); /*--------------------------------------*\ |* Surcharge *| \*-------------------------------------*/ protected: virtual void initGL(); virtual void fillBufferGL(); public: /** * Call Periodically by API */ virtual void animationStep(); virtual Bound getBound() const { return ptrMesh->getBound(); } /*--------------------------------------*\ |* Methodes *| \*-------------------------------------*/ protected : virtual void initVertexBuffer(); /*--------------------------------------*\ |* Get *| \*-------------------------------------*/ public : inline Mesh_I* getMesh() { return ptrMesh; } /*--------------------------------------*\ |* Attributs *| \*-------------------------------------*/ protected: // Inputs Mesh_I* ptrMesh; NormalCompute_I* ptrNormalCompute; }; #endif /*----------------------------------------------------------------------*\ |* End *| \*---------------------------------------------------------------------*/
[ "cedric.pahud@he-arc.ch" ]
cedric.pahud@he-arc.ch
b7bac236c90ea0eab3de39ab6bf8ff0445010ada
4352b5c9e6719d762e6a80e7a7799630d819bca3
/tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/4.73/p
6768248ef852af11834a34895cdd10112e25367c
[]
no_license
dashqua/epicProject
d6214b57c545110d08ad053e68bc095f1d4dc725
54afca50a61c20c541ef43e3d96408ef72f0bcbc
refs/heads/master
2022-02-28T17:20:20.291864
2019-10-28T13:33:16
2019-10-28T13:33:16
184,294,390
1
0
null
null
null
null
UTF-8
C++
false
false
149,188
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "4.73"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField nonuniform List<scalar> 22500 ( 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00003 1.00004 1.00005 1.00007 1.00011 1.00017 1.00025 1.00037 1.00052 1.00072 1.00098 1.0013 1.0017 1.00217 1.00272 1.00335 1.00405 1.00482 1.00565 1.00653 1.00744 1.00837 1.0093 1.01021 1.01109 1.01192 1.01269 1.01338 1.01398 1.01448 1.01488 1.01518 1.01535 1.01542 1.01536 1.01519 1.01491 1.01451 1.01401 1.01341 1.01272 1.01196 1.01113 1.01025 1.00934 1.00841 1.0075 1.0066 1.00574 1.00494 1.00419 1.00352 1.00291 1.00238 1.00193 1.00154 1.00121 1.00094 1.00072 1.00054 1.00041 1.0003 1.00021 1.00015 1.0001 1.00006 1.00004 1.00002 1.00001 1 0.999997 0.999994 0.999993 0.999992 0.999993 0.999994 0.999994 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00003 1.00003 1.00004 1.00006 1.00008 1.00012 1.00018 1.00026 1.00038 1.00055 1.00077 1.00105 1.00141 1.00185 1.00239 1.00302 1.00374 1.00457 1.00548 1.00647 1.00752 1.00863 1.00976 1.0109 1.01203 1.01313 1.01417 1.01515 1.01604 1.01683 1.01752 1.0181 1.01855 1.01888 1.01908 1.01915 1.01909 1.01891 1.01859 1.01815 1.01758 1.01689 1.01609 1.0152 1.01421 1.01316 1.01206 1.01092 1.00978 1.00866 1.00757 1.00654 1.00557 1.00469 1.0039 1.0032 1.00259 1.00207 1.00164 1.00127 1.00098 1.00074 1.00055 1.0004 1.00029 1.0002 1.00014 1.00009 1.00005 1.00003 1.00001 1 0.999996 0.999993 0.999991 0.999991 0.999991 0.999992 0.999993 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00009 1.00013 1.00019 1.00027 1.0004 1.00057 1.0008 1.00111 1.0015 1.00198 1.00258 1.00329 1.00412 1.00506 1.00612 1.00728 1.00853 1.00984 1.01119 1.01256 1.01392 1.01525 1.01652 1.01771 1.01882 1.01981 1.02069 1.02144 1.02206 1.02254 1.0229 1.02311 1.02319 1.02313 1.02294 1.02261 1.02213 1.02152 1.02078 1.0199 1.0189 1.01779 1.01657 1.01528 1.01394 1.01256 1.01119 1.00984 1.00854 1.00732 1.0062 1.00517 1.00426 1.00347 1.00278 1.0022 1.00172 1.00132 1.001 1.00075 1.00055 1.00039 1.00028 1.00019 1.00012 1.00008 1.00004 1.00002 1.00001 0.999997 0.999992 0.999989 0.999989 0.999989 0.99999 0.999991 0.999991 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00003 1.00003 1.00004 1.00004 1.00005 1.00007 1.00009 1.00013 1.00019 1.00028 1.0004 1.00058 1.00082 1.00114 1.00156 1.00209 1.00274 1.00353 1.00445 1.00553 1.00673 1.00807 1.00951 1.01103 1.01262 1.01423 1.01583 1.01739 1.0189 1.02031 1.02161 1.0228 1.02385 1.02476 1.02552 1.02615 1.02664 1.02699 1.0272 1.02728 1.02723 1.02705 1.02672 1.02626 1.02565 1.0249 1.02399 1.02294 1.02174 1.02041 1.01897 1.01744 1.01584 1.01421 1.01259 1.01101 1.0095 1.00808 1.00679 1.00562 1.00459 1.0037 1.00294 1.0023 1.00178 1.00135 1.00101 1.00074 1.00053 1.00038 1.00026 1.00017 1.00011 1.00006 1.00003 1.00001 0.999999 0.999992 0.999988 0.999986 0.999986 0.999987 0.999989 0.999988 0.99999 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00007 1.0001 1.00013 1.00019 1.00027 1.0004 1.00058 1.00083 1.00116 1.0016 1.00216 1.00286 1.00372 1.00474 1.00593 1.00729 1.0088 1.01045 1.0122 1.01401 1.01587 1.01771 1.01951 1.02124 1.02285 1.02434 1.02568 1.02686 1.02789 1.02876 1.02948 1.03006 1.0305 1.03081 1.031 1.03108 1.03104 1.03088 1.0306 1.03019 1.02964 1.02895 1.02809 1.02707 1.02588 1.02452 1.023 1.02134 1.01957 1.01772 1.01583 1.01396 1.01214 1.0104 1.00879 1.00732 1.00602 1.00487 1.00389 1.00306 1.00237 1.00181 1.00136 1.001 1.00072 1.00051 1.00035 1.00024 1.00015 1.00009 1.00005 1.00002 1 0.999992 0.999986 0.999984 0.999984 0.999985 0.999986 0.999986 0.999988 0.99999 0.999992 0.999994 0.999995 0.999997 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00019 1.00027 1.00039 1.00057 1.00082 1.00115 1.00161 1.00219 1.00294 1.00386 1.00497 1.00627 1.00778 1.00946 1.01131 1.01328 1.01534 1.01744 1.01952 1.02155 1.02348 1.02527 1.0269 1.02835 1.02962 1.0307 1.0316 1.03234 1.03293 1.03338 1.03371 1.03395 1.03409 1.03414 1.03412 1.03401 1.03381 1.03351 1.03309 1.03254 1.03184 1.03096 1.02989 1.02861 1.02713 1.02546 1.0236 1.02161 1.01951 1.01737 1.01525 1.01318 1.01123 1.00942 1.00779 1.00634 1.00509 1.00402 1.00313 1.0024 1.00181 1.00134 1.00098 1.0007 1.00048 1.00033 1.00021 1.00013 1.00007 1.00003 1.00001 0.999994 0.999986 0.999982 0.999981 0.999982 0.999984 0.999983 0.999986 0.999988 0.999991 0.999993 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00003 1.00004 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00018 1.00026 1.00038 1.00055 1.00079 1.00113 1.00159 1.00219 1.00296 1.00393 1.00512 1.00653 1.00817 1.01003 1.01207 1.01427 1.01656 1.0189 1.02121 1.02345 1.02555 1.02749 1.02921 1.03072 1.03199 1.03305 1.0339 1.03456 1.03506 1.03542 1.03568 1.03585 1.03595 1.03601 1.03603 1.03602 1.03598 1.03589 1.03575 1.03554 1.03522 1.03478 1.03417 1.03336 1.03232 1.03104 1.02951 1.02772 1.0257 1.02351 1.02118 1.01879 1.01642 1.01412 1.01195 1.00996 1.00817 1.0066 1.00524 1.00411 1.00316 1.0024 1.00179 1.00131 1.00094 1.00066 1.00045 1.00029 1.00018 1.00011 1.00005 1.00002 0.999999 0.999987 0.999981 0.999979 0.999979 0.999981 0.99998 0.999983 0.999986 0.999989 0.999991 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00018 1.00025 1.00036 1.00052 1.00076 1.00109 1.00154 1.00215 1.00294 1.00395 1.00519 1.0067 1.00846 1.01047 1.01271 1.01512 1.01764 1.02021 1.02275 1.02517 1.02743 1.02946 1.03123 1.03272 1.03393 1.03488 1.03557 1.03605 1.03635 1.03651 1.03657 1.03656 1.03651 1.03645 1.0364 1.03638 1.03638 1.03641 1.03646 1.03652 1.03656 1.03656 1.03646 1.03624 1.03584 1.03521 1.03431 1.0331 1.03158 1.02973 1.02759 1.02522 1.02268 1.02006 1.01744 1.01491 1.01254 1.01037 1.00844 1.00676 1.00532 1.00413 1.00315 1.00236 1.00174 1.00125 1.00088 1.00061 1.0004 1.00026 1.00015 1.00008 1.00004 1.00001 0.99999 0.99998 0.999976 0.999976 0.999977 0.999977 0.99998 0.999983 0.999986 0.999989 0.999992 0.999994 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00017 1.00024 1.00034 1.00049 1.00071 1.00103 1.00147 1.00208 1.00287 1.0039 1.00518 1.00676 1.00863 1.01079 1.0132 1.01581 1.01856 1.02135 1.0241 1.02669 1.02907 1.03116 1.03292 1.03434 1.0354 1.03615 1.03659 1.03679 1.03679 1.03664 1.03639 1.03608 1.03576 1.03547 1.03522 1.03504 1.03496 1.03497 1.03507 1.03527 1.03555 1.03587 1.03621 1.03654 1.03679 1.0369 1.03682 1.03648 1.03581 1.03476 1.03331 1.03146 1.02923 1.0267 1.02397 1.02112 1.01828 1.01554 1.01298 1.01066 1.0086 1.00683 1.00533 1.00409 1.00308 1.00228 1.00166 1.00118 1.00082 1.00055 1.00036 1.00022 1.00012 1.00006 1.00002 0.999995 0.999981 0.999975 0.999973 0.999974 0.999973 0.999976 0.99998 0.999984 0.999987 0.99999 0.999992 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00017 1.00023 1.00032 1.00046 1.00066 1.00096 1.00139 1.00197 1.00276 1.00378 1.00509 1.00672 1.00867 1.01095 1.01352 1.01633 1.0193 1.0223 1.02524 1.02799 1.03046 1.03258 1.03428 1.03556 1.03642 1.03689 1.03701 1.03684 1.03645 1.0359 1.03525 1.03455 1.03386 1.03322 1.03267 1.03223 1.03193 1.03178 1.03179 1.03196 1.03229 1.03277 1.03337 1.03406 1.03482 1.03557 1.03627 1.03683 1.03717 1.0372 1.03685 1.03603 1.03471 1.03289 1.0306 1.02795 1.02503 1.02198 1.01892 1.01599 1.01326 1.0108 1.00864 1.0068 1.00525 1.00399 1.00297 1.00218 1.00156 1.00109 1.00074 1.00049 1.00031 1.00018 1.0001 1.00004 1 0.999985 0.999975 0.99997 0.999971 0.999969 0.999973 0.999977 0.999981 0.999985 0.999988 0.999991 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00006 1.00008 1.0001 1.00012 1.00016 1.00021 1.00029 1.00042 1.00061 1.00089 1.00128 1.00184 1.0026 1.00361 1.00492 1.00657 1.00858 1.01096 1.01367 1.01666 1.01982 1.02304 1.02616 1.02906 1.03161 1.03372 1.03533 1.03643 1.03702 1.03716 1.03689 1.0363 1.03546 1.03445 1.03334 1.03219 1.03107 1.03002 1.02908 1.0283 1.02768 1.02726 1.02705 1.02705 1.02727 1.02771 1.02836 1.0292 1.03021 1.03135 1.03258 1.03384 1.03505 1.03613 1.03697 1.03746 1.03748 1.03694 1.03579 1.03403 1.0317 1.02893 1.02583 1.02259 1.01935 1.01624 1.01337 1.0108 1.00856 1.00667 1.0051 1.00383 1.00282 1.00204 1.00144 1.00099 1.00066 1.00042 1.00026 1.00014 1.00007 1.00002 0.999991 0.999976 0.999969 0.999968 0.999966 0.999969 0.999973 0.999978 0.999982 0.999986 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00009 1.00012 1.00015 1.0002 1.00027 1.00038 1.00055 1.0008 1.00117 1.00169 1.00242 1.00339 1.00468 1.00633 1.00837 1.01081 1.01364 1.01678 1.02013 1.02354 1.02685 1.02989 1.03251 1.0346 1.0361 1.03699 1.03729 1.03706 1.03637 1.03531 1.03399 1.03248 1.03088 1.02926 1.02768 1.02619 1.02484 1.02367 1.02269 1.02194 1.02142 1.02116 1.02115 1.0214 1.02191 1.02268 1.0237 1.02494 1.0264 1.02802 1.02976 1.03157 1.03335 1.03499 1.03637 1.03735 1.03778 1.03755 1.03659 1.03489 1.03253 1.02964 1.02638 1.02296 1.01954 1.01629 1.0133 1.01065 1.00837 1.00645 1.00488 1.00363 1.00264 1.00188 1.00131 1.00088 1.00058 1.00036 1.00021 1.00011 1.00004 1 0.99998 0.999969 0.999965 0.999963 0.999965 0.99997 0.999975 0.999979 0.999984 0.999987 0.999991 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00009 1.00011 1.00014 1.00018 1.00025 1.00035 1.00049 1.00072 1.00105 1.00153 1.00221 1.00314 1.00438 1.00599 1.00803 1.0105 1.01341 1.01669 1.02021 1.02381 1.0273 1.03049 1.03318 1.03526 1.03664 1.03731 1.0373 1.03669 1.03556 1.03404 1.03222 1.03022 1.02813 1.02603 1.024 1.02207 1.02031 1.01874 1.0174 1.01629 1.01545 1.01486 1.01456 1.01454 1.0148 1.01535 1.01619 1.01732 1.01872 1.02038 1.02228 1.02439 1.02665 1.02901 1.03136 1.03359 1.03553 1.03701 1.03786 1.03793 1.03715 1.03551 1.0331 1.03008 1.02667 1.02307 1.0195 1.01613 1.01306 1.01036 1.00806 1.00615 1.00461 1.00338 1.00243 1.0017 1.00116 1.00077 1.00049 1.00029 1.00016 1.00007 1.00002 0.999987 0.999971 0.999964 0.999961 0.999962 0.999966 0.999971 0.999976 0.999981 0.999985 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00007 1.00008 1.0001 1.00013 1.00017 1.00023 1.00031 1.00044 1.00064 1.00093 1.00136 1.00198 1.00285 1.00402 1.00558 1.00758 1.01005 1.013 1.01638 1.02005 1.02384 1.02752 1.03085 1.03364 1.03572 1.03699 1.03746 1.03715 1.03616 1.03461 1.03262 1.03033 1.02785 1.0253 1.02275 1.02028 1.01794 1.01579 1.01386 1.01216 1.01072 1.00954 1.00864 1.00803 1.0077 1.00767 1.00793 1.00849 1.00935 1.01052 1.01199 1.01376 1.01582 1.01815 1.02072 1.02349 1.02639 1.0293 1.0321 1.03459 1.03656 1.03781 1.03816 1.03752 1.0359 1.03342 1.03026 1.02668 1.02293 1.01924 1.01577 1.01265 1.00994 1.00766 1.00578 1.00428 1.0031 1.0022 1.00152 1.00102 1.00066 1.0004 1.00023 1.00012 1.00004 1 0.999975 0.999964 0.999959 0.999959 0.999962 0.999967 0.999973 0.999978 0.999983 0.999987 0.99999 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00008 1.0001 1.00012 1.00016 1.00021 1.00028 1.00039 1.00056 1.00082 1.0012 1.00175 1.00255 1.00364 1.00511 1.00704 1.00947 1.01242 1.01585 1.01965 1.02361 1.02748 1.03099 1.0339 1.036 1.03721 1.03749 1.03691 1.03557 1.03362 1.0312 1.02847 1.02555 1.02255 1.01959 1.01672 1.01401 1.01151 1.00924 1.00723 1.00548 1.00401 1.00282 1.00191 1.00129 1.00095 1.00091 1.00115 1.0017 1.00255 1.00371 1.00518 1.00697 1.00909 1.01151 1.01424 1.01724 1.02048 1.02389 1.02735 1.03069 1.0337 1.03613 1.03772 1.03829 1.03774 1.03609 1.03348 1.03017 1.02643 1.02254 1.01875 1.01523 1.0121 1.00941 1.00717 1.00535 1.00391 1.0028 1.00195 1.00132 1.00087 1.00055 1.00032 1.00017 1.00008 1.00002 0.999984 0.999966 0.99996 0.999957 0.999959 0.999964 0.999969 0.999975 0.99998 0.999985 0.999989 0.999991 0.999994 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00003 1.00004 1.00006 1.00007 1.00009 1.00011 1.00014 1.00019 1.00025 1.00034 1.00049 1.00071 1.00104 1.00153 1.00224 1.00324 1.0046 1.00642 1.00877 1.01168 1.01512 1.01901 1.02312 1.02719 1.0309 1.03396 1.03615 1.03733 1.03748 1.03667 1.03502 1.03271 1.0299 1.02675 1.02342 1.02003 1.01669 1.01346 1.01042 1.00761 1.00505 1.00276 1.00075 0.99902 0.997577 0.996415 0.995531 0.994923 0.99459 0.994533 0.994755 0.995264 0.996067 0.997176 0.9986 1.00035 1.00243 1.00485 1.00761 1.0107 1.0141 1.01779 1.02168 1.02564 1.0295 1.03298 1.03579 1.03766 1.03837 1.03782 1.03607 1.03331 1.02982 1.02592 1.02191 1.01805 1.01452 1.01142 1.00878 1.00662 1.00488 1.00352 1.00248 1.0017 1.00113 1.00073 1.00044 1.00025 1.00012 1.00004 0.999997 0.999971 0.999962 0.999956 0.999956 0.99996 0.999966 0.999972 0.999978 0.999983 0.999987 0.99999 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00008 1.0001 1.00013 1.00017 1.00022 1.0003 1.00042 1.00061 1.00089 1.00132 1.00194 1.00283 1.00408 1.00577 1.00799 1.0108 1.01421 1.01813 1.02237 1.02664 1.03057 1.03383 1.03615 1.03737 1.03745 1.03647 1.03457 1.03194 1.02878 1.02527 1.02158 1.01783 1.01414 1.0106 1.00726 1.00417 1.00135 0.998824 0.996591 0.994653 0.993002 0.991632 0.990533 0.989697 0.989118 0.988793 0.988723 0.988912 0.989367 0.990099 0.991123 0.992455 0.99411 0.996101 0.998442 1.00114 1.0042 1.00762 1.0114 1.0155 1.01985 1.02429 1.02861 1.0325 1.03562 1.03767 1.03841 1.03778 1.03586 1.03289 1.0292 1.02515 1.02106 1.01717 1.01366 1.01062 1.00808 1.00601 1.00438 1.00311 1.00216 1.00146 1.00095 1.00059 1.00035 1.00018 1.00008 1.00002 0.99998 0.999967 0.999956 0.999954 0.999957 0.999963 0.999969 0.999975 0.99998 0.999985 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00007 1.00009 1.00012 1.00015 1.0002 1.00026 1.00037 1.00052 1.00076 1.00112 1.00166 1.00244 1.00355 1.00508 1.00715 1.00982 1.01313 1.01704 1.02136 1.02581 1.02998 1.0335 1.03602 1.03735 1.03743 1.03635 1.03427 1.03139 1.02793 1.0241 1.02007 1.01601 1.01201 1.00817 1.00456 1.00122 0.998181 0.99545 0.993033 0.990924 0.989112 0.987581 0.986319 0.985309 0.984539 0.983999 0.983686 0.983598 0.983742 0.984125 0.984761 0.98567 0.986871 0.988388 0.99024 0.992446 0.995019 0.997973 1.00132 1.00506 1.0092 1.0137 1.01848 1.02336 1.02809 1.03231 1.03564 1.03775 1.03841 1.03759 1.03543 1.03222 1.02833 1.02415 1.02 1.01613 1.01269 1.00975 1.00733 1.00538 1.00387 1.00271 1.00185 1.00122 1.00078 1.00047 1.00026 1.00013 1.00004 0.999993 0.999976 0.999959 0.999953 0.999955 0.999959 0.999966 0.999972 0.999978 0.999983 0.999987 0.999991 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00007 1.00008 1.00011 1.00014 1.00018 1.00023 1.00031 1.00044 1.00064 1.00094 1.00139 1.00207 1.00304 1.00441 1.00628 1.00877 1.01193 1.01575 1.02011 1.0247 1.02913 1.03293 1.03573 1.03726 1.03744 1.03634 1.03414 1.03107 1.02737 1.02327 1.01895 1.01459 1.01031 1.0062 1.00234 0.998774 0.995532 0.992625 0.990054 0.987811 0.985879 0.984238 0.982866 0.981742 0.980843 0.980155 0.979663 0.979362 0.979251 0.979335 0.979627 0.980142 0.980902 0.981935 0.98327 0.984936 0.986958 0.989355 0.992146 0.995345 0.998965 1.00302 1.00751 1.01241 1.01761 1.02291 1.02798 1.03244 1.03586 1.0379 1.03836 1.03725 1.03477 1.03129 1.0272 1.02292 1.01876 1.01495 1.01162 1.00882 1.00654 1.00474 1.00336 1.00231 1.00155 1.001 1.00062 1.00036 1.00019 1.00008 1.00001 0.999989 0.999964 0.999954 0.999953 0.999956 0.999963 0.999969 0.999975 0.999981 0.999986 0.999989 0.999992 0.999995 0.999996 0.999997 0.999998 0.999998 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00007 1.0001 1.00012 1.00016 1.0002 1.00027 1.00038 1.00054 1.00078 1.00116 1.00173 1.00256 1.00376 1.00543 1.00769 1.01064 1.01431 1.01862 1.02332 1.02798 1.03211 1.03525 1.03707 1.03745 1.03644 1.03421 1.03102 1.02714 1.0228 1.01823 1.0136 1.00905 1.00469 1.00059 0.996812 0.993382 0.990316 0.987616 0.98527 0.983257 0.981552 0.980125 0.978948 0.97799 0.977226 0.976634 0.976199 0.975912 0.975771 0.975784 0.975963 0.976329 0.976907 0.97773 0.978836 0.980263 0.982046 0.984215 0.986791 0.989792 0.993233 0.997133 1.00151 1.00637 1.01167 1.01728 1.02294 1.02829 1.03287 1.03624 1.03806 1.03819 1.0367 1.03387 1.0301 1.02584 1.0215 1.01737 1.01367 1.01049 1.00786 1.00575 1.00411 1.00286 1.00194 1.00127 1.0008 1.00048 1.00026 1.00012 1.00004 1.00001 0.999972 0.999956 0.999952 0.999954 0.99996 0.999966 0.999973 0.999979 0.999984 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00006 1.00008 1.00011 1.00014 1.00018 1.00023 1.00032 1.00045 1.00065 1.00095 1.00142 1.00212 1.00315 1.00461 1.00663 1.00932 1.01277 1.01695 1.02167 1.02653 1.031 1.03455 1.03676 1.03744 1.03662 1.03446 1.03123 1.02723 1.02271 1.01792 1.01305 1.00825 1.00364 0.999304 0.995313 0.991702 0.988487 0.985673 0.983246 0.981185 0.979458 0.978029 0.976861 0.975915 0.975155 0.974549 0.97407 0.973702 0.973432 0.973259 0.973188 0.973235 0.973425 0.973786 0.974357 0.975182 0.976311 0.977791 0.979664 0.981964 0.984711 0.987923 0.991616 0.995813 1.00054 1.00578 1.01149 1.01749 1.02346 1.02898 1.03355 1.03672 1.03819 1.03786 1.03591 1.03269 1.02866 1.02427 1.01991 1.01588 1.01233 1.00933 1.0069 1.00498 1.0035 1.0024 1.00159 1.00102 1.00062 1.00035 1.00018 1.00007 1.00003 0.999984 0.999961 0.999953 0.999952 0.999957 0.999964 0.99997 0.999977 0.999982 0.999987 0.99999 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00012 1.00015 1.0002 1.00027 1.00037 1.00053 1.00078 1.00116 1.00174 1.0026 1.00385 1.00561 1.00801 1.01118 1.01514 1.01979 1.02478 1.02957 1.03357 1.03627 1.03737 1.03685 1.03486 1.03169 1.02764 1.02299 1.01802 1.01292 1.00788 1.00303 0.998463 0.994258 0.990461 0.987099 0.984176 0.981683 0.979597 0.977882 0.976498 0.975398 0.974532 0.973856 0.973325 0.972904 0.97256 0.97227 0.972024 0.971817 0.971656 0.971556 0.971545 0.971656 0.971933 0.972426 0.973194 0.974299 0.9758 0.977743 0.980164 0.983083 0.986515 0.990479 0.994999 1.0001 1.00576 1.01188 1.01823 1.02444 1.03001 1.03442 1.03723 1.03819 1.03731 1.03485 1.03124 1.02697 1.02251 1.0182 1.01431 1.01096 1.00818 1.00596 1.00424 1.00293 1.00197 1.00128 1.0008 1.00047 1.00025 1.00011 1.00006 1 0.999968 0.999955 0.999952 0.999955 0.999961 0.999968 0.999974 0.99998 0.999985 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00003 1.00005 1.00006 1.00008 1.0001 1.00013 1.00017 1.00023 1.00031 1.00044 1.00063 1.00094 1.0014 1.00211 1.00316 1.00466 1.00676 1.0096 1.01326 1.01773 1.02274 1.0278 1.03227 1.03552 1.03716 1.03707 1.03538 1.03236 1.02834 1.02363 1.01851 1.01322 1.00795 1.00286 0.998052 0.993625 0.989634 0.986115 0.98308 0.980526 0.978426 0.976747 0.975442 0.974458 0.973736 0.973219 0.972851 0.972581 0.972368 0.972176 0.97198 0.971765 0.971528 0.971274 0.97102 0.970791 0.970627 0.970575 0.970692 0.971043 0.971702 0.972746 0.974242 0.976244 0.978786 0.981886 0.985557 0.98982 0.994699 1.00021 1.0063 1.01283 1.01949 1.02583 1.0313 1.03538 1.03766 1.03798 1.03648 1.03349 1.02952 1.02508 1.0206 1.01641 1.01271 1.00959 1.00706 1.00506 1.00354 1.00241 1.00159 1.00101 1.00061 1.00034 1.00017 1.0001 1.00002 0.999979 0.999959 0.999953 0.999953 0.999959 0.999965 0.999972 0.999978 0.999984 0.999988 0.999991 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00011 1.00015 1.00019 1.00026 1.00036 1.00051 1.00075 1.00112 1.00169 1.00255 1.00381 1.0056 1.00808 1.01138 1.01556 1.02046 1.02569 1.03059 1.03445 1.03673 1.03721 1.03595 1.0332 1.02931 1.0246 1.01939 1.01393 1.00845 1.00312 0.998067 0.993401 0.989199 0.985507 0.982346 0.979718 0.977607 0.975974 0.974771 0.973938 0.973409 0.973114 0.972984 0.972954 0.972966 0.972977 0.972948 0.972854 0.972678 0.972414 0.97207 0.971661 0.971214 0.970765 0.970365 0.970075 0.969967 0.970123 0.970634 0.971591 0.973071 0.975132 0.977806 0.981106 0.985047 0.989647 0.99493 1.00089 1.00743 1.01433 1.02121 1.02755 1.03275 1.0363 1.03789 1.03748 1.03531 1.03182 1.02755 1.02301 1.01859 1.01458 1.01113 1.00827 1.00599 1.00423 1.00291 1.00194 1.00125 1.00077 1.00044 1.00023 1.00015 1.00005 0.999994 0.999966 0.999955 0.999953 0.999957 0.999964 0.99997 0.999977 0.999982 0.999987 0.99999 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00007 1.0001 1.00013 1.00016 1.00022 1.0003 1.00042 1.0006 1.00089 1.00134 1.00203 1.00306 1.00456 1.00668 1.00958 1.01337 1.01803 1.02327 1.02851 1.03297 1.03599 1.03717 1.03648 1.03414 1.03048 1.02586 1.02062 1.01504 1.00937 1.0038 0.998499 0.993583 0.989146 0.985254 0.981942 0.97922 0.977079 0.975487 0.974392 0.973731 0.973427 0.973399 0.973563 0.97384 0.974159 0.974458 0.974691 0.97482 0.974822 0.974683 0.974398 0.973973 0.973421 0.972767 0.972046 0.971305 0.970605 0.970021 0.969641 0.969568 0.96991 0.970773 0.972244 0.97438 0.977209 0.980743 0.984995 0.989984 0.995718 1.00215 1.00913 1.01635 1.02333 1.02949 1.03422 1.03707 1.03784 1.03662 1.03379 1.02986 1.02537 1.02081 1.01654 1.01276 1.00958 1.00701 1.005 1.00347 1.00234 1.00153 1.00096 1.00057 1.00031 1.00021 1.00008 1.00001 0.999975 0.999958 0.999954 0.999956 0.999962 0.999968 0.999975 0.999981 0.999986 0.999989 0.999992 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00008 1.00011 1.00014 1.00018 1.00025 1.00034 1.00048 1.0007 1.00105 1.00159 1.00242 1.00364 1.00541 1.00789 1.01124 1.01553 1.02061 1.02604 1.03105 1.03484 1.03685 1.03688 1.03509 1.0318 1.02737 1.02218 1.01653 1.0107 1.00491 0.999349 0.994165 0.98947 0.985347 0.981846 0.978997 0.976796 0.97522 0.974221 0.97373 0.973665 0.973929 0.974425 0.975055 0.97573 0.976376 0.976933 0.977356 0.977613 0.97769 0.977577 0.977273 0.97678 0.97611 0.975283 0.974328 0.973284 0.972207 0.971168 0.970258 0.969584 0.969271 0.969448 0.970234 0.971721 0.973965 0.97699 0.980806 0.985427 0.990861 0.997091 1.00402 1.0114 1.01883 1.02574 1.03151 1.03556 1.03754 1.03739 1.03536 1.03191 1.02762 1.02302 1.01854 1.01448 1.01099 1.00812 1.00585 1.0041 1.00279 1.00184 1.00117 1.00071 1.0004 1.00027 1.00012 1.00004 0.999988 0.999964 0.999956 0.999956 0.99996 0.999967 0.999973 0.999979 0.999984 0.999988 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00011 1.00015 1.0002 1.00027 1.00038 1.00055 1.00082 1.00124 1.00188 1.00286 1.00431 1.00638 1.00925 1.01307 1.01783 1.02324 1.02865 1.03319 1.03611 1.03702 1.03595 1.03317 1.02906 1.02401 1.01836 1.01241 1.00643 1.00062 0.995154 0.990173 0.985784 0.982055 0.97903 0.976724 0.975123 0.974185 0.973843 0.974008 0.97457 0.975412 0.976417 0.977476 0.978495 0.979401 0.980144 0.98069 0.981021 0.981132 0.981023 0.980697 0.98016 0.979414 0.97847 0.977346 0.976072 0.974691 0.973264 0.971876 0.970634 0.96967 0.969133 0.969174 0.969923 0.971473 0.973878 0.977157 0.98132 0.986376 0.992315 0.999075 1.00648 1.01418 1.02167 1.0283 1.03345 1.03662 1.03759 1.03648 1.03367 1.0297 1.02517 1.02057 1.01626 1.01248 1.00932 1.00677 1.00479 1.00329 1.0022 1.00142 1.00088 1.00051 1.00035 1.00017 1.00007 1 0.999972 0.999959 0.999956 0.999959 0.999965 0.999972 0.999978 0.999983 0.999987 0.999991 0.999994 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.0001 1.00012 1.00017 1.00022 1.00031 1.00043 1.00063 1.00095 1.00145 1.00222 1.00337 1.00506 1.00746 1.01075 1.01504 1.02022 1.02581 1.03099 1.03485 1.03677 1.03659 1.03449 1.03085 1.02606 1.0205 1.0145 1.00835 1.0023 0.996555 0.991269 0.986575 0.98257 0.979316 0.976845 0.975161 0.974232 0.973997 0.97436 0.975203 0.976386 0.977767 0.979212 0.980606 0.981859 0.98291 0.983725 0.984294 0.984619 0.984709 0.984578 0.984235 0.983683 0.98292 0.981939 0.980744 0.979345 0.97777 0.976064 0.974297 0.97257 0.971014 0.969788 0.96907 0.96903 0.969805 0.971487 0.974123 0.977732 0.982322 0.987886 0.994384 1.00168 1.0095 1.01739 1.02473 1.03084 1.03513 1.03724 1.03713 1.03507 1.03156 1.02721 1.02257 1.01808 1.01403 1.01058 1.00776 1.00554 1.00385 1.0026 1.0017 1.00107 1.00064 1.00044 1.00023 1.0001 1.00002 0.999982 0.999963 0.999958 0.999959 0.999964 0.99997 0.999977 0.999982 0.999987 0.99999 0.999993 0.999995 0.999997 0.999997 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00008 1.0001 1.00014 1.00018 1.00024 1.00034 1.00049 1.00073 1.0011 1.00169 1.00259 1.00394 1.0059 1.00866 1.01239 1.01713 1.02264 1.02824 1.03296 1.03598 1.03685 1.03563 1.03263 1.02824 1.02288 1.01691 1.01066 1.00441 0.998376 0.992768 0.98774 0.98341 0.979865 0.977162 0.975323 0.974332 0.974138 0.974648 0.975732 0.977231 0.978974 0.980795 0.982548 0.984123 0.985447 0.986483 0.987225 0.987694 0.987918 0.987929 0.987753 0.987404 0.986884 0.986179 0.985265 0.984119 0.982731 0.981103 0.979261 0.977257 0.975174 0.973133 0.971298 0.969861 0.969028 0.968983 0.969868 0.971768 0.974726 0.978758 0.983861 0.990007 0.997095 1.0049 1.01303 1.0209 1.02783 1.03315 1.03638 1.03731 1.03609 1.03316 1.0291 1.02451 1.0199 1.01563 1.0119 1.00881 1.00635 1.00445 1.00303 1.002 1.00128 1.00078 1.00055 1.0003 1.00014 1.00005 0.999995 0.99997 0.99996 0.99996 0.999963 0.99997 0.999976 0.999981 0.999986 0.999989 0.999993 0.999995 0.999997 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00008 1.00011 1.00015 1.0002 1.00027 1.00038 1.00056 1.00083 1.00128 1.00196 1.00301 1.00457 1.00682 1.00996 1.01414 1.0193 1.02502 1.03042 1.03451 1.03658 1.03643 1.03426 1.03045 1.02543 1.0196 1.01333 1.00691 1.00062 0.994691 0.989301 0.984602 0.980707 0.977699 0.97562 0.97448 0.974244 0.974825 0.976091 0.977862 0.979937 0.982112 0.984206 0.986074 0.987625 0.988816 0.989648 0.990155 0.99039 0.990416 0.990289 0.990051 0.98972 0.989293 0.988742 0.98802 0.987074 0.985858 0.984346 0.982538 0.980463 0.978185 0.975808 0.973487 0.971422 0.969844 0.968982 0.969029 0.970125 0.972348 0.975734 0.98029 0.985997 0.992779 1.00045 1.00868 1.01693 1.02453 1.03077 1.03505 1.03703 1.03673 1.03447 1.03081 1.02636 1.02169 1.01724 1.01327 1.00992 1.00721 1.0051 1.00351 1.00234 1.00151 1.00093 1.00066 1.00037 1.00019 1.00007 1.00001 0.999978 0.999964 0.999961 0.999964 0.999969 0.999975 0.99998 0.999985 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00004 1.00005 1.00007 1.00009 1.00012 1.00016 1.00021 1.0003 1.00042 1.00063 1.00095 1.00147 1.00227 1.00348 1.00527 1.00784 1.01137 1.01598 1.02149 1.02727 1.03229 1.03561 1.03671 1.03559 1.03256 1.02805 1.0225 1.0163 1.00979 1.00329 0.997047 0.991285 0.986181 0.98188 0.97849 0.976085 0.974698 0.974317 0.974875 0.97624 0.978221 0.980587 0.983091 0.985504 0.987645 0.989389 0.990677 0.99151 0.991936 0.992033 0.991896 0.991622 0.991297 0.990979 0.990697 0.990441 0.990163 0.989785 0.989216 0.988364 0.987165 0.985585 0.983629 0.981339 0.978802 0.976154 0.973593 0.971364 0.969732 0.968945 0.969198 0.970621 0.973284 0.977213 0.9824 0.988787 0.996226 1.00443 1.01291 1.02104 1.02806 1.03332 1.03633 1.03697 1.03547 1.0323 1.02808 1.02344 1.01885 1.01467 1.01107 1.00812 1.00579 1.00402 1.00271 1.00177 1.00111 1.00079 1.00045 1.00024 1.00011 1.00003 0.999988 0.999969 0.999963 0.999964 0.999968 0.999974 0.99998 0.999984 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00012 1.00017 1.00023 1.00033 1.00047 1.00071 1.00109 1.00168 1.0026 1.00399 1.00603 1.00893 1.01287 1.01789 1.02365 1.02932 1.03381 1.03628 1.03642 1.0344 1.03061 1.0255 1.01951 1.01301 1.00636 0.999841 0.993712 0.988183 0.98343 0.979591 0.976769 0.975031 0.974393 0.974812 0.976172 0.978281 0.980881 0.983682 0.986404 0.98881 0.990733 0.992087 0.992858 0.993095 0.992897 0.992394 0.991728 0.991037 0.990438 0.990017 0.989813 0.989813 0.989947 0.990098 0.990123 0.989871 0.989221 0.988099 0.986478 0.984381 0.981877 0.979086 0.976192 0.973442 0.97113 0.969549 0.968958 0.969545 0.971426 0.974657 0.979248 0.98516 0.992273 1.00034 1.00893 1.01744 1.02512 1.03125 1.03525 1.03685 1.03614 1.03355 1.02965 1.0251 1.02044 1.01608 1.01225 1.00906 1.00652 1.00456 1.0031 1.00204 1.0013 1.00093 1.00055 1.0003 1.00014 1.00005 1 0.999976 0.999966 0.999965 0.999969 0.999974 0.999979 0.999984 0.999988 0.999992 0.999993 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00006 1.00007 1.0001 1.00013 1.00018 1.00025 1.00036 1.00053 1.0008 1.00123 1.00192 1.00297 1.00455 1.00686 1.01011 1.01445 1.01983 1.02572 1.03112 1.03496 1.03654 1.03578 1.03294 1.02848 1.02286 1.01651 1.0098 1.00306 0.996597 0.990642 0.985405 0.98106 0.977743 0.975548 0.974531 0.974682 0.975913 0.978043 0.980801 0.983858 0.986878 0.98956 0.991681 0.993105 0.99379 0.993773 0.993155 0.992089 0.990761 0.989371 0.988109 0.987138 0.986572 0.986468 0.986813 0.987517 0.988417 0.989303 0.989946 0.990145 0.989762 0.988732 0.98706 0.984803 0.982069 0.979026 0.975918 0.97305 0.970757 0.969354 0.969096 0.970156 0.972633 0.976564 0.981929 0.988634 0.996468 1.00505 1.01381 1.02203 1.02892 1.03384 1.03638 1.03651 1.03455 1.03105 1.02666 1.02198 1.01748 1.01345 1.01004 1.00728 1.00513 1.00352 1.00234 1.00151 1.00108 1.00065 1.00036 1.00018 1.00008 1.00001 0.999984 0.99997 0.999967 0.999969 0.999973 0.999979 0.999984 0.999987 0.999991 0.999994 0.999995 0.999997 0.999998 0.999999 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00006 1.00008 1.0001 1.00014 1.00019 1.00027 1.00039 1.00058 1.00089 1.00139 1.00217 1.00337 1.00516 1.00774 1.01135 1.01608 1.02175 1.02765 1.03265 1.03575 1.03646 1.03484 1.03128 1.02623 1.02019 1.01355 1.00669 0.999939 0.993579 0.987852 0.982962 0.979078 0.976334 0.974818 0.974563 0.97552 0.977539 0.980354 0.983609 0.986911 0.989891 0.992253 0.993798 0.994431 0.994153 0.993048 0.991272 0.989041 0.98661 0.984253 0.982228 0.980755 0.979987 0.98 0.980783 0.982226 0.98412 0.98618 0.988078 0.989501 0.990215 0.990095 0.989122 0.987351 0.984891 0.981904 0.978622 0.975352 0.972459 0.970311 0.969229 0.969455 0.971139 0.974357 0.979114 0.98534 0.992857 1.00133 1.01023 1.01885 1.0264 1.03216 1.0356 1.03658 1.0353 1.03226 1.0281 1.02346 1.01885 1.01465 1.01103 1.00806 1.00573 1.00396 1.00266 1.00173 1.00124 1.00075 1.00043 1.00023 1.0001 1.00003 0.999993 0.999975 0.999969 0.99997 0.999974 0.999978 0.999983 0.999987 0.999991 0.999993 0.999995 0.999997 0.999998 0.999999 0.999999 0.999999 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00008 1.00011 1.00015 1.0002 1.00029 1.00042 1.00065 1.001 1.00156 1.00245 1.0038 1.0058 1.00868 1.01264 1.01773 1.02361 1.02939 1.03389 1.03622 1.03608 1.03369 1.02947 1.02393 1.01752 1.01066 1.00372 0.997005 0.990803 0.985352 0.980857 0.977483 0.975357 0.97456 0.975089 0.976839 0.979577 0.982941 0.986494 0.989792 0.992458 0.994211 0.994884 0.994416 0.992842 0.990294 0.986996 0.983243 0.97938 0.975773 0.972765 0.970642 0.969605 0.969751 0.971069 0.973427 0.976574 0.980146 0.983704 0.986797 0.989053 0.990245 0.990309 0.989302 0.987352 0.984633 0.981375 0.977882 0.974532 0.971738 0.969885 0.969287 0.970159 0.972624 0.976721 0.982408 0.989537 0.997809 1.00674 1.01565 1.02375 1.03026 1.03456 1.03637 1.0358 1.03327 1.0294 1.02485 1.02019 1.01584 1.01202 1.00886 1.00635 1.00442 1.00299 1.00196 1.00141 1.00087 1.00051 1.00028 1.00013 1.00005 1 0.999981 0.999973 0.999972 0.999975 0.999979 0.999983 0.999988 0.99999 0.999993 0.999995 0.999996 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00008 1.00011 1.00015 1.00021 1.00031 1.00046 1.00071 1.00111 1.00175 1.00274 1.00426 1.00648 1.00966 1.01397 1.01938 1.02537 1.03092 1.03484 1.03639 1.03546 1.03236 1.02757 1.02159 1.0149 1.00788 1.0009 0.994275 0.988276 0.983146 0.979088 0.976264 0.974795 0.974739 0.976051 0.978545 0.981888 0.985623 0.989242 0.992276 0.99435 0.995203 0.99469 0.992771 0.989516 0.985115 0.979874 0.974192 0.968532 0.963371 0.95915 0.956229 0.954858 0.955158 0.957113 0.960567 0.965221 0.970639 0.976271 0.981517 0.98583 0.988828 0.990352 0.990444 0.989269 0.987041 0.984011 0.980483 0.976842 0.973529 0.970987 0.969603 0.969665 0.971353 0.974751 0.979849 0.986527 0.994525 1.00339 1.0125 1.02104 1.0282 1.03329 1.03592 1.03607 1.03409 1.03056 1.02616 1.02148 1.017 1.01302 1.00967 1.00697 1.00489 1.00334 1.00221 1.00159 1.00099 1.00059 1.00033 1.00017 1.00007 1.00002 0.999989 0.999977 0.999974 0.999975 0.999979 0.999983 0.999987 0.99999 0.999993 0.999995 0.999997 0.999997 0.999999 0.999999 0.999999 1 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00009 1.00011 1.00016 1.00023 1.00033 1.0005 1.00078 1.00123 1.00194 1.00306 1.00474 1.0072 1.01067 1.01532 1.02099 1.02701 1.03223 1.03552 1.03631 1.03464 1.0309 1.02562 1.01928 1.01235 1.00523 0.998266 0.991762 0.986005 0.981233 0.977647 0.975405 0.974618 0.97531 0.977373 0.980525 0.984324 0.988223 0.991668 0.994175 0.995379 0.995029 0.992984 0.989219 0.983846 0.977131 0.969488 0.961448 0.953614 0.946591 0.940929 0.937069 0.935313 0.935802 0.93851 0.943246 0.949656 0.957232 0.965326 0.973195 0.980102 0.985462 0.988958 0.990568 0.990482 0.988985 0.986384 0.98301 0.979251 0.975566 0.972443 0.970338 0.969615 0.970522 0.973195 0.977662 0.983838 0.991497 1.00023 1.00943 1.01831 1.02604 1.03185 1.03525 1.03613 1.03472 1.03157 1.02735 1.02271 1.01814 1.014 1.01048 1.00761 1.00538 1.00369 1.00246 1.00177 1.00112 1.00067 1.00038 1.0002 1.00009 1.00003 0.999997 0.999982 0.999976 0.999977 0.99998 0.999983 0.999987 0.999991 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00009 1.00012 1.00017 1.00024 1.00036 1.00054 1.00086 1.00136 1.00215 1.00338 1.00524 1.00794 1.01171 1.01667 1.02255 1.0285 1.03331 1.03597 1.03603 1.03367 1.02937 1.02366 1.01702 1.00991 1.00272 0.995812 0.989471 0.983988 0.979605 0.976518 0.974881 0.974786 0.976212 0.978964 0.982654 0.986733 0.990582 0.993614 0.995341 0.995394 0.993513 0.989555 0.98351 0.97555 0.966038 0.955521 0.944686 0.934293 0.925095 0.917763 0.912829 0.91065 0.911384 0.91499 0.921227 0.929662 0.939701 0.950602 0.961504 0.971499 0.97978 0.985813 0.989439 0.990831 0.990345 0.988385 0.985344 0.981636 0.977734 0.974156 0.971417 0.969955 0.970095 0.972032 0.975842 0.981476 0.988741 0.997266 1.00648 1.01561 1.02382 1.03028 1.03441 1.03599 1.03517 1.03243 1.02844 1.02385 1.01923 1.01497 1.01128 1.00825 1.00586 1.00405 1.00272 1.00196 1.00125 1.00076 1.00044 1.00024 1.00012 1.00005 1.00001 0.999987 0.999979 0.999979 0.999981 0.999984 0.999987 0.999991 0.999993 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00009 1.00012 1.00017 1.00025 1.00038 1.00059 1.00093 1.00149 1.00237 1.00372 1.00576 1.0087 1.01275 1.018 1.02402 1.02982 1.03419 1.0362 1.03558 1.0326 1.0278 1.02172 1.01483 1.00758 1.00037 0.993549 0.987401 0.982216 0.978246 0.975681 0.974662 0.975254 0.977374 0.980729 0.984815 0.988987 0.992572 0.994963 0.995657 0.994266 0.990508 0.984233 0.975461 0.964436 0.95164 0.937773 0.923695 0.910344 0.89864 0.889395 0.883245 0.880609 0.88167 0.886361 0.89437 0.905158 0.918004 0.932053 0.946342 0.959832 0.971524 0.980641 0.986818 0.990139 0.991001 0.989919 0.987393 0.983897 0.979928 0.976028 0.972757 0.970624 0.970028 0.971235 0.974373 0.979435 0.986265 0.994526 1.00368 1.01298 1.02158 1.02862 1.03342 1.03568 1.03544 1.03314 1.02941 1.02492 1.02027 1.0159 1.01207 1.00888 1.00635 1.00442 1.00299 1.00215 1.00138 1.00085 1.0005 1.00028 1.00014 1.00006 1.00002 0.999993 0.999983 0.999981 0.999982 0.999985 0.999988 0.99999 0.999994 0.999995 0.999997 0.999997 0.999999 0.999999 0.999999 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00009 1.00013 1.00017 1.00026 1.00041 1.00063 1.00101 1.00163 1.00259 1.00407 1.00629 1.00947 1.01379 1.01928 1.02539 1.03099 1.03487 1.03625 1.035 1.03146 1.02622 1.01983 1.01274 1.00538 0.998186 0.991481 0.985551 0.980682 0.977139 0.975111 0.97471 0.975965 0.978719 0.982568 0.986897 0.990978 0.994099 0.995629 0.995039 0.991904 0.985917 0.976927 0.964988 0.950429 0.933862 0.916154 0.89836 0.881623 0.867055 0.855632 0.848109 0.844978 0.84645 0.852436 0.862545 0.876094 0.892182 0.909785 0.927816 0.945142 0.960627 0.973288 0.982519 0.988242 0.990833 0.990901 0.989083 0.985953 0.982059 0.977969 0.974278 0.971555 0.970273 0.97077 0.973235 0.977707 0.984069 0.99202 1.00105 1.01046 1.01937 1.0269 1.03233 1.03522 1.03557 1.03372 1.03027 1.0259 1.02125 1.0168 1.01283 1.00951 1.00684 1.00479 1.00326 1.00234 1.00151 1.00094 1.00057 1.00032 1.00017 1.00008 1.00003 1 0.999987 0.999983 0.999983 0.999985 0.999989 0.99999 0.999994 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00009 1.00013 1.00018 1.00027 1.00043 1.00068 1.00109 1.00177 1.00282 1.00442 1.00682 1.01024 1.01482 1.02051 1.02665 1.032 1.03537 1.03615 1.03433 1.03029 1.02466 1.018 1.01076 1.00333 0.996164 0.989602 0.983913 0.979373 0.976265 0.974776 0.974981 0.976859 0.98017 0.984396 0.988812 0.992627 0.995098 0.995559 0.993439 0.988271 0.97972 0.967635 0.952108 0.933558 0.91273 0.890674 0.868668 0.848089 0.830278 0.816395 0.807328 0.803649 0.805602 0.813087 0.825635 0.842403 0.862256 0.883921 0.906124 0.927627 0.947218 0.963774 0.976474 0.985033 0.989738 0.991253 0.990352 0.987743 0.984056 0.979901 0.975904 0.972682 0.970775 0.970596 0.972398 0.976274 0.982147 0.989754 0.998621 1.00806 1.01721 1.02518 1.03116 1.03466 1.03556 1.03416 1.03101 1.02679 1.02217 1.01765 1.01357 1.01011 1.00732 1.00515 1.00352 1.00254 1.00165 1.00104 1.00063 1.00036 1.0002 1.0001 1.00004 1.00001 0.999992 0.999986 0.999985 0.999987 0.999989 0.999991 0.999993 0.999995 0.999996 0.999998 0.999998 0.999999 0.999999 0.999999 1 0.999999 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00009 1.00013 1.00019 1.00028 1.00046 1.00073 1.00117 1.00191 1.00305 1.00478 1.00735 1.011 1.01582 1.02167 1.02779 1.03286 1.03573 1.03594 1.03359 1.02912 1.02314 1.01625 1.0089 1.00144 0.994311 0.987909 0.982478 0.978272 0.975597 0.974641 0.97543 0.977875 0.981654 0.986136 0.990492 0.99388 0.995531 0.994733 0.990857 0.983389 0.971968 0.956442 0.936941 0.91396 0.888384 0.861465 0.834739 0.809869 0.788454 0.771859 0.761102 0.756825 0.759306 0.768446 0.783718 0.80413 0.828283 0.854582 0.881468 0.907542 0.931534 0.952258 0.968742 0.980499 0.98767 0.990924 0.991154 0.989219 0.985864 0.981758 0.977564 0.973937 0.971477 0.970669 0.971832 0.975116 0.98049 0.987727 0.996386 1.00581 1.01514 1.02347 1.02995 1.034 1.03544 1.03448 1.03164 1.02759 1.02301 1.01845 1.01427 1.0107 1.00778 1.0055 1.00379 1.00272 1.00178 1.00113 1.00069 1.00041 1.00023 1.00011 1.00005 1.00001 0.999997 0.999989 0.999987 0.999988 0.999989 0.999992 0.999994 0.999995 0.999996 0.999998 0.999998 0.999999 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00008 1.00013 1.0002 1.00029 1.00048 1.00078 1.00125 1.00205 1.00329 1.00513 1.00787 1.01174 1.01678 1.02275 1.0288 1.03357 1.03596 1.03563 1.03282 1.02798 1.02169 1.0146 1.00717 0.999701 0.992628 0.986392 0.981231 0.977363 0.975108 0.974669 0.976011 0.978955 0.983105 0.987726 0.991892 0.994714 0.995396 0.993172 0.987345 0.977346 0.962792 0.943528 0.919705 0.891884 0.861093 0.828822 0.796922 0.767389 0.742112 0.722652 0.710133 0.705241 0.708277 0.719157 0.737328 0.761683 0.79057 0.822027 0.854116 0.885186 0.913877 0.938991 0.959486 0.974712 0.984646 0.989903 0.991466 0.990351 0.987441 0.983489 0.979197 0.97526 0.972326 0.970943 0.971501 0.974208 0.979082 0.985933 0.994356 1.00371 1.01317 1.0218 1.02872 1.03329 1.03523 1.0347 1.03217 1.0283 1.02378 1.01919 1.01494 1.01125 1.00823 1.00585 1.00404 1.0029 1.00191 1.00122 1.00075 1.00045 1.00025 1.00013 1.00006 1.00002 1 0.999993 0.999989 0.999989 0.99999 0.999993 0.999994 0.999996 0.999996 0.999998 0.999998 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00006 1.00008 1.00013 1.0002 1.0003 1.0005 1.00083 1.00133 1.00218 1.00351 1.00548 1.00837 1.01244 1.0177 1.02374 1.02968 1.03416 1.0361 1.03526 1.03203 1.02687 1.02032 1.01306 1.00557 0.99813 0.991116 0.985038 0.98016 0.976629 0.97477 0.974821 0.976676 0.980049 0.984471 0.989127 0.992991 0.995126 0.994715 0.990937 0.983004 0.970292 0.952394 0.929151 0.900717 0.867704 0.831299 0.793288 0.755902 0.721512 0.692293 0.669969 0.655718 0.650236 0.653836 0.666458 0.687558 0.715961 0.749815 0.786794 0.824517 0.860968 0.894629 0.9243 0.948944 0.967815 0.980733 0.988218 0.991297 0.991133 0.988766 0.985055 0.980756 0.976596 0.973266 0.971372 0.971368 0.973523 0.977904 0.984365 0.99253 1.00179 1.01133 1.0202 1.0275 1.03253 1.03495 1.03483 1.0326 1.02892 1.02448 1.01988 1.01556 1.01178 1.00865 1.00618 1.00429 1.00308 1.00203 1.00131 1.00082 1.00049 1.00028 1.00015 1.00008 1.00003 1.00001 0.999996 0.999992 0.999991 0.999992 0.999993 0.999994 0.999996 0.999997 0.999998 0.999999 0.999998 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00008 1.00013 1.00021 1.00031 1.00052 1.00087 1.00142 1.0023 1.00373 1.00582 1.00885 1.01311 1.01855 1.02465 1.03045 1.03463 1.03616 1.03486 1.03124 1.02582 1.01907 1.01163 1.0041 0.99672 0.989775 0.983837 0.979242 0.976052 0.974555 0.975055 0.977384 0.981114 0.985713 0.990312 0.993785 0.995139 0.993546 0.988123 0.97798 0.962424 0.941037 0.913653 0.880404 0.841944 0.799667 0.755721 0.712772 0.673568 0.640529 0.615485 0.599621 0.593611 0.597769 0.612063 0.635972 0.668305 0.707092 0.749709 0.793316 0.835433 0.874274 0.908604 0.937442 0.960026 0.976054 0.985929 0.990675 0.991576 0.989833 0.986433 0.982201 0.977899 0.974252 0.971912 0.971395 0.973031 0.976937 0.98301 0.990907 1.00005 1.00962 1.01869 1.02632 1.03177 1.03461 1.03488 1.03295 1.02946 1.0251 1.0205 1.01613 1.01227 1.00905 1.00649 1.00453 1.00324 1.00215 1.00139 1.00087 1.00053 1.00031 1.00017 1.00009 1.00004 1.00001 1 0.999995 0.999993 0.999993 0.999994 0.999995 0.999997 0.999997 0.999998 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00004 1.00006 1.00008 1.00012 1.00021 1.00032 1.00053 1.00091 1.0015 1.00243 1.00392 1.00615 1.00931 1.01372 1.01932 1.02548 1.03111 1.03499 1.03616 1.03446 1.03048 1.02484 1.01793 1.01033 1.00276 0.995464 0.988611 0.982782 0.978452 0.975609 0.974443 0.975335 0.978094 0.982116 0.986802 0.991267 0.994292 0.994802 0.991968 0.984856 0.972456 0.953993 0.929046 0.897445 0.85929 0.815294 0.767108 0.717306 0.668989 0.625237 0.588661 0.561157 0.543887 0.53747 0.542197 0.558039 0.584499 0.620415 0.663796 0.711846 0.761319 0.809217 0.853357 0.89238 0.925376 0.951634 0.97079 0.983134 0.989649 0.991701 0.990646 0.987612 0.983507 0.979131 0.975238 0.972521 0.971547 0.972703 0.97616 0.981854 0.98948 0.998479 1.00806 1.01729 1.0252 1.03101 1.03424 1.03487 1.03322 1.02991 1.02565 1.02106 1.01665 1.01271 1.00942 1.00678 1.00475 1.00339 1.00226 1.00147 1.00093 1.00057 1.00034 1.00019 1.0001 1.00005 1.00002 1 0.999998 0.999995 0.999994 0.999995 0.999995 0.999997 0.999998 0.999998 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999998 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00006 1.00008 1.00012 1.00021 1.00034 1.00055 1.00094 1.00158 1.00255 1.00411 1.00645 1.00975 1.01429 1.02001 1.02621 1.03168 1.03526 1.03612 1.03408 1.02976 1.02391 1.01691 1.00919 1.00154 0.994344 0.987621 0.981873 0.977765 0.975278 0.974415 0.975624 0.978767 0.983035 0.987721 0.991991 0.994542 0.994181 0.99008 0.981283 0.966644 0.945285 0.916789 0.880999 0.837997 0.788593 0.734748 0.67946 0.62621 0.578345 0.538651 0.509087 0.490755 0.48416 0.489502 0.506716 0.535326 0.574249 0.621584 0.674512 0.729504 0.783046 0.832453 0.87612 0.913163 0.942968 0.965173 0.979975 0.988296 0.991548 0.991223 0.988591 0.984656 0.980263 0.97619 0.973161 0.971787 0.972509 0.975548 0.980883 0.988242 0.99709 1.00666 1.016 1.02415 1.03027 1.03385 1.0348 1.03342 1.03029 1.02612 1.02155 1.01711 1.01312 1.00975 1.00704 1.00495 1.00353 1.00236 1.00154 1.00098 1.00061 1.00036 1.00021 1.00011 1.00006 1.00003 1.00001 1 0.999997 0.999996 0.999996 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00005 1.00008 1.00012 1.0002 1.00035 1.00056 1.00097 1.00164 1.00266 1.00427 1.00671 1.01015 1.0148 1.02062 1.02684 1.03217 1.03546 1.03603 1.03374 1.02912 1.02305 1.016 1.00822 1.00046 0.993338 0.986796 0.981119 0.977159 0.975023 0.97446 0.9759 0.979365 0.983854 0.988474 0.992492 0.994575 0.993359 0.987996 0.97756 0.960776 0.936619 0.904671 0.864824 0.817206 0.762777 0.703808 0.643658 0.586089 0.534694 0.492464 0.461418 0.442521 0.436055 0.442046 0.460364 0.490583 0.531763 0.582189 0.639153 0.698995 0.757758 0.812195 0.860331 0.901222 0.934365 0.95945 0.976618 0.986715 0.991172 0.99159 0.989377 0.985639 0.981273 0.977077 0.973797 0.972084 0.972422 0.97508 0.980081 0.987183 0.995878 1.00541 1.01484 1.02318 1.02958 1.03347 1.03471 1.03357 1.03061 1.02652 1.02198 1.01752 1.01348 1.01005 1.00728 1.00513 1.00365 1.00246 1.00161 1.00103 1.00064 1.00039 1.00023 1.00013 1.00007 1.00003 1.00001 1 0.999999 0.999997 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00005 1.00008 1.00012 1.00019 1.00035 1.00058 1.00099 1.00169 1.00277 1.00442 1.00694 1.0105 1.01525 1.02113 1.02738 1.03259 1.03562 1.03591 1.03342 1.02858 1.02229 1.01518 1.00742 0.999552 0.992432 0.986104 0.980533 0.976629 0.974803 0.974564 0.976156 0.979851 0.984558 0.98908 0.992786 0.994433 0.992429 0.985843 0.973849 0.955088 0.928332 0.893117 0.849453 0.797613 0.73876 0.675438 0.611237 0.550115 0.495919 0.45189 0.420055 0.401123 0.39504 0.401609 0.420656 0.451866 0.494501 0.547084 0.60711 0.670919 0.734234 0.793253 0.845535 0.889979 0.926164 0.953877 0.973237 0.985018 0.990638 0.991781 0.989984 0.986457 0.982147 0.977875 0.974403 0.972408 0.972414 0.974736 0.979432 0.986294 0.994839 1.00432 1.01381 1.02232 1.02894 1.03309 1.03459 1.03366 1.03085 1.02685 1.02234 1.01787 1.01379 1.01031 1.00749 1.0053 1.00376 1.00253 1.00167 1.00107 1.00067 1.00041 1.00024 1.00014 1.00008 1.00004 1.00002 1.00001 1 0.999998 0.999999 0.999998 0.999998 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00007 1.00011 1.00019 1.00035 1.0006 1.00101 1.00173 1.00285 1.00456 1.00713 1.0108 1.01565 1.02157 1.0278 1.03294 1.03575 1.03578 1.03313 1.02815 1.02165 1.01445 1.00676 0.998842 0.991636 0.985498 0.980115 0.976196 0.974573 0.974696 0.976401 0.980199 0.985121 0.989566 0.992907 0.994146 0.991478 0.983759 0.97031 0.9498 0.920752 0.882571 0.835419 0.779856 0.717323 0.650559 0.583242 0.51945 0.463299 0.418255 0.38626 0.367669 0.362049 0.368999 0.388361 0.419988 0.46337 0.517276 0.579423 0.646253 0.713295 0.776272 0.832235 0.87984 0.918698 0.948708 0.970012 0.983319 0.990013 0.991834 0.99043 0.98711 0.982877 0.978568 0.974955 0.972735 0.972464 0.974494 0.978921 0.985567 0.993969 1.0034 1.01293 1.02156 1.02837 1.03274 1.03446 1.03372 1.03104 1.02712 1.02264 1.01816 1.01405 1.01053 1.00767 1.00544 1.00385 1.0026 1.00172 1.00111 1.0007 1.00043 1.00026 1.00015 1.00008 1.00004 1.00002 1.00001 1 1 1 0.999999 0.999998 1 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00006 1.00011 1.00019 1.00034 1.0006 1.00103 1.00176 1.00292 1.00467 1.00729 1.01103 1.01598 1.02193 1.02813 1.03321 1.03586 1.03566 1.03286 1.02781 1.02116 1.01382 1.00621 0.998336 0.990992 0.984941 0.979828 0.975899 0.974316 0.974803 0.976657 0.980413 0.985504 0.989958 0.992908 0.993737 0.990579 0.981895 0.967106 0.945101 0.914177 0.873464 0.823243 0.764493 0.699034 0.629754 0.560301 0.494793 0.437557 0.392181 0.360445 0.34234 0.337104 0.344197 0.363528 0.395144 0.438755 0.493342 0.556823 0.625776 0.695659 0.761838 0.820889 0.871165 0.912261 0.94418 0.967114 0.981732 0.989369 0.991791 0.990736 0.987606 0.983458 0.979144 0.975436 0.973044 0.97255 0.974337 0.978534 0.984991 0.993264 1.00264 1.01219 1.02091 1.02788 1.03243 1.03432 1.03374 1.03118 1.02733 1.02287 1.01839 1.01426 1.01071 1.00781 1.00555 1.00392 1.00266 1.00176 1.00114 1.00072 1.00045 1.00027 1.00016 1.00009 1.00005 1.00003 1.00001 1.00001 1 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00006 1.0001 1.00018 1.00033 1.0006 1.00105 1.00178 1.00296 1.00476 1.00741 1.0112 1.01623 1.02222 1.02838 1.03339 1.03596 1.03559 1.03262 1.02754 1.02083 1.01333 1.00572 0.997999 0.990556 0.984434 0.979603 0.975763 0.974056 0.974812 0.976919 0.980533 0.985669 0.990255 0.992868 0.993243 0.989763 0.980388 0.96442 0.941143 0.908826 0.86618 0.813433 0.752022 0.684282 0.613289 0.542613 0.476323 0.418804 0.373624 0.342358 0.324713 0.31972 0.326777 0.345877 0.377237 0.420753 0.475573 0.539769 0.61006 0.681914 0.750467 0.811902 0.864268 0.907099 0.940491 0.964699 0.980364 0.988769 0.991688 0.990922 0.987954 0.983889 0.979592 0.975832 0.973321 0.972656 0.97425 0.978259 0.984557 0.99272 1.00204 1.01161 1.02039 1.02747 1.03216 1.0342 1.03373 1.03126 1.02747 1.02304 1.01856 1.01442 1.01085 1.00793 1.00564 1.00397 1.0027 1.00179 1.00117 1.00074 1.00046 1.00028 1.00017 1.0001 1.00006 1.00003 1.00002 1.00001 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1.00001 1.00002 1.00003 1.00005 1.0001 1.00018 1.00033 1.0006 1.00106 1.00179 1.00298 1.00482 1.00751 1.01132 1.01639 1.02243 1.02856 1.03351 1.03603 1.03557 1.03245 1.02733 1.02065 1.01303 1.00533 0.997762 0.990351 0.984035 0.979365 0.97577 0.973873 0.974671 0.977133 0.980636 0.985608 0.9904 0.992867 0.992735 0.989017 0.97932 0.962452 0.938085 0.904828 0.860994 0.806454 0.742952 0.673423 0.601285 0.530103 0.463834 0.406728 0.362158 0.331466 0.314193 0.309312 0.316245 0.33506 0.366085 0.409344 0.464095 0.528524 0.599473 0.672478 0.742558 0.805609 0.859409 0.903415 0.937801 0.962888 0.979301 0.988271 0.991557 0.991006 0.988164 0.984174 0.97991 0.976134 0.973551 0.97277 0.974221 0.978086 0.984259 0.992331 1.00161 1.01117 1.02 1.02716 1.03194 1.03408 1.0337 1.0313 1.02755 1.02315 1.01867 1.01452 1.01094 1.008 1.00571 1.004 1.00272 1.00182 1.00118 1.00076 1.00048 1.00029 1.00018 1.0001 1.00006 1.00003 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00002 1.00004 1.00009 1.00017 1.00032 1.00058 1.00105 1.0018 1.00299 1.00484 1.00756 1.01138 1.01647 1.02254 1.02867 1.03356 1.03607 1.0356 1.03239 1.02718 1.02056 1.01293 1.00508 0.997573 0.990331 0.983836 0.979096 0.975815 0.973848 0.974416 0.977182 0.980766 0.985399 0.990308 0.992919 0.992348 0.988334 0.978673 0.961375 0.936134 0.902245 0.857979 0.80262 0.7378 0.666958 0.594027 0.522787 0.457115 0.400978 0.357364 0.327326 0.310337 0.305471 0.312261 0.330832 0.361545 0.40448 0.458958 0.523227 0.594231 0.667609 0.738368 0.802229 0.856765 0.901353 0.936225 0.961772 0.978612 0.98792 0.991427 0.991004 0.988241 0.984314 0.980097 0.976336 0.973728 0.972881 0.974241 0.978007 0.984091 0.992096 1.00133 1.01089 1.01974 1.02694 1.03178 1.03398 1.03365 1.0313 1.02758 1.02319 1.01872 1.01457 1.01099 1.00805 1.00574 1.00401 1.00273 1.00183 1.0012 1.00077 1.00049 1.0003 1.00018 1.00011 1.00007 1.00004 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 0.999998 1 1 1 1.00002 1.00004 1.00007 1.00016 1.00031 1.00057 1.00103 1.00179 1.00298 1.00482 1.00756 1.01139 1.01647 1.02255 1.0287 1.03358 1.03607 1.03563 1.03243 1.02714 1.02053 1.013 1.00504 0.997444 0.990399 0.983889 0.978882 0.975781 0.97397 0.974175 0.976979 0.980867 0.985185 0.989942 0.99292 0.992217 0.987803 0.978331 0.961231 0.93555 0.901205 0.857049 0.801938 0.736922 0.66551 0.592167 0.52114 0.456403 0.401594 0.35917 0.329822 0.313031 0.308102 0.314752 0.333136 0.363573 0.406134 0.46016 0.523922 0.594428 0.667437 0.738036 0.801882 0.856422 0.900978 0.935823 0.961405 0.978338 0.987744 0.991315 0.990925 0.988194 0.984315 0.980153 0.976438 0.973848 0.972986 0.974305 0.978018 0.984049 0.99201 1.00122 1.01076 1.01961 1.02682 1.03168 1.03389 1.03359 1.03125 1.02755 1.02317 1.01871 1.01457 1.01099 1.00806 1.00575 1.004 1.00273 1.00183 1.0012 1.00077 1.00049 1.00031 1.00019 1.00012 1.00007 1.00004 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999999 0.999997 1 0.999997 0.999997 0.999999 1 1.00001 1.00003 1.00007 1.00015 1.0003 1.00056 1.00101 1.00177 1.00296 1.00478 1.00751 1.01135 1.0164 1.02246 1.02865 1.03357 1.03606 1.03568 1.03255 1.02724 1.02059 1.01316 1.00523 0.997465 0.990473 0.984132 0.978865 0.975636 0.974108 0.97409 0.976558 0.980763 0.985068 0.989421 0.992696 0.992344 0.98763 0.978218 0.961828 0.936482 0.901998 0.858167 0.804107 0.740205 0.669443 0.596466 0.526059 0.462493 0.409154 0.36793 0.33916 0.322425 0.317341 0.323829 0.342034 0.372173 0.414257 0.467621 0.530528 0.600009 0.671945 0.741565 0.804579 0.858389 0.902293 0.936599 0.961798 0.978492 0.987753 0.991226 0.990776 0.988028 0.98418 0.980084 0.976442 0.97391 0.973082 0.974411 0.978117 0.984132 0.992075 1.00126 1.01079 1.01962 1.0268 1.03164 1.03383 1.03351 1.03117 1.02746 1.02309 1.01864 1.01452 1.01095 1.00803 1.00573 1.00397 1.00272 1.00182 1.0012 1.00078 1.0005 1.00031 1.00019 1.00012 1.00007 1.00005 1.00003 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999999 0.999997 0.999997 0.999997 0.999994 0.999995 0.999997 1 1.00002 1.00006 1.00013 1.00028 1.00054 1.00098 1.00173 1.00291 1.00472 1.00741 1.01123 1.01626 1.02229 1.0285 1.0335 1.03606 1.03573 1.03271 1.02748 1.02079 1.01338 1.00558 0.997727 0.990592 0.984423 0.979114 0.975514 0.974091 0.97416 0.976129 0.980312 0.984948 0.988978 0.992185 0.992499 0.987991 0.978495 0.962877 0.938722 0.904891 0.861598 0.808876 0.747055 0.678374 0.607081 0.538176 0.47619 0.424323 0.384038 0.355541 0.338651 0.333303 0.339569 0.357538 0.387287 0.428726 0.481158 0.542829 0.610768 0.680957 0.748817 0.810208 0.862578 0.90523 0.938506 0.962921 0.979059 0.987939 0.991158 0.990553 0.987744 0.983914 0.979894 0.976353 0.973919 0.973171 0.974558 0.978302 0.984339 0.992289 1.00147 1.01097 1.01975 1.02688 1.03165 1.03379 1.03342 1.03104 1.02732 1.02296 1.01852 1.01441 1.01087 1.00796 1.00569 1.00393 1.00269 1.0018 1.00119 1.00077 1.0005 1.00031 1.0002 1.00012 1.00008 1.00005 1.00003 1.00002 1.00001 1.00001 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999998 0.999999 0.999999 0.999998 0.999994 0.999994 0.999994 0.999991 0.999992 0.999998 1.00001 1.00005 1.00012 1.00026 1.00052 1.00095 1.00168 1.00285 1.00463 1.00728 1.01105 1.01605 1.02205 1.02826 1.03335 1.03605 1.03582 1.03291 1.02782 1.02117 1.01372 1.00601 0.998221 0.990884 0.984682 0.979522 0.97561 0.973912 0.974184 0.975881 0.97961 0.984558 0.988717 0.991607 0.992395 0.988737 0.979474 0.964359 0.94176 0.90968 0.867686 0.81646 0.757006 0.691343 0.623113 0.556977 0.497273 0.446911 0.407233 0.378702 0.36152 0.355864 0.361857 0.379501 0.408713 0.449285 0.500468 0.560481 0.62635 0.694155 0.759529 0.818555 0.868813 0.909657 0.941447 0.964708 0.979996 0.988278 0.991096 0.990253 0.987343 0.983524 0.979591 0.976178 0.973881 0.973259 0.974751 0.978577 0.984673 0.992654 1.00184 1.0113 1.02002 1.02706 1.03173 1.03376 1.03331 1.03087 1.02713 1.02276 1.01833 1.01425 1.01074 1.00787 1.00562 1.00386 1.00264 1.00178 1.00118 1.00077 1.00049 1.00031 1.0002 1.00013 1.00008 1.00005 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 0.999999 0.999997 0.999998 0.999997 0.999993 0.999993 0.999991 0.999989 0.999987 0.999993 1 1.00004 1.00011 1.00024 1.00049 1.00091 1.00162 1.00276 1.00451 1.00711 1.0108 1.01575 1.02172 1.02794 1.03313 1.03602 1.03596 1.03316 1.02822 1.0217 1.01423 1.0065 0.998843 0.991441 0.984998 0.979912 0.975965 0.973785 0.973974 0.97575 0.978957 0.983762 0.988403 0.991262 0.992074 0.989415 0.981163 0.966633 0.945336 0.915627 0.876163 0.827202 0.770264 0.707818 0.643359 0.580959 0.524196 0.475493 0.43638 0.407873 0.390548 0.384689 0.390414 0.407635 0.436125 0.475559 0.525133 0.583029 0.646281 0.711083 0.773307 0.829304 0.876849 0.915381 0.945282 0.967061 0.981239 0.988728 0.991017 0.989864 0.986824 0.983015 0.979186 0.975929 0.973808 0.973356 0.974999 0.978949 0.985136 0.993171 1.00236 1.01178 1.02042 1.02733 1.03185 1.03375 1.03318 1.03066 1.02687 1.0225 1.01809 1.01404 1.01057 1.00774 1.00553 1.00378 1.00259 1.00174 1.00115 1.00076 1.00049 1.00031 1.0002 1.00013 1.00008 1.00005 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 0.999998 1 1 0.999999 1 0.999997 0.999997 0.999997 0.999994 0.99999 0.999989 0.999986 0.999982 0.999986 0.999997 1.00003 1.00009 1.00022 1.00046 1.00087 1.00155 1.00265 1.00436 1.0069 1.01051 1.01537 1.0213 1.02754 1.03284 1.03593 1.03612 1.03349 1.02867 1.02232 1.01493 1.00714 0.999513 0.9922 0.98554 0.980256 0.976399 0.97392 0.97362 0.975456 0.978509 0.982799 0.987692 0.991083 0.991921 0.989812 0.983029 0.969845 0.949777 0.922243 0.886026 0.840579 0.78701 0.728078 0.66755 0.609092 0.555426 0.508571 0.470401 0.442404 0.425316 0.419431 0.424887 0.44156 0.469107 0.507093 0.554656 0.60995 0.670023 0.731211 0.789664 0.842048 0.886369 0.922169 0.949839 0.969858 0.982702 0.989234 0.990889 0.989373 0.986187 0.982393 0.978689 0.975621 0.973712 0.973472 0.975309 0.979424 0.985735 0.993844 1.00305 1.01242 1.02094 1.02769 1.03203 1.03374 1.03303 1.03041 1.02656 1.02218 1.01779 1.01379 1.01036 1.00758 1.00541 1.00368 1.00252 1.0017 1.00113 1.00074 1.00048 1.00031 1.0002 1.00013 1.00008 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999998 0.999999 0.999999 0.999996 0.999995 0.999993 0.999989 0.999987 0.999983 0.999979 0.999981 0.999989 1.00002 1.00008 1.0002 1.00042 1.00082 1.00148 1.00254 1.00419 1.00666 1.01018 1.01492 1.02078 1.02706 1.03248 1.03579 1.03626 1.03389 1.02923 1.023 1.01577 1.00799 1.00028 0.993032 0.986349 0.98073 0.97675 0.974251 0.973428 0.974891 0.978037 0.982008 0.98663 0.990624 0.992066 0.990272 0.984617 0.973407 0.955272 0.9298 0.896629 0.855287 0.80627 0.751931 0.695878 0.641386 0.590723 0.54593 0.509213 0.482192 0.465573 0.459697 0.464802 0.480756 0.507109 0.54332 0.588456 0.640639 0.69697 0.753966 0.808085 0.856345 0.897013 0.929742 0.954917 0.972958 0.98429 0.989733 0.990676 0.988764 0.98543 0.981669 0.978116 0.975268 0.973609 0.973623 0.975696 0.980013 0.986477 0.994676 1.0039 1.0132 1.02158 1.02813 1.03224 1.03374 1.03284 1.0301 1.0262 1.0218 1.01744 1.01348 1.01011 1.00738 1.00527 1.00356 1.00244 1.00165 1.0011 1.00072 1.00047 1.00031 1.0002 1.00013 1.00008 1.00005 1.00004 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 0.999999 0.999998 0.999998 0.999997 0.999994 0.999992 0.999988 0.999985 0.999979 0.999976 0.999975 0.999983 1 1.00006 1.00017 1.00038 1.00076 1.00139 1.00241 1.004 1.00638 1.00979 1.01441 1.02018 1.02647 1.03205 1.0356 1.03637 1.03431 1.02988 1.02378 1.01668 1.00902 1.00124 0.993909 0.987288 0.98149 0.977117 0.974535 0.973501 0.974333 0.977267 0.981312 0.985621 0.989709 0.992056 0.991062 0.986177 0.976687 0.961125 0.938374 0.908192 0.870741 0.8267 0.777944 0.72727 0.677242 0.629952 0.587687 0.5528 0.526877 0.510682 0.504742 0.509396 0.524462 0.549371 0.583478 0.625777 0.674354 0.726396 0.778672 0.827991 0.871727 0.908415 0.937818 0.960297 0.976202 0.985894 0.990158 0.99034 0.988023 0.984557 0.980854 0.977485 0.974892 0.973521 0.973827 0.976174 0.980727 0.98737 0.995672 1.0049 1.01413 1.02233 1.02864 1.03249 1.03373 1.03263 1.02974 1.02577 1.02136 1.01703 1.01313 1.00983 1.00716 1.0051 1.00343 1.00235 1.00159 1.00106 1.0007 1.00046 1.0003 1.0002 1.00013 1.00008 1.00006 1.00004 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999997 0.999999 0.999995 0.999994 0.999992 0.999987 0.999983 0.999977 0.999973 0.99997 0.999975 0.999995 1.00004 1.00015 1.00035 1.0007 1.0013 1.00227 1.00379 1.00607 1.00936 1.01385 1.0195 1.02577 1.03152 1.03536 1.03646 1.03474 1.03061 1.02469 1.01769 1.01016 1.00243 0.994952 0.988255 0.982449 0.977736 0.974755 0.97361 0.974037 0.976358 0.980352 0.984756 0.988715 0.991544 0.991748 0.988017 0.979863 0.966608 0.947082 0.920541 0.887184 0.848062 0.804925 0.759838 0.714708 0.671442 0.632308 0.599576 0.574888 0.559255 0.553386 0.55762 0.571677 0.594896 0.626569 0.665638 0.710166 0.757452 0.804565 0.848724 0.88767 0.92018 0.946106 0.965769 0.979432 0.987404 0.990438 0.989847 0.987139 0.983571 0.979965 0.976816 0.974514 0.973469 0.974105 0.97676 0.981579 0.988421 0.996835 1.00607 1.01519 1.02318 1.02921 1.03275 1.0337 1.03236 1.02932 1.02527 1.02086 1.01657 1.01274 1.00951 1.00692 1.00492 1.00329 1.00225 1.00152 1.00102 1.00067 1.00044 1.00029 1.00019 1.00013 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 0.999999 0.999999 0.999998 0.999997 0.999995 0.999994 0.999991 0.999986 0.99998 0.999976 0.999969 0.999966 0.999967 0.999985 1.00003 1.00012 1.00031 1.00064 1.0012 1.00212 1.00356 1.00573 1.00888 1.01322 1.01874 1.02498 1.03087 1.03504 1.03653 1.03516 1.03136 1.02571 1.01883 1.01137 1.00374 0.996239 0.989342 0.983448 0.978614 0.975161 0.97362 0.97386 0.975657 0.979146 0.983658 0.987835 0.990839 0.991889 0.989687 0.983191 0.971903 0.955279 0.932704 0.904111 0.870256 0.832524 0.792614 0.752251 0.713206 0.677518 0.647337 0.624415 0.60988 0.604418 0.608292 0.621198 0.642477 0.671405 0.706885 0.746995 0.789184 0.830848 0.869625 0.903642 0.931902 0.954308 0.971113 0.982494 0.988713 0.99051 0.989164 0.986106 0.982486 0.979022 0.976135 0.974161 0.973476 0.974476 0.977473 0.982583 0.989641 0.998168 1.0074 1.01638 1.02412 1.02983 1.03301 1.03364 1.03205 1.02884 1.02472 1.0203 1.01606 1.0123 1.00916 1.00665 1.00472 1.00314 1.00215 1.00145 1.00097 1.00065 1.00043 1.00028 1.00019 1.00013 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 0.999999 0.999997 0.999995 0.999993 0.99999 0.999986 0.999979 0.999975 0.999966 0.999961 0.999962 0.999974 1.00001 1.0001 1.00027 1.00058 1.0011 1.00197 1.00333 1.00538 1.00838 1.01254 1.01792 1.02411 1.03011 1.0346 1.03653 1.03559 1.03214 1.02678 1.02011 1.01272 1.00514 0.997698 0.990674 0.984527 0.979572 0.975863 0.973748 0.973584 0.975119 0.97807 0.982241 0.986711 0.990168 0.991755 0.990745 0.986163 0.977152 0.963256 0.944327 0.920459 0.891973 0.859633 0.824819 0.789187 0.7544 0.722374 0.695233 0.674656 0.661599 0.656635 0.660048 0.671605 0.690712 0.716653 0.748282 0.783706 0.820592 0.8567 0.890068 0.919168 0.943216 0.962143 0.976119 0.985234 0.989719 0.990316 0.988271 0.984928 0.981318 0.978051 0.975468 0.97386 0.97357 0.974965 0.978331 0.983754 0.991037 0.999674 1.00888 1.01769 1.02514 1.03047 1.03327 1.03354 1.03167 1.0283 1.0241 1.01969 1.01551 1.01183 1.00878 1.00636 1.00451 1.00298 1.00204 1.00138 1.00093 1.00062 1.00041 1.00027 1.00018 1.00012 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 0.999999 1 0.999998 0.999997 0.999998 0.999996 0.999991 0.99999 0.999986 0.999978 0.999972 0.999966 0.999956 0.999956 0.999966 0.999997 1.00008 1.00023 1.00051 1.001 1.0018 1.00308 1.00502 1.00786 1.01182 1.01702 1.02313 1.02925 1.03405 1.03644 1.03599 1.03294 1.02789 1.02149 1.01424 1.00667 0.999246 0.992216 0.985845 0.980588 0.976693 0.974184 0.973377 0.974498 0.977155 0.980871 0.985209 0.989182 0.991537 0.991465 0.988441 0.9818 0.970889 0.955487 0.935768 0.911985 0.884689 0.855035 0.824413 0.794251 0.76635 0.742672 0.72461 0.712961 0.708368 0.711224 0.721336 0.738139 0.760936 0.788564 0.819179 0.850713 0.881326 0.909439 0.933806 0.953801 0.969372 0.980604 0.987517 0.990335 0.989812 0.987158 0.983616 0.98009 0.977079 0.974848 0.973642 0.973777 0.975596 0.979355 0.985106 0.992619 1.00135 1.0105 1.0191 1.02622 1.03113 1.03349 1.03338 1.03123 1.02768 1.02341 1.01902 1.01491 1.01133 1.00838 1.00605 1.00428 1.00281 1.00193 1.00131 1.00088 1.00059 1.00039 1.00026 1.00018 1.00012 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999998 1 1 0.999996 0.999997 0.999996 0.999992 0.999989 0.999985 0.999978 0.99997 0.999964 0.999955 0.99995 0.999958 0.999985 1.00005 1.00019 1.00045 1.0009 1.00164 1.00283 1.00464 1.00731 1.01107 1.01606 1.02205 1.02826 1.03338 1.03625 1.03633 1.03375 1.02905 1.02291 1.01588 1.00839 1.00092 0.993864 0.987406 0.981835 0.977581 0.974793 0.973478 0.973918 0.976156 0.979616 0.983681 0.987766 0.990881 0.991933 0.990297 0.985622 0.977458 0.965464 0.949607 0.930054 0.907385 0.882672 0.857033 0.831633 0.808031 0.787828 0.772167 0.76189 0.75777 0.760201 0.768935 0.783414 0.802992 0.826553 0.852387 0.878714 0.904072 0.927222 0.94716 0.963369 0.975781 0.984411 0.989235 0.990495 0.988971 0.985829 0.982197 0.978839 0.976144 0.974308 0.97354 0.974129 0.976395 0.980564 0.986652 0.99439 1.0032 1.01226 1.02061 1.02733 1.03178 1.03367 1.03316 1.03071 1.02699 1.02266 1.01829 1.01426 1.01079 1.00796 1.00573 1.00405 1.00264 1.00181 1.00123 1.00083 1.00056 1.00037 1.00025 1.00017 1.00012 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 1 0.999999 0.999998 1 0.999997 0.999997 0.999996 0.999993 0.999988 0.999984 0.999978 0.99997 0.999961 0.999953 0.999945 0.99995 0.999973 1.00003 1.00015 1.00039 1.0008 1.00148 1.00257 1.00426 1.00676 1.0103 1.01505 1.02089 1.02714 1.03257 1.03593 1.03657 1.03452 1.03025 1.02441 1.01758 1.01024 1.00279 0.995639 0.989097 0.983351 0.978693 0.975476 0.973786 0.97364 0.975187 0.978252 0.98218 0.986242 0.989725 0.991776 0.991621 0.988745 0.982819 0.973718 0.961429 0.94599 0.927839 0.907842 0.886857 0.865853 0.846164 0.829149 0.815866 0.807157 0.803715 0.805815 0.813194 0.825372 0.841755 0.861299 0.882507 0.90394 0.924458 0.943068 0.958951 0.971689 0.981191 0.987406 0.9903 0.99016 0.987792 0.984308 0.980705 0.977605 0.975286 0.973887 0.973585 0.974653 0.977385 0.981977 0.988404 0.996356 1.00522 1.01415 1.02218 1.02846 1.0324 1.03379 1.03285 1.0301 1.02621 1.02184 1.01752 1.01359 1.01023 1.00752 1.0054 1.00381 1.00247 1.00169 1.00115 1.00078 1.00052 1.00035 1.00024 1.00016 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 0.999998 0.999996 0.999995 0.999992 0.999989 0.999984 0.999977 0.999969 0.999959 0.999952 0.999942 0.999942 0.999961 1.00001 1.00012 1.00033 1.0007 1.00132 1.00232 1.00387 1.00619 1.00951 1.01402 1.01966 1.0259 1.0316 1.03547 1.0367 1.03522 1.03145 1.02597 1.01937 1.01219 1.00483 0.997623 0.990922 0.985025 0.980102 0.976393 0.974195 0.973589 0.974507 0.976906 0.98051 0.984608 0.988344 0.991024 0.992079 0.990925 0.987115 0.980581 0.971402 0.959631 0.945609 0.929928 0.913175 0.896167 0.880107 0.866206 0.855364 0.848243 0.845402 0.847079 0.853076 0.863018 0.876361 0.892111 0.909006 0.925977 0.942173 0.956753 0.969015 0.978621 0.985477 0.989497 0.990661 0.98932 0.9863 0.982637 0.979189 0.976434 0.974549 0.973621 0.973812 0.975378 0.978591 0.983611 0.990373 0.998518 1.0074 1.01614 1.02381 1.02958 1.03296 1.03381 1.03244 1.0294 1.02536 1.02096 1.0167 1.01288 1.00965 1.00706 1.00506 1.00356 1.00229 1.00157 1.00107 1.00072 1.00049 1.00033 1.00023 1.00016 1.00011 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999998 0.999999 0.999996 0.999995 0.999993 0.999988 0.999984 0.999978 0.999969 0.999959 0.999949 0.999941 0.999936 0.999949 0.999991 1.00008 1.00027 1.0006 1.00116 1.00208 1.0035 1.00563 1.00871 1.01295 1.01837 1.02454 1.03046 1.03483 1.03669 1.03584 1.03261 1.02755 1.02125 1.01423 1.00698 0.999794 0.99297 0.986852 0.981698 0.977627 0.974862 0.97367 0.974051 0.975824 0.978843 0.982725 0.986676 0.989897 0.991855 0.992085 0.9902 0.986063 0.979637 0.970964 0.960375 0.948328 0.935291 0.921993 0.909432 0.89853 0.889924 0.884164 0.881809 0.883087 0.887812 0.895688 0.906237 0.918553 0.931612 0.944665 0.957088 0.968153 0.97724 0.98407 0.988566 0.990638 0.990311 0.988003 0.984544 0.980879 0.977712 0.97538 0.973976 0.973551 0.974255 0.976333 0.980036 0.985484 0.992564 1.00087 1.00972 1.01821 1.02545 1.03067 1.03343 1.03373 1.03192 1.02859 1.02443 1.02003 1.01584 1.01214 1.00906 1.0066 1.00472 1.00331 1.00212 1.00145 1.00099 1.00067 1.00046 1.00031 1.00021 1.00015 1.0001 1.00007 1.00005 1.00004 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999998 0.999997 0.999998 0.999995 0.999993 0.999988 0.999985 0.999978 0.999969 0.999959 0.999947 0.999939 0.999934 0.999939 0.999973 1.00005 1.00021 1.00051 1.00101 1.00184 1.00313 1.00508 1.00792 1.01187 1.01702 1.02308 1.02916 1.03399 1.03651 1.03635 1.0337 1.02913 1.02318 1.01639 1.00924 1.00209 0.99523 0.988921 0.983471 0.979078 0.975871 0.974045 0.97376 0.974947 0.977402 0.980819 0.984674 0.988313 0.991087 0.992434 0.992042 0.989842 0.985764 0.979804 0.9722 0.963318 0.953576 0.943565 0.934027 0.92563 0.918886 0.914344 0.912522 0.913524 0.917134 0.92315 0.931194 0.940494 0.95027 0.960012 0.969223 0.977256 0.983582 0.987994 0.990431 0.990831 0.989286 0.986273 0.982604 0.97911 0.976339 0.9745 0.973615 0.973714 0.974944 0.977544 0.981737 0.987605 0.994982 1.00341 1.01216 1.02035 1.02708 1.03168 1.0338 1.03352 1.03128 1.02769 1.02342 1.01903 1.01494 1.01139 1.00845 1.00614 1.00437 1.00306 1.00195 1.00134 1.00091 1.00062 1.00042 1.00029 1.0002 1.00014 1.0001 1.00007 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 1 0.999999 1 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 0.999996 0.999999 0.999995 0.999992 0.999991 0.999983 0.999977 0.999971 0.999959 0.999947 0.999936 0.999931 0.999932 0.999957 1.00002 1.00016 1.00042 1.00087 1.00161 1.00277 1.00455 1.00715 1.0108 1.01565 1.02152 1.02769 1.03294 1.03612 1.03669 1.03471 1.03066 1.02513 1.01863 1.01163 1.00453 0.997638 0.991224 0.985511 0.980741 0.977128 0.974789 0.973805 0.974274 0.976138 0.979062 0.982601 0.986316 0.989624 0.99188 0.992735 0.992126 0.989989 0.986308 0.981269 0.975158 0.968256 0.96097 0.953901 0.94761 0.942527 0.939129 0.937785 0.938481 0.94107 0.945467 0.951348 0.958083 0.965132 0.972145 0.978669 0.984113 0.988065 0.990402 0.9911 0.990136 0.987672 0.98423 0.980579 0.977418 0.975142 0.973849 0.97351 0.974146 0.97591 0.979033 0.983713 0.989983 0.997623 1.00612 1.01471 1.02251 1.02866 1.03258 1.03403 1.03317 1.03051 1.02668 1.02233 1.01799 1.01402 1.01062 1.00784 1.00567 1.00403 1.00282 1.00178 1.00122 1.00084 1.00057 1.00039 1.00027 1.00019 1.00013 1.00009 1.00007 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999998 0.999996 0.999997 0.999991 0.99999 0.999987 0.999976 0.99997 0.999961 0.999948 0.999934 0.999927 0.999928 0.999943 0.999997 1.00012 1.00034 1.00073 1.00139 1.00243 1.00403 1.00639 1.00974 1.01426 1.01989 1.02607 1.03168 1.0355 1.03682 1.03558 1.03214 1.02706 1.0209 1.01413 1.00712 1.0002 0.9937 0.987811 0.982708 0.978647 0.975811 0.974237 0.973988 0.975114 0.977425 0.98057 0.984146 0.987623 0.99047 0.992391 0.993197 0.992673 0.990792 0.987784 0.98388 0.979226 0.974158 0.969223 0.964809 0.961178 0.958713 0.95768 0.958051 0.959795 0.962892 0.967015 0.97166 0.976497 0.981275 0.985551 0.988804 0.990754 0.991371 0.990667 0.988665 0.985596 0.982006 0.978588 0.975899 0.974194 0.97348 0.973699 0.974879 0.97718 0.980823 0.985976 0.992621 1.00048 1.00898 1.01733 1.02465 1.03016 1.03334 1.03409 1.03266 1.0296 1.02557 1.02117 1.0169 1.01308 1.00984 1.00723 1.00521 1.00369 1.00258 1.00162 1.00111 1.00076 1.00052 1.00036 1.00025 1.00018 1.00012 1.00009 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 0.999999 0.999999 0.999999 0.999996 0.999998 0.999993 0.999988 0.999988 0.999979 0.999969 0.999961 0.999949 0.999935 0.999924 0.999922 0.999934 0.999976 1.00008 1.00027 1.00061 1.00119 1.00211 1.00354 1.00566 1.00871 1.01289 1.01822 1.02431 1.03019 1.03462 1.03672 1.03626 1.03351 1.02897 1.0232 1.01669 1.00983 1.00295 0.996365 0.990309 0.98496 0.980512 0.97715 0.974992 0.974106 0.974494 0.976057 0.978637 0.981914 0.985364 0.988539 0.991182 0.993 0.993693 0.993268 0.991947 0.989827 0.986974 0.983746 0.980569 0.977609 0.975071 0.973327 0.972554 0.972713 0.973851 0.975942 0.978661 0.981641 0.984711 0.987657 0.990045 0.991463 0.991779 0.991043 0.989291 0.986592 0.98323 0.97975 0.976751 0.974645 0.973562 0.973443 0.97422 0.97594 0.978773 0.982929 0.988536 0.995519 1.00353 1.01196 1.01998 1.02673 1.03152 1.03393 1.03396 1.03198 1.02855 1.02435 1.01995 1.01579 1.01212 1.00906 1.00663 1.00475 1.00336 1.00234 1.00146 1.00101 1.00069 1.00048 1.00033 1.00023 1.00016 1.00012 1.00008 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999999 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 0.999999 0.999997 0.999996 0.999995 0.999988 0.999987 0.999981 0.999971 0.99996 0.999951 0.999937 0.999924 0.999918 0.999925 0.999958 1.00004 1.0002 1.0005 1.001 1.00181 1.00308 1.00497 1.00772 1.01154 1.01652 1.02244 1.02848 1.03346 1.03634 1.03671 1.03471 1.03079 1.02548 1.01929 1.01262 1.00584 0.999234 0.993026 0.987447 0.982689 0.978872 0.976127 0.974596 0.974288 0.975124 0.977025 0.979762 0.982932 0.98619 0.989231 0.991667 0.993239 0.994015 0.994101 0.993419 0.992031 0.99029 0.988432 0.986541 0.984889 0.983783 0.983249 0.983264 0.983934 0.985206 0.986779 0.988435 0.990095 0.991533 0.992355 0.992291 0.99135 0.989633 0.987192 0.98413 0.980769 0.977624 0.975188 0.973739 0.9733 0.973776 0.975105 0.977356 0.98071 0.985361 0.991392 0.998664 1.00676 1.01502 1.02261 1.02871 1.0327 1.0343 1.03362 1.03111 1.02737 1.02305 1.01868 1.01465 1.01116 1.0083 1.00604 1.00431 1.00304 1.00212 1.00132 1.00091 1.00063 1.00043 1.0003 1.00021 1.00015 1.00011 1.00008 1.00006 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 0.999999 1 0.999999 0.999997 0.999999 0.999994 0.999996 0.99999 0.999985 0.999982 0.999973 0.999963 0.999951 0.999936 0.999926 0.999916 0.999917 0.999942 1.00001 1.00014 1.00039 1.00083 1.00154 1.00265 1.00433 1.00678 1.01023 1.01484 1.02049 1.02659 1.03201 1.03564 1.03688 1.0357 1.03248 1.02772 1.02191 1.01549 1.00885 1.00227 0.995972 0.990194 0.985142 0.980936 0.977692 0.975533 0.974512 0.974638 0.975837 0.977886 0.980543 0.983614 0.986761 0.989547 0.991773 0.993468 0.994543 0.994864 0.994597 0.994021 0.993197 0.992204 0.991327 0.990722 0.990334 0.990227 0.990531 0.991136 0.991789 0.992405 0.992942 0.99316 0.992738 0.991565 0.989752 0.987422 0.984631 0.981514 0.978409 0.97578 0.974009 0.973252 0.973457 0.974511 0.976374 0.979142 0.983003 0.988125 0.994539 1.00204 1.01014 1.01812 1.02517 1.03052 1.03366 1.03443 1.03306 1.03005 1.02605 1.02167 1.01737 1.0135 1.01021 1.00754 1.00546 1.00389 1.00273 1.0019 1.00118 1.00081 1.00056 1.00039 1.00028 1.0002 1.00014 1.0001 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999999 0.999997 0.999996 0.999993 0.999994 0.999987 0.999981 0.999976 0.999965 0.999952 0.999939 0.999926 0.999915 0.999914 0.999928 0.99998 1.00009 1.0003 1.00068 1.00129 1.00225 1.00373 1.0059 1.00899 1.01319 1.0185 1.02452 1.03027 1.0346 1.03673 1.03644 1.03398 1.02984 1.0245 1.01841 1.01195 1.00544 0.999114 0.993205 0.987891 0.983325 0.979642 0.976929 0.975245 0.974649 0.975093 0.976418 0.978505 0.981186 0.984097 0.986892 0.989469 0.991731 0.993427 0.994488 0.995131 0.995454 0.995397 0.995098 0.994798 0.994521 0.994232 0.994069 0.994104 0.994172 0.994117 0.993945 0.993609 0.992876 0.991542 0.989637 0.987329 0.984729 0.981894 0.978984 0.976339 0.974356 0.973304 0.973241 0.974066 0.97567 0.978044 0.981312 0.985659 0.991221 0.997965 1.00561 1.0136 1.02121 1.02761 1.03212 1.03435 1.03428 1.03225 1.02882 1.02461 1.02021 1.01604 1.01235 1.00927 1.00681 1.00491 1.00348 1.00244 1.0017 1.00105 1.00073 1.00051 1.00036 1.00025 1.00018 1.00013 1.00009 1.00007 1.00005 1.00003 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 0.999997 0.999999 0.999992 0.999993 0.99999 0.99998 0.999976 0.999968 0.999953 0.999944 0.999927 0.999915 0.999911 0.999919 0.999958 1.00005 1.00022 1.00054 1.00106 1.0019 1.00318 1.00508 1.00782 1.0116 1.01652 1.02234 1.02827 1.03321 1.03621 1.03684 1.03524 1.03181 1.02702 1.02132 1.01512 1.00873 1.00242 0.996435 0.990932 0.986063 0.981967 0.978752 0.976493 0.975224 0.9749 0.975489 0.976943 0.97904 0.981453 0.984014 0.986655 0.989132 0.991172 0.992793 0.994098 0.994999 0.995463 0.995691 0.995811 0.995759 0.995567 0.995381 0.995181 0.994809 0.994226 0.993487 0.992511 0.991105 0.989201 0.98693 0.984466 0.981887 0.979256 0.976758 0.974716 0.973454 0.973137 0.973743 0.97515 0.977269 0.980128 0.983873 0.988679 0.994636 1.00164 1.00934 1.01711 1.0242 1.02984 1.03343 1.03473 1.03384 1.0312 1.02741 1.02307 1.01871 1.01469 1.01122 1.00836 1.00611 1.00438 1.0031 1.00217 1.00151 1.00093 1.00065 1.00045 1.00032 1.00023 1.00016 1.00012 1.00009 1.00006 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 1 1 0.999998 1 0.999999 0.999999 1 0.999998 0.999999 0.999997 0.999995 0.999991 0.999991 0.999983 0.999976 0.999969 0.999957 0.999943 0.999932 0.999917 0.999906 0.999914 0.99994 1.00001 1.00015 1.00042 1.00086 1.00157 1.00268 1.00434 1.00674 1.0101 1.01457 1.02008 1.02605 1.03146 1.03527 1.03687 1.0362 1.03356 1.0294 1.02418 1.01831 1.01211 1.00588 0.999863 0.994227 0.989119 0.984675 0.981018 0.978234 0.976335 0.97531 0.975188 0.975921 0.977292 0.979122 0.981353 0.983807 0.986162 0.988265 0.99016 0.99178 0.992983 0.993833 0.994474 0.99487 0.994956 0.994842 0.994628 0.994224 0.993533 0.992613 0.991518 0.990138 0.988347 0.986197 0.983876 0.981527 0.979197 0.976959 0.975018 0.973669 0.973153 0.973548 0.974778 0.976719 0.979313 0.982628 0.986824 0.992054 0.998353 1.00554 1.01317 1.02059 1.02704 1.03179 1.03441 1.03476 1.03309 1.02992 1.02584 1.02144 1.01718 1.01335 1.01011 1.00748 1.00543 1.00388 1.00274 1.00192 1.00134 1.00082 1.00057 1.0004 1.00029 1.0002 1.00015 1.00011 1.00008 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 0.999999 0.999999 1 0.999998 1 0.999998 0.999998 0.999997 0.999997 0.999992 0.99999 0.999988 0.999977 0.999969 0.999963 0.999945 0.999934 0.99992 0.999908 0.999908 0.999926 0.99998 1.0001 1.00031 1.00068 1.00129 1.00224 1.00366 1.00575 1.0087 1.01271 1.01781 1.02366 1.02938 1.03391 1.03646 1.03677 1.03502 1.03158 1.02693 1.02147 1.01554 1.00946 1.00347 0.997746 0.992458 0.987743 0.983722 0.980451 0.977962 0.976317 0.97555 0.975554 0.976183 0.977402 0.97914 0.981129 0.983125 0.985101 0.987021 0.988695 0.990027 0.991108 0.991952 0.992445 0.9926 0.992557 0.992324 0.991785 0.990926 0.98985 0.988579 0.98701 0.985107 0.983 0.980879 0.978843 0.976921 0.975203 0.973905 0.973283 0.973498 0.974555 0.976348 0.978768 0.981799 0.985543 0.99016 0.995771 1.00234 1.0096 1.01704 1.02396 1.02962 1.0334 1.03499 1.03442 1.03204 1.02841 1.02413 1.01974 1.01563 1.01203 1.00904 1.00665 1.0048 1.00342 1.00241 1.00168 1.00117 1.00072 1.0005 1.00036 1.00026 1.00018 1.00013 1.0001 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999998 1 1 0.999999 1 0.999997 0.999998 0.999996 0.999996 0.999987 0.999987 0.999982 0.999972 0.999962 0.999951 0.999937 0.999923 0.999911 0.999904 0.999917 0.999956 1.00005 1.00022 1.00053 1.00103 1.00184 1.00306 1.00485 1.00742 1.01096 1.01559 1.02116 1.02701 1.03212 1.03557 1.0369 1.03611 1.0335 1.02951 1.02454 1.01897 1.01311 1.00721 1.00147 0.996062 0.991145 0.986811 0.983115 0.980136 0.977963 0.976573 0.975856 0.975789 0.976384 0.977489 0.978863 0.980421 0.98215 0.983879 0.985398 0.986694 0.987813 0.988666 0.989164 0.989382 0.989395 0.989131 0.988515 0.987615 0.986528 0.985235 0.983664 0.981867 0.980017 0.978267 0.97667 0.975252 0.974129 0.973513 0.973609 0.974507 0.976157 0.978444 0.98129 0.984722 0.988863 0.993865 0.999797 1.00655 1.01376 1.02086 1.02712 1.03187 1.0346 1.03515 1.03369 1.03068 1.02669 1.02232 1.01801 1.0141 1.01075 1.00801 1.00585 1.00421 1.00299 1.0021 1.00147 1.00103 1.00063 1.00044 1.00032 1.00023 1.00017 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 0.999997 1 1 0.999996 0.999995 0.999996 0.999993 0.999985 0.999982 0.999977 0.999963 0.999954 0.99994 0.999927 0.999912 0.999906 0.999909 0.999937 1.00001 1.00015 1.0004 1.00082 1.00149 1.00252 1.00405 1.00626 1.00934 1.01348 1.01865 1.02442 1.02993 1.03418 1.03652 1.03675 1.03507 1.03184 1.02746 1.02233 1.01677 1.01104 1.00535 0.9999 0.99484 0.990252 0.986217 0.98285 0.980194 0.978193 0.976829 0.976158 0.976133 0.976562 0.977327 0.97842 0.979733 0.981047 0.982266 0.983421 0.984446 0.985199 0.985657 0.985898 0.985914 0.985612 0.984993 0.984164 0.983174 0.981974 0.980552 0.979028 0.977573 0.976287 0.97519 0.974324 0.973826 0.973889 0.974663 0.976173 0.978338 0.981051 0.984271 0.988065 0.992571 0.997913 1.00409 1.01091 1.01793 1.02452 1.02997 1.03369 1.03532 1.03485 1.03258 1.02904 1.02481 1.02043 1.01627 1.0126 1.00952 1.00704 1.00512 1.00366 1.00259 1.00182 1.00128 1.00089 1.00054 1.00039 1.00028 1.0002 1.00015 1.00011 1.00008 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 0.999999 1 0.999998 0.999999 1 0.999997 1 0.999998 0.999995 0.999995 0.999994 0.999988 0.999982 0.999978 0.999968 0.999958 0.999945 0.99993 0.999917 0.999908 0.999905 0.999923 0.999978 1.00009 1.00029 1.00063 1.00119 1.00206 1.00335 1.00523 1.00788 1.0115 1.01618 1.0217 1.02739 1.03229 1.03558 1.03688 1.0362 1.03383 1.03015 1.02556 1.02039 1.0149 1.00935 1.00393 0.998784 0.994011 0.98973 0.986034 0.982929 0.980407 0.978536 0.97733 0.976666 0.97643 0.97662 0.977198 0.977984 0.978832 0.979733 0.980654 0.981449 0.982014 0.982389 0.982607 0.982588 0.98227 0.981719 0.981029 0.980198 0.979182 0.978029 0.976888 0.975896 0.975104 0.97452 0.974214 0.974333 0.975043 0.976431 0.97847 0.981066 0.984139 0.987689 0.991813 0.996646 1.00227 1.0086 1.01535 1.02201 1.02791 1.0324 1.03499 1.0355 1.03407 1.03111 1.02716 1.02281 1.01849 1.01455 1.01115 1.00835 1.00614 1.00444 1.00317 1.00224 1.00157 1.0011 1.00077 1.00047 1.00034 1.00024 1.00018 1.00013 1.0001 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 0.999997 1 0.999999 0.999997 1 0.999997 0.999995 0.999993 0.999991 0.999986 0.999977 0.999973 0.999961 0.999949 0.999934 0.99992 0.999912 0.999905 0.999913 0.999952 1.00004 1.00019 1.00048 1.00093 1.00165 1.00273 1.00432 1.00658 1.0097 1.01383 1.01895 1.02459 1.02993 1.03407 1.03641 1.0368 1.03539 1.03253 1.02858 1.02388 1.01873 1.01341 1.00809 1.00292 0.998047 0.993603 0.989637 0.98616 0.983236 0.980932 0.979195 0.977926 0.977119 0.976793 0.97684 0.977095 0.977501 0.978048 0.978633 0.979121 0.979488 0.979767 0.979917 0.979845 0.979545 0.979106 0.978578 0.977931 0.977153 0.976336 0.975622 0.975104 0.974798 0.97472 0.974959 0.975662 0.976955 0.978872 0.981351 0.984302 0.987678 0.991518 0.995938 1.00105 1.00687 1.01323 1.01976 1.02586 1.0309 1.0343 1.03572 1.03514 1.03283 1.0293 1.02509 1.02071 1.01656 1.01288 1.00977 1.00726 1.0053 1.00382 1.00271 1.00191 1.00135 1.00094 1.00067 1.00041 1.00029 1.00021 1.00016 1.00012 1.00009 1.00006 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 1 0.999997 1 0.999997 0.999998 0.999999 0.999995 0.999994 0.999991 0.999987 0.999982 0.999972 0.999965 0.999953 0.999941 0.999926 0.999912 0.999907 0.999911 0.999934 0.999997 1.00012 1.00035 1.00072 1.00131 1.0022 1.00353 1.00543 1.00808 1.01167 1.01627 1.02165 1.02718 1.03199 1.03531 1.03678 1.03642 1.03448 1.03128 1.02717 1.02247 1.01745 1.0123 1.00721 1.00233 0.997776 0.993597 0.989846 0.986613 0.983915 0.981695 0.97994 0.978683 0.977874 0.977381 0.977127 0.977113 0.977286 0.977508 0.977699 0.977877 0.978032 0.978075 0.97795 0.977701 0.977392 0.977024 0.976568 0.976059 0.975607 0.975325 0.975255 0.9754 0.975796 0.976547 0.977783 0.979584 0.981938 0.984769 0.988003 0.99163 0.995724 1.0004 1.00573 1.01165 1.01789 1.02399 1.02935 1.03336 1.03557 1.03581 1.03421 1.03117 1.02721 1.02287 1.01859 1.01466 1.01128 1.00848 1.00626 1.00454 1.00325 1.00231 1.00163 1.00114 1.00081 1.00057 1.00035 1.00025 1.00019 1.00014 1.0001 1.00008 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999997 1 1 0.999998 1 1 0.999998 1 1 0.999997 1 0.999998 0.999999 1 0.999996 0.999999 0.999998 0.999994 0.999992 0.999988 0.999983 0.999976 0.999969 0.999957 0.999944 0.999931 0.99992 0.999908 0.999906 0.999925 0.99997 1.00006 1.00024 1.00054 1.00102 1.00175 1.00285 1.00444 1.00667 1.00972 1.01374 1.01869 1.02416 1.02939 1.03355 1.03609 1.03683 1.0359 1.03356 1.03016 1.02601 1.02138 1.01651 1.01158 1.00677 1.00217 0.997855 0.993933 0.990466 0.987436 0.984831 0.982695 0.98103 0.979746 0.978768 0.978096 0.977711 0.977505 0.977376 0.977305 0.977297 0.977294 0.977213 0.977053 0.976871 0.976689 0.976473 0.976215 0.975987 0.975898 0.976013 0.976342 0.976893 0.977723 0.978941 0.980645 0.982868 0.985566 0.988664 0.992119 0.995957 1.00027 1.00515 1.01061 1.01648 1.02242 1.0279 1.03232 1.03516 1.03614 1.03524 1.03275 1.02913 1.02491 1.02057 1.01647 1.01284 1.00977 1.00729 1.00534 1.00386 1.00275 1.00195 1.00138 1.00097 1.00068 1.00049 1.0003 1.00022 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 1 0.999996 1 1 0.999996 0.999999 0.999994 0.999993 0.99999 0.999984 0.99998 0.999971 0.999961 0.999951 0.999938 0.999922 0.999914 0.999908 0.999916 0.999948 1.00002 1.00016 1.00039 1.00077 1.00137 1.00227 1.00358 1.00544 1.00801 1.01145 1.01585 1.02101 1.02638 1.03117 1.03468 1.03653 1.03668 1.03531 1.03274 1.02925 1.02513 1.02062 1.01596 1.01129 1.00672 1.00238 0.998369 0.994715 0.991419 0.988528 0.986085 0.984055 0.982369 0.981014 0.979995 0.979252 0.978683 0.978245 0.977948 0.977758 0.977594 0.977413 0.977243 0.977119 0.977034 0.976954 0.976899 0.97695 0.97719 0.97765 0.978326 0.979237 0.980455 0.982079 0.984172 0.986726 0.989682 0.992979 0.996605 1.00062 1.0051 1.01012 1.01558 1.02125 1.02668 1.03131 1.03462 1.03621 1.03596 1.03403 1.0308 1.02679 1.02247 1.01825 1.01441 1.0111 1.00837 1.0062 1.00451 1.00324 1.00231 1.00164 1.00115 1.00082 1.00058 1.00041 1.00026 1.00019 1.00014 1.00011 1.00008 1.00006 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 1 0.999997 1 0.999996 0.999998 0.999997 0.999992 0.999991 0.999987 0.999981 0.999975 0.999966 0.999955 0.999942 0.999931 0.999918 0.999912 0.999911 0.999934 0.999986 1.00009 1.00027 1.00057 1.00106 1.00179 1.00286 1.00439 1.00653 1.00943 1.01322 1.0179 1.02312 1.02825 1.03255 1.03545 1.03672 1.03642 1.03477 1.03206 1.02856 1.02455 1.02023 1.01579 1.01137 1.00709 1.00304 0.999259 0.995801 0.992727 0.99004 0.987702 0.985701 0.984051 0.982724 0.981647 0.980769 0.980089 0.979596 0.979226 0.978914 0.978657 0.978492 0.97842 0.978408 0.978448 0.978588 0.978899 0.979427 0.980174 0.98114 0.982361 0.983917 0.985882 0.988281 0.991078 0.994212 0.997646 1.0014 1.00555 1.01016 1.0152 1.02052 1.02577 1.03045 1.03404 1.03611 1.03642 1.03503 1.03223 1.02847 1.02423 1.01996 1.01597 1.01245 1.00949 1.0071 1.00522 1.00378 1.00271 1.00192 1.00136 1.00096 1.00068 1.00049 1.00035 1.00022 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 0.999997 1 0.999999 0.999998 1 0.999995 0.999997 0.999997 0.999989 0.999991 0.999983 0.999977 0.99997 0.999961 0.999946 0.999936 0.999926 0.999914 0.999914 0.999923 0.99996 1.00004 1.00018 1.00041 1.0008 1.00138 1.00225 1.0035 1.00527 1.00767 1.01087 1.01495 1.0198 1.02496 1.02976 1.03356 1.03594 1.03676 1.03614 1.03432 1.03157 1.02816 1.0243 1.02019 1.01601 1.01187 1.00786 1.00405 1.00053 0.997337 0.994455 0.991884 0.989652 0.987764 0.986173 0.984826 0.983716 0.982842 0.982164 0.981621 0.981192 0.980893 0.980735 0.980693 0.980742 0.980898 0.981218 0.981753 0.982515 0.983493 0.984699 0.986186 0.988025 0.990258 0.992877 0.995832 0.999076 1.0026 1.00645 1.01068 1.01532 1.02026 1.02523 1.02982 1.03354 1.03593 1.03669 1.03578 1.03339 1.02992 1.02583 1.02157 1.01747 1.01379 1.01063 1.00802 1.00595 1.00435 1.00313 1.00224 1.00159 1.00113 1.0008 1.00057 1.00041 1.0003 1.00019 1.00014 1.00011 1.00008 1.00006 1.00005 1.00003 1.00003 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 0.999998 1 0.999998 0.999999 0.999999 0.999995 0.999996 0.999993 0.999991 0.999985 0.999979 0.999973 0.999966 0.999953 0.999941 0.999932 0.999921 0.999913 0.999922 0.999946 0.999997 1.0001 1.00029 1.00059 1.00105 1.00175 1.00276 1.00419 1.00617 1.00884 1.0123 1.01659 1.02148 1.02648 1.03093 1.03428 1.03623 1.03672 1.0359 1.03401 1.03132 1.02803 1.02437 1.02051 1.0166 1.01274 1.00901 1.00549 1.00222 0.999224 0.996518 0.994133 0.992059 0.990258 0.988712 0.987426 0.986387 0.985549 0.984873 0.984362 0.984029 0.983866 0.983843 0.983951 0.984221 0.984698 0.985407 0.986344 0.987502 0.988908 0.990616 0.992677 0.995102 0.99786 1.0009 1.0042 1.00778 1.01167 1.01592 1.02046 1.0251 1.02949 1.0332 1.03576 1.03684 1.03632 1.03432 1.03114 1.02723 1.02302 1.01888 1.01507 1.01174 1.00895 1.0067 1.00494 1.00359 1.00258 1.00184 1.0013 1.00093 1.00066 1.00047 1.00034 1.00025 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999998 1 1 0.999996 1 0.999998 0.999995 0.999996 0.99999 0.999988 0.999985 0.999974 0.999968 0.999962 0.999947 0.999937 0.999928 0.99992 0.999919 0.999936 0.999974 1.00005 1.00019 1.00042 1.00078 1.00134 1.00215 1.0033 1.00491 1.0071 1.00998 1.01365 1.01805 1.02291 1.02768 1.03177 1.03474 1.03637 1.03665 1.03574 1.03388 1.03128 1.02819 1.02478 1.02119 1.01755 1.01398 1.01055 1.00729 1.00427 1.00151 0.999033 0.99682 0.994866 0.993185 0.991775 0.990606 0.989639 0.988867 0.988301 0.987945 0.987772 0.987762 0.987924 0.988294 0.988898 0.989737 0.990801 0.992099 0.993665 0.995546 0.997763 1.0003 1.00312 1.00619 1.0095 1.01309 1.01696 1.02111 1.02538 1.02949 1.03306 1.03566 1.03693 1.0367 1.03502 1.03213 1.02842 1.0243 1.02015 1.01626 1.0128 1.00986 1.00745 1.00553 1.00405 1.00293 1.0021 1.0015 1.00106 1.00076 1.00054 1.00039 1.00028 1.00021 1.00013 1.0001 1.00008 1.00006 1.00005 1.00003 1.00003 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999998 1 1 0.999999 0.999999 0.999998 0.999999 0.999996 0.999994 0.999994 0.999989 0.999984 0.999981 0.999972 0.999964 0.999954 0.999944 0.999933 0.999925 0.999921 0.999928 0.999957 1.00001 1.00011 1.00029 1.00058 1.001 1.00164 1.00257 1.00386 1.00563 1.008 1.01107 1.01487 1.01931 1.02404 1.02856 1.03234 1.03501 1.03642 1.0366 1.03569 1.03392 1.0315 1.02863 1.02548 1.02218 1.01885 1.01559 1.01244 1.00947 1.00672 1.0042 1.00192 0.999893 0.998134 0.996631 0.995359 0.994307 0.993482 0.992888 0.992507 0.992318 0.992321 0.992536 0.992989 0.993685 0.994614 0.99577 0.997173 0.998859 1.00085 1.00316 1.00574 1.00857 1.01161 1.01489 1.01842 1.02217 1.02605 1.02982 1.03316 1.03567 1.03701 1.03696 1.03552 1.03288 1.02937 1.02537 1.02126 1.01733 1.01378 1.01072 1.00817 1.00613 1.00452 1.00329 1.00237 1.0017 1.00121 1.00086 1.00061 1.00044 1.00032 1.00024 1.00018 1.00011 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 0.999999 1 0.999999 1 1 1 0.999999 1 1 0.999997 1 0.999999 0.999995 0.999998 0.999997 0.999993 0.999991 0.999987 0.999983 0.999976 0.999968 0.999961 0.999951 0.999938 0.999932 0.999928 0.999927 0.999944 0.999986 1.00006 1.00019 1.00041 1.00075 1.00124 1.00197 1.00301 1.00442 1.00633 1.00885 1.01205 1.01592 1.02031 1.02488 1.02915 1.03266 1.03512 1.03641 1.03657 1.03574 1.03414 1.03194 1.02933 1.02648 1.02349 1.02048 1.01752 1.01467 1.01199 1.00951 1.00724 1.0052 1.00341 1.00186 1.00053 0.999434 0.99858 0.997963 0.997565 0.997374 0.997399 0.99766 0.998169 0.998919 0.999902 1.00112 1.0026 1.00436 1.00642 1.00874 1.0113 1.01408 1.01705 1.02023 1.0236 1.02707 1.03047 1.0335 1.03581 1.0371 1.03713 1.03585 1.03341 1.03008 1.02621 1.02217 1.01825 1.01465 1.0115 1.00885 1.00669 1.00497 1.00365 1.00264 1.0019 1.00136 1.00097 1.00069 1.0005 1.00036 1.00026 1.0002 1.00015 1.00009 1.00007 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 0.999999 1 0.999999 1 0.999999 0.999998 1 0.999999 0.999996 0.999997 0.999995 0.999992 0.999989 0.999985 0.999978 0.999974 0.999964 0.999955 0.999949 0.999936 0.999933 0.999931 0.999939 0.999966 1.00002 1.00012 1.00028 1.00054 1.00093 1.00149 1.0023 1.00343 1.00496 1.00699 1.00961 1.01288 1.01675 1.02105 1.02542 1.02946 1.03276 1.03508 1.03633 1.03656 1.03589 1.0345 1.03258 1.03027 1.02773 1.02507 1.02239 1.01976 1.01723 1.01484 1.01264 1.01065 1.00887 1.00731 1.00597 1.00488 1.00402 1.00339 1.00298 1.00279 1.00284 1.00314 1.00369 1.00447 1.00548 1.00674 1.00825 1.01004 1.0121 1.01438 1.01686 1.01953 1.02236 1.02535 1.02841 1.03138 1.03404 1.03609 1.03722 1.03722 1.03602 1.03372 1.03055 1.02682 1.02287 1.01898 1.01538 1.01218 1.00946 1.00721 1.0054 1.00399 1.00291 1.0021 1.00151 1.00108 1.00077 1.00055 1.0004 1.00029 1.00022 1.00016 1.00012 1.00008 1.00006 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999998 1 0.999999 0.999999 1 0.999999 1 1 0.999997 0.999999 0.999999 0.999997 0.999995 0.999994 0.999991 0.999988 0.999982 0.999977 0.999971 0.999961 0.999953 0.999947 0.999936 0.999934 0.999941 0.999955 0.999991 1.00007 1.00019 1.00038 1.00068 1.00112 1.00175 1.00263 1.00385 1.00546 1.00757 1.01026 1.01354 1.01736 1.02151 1.02567 1.0295 1.03264 1.0349 1.03619 1.03655 1.0361 1.03498 1.03337 1.0314 1.0292 1.02689 1.02455 1.02225 1.02005 1.01798 1.01608 1.01436 1.01285 1.01155 1.01048 1.00963 1.00901 1.00861 1.00845 1.00852 1.00884 1.0094 1.01019 1.01121 1.01247 1.01399 1.01575 1.01774 1.01992 1.02226 1.02474 1.02734 1.02997 1.03251 1.03475 1.03645 1.03734 1.03722 1.03602 1.0338 1.03076 1.02717 1.02333 1.01952 1.01594 1.01273 1.00997 1.00766 1.00579 1.00431 1.00317 1.0023 1.00166 1.00119 1.00085 1.00061 1.00044 1.00032 1.00023 1.00018 1.00013 1.0001 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999998 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999997 1 0.999998 0.999994 0.999997 0.999993 0.999987 0.999987 0.999981 0.999973 0.999968 0.99996 0.99995 0.999944 0.999939 0.999941 0.999951 0.999976 1.00003 1.00012 1.00026 1.00048 1.00082 1.00131 1.00199 1.00294 1.00422 1.0059 1.00807 1.01077 1.01401 1.01771 1.02168 1.02565 1.02928 1.03231 1.03455 1.03594 1.03649 1.0363 1.03551 1.03424 1.03264 1.03081 1.02887 1.02689 1.02495 1.02308 1.02134 1.01974 1.01833 1.0171 1.01609 1.01528 1.01469 1.01431 1.01417 1.01427 1.01459 1.01515 1.01593 1.01693 1.01817 1.01964 1.02132 1.02317 1.02517 1.02729 1.02947 1.03167 1.03375 1.03554 1.03684 1.03743 1.03712 1.03585 1.03366 1.03072 1.02725 1.02354 1.01983 1.01631 1.01314 1.01037 1.00803 1.00612 1.00459 1.0034 1.00248 1.0018 1.00129 1.00092 1.00066 1.00048 1.00034 1.00025 1.00019 1.00014 1.00011 1.00008 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999999 1 0.999999 0.999999 1 0.999997 0.999998 0.999998 0.999995 0.999994 0.999992 0.999987 0.999984 0.999979 0.99997 0.999966 0.999958 0.999949 0.999947 0.999943 0.999949 0.999967 1 1.00006 1.00017 1.00034 1.00059 1.00096 1.00149 1.00223 1.00322 1.00455 1.00626 1.00844 1.01111 1.01427 1.01782 1.02159 1.02534 1.02881 1.03175 1.03402 1.03554 1.03632 1.03643 1.03599 1.0351 1.0339 1.03247 1.03092 1.02932 1.02775 1.02623 1.02482 1.02356 1.02245 1.02152 1.02078 1.02024 1.01991 1.0198 1.01991 1.02023 1.02076 1.02151 1.02247 1.02363 1.02499 1.02651 1.02815 1.02988 1.03164 1.03338 1.03498 1.03631 1.03717 1.03741 1.03686 1.03547 1.03327 1.0304 1.02706 1.02349 1.0199 1.01649 1.01337 1.01064 1.00831 1.00638 1.00482 1.00359 1.00264 1.00192 1.00139 1.001 1.00071 1.00051 1.00037 1.00027 1.0002 1.00015 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999998 1 1 0.999997 1 1 0.999996 0.999999 0.999997 0.999992 0.999994 0.999991 0.999984 0.999982 0.999978 0.999969 0.999962 0.99996 0.999952 0.999947 0.99995 0.999963 0.999986 1.00003 1.00011 1.00023 1.00042 1.0007 1.0011 1.00166 1.00243 1.00346 1.00481 1.00653 1.00868 1.01128 1.01431 1.01768 1.02123 1.02478 1.02808 1.03096 1.03326 1.03492 1.03595 1.03639 1.03632 1.03584 1.03505 1.03404 1.0329 1.0317 1.03051 1.02936 1.0283 1.02736 1.02656 1.02592 1.02546 1.02519 1.02511 1.02522 1.02553 1.02602 1.0267 1.02757 1.02859 1.02976 1.03103 1.03235 1.03368 1.03495 1.03607 1.03691 1.03733 1.03719 1.03638 1.03484 1.03261 1.0298 1.02659 1.02317 1.01973 1.01645 1.01344 1.01077 1.00847 1.00656 1.00499 1.00375 1.00277 1.00203 1.00147 1.00106 1.00076 1.00055 1.00039 1.00029 1.00021 1.00016 1.00012 1.00009 1.00007 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999997 1 1 0.999996 0.999998 0.999996 0.999991 0.999993 0.999989 0.999985 0.99998 0.999975 0.999969 0.999962 0.999959 0.999954 0.999954 0.999959 0.999976 1.00001 1.00006 1.00015 1.00029 1.0005 1.0008 1.00123 1.00182 1.00261 1.00365 1.005 1.00669 1.00878 1.01127 1.01414 1.0173 1.02063 1.02395 1.0271 1.02989 1.03223 1.03404 1.03531 1.03606 1.03636 1.03629 1.03592 1.03535 1.03462 1.03383 1.03302 1.03225 1.03153 1.03091 1.03042 1.03006 1.02985 1.0298 1.02991 1.03018 1.03061 1.03118 1.03189 1.03271 1.03359 1.03451 1.0354 1.0362 1.03684 1.0372 1.03719 1.03668 1.0356 1.03392 1.03165 1.02891 1.02583 1.02258 1.01932 1.01619 1.01331 1.01074 1.00852 1.00664 1.0051 1.00385 1.00287 1.00212 1.00154 1.00111 1.0008 1.00057 1.00041 1.0003 1.00022 1.00016 1.00012 1.0001 1.00007 1.00006 1.00005 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999998 1 1 0.999998 1 1 0.999998 1 0.999998 0.999996 0.999999 0.999995 0.999991 0.999992 0.999988 0.999982 0.999979 0.999975 0.99997 0.999961 0.99996 0.999959 0.999961 0.999971 0.999994 1.00003 1.00009 1.0002 1.00035 1.00058 1.0009 1.00134 1.00194 1.00274 1.00378 1.0051 1.00674 1.00874 1.01109 1.01377 1.0167 1.01979 1.02288 1.02585 1.02856 1.0309 1.03283 1.0343 1.03534 1.03598 1.0363 1.03634 1.03617 1.03586 1.03546 1.03503 1.0346 1.03421 1.03389 1.03366 1.03354 1.03352 1.03362 1.03383 1.03415 1.03456 1.03505 1.03557 1.03609 1.03656 1.03691 1.0371 1.03703 1.03661 1.03578 1.03446 1.03265 1.03038 1.02772 1.02478 1.02172 1.01866 1.01572 1.01301 1.01057 1.00844 1.00663 1.00512 1.0039 1.00293 1.00217 1.00159 1.00115 1.00083 1.0006 1.00043 1.00031 1.00023 1.00017 1.00013 1.0001 1.00008 1.00006 1.00005 1.00004 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 1 0.999998 1 0.999997 0.999996 0.999998 0.999995 0.99999 0.99999 0.999988 0.999983 0.999978 0.999974 0.999971 0.999965 0.999963 0.999964 0.999969 0.999985 1.00001 1.00006 1.00013 1.00024 1.00041 1.00065 1.00098 1.00143 1.00204 1.00283 1.00384 1.00512 1.00668 1.00856 1.01075 1.01322 1.01591 1.01873 1.02159 1.02437 1.02695 1.02926 1.03124 1.03287 1.03413 1.03507 1.03571 1.0361 1.03631 1.03636 1.03632 1.03621 1.03609 1.03598 1.03589 1.03585 1.03587 1.03595 1.03608 1.03625 1.03645 1.03666 1.03683 1.03692 1.03689 1.03669 1.03624 1.0355 1.0344 1.03291 1.03103 1.02877 1.02622 1.02347 1.02061 1.01777 1.01505 1.01252 1.01024 1.00823 1.00652 1.00508 1.00389 1.00294 1.0022 1.00162 1.00118 1.00085 1.00061 1.00044 1.00032 1.00023 1.00017 1.00013 1.0001 1.00008 1.00006 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 0.999998 1 1 0.999997 0.999995 0.999997 0.999994 0.999991 0.999989 0.999986 0.999982 0.999977 0.999975 0.999972 0.999967 0.999968 0.999973 0.99998 0.999998 1.00003 1.00009 1.00017 1.00029 1.00046 1.00071 1.00104 1.0015 1.0021 1.00287 1.00384 1.00505 1.00652 1.00825 1.01026 1.0125 1.01494 1.0175 1.0201 1.02265 1.02508 1.0273 1.02927 1.03097 1.03239 1.03352 1.03441 1.03508 1.03556 1.0359 1.03613 1.03628 1.03638 1.03645 1.0365 1.03654 1.03658 1.03661 1.03662 1.0366 1.0365 1.03631 1.03598 1.03548 1.03476 1.03378 1.0325 1.03092 1.02902 1.02685 1.02445 1.02189 1.01928 1.01668 1.0142 1.01188 1.00978 1.00792 1.00631 1.00495 1.00382 1.00291 1.00219 1.00162 1.00118 1.00086 1.00062 1.00044 1.00032 1.00023 1.00017 1.00013 1.0001 1.00007 1.00006 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999998 0.999999 0.999999 0.999996 0.999996 0.999997 0.999994 0.999989 0.999988 0.999987 0.999982 0.999977 0.999975 0.999974 0.999971 0.999974 0.999982 0.999993 1.00002 1.00005 1.00011 1.0002 1.00033 1.00051 1.00076 1.00109 1.00154 1.00212 1.00285 1.00378 1.0049 1.00625 1.00783 1.00964 1.01165 1.01382 1.01611 1.01844 1.02075 1.02297 1.02505 1.02695 1.02864 1.0301 1.03133 1.03236 1.03319 1.03385 1.03437 1.03476 1.03504 1.03525 1.03538 1.03545 1.03544 1.03537 1.03522 1.03497 1.03461 1.0341 1.03342 1.03254 1.03144 1.0301 1.02851 1.02668 1.02464 1.02243 1.02011 1.01775 1.01542 1.01319 1.01109 1.00919 1.00749 1.00601 1.00475 1.0037 1.00283 1.00214 1.0016 1.00117 1.00085 1.00062 1.00044 1.00032 1.00023 1.00017 1.00012 1.00009 1.00007 1.00006 1.00005 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 0.999998 1 0.999998 0.999996 0.999997 0.999995 0.999993 0.99999 0.999989 0.999986 0.999982 0.99998 0.999977 0.999976 0.999977 0.99998 0.99999 1.00001 1.00003 1.00007 1.00014 1.00023 1.00036 1.00054 1.00079 1.00112 1.00155 1.0021 1.00279 1.00365 1.00468 1.0059 1.00732 1.00892 1.0107 1.01261 1.01461 1.01666 1.0187 1.02069 1.02258 1.02433 1.02592 1.02733 1.02856 1.02961 1.03048 1.0312 1.03177 1.03219 1.0325 1.03268 1.03276 1.03273 1.03257 1.03229 1.03188 1.03131 1.03057 1.02966 1.02855 1.02725 1.02574 1.02405 1.0222 1.02022 1.01816 1.01608 1.01402 1.01205 1.01019 1.0085 1.00697 1.00564 1.00449 1.00352 1.00272 1.00207 1.00155 1.00114 1.00084 1.0006 1.00043 1.00031 1.00022 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00004 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999998 0.999999 0.999999 0.999998 0.999995 0.999996 0.999995 0.999993 0.99999 0.999988 0.999987 0.999983 0.999982 0.999982 0.99998 0.999983 0.99999 1 1.00002 1.00005 1.0001 1.00016 1.00026 1.00039 1.00057 1.00081 1.00113 1.00153 1.00205 1.00269 1.00346 1.00439 1.00548 1.00673 1.00813 1.00967 1.01132 1.01304 1.01481 1.01657 1.0183 1.01996 1.02151 1.02293 1.02421 1.02534 1.0263 1.02711 1.02777 1.02828 1.02864 1.02886 1.02893 1.02887 1.02866 1.0283 1.02779 1.02711 1.02627 1.02526 1.02407 1.02273 1.02123 1.01961 1.01789 1.01611 1.01431 1.01254 1.01083 1.00921 1.00773 1.00638 1.0052 1.00416 1.00329 1.00256 1.00196 1.00148 1.0011 1.0008 1.00058 1.00042 1.0003 1.00021 1.00015 1.00011 1.00008 1.00006 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 0.999998 1 0.999999 1 1 1 1 1 1 0.999999 0.999999 1 0.999998 0.999999 0.999999 0.999998 0.999996 0.999996 0.999995 0.999992 0.999991 0.999989 0.999988 0.999985 0.999982 0.999985 0.999986 0.999988 0.999997 1.00001 1.00003 1.00006 1.00012 1.00018 1.00028 1.00041 1.00058 1.00081 1.00111 1.00149 1.00196 1.00254 1.00324 1.00406 1.00501 1.00609 1.00729 1.0086 1.01 1.01145 1.01294 1.01442 1.01588 1.01728 1.01859 1.0198 1.02089 1.02185 1.02266 1.02333 1.02385 1.02422 1.02445 1.02452 1.02444 1.0242 1.02382 1.02328 1.02258 1.02173 1.02073 1.01959 1.01833 1.01696 1.01552 1.01402 1.01251 1.01101 1.00956 1.00818 1.00691 1.00575 1.00471 1.0038 1.00302 1.00237 1.00182 1.00138 1.00103 1.00076 1.00055 1.0004 1.00028 1.0002 1.00014 1.0001 1.00007 1.00006 1.00004 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 0.999999 0.999999 0.999999 0.999998 0.999997 0.999997 0.999995 0.999995 0.999993 0.99999 0.999989 0.99999 0.999986 0.999985 0.999989 0.999993 0.999997 1 1.00002 1.00005 1.00008 1.00013 1.0002 1.00029 1.00042 1.00059 1.0008 1.00108 1.00142 1.00185 1.00236 1.00298 1.00369 1.0045 1.00542 1.00643 1.00753 1.00868 1.00989 1.01111 1.01232 1.01351 1.01465 1.01571 1.01668 1.01755 1.0183 1.01892 1.01941 1.01975 1.01996 1.02003 1.01994 1.01972 1.01934 1.01882 1.01817 1.01739 1.01648 1.01546 1.01436 1.01318 1.01197 1.01073 1.00949 1.00829 1.00714 1.00607 1.00508 1.00419 1.00341 1.00273 1.00215 1.00167 1.00127 1.00095 1.0007 1.00051 1.00037 1.00026 1.00018 1.00013 1.00009 1.00006 1.00005 1.00004 1.00003 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999999 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 0.999999 0.999997 0.999996 0.999998 0.999995 0.999994 0.999995 0.999991 0.999989 0.999992 0.999989 0.999989 0.999992 0.999997 1.00001 1.00002 1.00003 1.00006 1.0001 1.00014 1.00021 1.0003 1.00042 1.00058 1.00078 1.00103 1.00134 1.00171 1.00216 1.00269 1.0033 1.00398 1.00475 1.00559 1.00648 1.00742 1.00838 1.00936 1.01032 1.01126 1.01215 1.01296 1.0137 1.01435 1.01489 1.01532 1.01562 1.0158 1.01585 1.01577 1.01556 1.01523 1.01477 1.0142 1.01352 1.01274 1.01189 1.01097 1.01001 1.00902 1.00803 1.00705 1.00611 1.00523 1.00441 1.00366 1.003 1.00242 1.00192 1.00149 1.00115 1.00086 1.00064 1.00047 1.00033 1.00024 1.00016 1.00011 1.00008 1.00005 1.00004 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999997 1 1 0.999999 0.999999 1 0.999998 0.999998 1 0.999997 0.999996 0.999997 0.999997 0.999995 0.999993 0.999992 0.999991 0.999994 0.999993 0.999993 0.999997 1 1.00001 1.00003 1.00004 1.00007 1.00011 1.00015 1.00022 1.00031 1.00042 1.00056 1.00074 1.00096 1.00124 1.00156 1.00194 1.00239 1.0029 1.00347 1.00409 1.00476 1.00548 1.00622 1.00698 1.00774 1.00848 1.00918 1.00985 1.01045 1.01098 1.01142 1.01177 1.01202 1.01217 1.01221 1.01214 1.01196 1.01167 1.01129 1.01082 1.01025 1.00962 1.00893 1.00819 1.00743 1.00665 1.00589 1.00514 1.00442 1.00375 1.00314 1.00259 1.0021 1.00168 1.00132 1.00101 1.00077 1.00057 1.00041 1.0003 1.00021 1.00014 1.0001 1.00007 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 0.999998 1 0.999999 1 1 0.999998 1 1 0.999998 1 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999999 0.999997 1 0.999997 0.999997 0.999997 0.999995 0.999997 0.999994 0.999993 0.999993 0.999995 0.999996 0.999998 1 1.00001 1.00002 1.00003 1.00005 1.00008 1.00012 1.00016 1.00022 1.0003 1.00041 1.00053 1.00069 1.00088 1.00112 1.0014 1.00172 1.00209 1.0025 1.00297 1.00347 1.004 1.00455 1.00513 1.0057 1.00627 1.00682 1.00733 1.0078 1.00822 1.00857 1.00885 1.00904 1.00916 1.00919 1.00913 1.00898 1.00875 1.00843 1.00805 1.00761 1.00711 1.00657 1.00599 1.0054 1.00481 1.00423 1.00367 1.00313 1.00264 1.00219 1.00179 1.00143 1.00113 1.00088 1.00067 1.0005 1.00036 1.00026 1.00018 1.00012 1.00008 1.00005 1.00003 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999997 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999998 0.999999 1 1 0.999998 1 0.999999 1 1 0.999998 0.999998 1 0.999999 0.999996 0.999997 0.999996 0.999998 0.999996 0.999994 0.999997 0.999998 0.999999 1 1.00001 1.00002 1.00003 1.00004 1.00006 1.00009 1.00012 1.00016 1.00022 1.00029 1.00039 1.0005 1.00064 1.0008 1.001 1.00123 1.0015 1.0018 1.00213 1.00249 1.00288 1.00329 1.00371 1.00414 1.00457 1.00498 1.00537 1.00572 1.00604 1.00631 1.00652 1.00667 1.00675 1.00677 1.00672 1.0066 1.00642 1.00617 1.00588 1.00553 1.00514 1.00473 1.0043 1.00385 1.00341 1.00298 1.00256 1.00217 1.00181 1.00149 1.0012 1.00095 1.00074 1.00056 1.00042 1.0003 1.00021 1.00015 1.0001 1.00006 1.00004 1.00002 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999997 1 1 0.999996 1 1 0.999998 1 1 0.999998 1 0.999999 0.999999 1 1 0.999999 1 0.999998 1 1 0.999999 0.999999 0.999998 0.999999 0.999998 0.999996 0.999996 0.999998 0.999998 0.999994 0.999997 1 1 1.00001 1.00001 1.00002 1.00003 1.00005 1.00006 1.00009 1.00012 1.00016 1.00022 1.00028 1.00036 1.00046 1.00058 1.00072 1.00088 1.00107 1.00128 1.00152 1.00178 1.00206 1.00235 1.00266 1.00297 1.00328 1.00358 1.00387 1.00414 1.00437 1.00456 1.00472 1.00483 1.00489 1.0049 1.00486 1.00476 1.00462 1.00443 1.00421 1.00394 1.00365 1.00334 1.00302 1.00269 1.00237 1.00205 1.00175 1.00147 1.00121 1.00098 1.00078 1.00061 1.00047 1.00035 1.00025 1.00017 1.00012 1.00007 1.00004 1.00002 1.00001 1 0.999998 0.999996 0.999997 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999997 1 1 0.999996 1 1 0.999998 1 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 0.999999 0.999999 1 0.999998 0.999999 0.999999 0.999999 0.999999 0.999996 0.999997 0.999999 0.999999 0.999998 0.999999 1 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00012 1.00016 1.00021 1.00026 1.00033 1.00042 1.00052 1.00063 1.00076 1.00091 1.00108 1.00126 1.00146 1.00167 1.00189 1.00211 1.00233 1.00255 1.00276 1.00294 1.00311 1.00325 1.00336 1.00344 1.00348 1.00348 1.00345 1.00337 1.00326 1.00312 1.00295 1.00276 1.00254 1.00231 1.00208 1.00184 1.0016 1.00138 1.00116 1.00097 1.00079 1.00063 1.00049 1.00037 1.00028 1.0002 1.00013 1.00009 1.00005 1.00003 1.00001 0.999998 0.999993 0.999991 0.999991 0.999992 0.999993 0.999995 0.999997 0.999998 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 0.999997 1 1 0.999997 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 0.999997 1 1 0.999997 0.999996 1 1 0.999999 1 1.00001 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00007 1.00009 1.00012 1.00016 1.0002 1.00024 1.0003 1.00037 1.00045 1.00054 1.00065 1.00076 1.00089 1.00103 1.00118 1.00133 1.00148 1.00164 1.00179 1.00194 1.00207 1.00219 1.00229 1.00236 1.00241 1.00244 1.00244 1.00241 1.00235 1.00227 1.00216 1.00203 1.00189 1.00173 1.00157 1.0014 1.00123 1.00106 1.0009 1.00075 1.00061 1.00049 1.00038 1.00029 1.00021 1.00015 1.0001 1.00006 1.00003 1.00001 0.999998 0.999989 0.999985 0.999984 0.999985 0.999986 0.999989 0.999991 0.999994 0.999996 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 0.999999 1 1 0.999998 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 0.999998 1 1 0.999998 1 1 0.999999 1 0.999999 1 1 0.999998 0.999999 1 0.999999 0.999999 1 1 1 0.999998 1 1 0.999997 0.999999 1 0.999999 0.999997 1 1 1 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00006 1.00007 1.00009 1.00012 1.00015 1.00018 1.00022 1.00027 1.00032 1.00039 1.00046 1.00054 1.00063 1.00073 1.00083 1.00093 1.00104 1.00114 1.00125 1.00135 1.00144 1.00152 1.00158 1.00164 1.00167 1.00168 1.00168 1.00165 1.00161 1.00154 1.00146 1.00137 1.00127 1.00115 1.00103 1.00091 1.00079 1.00068 1.00057 1.00046 1.00037 1.00029 1.00022 1.00016 1.00011 1.00007 1.00004 1.00001 0.999996 0.999986 0.999981 0.999978 0.999978 0.99998 0.999982 0.999985 0.999988 0.999991 0.999993 0.999995 0.999997 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999998 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 1 0.999998 1 0.999998 1 1 0.999999 0.999999 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 1 0.999999 0.999999 1 1 0.999997 1 1 0.999997 0.999999 1 1 0.999997 1 1.00001 1 1 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00009 1.00011 1.00014 1.00017 1.0002 1.00024 1.00028 1.00033 1.00039 1.00045 1.00051 1.00058 1.00065 1.00072 1.0008 1.00086 1.00093 1.00099 1.00104 1.00109 1.00112 1.00114 1.00114 1.00113 1.00111 1.00108 1.00103 1.00097 1.0009 1.00083 1.00075 1.00066 1.00058 1.0005 1.00042 1.00034 1.00027 1.00021 1.00015 1.00011 1.00007 1.00004 1.00001 0.999997 0.999986 0.999978 0.999974 0.999973 0.999973 0.999976 0.999979 0.999982 0.999985 0.999988 0.999991 0.999993 0.999995 0.999997 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999998 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999998 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 0.999999 1 1 0.999998 1 1 0.999997 0.999999 1 0.999998 0.999998 1 1 0.999998 0.999999 1.00001 1.00001 1 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00009 1.00011 1.00012 1.00015 1.00018 1.00021 1.00024 1.00028 1.00032 1.00036 1.00041 1.00045 1.0005 1.00055 1.0006 1.00064 1.00068 1.00071 1.00074 1.00075 1.00076 1.00076 1.00076 1.00074 1.00071 1.00067 1.00063 1.00058 1.00053 1.00047 1.00041 1.00035 1.00029 1.00024 1.00019 1.00014 1.0001 1.00007 1.00004 1.00002 0.999999 0.999985 0.999976 0.999971 0.999968 0.999968 0.99997 0.999972 0.999975 0.999979 0.999983 0.999987 0.99999 0.999992 0.999994 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 0.999999 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999998 1 1 0.999997 1 1 0.999999 0.999997 1 1 0.999997 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00008 1.0001 1.00011 1.00013 1.00015 1.00018 1.0002 1.00023 1.00026 1.00029 1.00032 1.00035 1.00038 1.00041 1.00044 1.00046 1.00048 1.00049 1.0005 1.00051 1.00051 1.00049 1.00048 1.00046 1.00043 1.0004 1.00036 1.00032 1.00028 1.00024 1.0002 1.00016 1.00013 1.00009 1.00006 1.00004 1.00002 1 0.999986 0.999977 0.99997 0.999967 0.999965 0.999965 0.999968 0.999971 0.999974 0.999978 0.999981 0.999984 0.999987 0.99999 0.999993 0.999995 0.999996 0.999997 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999997 1 1 0.999997 0.999998 1 1 0.999997 1 1 0.999999 1 1 1 1 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00004 1.00005 1.00006 1.00008 1.00009 1.0001 1.00011 1.00013 1.00015 1.00017 1.00018 1.0002 1.00022 1.00025 1.00027 1.00028 1.0003 1.00031 1.00032 1.00033 1.00033 1.00033 1.00033 1.00032 1.00031 1.00029 1.00027 1.00024 1.00022 1.00019 1.00016 1.00013 1.00011 1.00008 1.00006 1.00004 1.00002 1 0.999987 0.999977 0.99997 0.999966 0.999964 0.999963 0.999964 0.999966 0.999969 0.999972 0.999976 0.99998 0.999984 0.999987 0.999989 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999998 1 1 0.999998 0.999999 1 0.999999 0.999997 1 1 0.999998 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00004 1.00005 1.00006 1.00007 1.00008 1.00009 1.0001 1.00011 1.00012 1.00014 1.00015 1.00016 1.00017 1.00018 1.0002 1.00021 1.00021 1.00021 1.00022 1.00022 1.00022 1.00021 1.0002 1.00019 1.00018 1.00016 1.00014 1.00012 1.0001 1.00008 1.00007 1.00005 1.00003 1.00001 1 0.999989 0.99998 0.999973 0.999967 0.999964 0.999962 0.999962 0.999963 0.999966 0.999969 0.999973 0.999977 0.999979 0.999982 0.999985 0.999989 0.999991 0.999993 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 1 0.999999 0.999997 1 1 0.999998 0.999999 1 1 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00004 1.00005 1.00005 1.00006 1.00007 1.00008 1.00008 1.00009 1.0001 1.00011 1.00012 1.00012 1.00013 1.00014 1.00014 1.00015 1.00015 1.00015 1.00014 1.00014 1.00013 1.00013 1.00012 1.00011 1.00009 1.00008 1.00007 1.00005 1.00004 1.00002 1.00001 1 0.999992 0.999983 0.999975 0.99997 0.999966 0.999965 0.999964 0.999965 0.999966 0.999968 0.99997 0.999972 0.999975 0.999979 0.999982 0.999985 0.999988 0.99999 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999998 1 1 0.999998 1 1 0.999999 1 1 1 1 1 1 1 1.00001 1.00001 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00003 1.00004 1.00005 1.00005 1.00006 1.00006 1.00007 1.00007 1.00008 1.00008 1.00009 1.00009 1.0001 1.0001 1.0001 1.0001 1.0001 1.0001 1.00009 1.00008 1.00008 1.00007 1.00006 1.00005 1.00004 1.00003 1.00002 1.00001 1 0.999994 0.999986 0.99998 0.999975 0.999971 0.999968 0.999966 0.999965 0.999966 0.999967 0.999969 0.999972 0.999975 0.999978 0.999981 0.999983 0.999986 0.999988 0.999991 0.999992 0.999994 0.999995 0.999996 0.999997 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 0.999999 1 1 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 1 1 1 1 1 1 1 0.999999 0.999999 1 1 0.999998 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1.00001 1.00001 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00003 1.00003 1.00003 1.00004 1.00004 1.00004 1.00005 1.00005 1.00006 1.00006 1.00006 1.00006 1.00007 1.00007 1.00007 1.00007 1.00007 1.00006 1.00006 1.00006 1.00005 1.00005 1.00004 1.00003 1.00003 1.00002 1.00001 1 0.999997 0.999991 0.999985 0.99998 0.999975 0.999972 0.99997 0.99997 0.999969 0.99997 0.999971 0.999973 0.999974 0.999976 0.999978 0.999981 0.999983 0.999986 0.999989 0.99999 0.999992 0.999994 0.999996 0.999997 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999998 1 1 1 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 0.999999 1 1 1 0.999999 0.999998 1 1 0.999998 1 1 1 0.999999 1 1.00001 1.00001 1 1.00001 1.00001 1.00002 1.00001 1.00002 1.00002 1.00003 1.00003 1.00003 1.00003 1.00004 1.00004 1.00004 1.00004 1.00005 1.00005 1.00005 1.00005 1.00005 1.00005 1.00005 1.00004 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1 0.999995 0.99999 0.999986 0.999982 0.999979 0.999977 0.999975 0.999973 0.999973 0.999973 0.999974 0.999975 0.999977 0.999979 0.999982 0.999984 0.999986 0.999987 0.999989 0.999991 0.999993 0.999994 0.999995 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999998 1 1 0.999998 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999998 1 1 0.999998 1 1 0.999999 0.999998 1 1.00001 1 0.999999 1.00001 1.00001 1.00001 1 1.00001 1.00002 1.00002 1.00001 1.00002 1.00002 1.00002 1.00002 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00004 1.00004 1.00003 1.00003 1.00003 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1 1 0.999997 0.999993 0.999989 0.999985 0.999983 0.999981 0.999979 0.999979 0.999978 0.999978 0.999979 0.99998 0.999981 0.999982 0.999983 0.999985 0.999987 0.999989 0.999991 0.999992 0.999993 0.999994 0.999996 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 0.999999 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999998 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 0.999998 0.999997 1 1 0.999999 0.999999 1 1.00001 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 0.999997 0.999994 0.999992 0.99999 0.999989 0.999987 0.999985 0.999984 0.999983 0.999983 0.999984 0.999984 0.999985 0.999986 0.999987 0.999988 0.99999 0.999991 0.999992 0.999993 0.999994 0.999995 0.999996 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 0.999999 1 0.999998 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999998 1 1 0.999999 1 1 0.999999 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 0.999999 1 1 0.999997 1 1 1 0.999999 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00001 1.00001 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 0.999998 0.999997 0.999994 0.999992 0.999991 0.99999 0.999989 0.999989 0.999989 0.999989 0.999988 0.999988 0.999989 0.99999 0.999991 0.999992 0.999993 0.999994 0.999995 0.999995 0.999996 0.999996 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 1 0.999998 1 1 0.999999 1 0.999999 1 1 0.999999 0.999999 1 1 0.999999 1 1 0.999999 0.999998 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 0.999999 0.999998 0.999998 0.999997 0.999996 0.999995 0.999994 0.999994 0.999994 0.999994 0.999995 0.999995 0.999995 0.999995 0.999995 0.999995 0.999995 0.999996 0.999997 0.999998 0.999998 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 0.999998 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 0.999999 1 1 0.999998 1 1 1 0.999999 1 1 0.999997 0.999999 1 1 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1 1 1 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999999 0.999999 1 1 1 1 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999998 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 1 1 0.999999 0.999999 1 0.999999 0.999999 1 1 0.999999 0.999998 0.999999 1 0.999999 0.999997 0.999999 0.999999 0.999998 0.999998 0.999997 0.999997 0.999997 0.999997 0.999997 0.999998 0.999997 0.999997 0.999998 0.999999 0.999999 0.999998 0.999999 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999998 1 0.999999 0.999998 0.999997 0.999998 0.999997 0.999996 0.999996 0.999996 0.999995 0.999994 0.999994 0.999994 0.999993 0.999992 0.999993 0.999994 0.999994 0.999993 0.999994 0.999996 0.999998 0.999998 0.999998 0.999999 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999999 1 0.999999 0.999999 0.999998 0.999998 0.999997 0.999996 0.999996 0.999996 0.999995 0.999993 0.999992 0.999992 0.999991 0.99999 0.999989 0.999989 0.999989 0.999988 0.999988 0.999989 0.99999 0.99999 0.99999 0.999993 0.999996 0.999999 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 0.999998 0.999999 0.999998 0.999999 0.999997 0.999996 0.999996 0.999994 0.999993 0.999993 0.999992 0.99999 0.999988 0.999987 0.999986 0.999985 0.999984 0.999984 0.999985 0.999984 0.999984 0.999986 0.999989 0.999991 0.999993 0.999995 0.999998 1 1.00001 1.00001 1.00001 1.00002 1.00002 1.00002 1.00002 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00003 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 0.999999 0.999999 0.999998 0.999997 0.999997 0.999997 0.999995 0.999994 0.999993 0.999991 0.99999 0.999988 0.999987 0.999985 0.999983 0.999982 0.999981 0.999981 0.99998 0.99998 0.999982 0.999983 0.999984 0.999987 0.99999 0.999994 0.999999 1 1.00001 1.00001 1.00002 1.00002 1.00003 1.00003 1.00003 1.00004 1.00004 1.00004 1.00004 1.00005 1.00005 1.00004 1.00004 1.00004 1.00004 1.00004 1.00004 1.00003 1.00003 1.00003 1.00003 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 0.999998 0.999999 0.999997 0.999996 0.999995 0.999994 0.999993 0.999991 0.999989 0.999987 0.999984 0.999983 0.999981 0.99998 0.999978 0.999977 0.999977 0.999977 0.999978 0.999979 0.999982 0.999986 0.99999 0.999995 1 1.00001 1.00001 1.00002 1.00003 1.00003 1.00004 1.00004 1.00005 1.00005 1.00006 1.00006 1.00006 1.00006 1.00006 1.00006 1.00006 1.00006 1.00006 1.00006 1.00005 1.00005 1.00005 1.00004 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 1 0.999998 0.999998 0.999997 0.999997 0.999996 0.999994 0.999992 0.99999 0.999988 0.999986 0.999984 0.999982 0.999979 0.999977 0.999975 0.999974 0.999974 0.999975 0.999976 0.999978 0.999981 0.999985 0.999991 0.999997 1.00001 1.00001 1.00002 1.00003 1.00004 1.00005 1.00006 1.00006 1.00007 1.00008 1.00008 1.00009 1.00009 1.00009 1.00009 1.00009 1.00009 1.00009 1.00009 1.00008 1.00008 1.00007 1.00007 1.00006 1.00006 1.00005 1.00005 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999998 0.999999 0.999998 0.999997 0.999995 0.999994 0.999994 0.999991 0.999988 0.999986 0.999983 0.999981 0.999978 0.999975 0.999974 0.999973 0.999972 0.999972 0.999974 0.999978 0.999982 0.999987 0.999994 1 1.00001 1.00002 1.00004 1.00005 1.00006 1.00007 1.00008 1.0001 1.00011 1.00012 1.00012 1.00013 1.00013 1.00013 1.00014 1.00013 1.00013 1.00013 1.00013 1.00012 1.00011 1.00011 1.0001 1.00009 1.00008 1.00008 1.00007 1.00006 1.00005 1.00005 1.00004 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 1 0.999999 0.999997 0.999998 0.999997 0.999995 0.999992 0.99999 0.999989 0.999987 0.999984 0.99998 0.999977 0.999975 0.999974 0.999972 0.999971 0.999972 0.999975 0.999978 0.999983 0.999992 1 1.00001 1.00003 1.00004 1.00006 1.00007 1.00009 1.00011 1.00013 1.00014 1.00016 1.00017 1.00018 1.00019 1.0002 1.0002 1.0002 1.0002 1.0002 1.00019 1.00018 1.00018 1.00017 1.00016 1.00015 1.00013 1.00012 1.00011 1.0001 1.00009 1.00008 1.00007 1.00006 1.00005 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999998 0.999996 0.999995 0.999994 0.999992 0.99999 0.999986 0.999982 0.999981 0.999979 0.999976 0.999972 0.999971 0.999972 0.999973 0.999975 0.999981 0.999989 0.999999 1.00001 1.00003 1.00005 1.00007 1.00009 1.00011 1.00014 1.00016 1.00018 1.00021 1.00023 1.00025 1.00027 1.00028 1.00029 1.0003 1.0003 1.0003 1.00029 1.00029 1.00028 1.00027 1.00025 1.00024 1.00022 1.0002 1.00019 1.00017 1.00015 1.00014 1.00012 1.00011 1.00009 1.00008 1.00007 1.00006 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999999 0.999997 0.999997 0.999995 0.999992 0.99999 0.999988 0.999986 0.999982 0.999978 0.999975 0.999974 0.999973 0.999973 0.999974 0.999979 0.999987 0.999996 1.00001 1.00003 1.00005 1.00007 1.0001 1.00013 1.00016 1.00019 1.00023 1.00026 1.0003 1.00033 1.00036 1.00039 1.00041 1.00042 1.00044 1.00044 1.00044 1.00044 1.00043 1.00042 1.0004 1.00038 1.00036 1.00033 1.00031 1.00028 1.00026 1.00023 1.00021 1.00018 1.00016 1.00014 1.00012 1.0001 1.00009 1.00008 1.00006 1.00005 1.00004 1.00003 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999997 0.999996 0.999994 0.999992 0.999989 0.999985 0.999982 0.99998 0.999978 0.999975 0.999973 0.999975 0.999979 0.999985 0.999993 1.00001 1.00002 1.00005 1.00007 1.0001 1.00014 1.00018 1.00023 1.00027 1.00032 1.00037 1.00042 1.00047 1.00051 1.00055 1.00059 1.00061 1.00064 1.00065 1.00065 1.00065 1.00064 1.00063 1.00061 1.00058 1.00055 1.00051 1.00047 1.00043 1.00039 1.00036 1.00032 1.00028 1.00025 1.00022 1.00019 1.00016 1.00014 1.00012 1.0001 1.00008 1.00007 1.00006 1.00004 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999997 0.999995 0.999993 0.99999 0.999988 0.999985 0.999982 0.999978 0.999977 0.999977 0.999979 0.999982 0.999989 1 1.00002 1.00004 1.00007 1.0001 1.00015 1.00019 1.00025 1.00031 1.00037 1.00044 1.00051 1.00058 1.00065 1.00072 1.00078 1.00083 1.00088 1.00091 1.00094 1.00095 1.00096 1.00095 1.00093 1.00091 1.00087 1.00083 1.00078 1.00073 1.00067 1.00061 1.00055 1.0005 1.00044 1.00039 1.00034 1.0003 1.00025 1.00022 1.00018 1.00015 1.00013 1.00011 1.00009 1.00007 1.00006 1.00004 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999997 0.999995 0.999993 0.99999 0.999987 0.999984 0.999982 0.999981 0.99998 0.999982 0.999988 0.999998 1.00001 1.00003 1.00006 1.0001 1.00014 1.0002 1.00026 1.00033 1.00041 1.0005 1.00059 1.00069 1.00079 1.00088 1.00098 1.00107 1.00115 1.00122 1.00128 1.00133 1.00136 1.00138 1.00138 1.00137 1.00134 1.0013 1.00124 1.00118 1.00111 1.00103 1.00095 1.00086 1.00078 1.00069 1.00061 1.00054 1.00047 1.0004 1.00035 1.00029 1.00025 1.00021 1.00017 1.00014 1.00011 1.00009 1.00007 1.00006 1.00004 1.00003 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 1 1 1 0.999999 0.999999 0.999999 1 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999997 0.999995 0.999993 0.99999 0.999987 0.999985 0.999984 0.999984 0.999988 0.999995 1.00001 1.00002 1.00005 1.00009 1.00013 1.00019 1.00025 1.00033 1.00043 1.00053 1.00065 1.00077 1.0009 1.00104 1.00117 1.00131 1.00144 1.00156 1.00167 1.00177 1.00185 1.00191 1.00195 1.00197 1.00197 1.00195 1.0019 1.00184 1.00176 1.00167 1.00156 1.00145 1.00133 1.00121 1.00109 1.00097 1.00086 1.00075 1.00065 1.00056 1.00047 1.0004 1.00033 1.00028 1.00023 1.00018 1.00015 1.00012 1.00009 1.00007 1.00006 1.00004 1.00003 1.00002 1.00002 1.00001 1.00001 1 1 1 1 1 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999997 0.999996 0.999994 0.999992 0.999989 0.999988 0.99999 0.999994 1 1.00002 1.00004 1.00007 1.00011 1.00016 1.00023 1.00032 1.00042 1.00054 1.00067 1.00082 1.00098 1.00116 1.00134 1.00153 1.00171 1.0019 1.00207 1.00224 1.00239 1.00252 1.00262 1.0027 1.00275 1.00277 1.00277 1.00273 1.00267 1.00258 1.00247 1.00234 1.00219 1.00203 1.00186 1.00169 1.00152 1.00135 1.00119 1.00104 1.0009 1.00077 1.00065 1.00054 1.00045 1.00037 1.0003 1.00025 1.0002 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1.00001 1 1 1 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999996 0.999995 0.999994 0.999993 0.999995 1 1.00001 1.00003 1.00005 1.00009 1.00014 1.0002 1.00028 1.00039 1.00051 1.00066 1.00083 1.00102 1.00122 1.00145 1.00169 1.00194 1.0022 1.00245 1.0027 1.00294 1.00315 1.00335 1.00352 1.00366 1.00376 1.00382 1.00385 1.00384 1.00378 1.0037 1.00357 1.00342 1.00324 1.00304 1.00282 1.00259 1.00235 1.00211 1.00188 1.00165 1.00144 1.00124 1.00106 1.00089 1.00075 1.00062 1.00051 1.00041 1.00033 1.00026 1.00021 1.00016 1.00012 1.00009 1.00007 1.00005 1.00004 1.00003 1.00002 1.00001 1.00001 1 1 0.999999 0.999999 0.999998 0.999998 0.999998 0.999998 0.999999 0.999998 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 0.999999 1 1.00001 1.00002 1.00004 1.00007 1.00011 1.00016 1.00024 1.00034 1.00046 1.00061 1.00079 1.00099 1.00123 1.00149 1.00178 1.00209 1.00242 1.00276 1.0031 1.00344 1.00377 1.00408 1.00436 1.00462 1.00484 1.00502 1.00515 1.00523 1.00526 1.00524 1.00517 1.00505 1.00488 1.00468 1.00444 1.00416 1.00387 1.00355 1.00323 1.00291 1.00259 1.00228 1.00198 1.00171 1.00146 1.00123 1.00103 1.00085 1.00069 1.00056 1.00045 1.00036 1.00028 1.00022 1.00016 1.00012 1.00009 1.00007 1.00005 1.00003 1.00002 1.00001 1.00001 1 1 0.999999 0.999998 0.999997 0.999997 0.999997 0.999998 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1 1 1 1 1.00001 1.00001 1.00003 1.00005 1.00008 1.00013 1.00019 1.00028 1.00039 1.00053 1.00071 1.00092 1.00117 1.00146 1.00179 1.00215 1.00254 1.00296 1.00339 1.00384 1.00429 1.00474 1.00516 1.00557 1.00594 1.00626 1.00654 1.00677 1.00693 1.00704 1.00707 1.00704 1.00695 1.00679 1.00658 1.00631 1.00599 1.00563 1.00524 1.00483 1.0044 1.00396 1.00354 1.00312 1.00272 1.00235 1.002 1.00169 1.00141 1.00116 1.00095 1.00076 1.00061 1.00048 1.00038 1.00029 1.00022 1.00016 1.00012 1.00009 1.00006 1.00004 1.00003 1.00002 1.00001 1 1 0.999998 0.999997 0.999997 0.999996 0.999997 0.999997 0.999997 0.999997 0.999998 0.999998 0.999999 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00004 1.00006 1.00009 1.00014 1.00021 1.00031 1.00044 1.0006 1.00081 1.00105 1.00135 1.0017 1.00209 1.00254 1.00302 1.00354 1.0041 1.00467 1.00525 1.00584 1.00641 1.00695 1.00747 1.00793 1.00834 1.00869 1.00897 1.00918 1.00931 1.00935 1.00931 1.00919 1.00899 1.00872 1.00838 1.00797 1.00751 1.00701 1.00647 1.00591 1.00534 1.00478 1.00422 1.00369 1.00319 1.00273 1.0023 1.00192 1.00159 1.00129 1.00104 1.00083 1.00065 1.00051 1.00039 1.0003 1.00022 1.00016 1.00012 1.00008 1.00006 1.00004 1.00002 1.00001 1 1 0.999998 0.999996 0.999995 0.999995 0.999996 0.999996 0.999997 0.999996 0.999997 0.999998 0.999998 0.999998 0.999999 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00002 1.00002 1.00003 1.00004 1.00007 1.0001 1.00016 1.00023 1.00034 1.00048 1.00067 1.0009 1.00119 1.00153 1.00194 1.00241 1.00294 1.00353 1.00417 1.00485 1.00557 1.00631 1.00705 1.00779 1.00851 1.00919 1.00983 1.0104 1.01091 1.01134 1.01168 1.01192 1.01208 1.01213 1.01208 1.01194 1.0117 1.01136 1.01094 1.01044 1.00986 1.00923 1.00855 1.00784 1.00712 1.00638 1.00566 1.00496 1.0043 1.00369 1.00312 1.00261 1.00216 1.00176 1.00142 1.00113 1.00089 1.00069 1.00053 1.0004 1.0003 1.00022 1.00016 1.00011 1.00007 1.00005 1.00003 1.00002 1.00001 1 0.999997 0.999995 0.999994 0.999994 0.999994 0.999995 0.999996 ) ; boundaryField { emptyPatches_empt { type empty; } top_cyc { type cyclic; } bottom_cyc { type cyclic; } inlet_cyc { type cyclic; } outlet_cyc { type cyclic; } } // ************************************************************************* //
[ "tdg@debian" ]
tdg@debian
acd1e241b54ebe798a464270334020326bfc7baf
06c50a42fb4c8ee0aaf8b8ffb3681c14873db01a
/src/Tests/TestNico/test_spline.cpp
6049f93dc9051de347e3a6cdc952db362e9add38
[]
no_license
Toadsword/PokEngine
4e42f88ec781c23421db159129642657ad7ce56f
bbf4d68cc2bf96c34cb16a6c19d3c5b849c4d811
refs/heads/master
2022-11-16T08:04:33.947034
2020-07-07T20:49:12
2020-07-07T20:49:12
277,910,114
0
0
null
null
null
null
UTF-8
C++
false
false
1,973
cpp
#include <Tests/TestNico/test_spline.h> #include <CoreEngine/engine.h> #include <CoreEngine/ServiceLocator/service_locator_definition.h> namespace poke { TestSpline::TestSpline(Engine& engine) : System(engine) { ObserveLoadScene(); engine_.AddObserver(observer::MainLoopSubject::UPDATE, [this]() {OnUpdate(); }); } void TestSpline::OnAppBuild() { } void TestSpline::OnLoadScene() { auto& ecsManager = EcsManagerLocator::Get(); auto& splinesManager = ecsManager.GetComponentsManager<poke::ecs::SplineFollowersManager>(); //Entity 0 std::vector<math::Vec3> points{ math::Vec3(0, 0, 0), math::Vec3(1, 0, 0), math::Vec3(2, 0, 0), math::Vec3(3, 0, 0), math::Vec3(4, 0, 0), math::Vec3(10, 0, 0), math::Vec3(20, 0, 0), math::Vec3(50, 0, 0), }; ecs::SplineFollower spline(points); spline.speed = 1; entity0_ = ecsManager.AddEntity(); splinesManager.SetComponent(entity0_, spline); ecsManager.AddComponent(entity0_, ecs::ComponentType::SPLINE_FOLLOWER); ecsManager.AddComponent(entity0_, ecs::ComponentType::TRANSFORM); //Entity 1 points = std::vector<math::Vec3>{ math::Vec3(0, 1, 0), math::Vec3(1, 1, 0), math::Vec3(2, 1, 0), math::Vec3(3, 1, 0), math::Vec3(4, 1, 0), math::Vec3(10, 1, 0), math::Vec3(20, 1, 0), math::Vec3(50, 1, 0), }; spline = ecs::SplineFollower(points); entity1_ = ecsManager.AddEntity(); splinesManager.SetComponent(entity1_, spline); ecsManager.AddComponent(entity1_, ecs::ComponentType::SPLINE_FOLLOWER); ecsManager.AddComponent(entity1_, ecs::ComponentType::TRANSFORM); } void TestSpline::OnUpdate() { auto& ecsManager = EcsManagerLocator::Get(); auto& splinesManager = ecsManager.GetComponentsManager<poke::ecs::SplineFollowersManager>(); auto splineFollower = splinesManager.GetComponent(entity1_); if(splineFollower.lastPoint > 4) { splineFollower.speed = 0.5f; }else { splineFollower.speed = 1.5f; } splinesManager.SetComponent(entity1_, splineFollower); } }
[ "bourquardduncan@gmail.com" ]
bourquardduncan@gmail.com
041cdb27011f7da254418b7d4bf97e24976bdb98
1e7987dbab49b7fa2d981eac156e39b15b90a034
/inc/APizza.hh
7a84cae31c8e7a2ffbc690dae88274228e94afd4
[]
no_license
kefranabg/Plazza
7e77704ff334835ac2f8a73ca37c3faeee1d9a58
ff4b9fb7bc6571ea71590ac167bafdeeb4a5b183
refs/heads/master
2021-01-10T08:52:57.652048
2016-03-28T03:49:21
2016-03-28T03:49:21
54,863,948
0
0
null
null
null
null
UTF-8
C++
false
false
1,029
hh
// // APizza.hh for APizza.hh in /home/acca_b/rendu/cpp_plazza // // Made by Baptiste Acca // Login <acca_b@epitech.net> // // Started on Thu Apr 24 15:20:56 2014 Baptiste Acca // Last update Sat Apr 26 18:26:46 2014 LOEB Thomas // #ifndef APIZZA_HH_ #define APIZZA_HH_ #include <vector> #include "Ingredient.hh" typedef enum TypePizza { REGINA = 1, MARGARITA = 2, AMERICAINE = 4, FANTASIA = 8 } TypePizza; typedef enum TaillePizza { S = 1, M = 2, L = 4, XL = 8, XXL = 16 } TaillePizza; class APizza { protected: std::vector <Ingredient *> _ingredients; unsigned int _cookTime; TypePizza _type; TaillePizza _size; int _idCmd; public: APizza(); ~APizza(); virtual void bakePizza(double const &) const = 0; virtual std::vector <Ingredient *> getIngredients() const = 0; virtual TaillePizza getSize() const = 0; virtual TypePizza getType() const = 0; virtual int getIdCmd() const = 0; virtual void setIdCmd(int const &) = 0; }; #endif /* APIZZA_HH_ */
[ "franck.abgrall@epitech.eu" ]
franck.abgrall@epitech.eu
94f1bd8cc83dc98559487ee0ae71275d4d3d915a
3ea44c6de1641a88b279faa6547d684c65e825ce
/live_demo/server.cpp
0e16f09e4a4fce94ab413bb1c10285298457ea12
[]
no_license
tomdol/cpp_na_backendzie
9930038c531b2f147d087adaa9e9499f65ad998e
dcac0d0729390ba6ee5b33cfa4741be992bee96c
refs/heads/master
2020-05-05T07:15:09.453297
2019-12-13T12:05:12
2019-12-13T12:05:12
179,818,722
2
0
null
null
null
null
UTF-8
C++
false
false
1,885
cpp
#include <pistache/endpoint.h> #include <vector> #include <fstream> #include <iterator> using namespace Pistache; class ResizeHandler : public Http::Handler { public: HTTP_PROTOTYPE(ResizeHandler) void onRequest(const Http::Request& request, Http::ResponseWriter response) override{ const auto scale_from_req = request.query().get("scale").getOrElse("5"); const auto path = "/home/tomek/test_img.bmp"; // obrazek bmp, 12MB, 2000x2000px const size_t scale = std::stoul(scale_from_req); const std::vector<char> resized_img = open_and_resize(path, scale); response.send(Pistache::Http::Code::Ok, std::to_string(resized_img.size())); } private: std::vector<char> open_img(const std::string& path) { std::ifstream img_file{path, std::ios::binary}; return std::vector<char>{ std::istreambuf_iterator<char>{img_file}, std::istreambuf_iterator<char>{} }; } std::vector<char> open_and_resize(const std::string& path, size_t scale) { const auto img = open_img(path); const size_t resized_img_size{img.size() * scale}; std::vector<char> resized_img{}; resized_img.reserve(resized_img_size); for (size_t i = 0; i < scale; ++i) { for (size_t j = 0; j < img.size(); ++j) { resized_img.push_back(img[j]); } } return resized_img; } }; int main(int argc, char** argv) { auto port = 9999; if (argc > 1) { port = atoi(argv[1]); } Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(port)); auto opts = Pistache::Http::Endpoint::options() .threads(1); // 1 vs 4 vs 8 Http::Endpoint server(addr); server.init(opts); server.setHandler(Http::make_handler<ResizeHandler>()); server.serve(); server.shutdown(); }
[ "tomasz.dolbniak@protonmail.com" ]
tomasz.dolbniak@protonmail.com
ec0726f957a1bb829c8590b79b360dd3276907b7
c76dba798c4478d43a09624d4b7350ef6e770de6
/project3_cse687/FileSystem/FileSystem.cpp
34d6ff75a804cf551d40058882d2ff410fd10b16
[]
no_license
rajatlokesh/Remote_Code_Page_Mamagement
84ca90d6313e4f4de1affd147fca0f9ffc9223bc
f59b6347b29e2f1ad17e6285c54642a658445e81
refs/heads/master
2020-05-02T17:21:43.221283
2019-04-12T23:17:04
2019-04-12T23:17:04
178,095,991
1
0
null
null
null
null
WINDOWS-1252
C++
false
false
34,550
cpp
#include "..\InfoExtractor\InfoExtractor.h" #include "..\InfoExtractor\InfoExtractor.h" ///////////////////////////////////////////////////////////////////////////// // FileSystem.cpp - Support file and directory operations // // ver 2.8 // // ----------------------------------------------------------------------- // // copyright © Jim Fawcett, 2012 // // All rights granted provided that this notice is retained // // ----------------------------------------------------------------------- // // Language: Visual C++, Visual Studio 2019 // // Platform: Lenovo Ideapad, Core i7, Windows 10 // // Application: Summer Projects, 2012 // // Author: Rajat Vyas ravyas@syr.edu +1(313)-324-2766 // // Provided by: Jim Fawcett, CST 4-187, Syracuse University // // (315) 443-3948, jfawcett@twcny.rr.com // ///////////////////////////////////////////////////////////////////////////// #include <iostream> #include <string> #include <sstream> #include <iomanip> #include <utility> #include <clocale> #include <locale> #include "FileSystem.h" using namespace FileSystem; ///////////////////////////////////////////////////////// // helper FileSystemSearch class FileSystemSearch { public: FileSystemSearch(); ~FileSystemSearch(); std::string firstFile(const std::string& path=".", const std::string& pattern="*.*"); std::string nextFile(); std::string firstDirectory(const std::string& path=".", const std::string& pattern="*.*"); std::string nextDirectory(); void close(); private: HANDLE hFindFile; WIN32_FIND_DATAA FindFileData; WIN32_FIND_DATAA* pFindFileData; }; FileSystemSearch::FileSystemSearch() : pFindFileData(&FindFileData) {} FileSystemSearch::~FileSystemSearch() { ::FindClose(hFindFile); } void FileSystemSearch::close() { ::FindClose(hFindFile); } //----< block constructor taking array iterators >------------------------- Block::Block(Byte* beg, Byte* end) : bytes_(beg, end) {} //----< push back block byte >--------------------------------------------- void Block::push_back(Byte b) { bytes_.push_back(b); } //----< non-const indexer >------------------------------------------------ Byte& Block::operator[](size_t i) { if(i<0 || bytes_.size() <= i) throw std::runtime_error("index out of range in Block"); return bytes_[i]; } //----< const indexer >---------------------------------------------------- Byte Block::operator[](size_t i) const { if(i<0 || bytes_.size() <= i) throw std::runtime_error("index out of range in Block"); return bytes_[i]; } //----< equality comparison >---------------------------------------------- bool Block::operator==(const Block& block) const { return bytes_ == block.bytes_; } //----< inequality comparison >-------------------------------------------- bool Block::operator!=(const Block& block) const { return bytes_ != block.bytes_; } //----< return number of bytes in block >---------------------------------- size_t Block::size() const { return bytes_.size(); } //----< File constructor opens file stream >------------------------------- File::File(const std::string& filespec) : name_(filespec), pIStream(nullptr), pOStream(nullptr), dirn_(in), typ_(text), good_(true) { } //----< File destructor closes file stream >------------------------------- File::~File() { if(pIStream) { pIStream->close(); delete pIStream; pIStream = nullptr; good_ = false; } if(pOStream) { pOStream->close(); delete pOStream; pOStream = nullptr; good_ = false; } } //----< open for reading or writing >-------------------------------------- bool File::open(direction dirn, type typ) { dirn_ = dirn; typ_ = typ; good_ = true; if(dirn == in) { pIStream = new std::ifstream; if(typ == binary) pIStream->open(name_.c_str(), std::ios::in | std::ios::binary); else pIStream->open(name_.c_str(), std::ios::in); if (!(*pIStream).good()) { good_ = false; pIStream = nullptr; //throw std::runtime_error("\n open for input failed in File constructor"); } } else { pOStream = new std::ofstream; if(typ == binary) pOStream->open(name_.c_str(), std::ios::out | std::ios::binary); else pOStream->open(name_.c_str(), std::ios::out); if (!(*pOStream).good()) { good_ = false; pOStream = nullptr; //throw std::runtime_error("\n open for output failed in File constructor"); } } return good_; } //----< reads one line of a text file >------------------------------------ std::string File::getLine(bool keepNewLines) { if(pIStream == nullptr || !pIStream->good()) throw std::runtime_error("input stream not open"); if(typ_ == binary) throw std::runtime_error("getting text line from binary file"); if(dirn_ == out) throw std::runtime_error("reading output file"); std::string store; while (true) { char ch = pIStream->get(); if (!isGood()) return store; if (ch == '\n') { if (keepNewLines) store += ch; return store; } store += ch; } } //----< read all lines of text file into one string >---------------------- std::string File::readAll(bool keepNewLines) { std::string store; while (true) { if (!isGood()) return store; store += getLine(keepNewLines); std::locale loc; if (store.size() > 0 && !std::isspace(store[store.size() - 1], loc)) store += ' '; } return store; } //----< writes one line of a text to a file >------------------------------ void File::putLine(const std::string& s, bool wantReturn) { if(pOStream == nullptr || !pOStream->good()) throw std::runtime_error("output stream not open"); if(typ_ == binary) throw std::runtime_error("writing text line to binary file"); if(dirn_ == in) throw std::runtime_error("writing input file"); for(size_t i=0; i<s.size(); ++i) pOStream->put(s[i]); if(wantReturn) pOStream->put('\n'); pOStream->flush(); } //----< reads a block of bytes from binary file >-------------------------- Block File::getBlock(size_t size) { if(pIStream == nullptr || !pIStream->good()) throw std::runtime_error("input stream not open"); if(typ_ != binary) throw std::runtime_error("reading binary from text file"); if(dirn_ == out) throw std::runtime_error("reading output file"); Block blk; if(pIStream) { for(size_t i=0; i<size; ++i) { Byte b; pIStream->get(b); if(pIStream->good()) blk.push_back(b); else break; } } return blk; } //----< writes a block of bytes to binary file >--------------------------- void File::putBlock(const Block& blk) { if(pOStream == nullptr || !pOStream->good()) throw std::runtime_error("output stream not open"); if(typ_ != binary) throw std::runtime_error("writing binary to text file"); if(dirn_ == in) throw std::runtime_error("writing input file"); if(!pOStream->good()) return; for(size_t i=0; i<blk.size(); ++i) { pOStream->put(blk[i]); } } //----< read buffer of bytes from binary file >---------------------------- size_t File::getBuffer(size_t bufLen, File::byte* buffer) { if (pIStream == nullptr || !pIStream->good()) throw std::runtime_error("input stream not open"); if (typ_ != binary) throw std::runtime_error("reading binary from text file"); if (dirn_ == out) throw std::runtime_error("reading output file"); size_t count = 0; while (pIStream->good()) { buffer[count++] = pIStream->get(); if (count == bufLen) break; } if (!pIStream->good()) // don't write EOF char --count; return count; } //----< write buffer of bytes to binary file >------------------------------- void File::putBuffer(size_t bufLen, File::byte* buffer) { if (pOStream == nullptr || !pOStream->good()) throw std::runtime_error("output stream not open"); if (typ_ != binary) throw std::runtime_error("writing binary to text file"); if (dirn_ == in) throw std::runtime_error("writing input file"); if (!pOStream->good()) return; size_t count = 0; while(pOStream->good()) { pOStream->put(buffer[count++]); if (count == bufLen) break; } } //----< tests for error free stream state >-------------------------------- bool File::isGood() { if(!good_) return false; if(pIStream != nullptr) return (good_ = pIStream->good()); if(pOStream != nullptr) return (good_ = pOStream->good()); return (good_ = false); } //----< flushes output stream to its file >-------------------------------- void File::flush() { if(pOStream != nullptr && pOStream->good()) pOStream->flush(); } //----< clears error state enabling operations again >--------------------- void File::clear() { if(pIStream != nullptr) pIStream->clear(); if(pOStream != nullptr) pOStream->clear(); } //----< close file handle >------------------------------------------------ void File::close() { File::flush(); if (pIStream != nullptr) { pIStream->close(); pIStream = nullptr; good_ = false; } if (pOStream) { pOStream->close(); pOStream = nullptr; good_ = false; } } //----< file exists >-------------------------------------------------- bool File::exists(const std::string& file) { return ::GetFileAttributesA(file.c_str()) != INVALID_FILE_ATTRIBUTES; } //----< copy file >---------------------------------------------------- bool File::copy(const std::string& src, const std::string& dst, bool failIfExists) { return ::CopyFileA(src.c_str(), dst.c_str(), failIfExists) != 0; } //----< remove file >-------------------------------------------------- bool File::remove(const std::string& file) { return ::DeleteFileA(file.c_str()) != 0; } //----< constructor >-------------------------------------------------- FileInfo::FileInfo(const std::string& fileSpec) { hFindFile = ::FindFirstFileA(fileSpec.c_str(), &data); if(hFindFile == INVALID_HANDLE_VALUE) good_ = false; else good_ = true; } //----< destructor >--------------------------------------------------- FileInfo::~FileInfo() { ::FindClose(hFindFile); } //----< is passed filespec valid? >------------------------------------ bool FileInfo::good() { return good_; } //----< return file name >--------------------------------------------- std::string FileInfo::name() const { return Path::getName(data.cFileName); } //----< conversion helper >-------------------------------------------- std::string FileInfo::intToString(long i) { std::ostringstream out; out.fill('0'); out << std::setw(2) << i; return out.str(); } //----< return file date >--------------------------------------------- std::string FileInfo::date(dateFormat df) const { std::string dateStr, timeStr; FILETIME ft; SYSTEMTIME st; ::FileTimeToLocalFileTime(&data.ftLastWriteTime, &ft); ::FileTimeToSystemTime(&ft, &st); dateStr = intToString(st.wMonth) + '/' + intToString(st.wDay) + '/' + intToString(st.wYear); timeStr = intToString(st.wHour) + ':' + intToString(st.wMinute) + ':' + intToString(st.wSecond); if(df == dateformat) return dateStr; if(df == timeformat) return timeStr; return dateStr + " " + timeStr; } //----< return file size >--------------------------------------------- size_t FileInfo::size() const { return (size_t)(data.nFileSizeLow + (data.nFileSizeHigh << 8)); } //----< is type archive? >--------------------------------------------- bool FileInfo::isArchive() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE) != 0; } //----< is type compressed? >------------------------------------------ bool FileInfo::isCompressed() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_COMPRESSED) != 0; } //----< is type directory? >------------------------------------------- bool FileInfo::isDirectory() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0; } //----< is type encrypted? >--------------------------------------------- bool FileInfo::isEncrypted() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_ENCRYPTED) != 0; } //----< is type hiddent? >--------------------------------------------- bool FileInfo::isHidden() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) != 0; } //----< is type normal? >--------------------------------------------- bool FileInfo::isNormal() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_NORMAL) != 0; } //----< is type offline? >--------------------------------------------- bool FileInfo::isOffLine() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_OFFLINE) != 0; } //----< is type readonly? >-------------------------------------------- bool FileInfo::isReadOnly() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) != 0; } //----< is type system? >---------------------------------------------- bool FileInfo::isSystem() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM ) != 0; } //----< is type temporary? >------------------------------------------- bool FileInfo::isTemporary() const { return (data.dwFileAttributes & FILE_ATTRIBUTE_TEMPORARY) != 0; } //----< compare names alphabetically >--------------------------------- bool FileInfo::operator<(const FileInfo& fi) const { return strcmp(data.cFileName, fi.data.cFileName) == -1; } //----< compare names alphabetically >--------------------------------- bool FileInfo::operator==(const FileInfo& fi) const { return strcmp(data.cFileName, fi.data.cFileName) == 0; } //----< compare names alphabetically >--------------------------------- bool FileInfo::operator>(const FileInfo& fi) const { return strcmp(data.cFileName, fi.data.cFileName) == 1; } //----< compare file times >------------------------------------------- bool FileInfo::earlier(const FileInfo& fi) const { FILETIME ft1 = data.ftLastWriteTime; FILETIME ft2 = fi.data.ftLastWriteTime; return ::CompareFileTime(&ft1, &ft2) == -1; } //----< compare file times >------------------------------------------- bool FileInfo::later(const FileInfo& fi) const { FILETIME ft1 = data.ftLastWriteTime; FILETIME ft2 = fi.data.ftLastWriteTime; return ::CompareFileTime(&ft1, &ft2) == 1; } //----< smaller >------------------------------------------------------ bool FileInfo::smaller(const FileInfo &fi) const { return size() < fi.size(); } //----< larger >------------------------------------------------------- bool FileInfo::larger(const FileInfo &fi) const { return size() > fi.size(); } //----< convert string to lower case chars >--------------------------- std::string Path::toLower(const std::string& src) { std::string temp; for(size_t i=0; i<src.length(); ++i) temp += tolower(src[i]); return temp; } //----< convert string to upper case chars >--------------------------- std::string Path::toUpper(const std::string& src) { std::string temp; for(size_t i=0; i<src.length(); ++i) temp += toupper(src[i]); return temp; } //----< get path from fileSpec >--------------------------------------- std::string Path::getName(const std::string &fileSpec, bool withExt) { size_t pos = fileSpec.find_last_of("/"); if(pos >= fileSpec.length()) { pos = fileSpec.find_last_of("\\"); if(pos >= fileSpec.length()) { // no path prepended if(withExt) return fileSpec; else { // remove ext size_t pos = fileSpec.find("."); if(pos > fileSpec.size()) return fileSpec; return fileSpec.substr(0, pos-1); } } } if(withExt) return fileSpec.substr(pos+1,fileSpec.length()-pos); else { // remove ext size_t pos2 = fileSpec.find(".", pos); if(pos2 > fileSpec.size()) // no ext return fileSpec.substr(pos+1); return fileSpec.substr(pos+1, pos2-pos-1); } } //----< get extension from fileSpec >---------------------------------- std::string Path::getExt(const std::string& fileSpec) { size_t pos1 = fileSpec.find_last_of('/'); size_t pos2 = fileSpec.find_last_of('\\'); size_t pos = fileSpec.find_last_of('.'); // handle ../ or ..\\ with no extension if(pos1 < fileSpec.length() || pos2 < fileSpec.length()) { if(pos < min(pos1, pos2)) return std::string(""); } // only . is extension delimiter if(0 <= pos && pos < fileSpec.length()) return toLower(fileSpec.substr(pos+1,fileSpec.length()-pos)); return std::string(""); } //----< get path from fileSpec >--------------------------------------- std::string Path::getPath(const std::string &fileSpec) { size_t pos = fileSpec.find_last_of("/"); if(pos >= fileSpec.length()) pos = fileSpec.find_last_of("\\"); if(pos >= fileSpec.length()) return "."; if(fileSpec.find(".",pos+1)) return fileSpec.substr(0,pos+1); return fileSpec; } //----< get absoluth path from fileSpec >------------------------------ std::string Path::getFullFileSpec(const std::string &fileSpec) { const size_t BufSize = 256; char buffer[BufSize]; char filebuffer[BufSize]; // don't use but GetFullPathName will char* name = filebuffer; ::GetFullPathNameA(fileSpec.c_str(),BufSize, buffer, &name); return std::string(buffer); } //----< create file spec from path and name >-------------------------- std::string Path::fileSpec(const std::string &path, const std::string &name) { std::string fs; size_t len = path.size(); if(path[len-1] == '/' || path[len-1] == '\\') fs = path + name; else { if(path.find("/") < path.size()) fs = path + "/" + name; else if(path.find("\\") < path.size()) fs = path + "\\" + name; else fs = path + "/" + name; } return fs; } //----< return name of the current directory >----------------------------- std::string Directory::getCurrentDirectory() { char buffer[MAX_PATH]; ::GetCurrentDirectoryA(MAX_PATH,buffer); return std::string(buffer); } //----< change the current directory to path >----------------------------- bool Directory::setCurrentDirectory(const std::string& path) { return ::SetCurrentDirectoryA(path.c_str()) != 0; } //----< get names of all the files matching pattern (path:name) >---------- std::vector<std::string> Directory::getFiles(const std::string& path, const std::string& pattern) { std::vector<std::string> files; FileSystemSearch fss; std::string file = fss.firstFile(path, pattern); if(file.size() == 0) return files; files.push_back(path +"\\"+file); while(true) { file = fss.nextFile(); if(file.size() == 0) return files; files.push_back(path + "\\" + file); } return files; } //----< get names of all directories matching pattern (path:name) >-------- std::vector<std::string> Directory::getDirectories(const std::string& path, const std::string& pattern) { std::vector<std::string> dirs; FileSystemSearch fss; std::string dir = fss.firstDirectory(path, pattern); if(dir.size() == 0) return dirs; dirs.push_back(dir); while(true) { dir = fss.nextDirectory(); if(dir.size() == 0) return dirs; dirs.push_back(dir); } return dirs; } //----< create directory >------------------------------------------------- bool Directory::create(const std::string& path) { return ::CreateDirectoryA(path.c_str(), NULL) == 0; } //----< does directory exist? >-------------------------------------------- bool Directory::exists(const std::string& path) { DWORD dwAttrib = GetFileAttributesA(path.c_str()); return (dwAttrib != INVALID_FILE_ATTRIBUTES && (dwAttrib & FILE_ATTRIBUTE_DIRECTORY)); } //----< remove directory >------------------------------------------------- bool Directory::remove(const std::string& path) { return ::RemoveDirectoryA(path.c_str()) == 0; } //----< find first file >-------------------------------------------------- std::string FileSystemSearch::firstFile(const std::string& path, const std::string& pattern) { hFindFile = ::FindFirstFileA(Path::fileSpec(path, pattern).c_str(), pFindFileData); if(hFindFile != INVALID_HANDLE_VALUE) { if(!(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) return pFindFileData->cFileName; else while(::FindNextFileA(hFindFile, pFindFileData)) if(!(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) return pFindFileData->cFileName; } return ""; } //----< find next file >--------------------------------------------------- std::string FileSystemSearch::nextFile() { while(::FindNextFileA(hFindFile, pFindFileData)) if(!(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) return pFindFileData->cFileName; return ""; } //----< find first file >-------------------------------------------------- std::string FileSystemSearch::firstDirectory(const std::string& path, const std::string& pattern) { hFindFile = ::FindFirstFileA(Path::fileSpec(path, pattern).c_str(), pFindFileData); if(hFindFile != INVALID_HANDLE_VALUE) { if(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) return pFindFileData->cFileName; else while(::FindNextFileA(hFindFile, pFindFileData)) if(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) return pFindFileData->cFileName; } return ""; } //----< find next file >--------------------------------------------------- std::string FileSystemSearch::nextDirectory() { while(::FindNextFileA(hFindFile, pFindFileData)) if(pFindFileData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) return pFindFileData->cFileName; return ""; } //----< test stub >-------------------------------------------------------- #ifdef TEST_FILESYST void title(const std::string& title, char ch='=') { std::cout << "\n " << title; std::cout << "\n " << std::string(title.size()+2, ch); } int main(int argc, char* argv[]) { title("Demonstrate Path Class"); std::string fs = Path::fileSpec(".","temp.txt"); std::cout << "\n Path::fileSpec(\".\",\"temp.txt\") = " << fs; std::string path = Path::getPath(fs); std::cout << "\n Path::getPath(\"" + fs + "\") = " << path; std::string ffs = Path::getFullFileSpec(fs); std::cout << "\n Path::getFullFileSpec(\"" + fs + "\") = " << ffs; std::string name = Path::getName(fs); std::cout << "\n Path::getName(\"" + fs + "\") = " << name; std::string ext = Path::getExt(fs); std::cout << "\n Path::getExt(\"" + fs + "\") = " << ext; std::string upper = Path::toUpper("temp.txt"); std::cout << "\n Path::toUpper(\"temp.txt\") = " << upper; std::string lower = Path::toLower("Temp.Txt"); std::cout << "\n Path::toLower(\"Temp.Txt\") = " << lower; std::cout << std::endl; title("Demonstrate Directory class"); // Display contents of current directory std::cout << "\n current directory is:\n " << Directory::getCurrentDirectory(); std::cout << "\n It contains files:"; std::vector<std::string> currfiles = Directory::getFiles(); /////////////////////////////////////////////////////// // This works too // std::vector<std::string> currfiles = d.getFiles(); for(size_t i=0; i<currfiles.size(); ++i) std::cout << "\n " << currfiles[i].c_str(); std::cout << "\n and contains directories:"; std::vector<std::string> currdirs = Directory::getDirectories(); for(size_t i=0; i<currdirs.size(); ++i) std::cout << "\n " << currdirs[i].c_str(); std::cout << "\n"; // Display contents of non-current directory std::cout << "\n .txt files residing in C:/temp are:"; currfiles = Directory::getFiles("c:/temp/", "*.txt"); // if we want fully qualified file names, we have to // set the current directory to the path on which the files // reside, if it isn't already so set std::string currDir = Directory::getCurrentDirectory(); Directory::setCurrentDirectory("c:/temp/"); for(size_t i=0; i<currfiles.size(); ++i) std::cout << "\n " << Path::getFullFileSpec(currfiles[i]).c_str(); Directory::setCurrentDirectory(currDir); // we have to restore the current directory so the // remaining tests work // it's probably easier just to use Path::fileSpec(path, filename) // like this: for (size_t i = 0; i<currfiles.size(); ++i) std::cout << "\n " << Path::fileSpec("c:\\temp\\", currfiles[i]).c_str(); std::cout << "\n"; std::cout << "\n directories residing in C:/temp are:"; currdirs = Directory::getDirectories("c:/temp/"); for(size_t i=0; i<currdirs.size(); ++i) std::cout << "\n " << currdirs[i].c_str(); std::cout << "\n"; // Create directory title("Demonstrate FileInfo Class Operations", '='); std::cout << "\n"; Directory::setCurrentDirectory("."); std::cout << "\n current path is \"" << Directory::getCurrentDirectory(); std::string fn1; if(argc > 1) fn1 = argv[1]; else fn1 = "c:\\temp\\test.txt"; FileInfo fi(fn1); if(fi.good()) { std::cout << "\n name: " << "\t" << fi.name(); std::cout << "\n date: " << "\t" << fi.date(); std::cout << "\n date: " << "\t" << fi.date(FileInfo::dateformat); std::cout << "\n date: " << "\t" << fi.date(FileInfo::timeformat); std::cout << "\n size: " << "\t" << fi.size() << " bytes"; if(fi.isArchive()) std::cout << "\n is archive"; else std::cout << "\n is not archive"; if(fi.isCompressed()) std::cout << "\n is compressed"; else std::cout << "\n is not compressed"; if(fi.isDirectory()) std::cout << "\n is directory"; else std::cout << "\n is not directory"; if(fi.isEncrypted()) std::cout << "\n is encrypted"; else std::cout << "\n is not encrypted"; if(fi.isHidden()) std::cout << "\n is hidden"; else std::cout << "\n is not hidden"; if(fi.isNormal()) std::cout << "\n is normal"; else std::cout << "\n is not normal"; if(fi.isOffLine()) std::cout << "\n is offline"; else std::cout << "\n is not offline"; if(fi.isReadOnly()) std::cout << "\n is readonly"; else std::cout << "\n is not readonly"; if(fi.isSystem()) std::cout << "\n is system"; else std::cout << "\n is not system"; if(fi.isTemporary()) std::cout << "\n is temporary"; else std::cout << "\n is not temporary"; } else std::cout << "\n filename " << fn1 << " is not valid in this context\n"; std::string fn2; if(argc > 2) { fn1 = argv[1]; fn2 = argv[2]; } else { fn1 = "FileSystem.h"; fn2 = "FileSystem.cpp"; } FileInfo fi1(fn1); FileInfo fi2(fn2); if(fi1.good() && fi2.good()) { if(fi1 == fi1) std::cout << "\n " << fi1.name() << " == " << fi1.name(); else std::cout << "\n " << fi1.name() << " != " << fi1.name(); if(fi1 < fi1) std::cout << "\n " << fi1.name() << " < " << fi1.name(); else std::cout << "\n " << fi1.name() << " >= " << fi1.name(); if(fi1 == fi2) std::cout << "\n " << fi1.name() << " == " << fi2.name(); else std::cout << "\n " << fi1.name() << " != " << fi2.name(); if(fi1 < fi2) std::cout << "\n " << fi1.name() << " < " << fi2.name(); else std::cout << "\n " << fi1.name() << " >= " << fi2.name(); if(fi1.smaller(fi2)) std::cout << "\n " << fi1.name() << " is smaller than " << fi2.name(); else std::cout << "\n " << fi1.name() << " is not smaller than " << fi2.name(); if(fi1.earlier(fi2)) std::cout << "\n " << fi1.name() << " is earlier than " << fi2.name(); else std::cout << "\n " << fi1.name() << " is not earlier than " << fi2.name(); std::cout << std::endl; } else std::cout << "\n files " << fn1 << " and " << fn2 << " are not valid in this context\n"; title("Demonstrate File class operations", '='); std::cout << "\n"; // copy binary file from one directory to another File me("../debug/filesystemdemo.exe"); me.open(File::in, File::binary); std::cout << "\n copying " << me.name().c_str() << " to c:/temp"; if(!me.isGood()) { std::cout << "\n can't open executable\n"; std::cout << "\n looking for:\n "; std::cout << Path::getFullFileSpec(me.name()) << "\n"; } else { File you("c:/temp/fileSystemdemo.exe"); you.open(File::out, File::binary); if(you.isGood()) { while(me.isGood()) { static size_t count = 0; Block b = me.getBlock(1024); you.putBlock(b); if (++count < 10) { std::cout << "\n reading block of " << b.size() << " bytes"; std::cout << "\n writing block of " << b.size() << " bytes"; } if (b.size() < 1024) { std::cout << "\n\n omitted " << count-10 << " blocks from display\n\n"; std::cout << "\n reading block of " << b.size() << " bytes"; std::cout << "\n writing block of " << b.size() << " bytes"; } } std::cout << "\n"; } } // save some filespecs of text files in a vector for File demonstrations std::vector<std::string> files; if(argc == 1) { std::cout << "\n\n Enter, on the command line, an additional filename to process.\n"; } for(int i=1; i<argc; ++i) { files.push_back(argv[i]); } files.push_back("FileSystem.cpp"); // file not on current path files.push_back("../FileSystemDemo/FileSystem.cpp"); // file from project directory files.push_back("../FileSystemTest.txt"); // file in solution directory files.push_back("foobar"); // doesn't exist // open each file and display a few lines of text for(size_t i=0; i<files.size(); ++i) { File file(files[i]); file.open(File::in); if(!file.isGood()) { std::cout << "\n Can't open file " << file.name(); std::cout << "\n Here's what the program can't find:\n " << Path::getFullFileSpec(file.name()); continue; } std::string temp = std::string("Processing file ") + files[i]; title(temp, '-'); for(int j=0; j<10; ++j) { if(!file.isGood()) break; std::cout << "\n -- " << file.getLine().c_str(); } std::cout << "\n"; } std::cout << "\n"; // read all lines of text file into string title("testing File::readAll()", '-'); std::cout << "\n"; File testAll("../FileSystemTest.txt"); testAll.open(File::in); if (testAll.isGood()) { std::string all = testAll.readAll(); std::cout << all << "\n"; } testAll.close(); title("testing File::readAll(true)", '-'); std::cout << "\n"; File testAllTrue("../FileSystemTest.txt"); testAllTrue.open(File::in); if (testAllTrue.isGood()) { std::string all = testAllTrue.readAll(true); std::cout << all << "\n"; } testAllTrue.close(); // test reading non-text files title("test reading non-text files", '-'); std::cout << "\n Attempting to open Visual Studio files."; std::cout << "\n These are locked by VS when running from IDE."; std::cout << "\n They will open if you run FileSystemDemo from the debug folder,"; std::cout << "\n provided you've closed the solution in VS.\n"; std::cout << "\n"; std::string testPath = "./debug"; // run from project directory (what Visual Studio does) if (!Directory::exists(testPath)) testPath = "."; // run from solution debug directory std::vector<std::string> testFiles = Directory::getFiles(testPath); for (auto file : testFiles) { try { std::string ext = Path::getExt(file); if (ext == "exe" || ext == "obj" || ext == "dll" || file == "run.dat") { /* reading binary file works, but generates a lot of garbage */ /* I use run.dat to capture this output so including will make output confusing */ std::cout << " skipping binary file " << file << "\n"; continue; } File test(file); test.open(File::in); // open as text file std::cout << "\n processing \"" << file << "\"\n"; if (test.isGood()) { std::string text = test.readAll(true); std::cout << text << "\n"; } else { std::cout << "\n open failed\n"; } } catch (std::exception& ex) { std::cout << "\n Exception: " << ex.what() << "\n"; } } // read text file and write to another text file title("writing to c:/temp/test.txt", '-'); File in("../FileSystemDemo/FileSystem.h"); in.open(File::in, File::text); File out("c:/temp/test.txt"); out.open(File::out, File::text); while(in.isGood() && out.isGood()) { std::string temp = in.getLine(); //std::cout << "\n " << temp.c_str(); out.putLine(temp); out.putLine("\n"); } std::cout << "\n check c:/temp/test.txt to validate"; std::cout << "\n\n"; // read and write buffers title("reading and writing buffers"); std::cout << "\n " << FileSystem::Directory::getCurrentDirectory(); std::string fileIn = "../TestFileSystem/UnitTest.h"; std::string fileOut = "../TestFileSystem/CopyOfUnitTest.h"; File bufferIn(fileIn); bufferIn.open(File::in, File::binary); if (!bufferIn.isGood()) { std::cout << "\n could not open \"" << fileIn << "\" for reading"; return 1; } else { std::cout << "\n opening: \"" << fileIn << "\" for reading"; } File bufferOut(fileOut); bufferOut.open(File::out, File::binary); if (!bufferOut.isGood()) { std::cout << "\n could not open \"" << fileOut << "\" for writing\n\n"; return 1; } else { std::cout << "\n opening: \"" << fileOut << "\" for writing"; } std::cout << "\n"; const size_t bufLen = 124; File::byte buffer[bufLen]; while (true) { size_t resultSize = bufferIn.getBuffer(bufLen, buffer); //std::cout << "\n reading buffer of size " << resultSize << " bytes"; std::string temp1(buffer, resultSize); std::cout << temp1; //std::cout << "\n writing buffer of size " << resultSize << "bytes"; bufferOut.putBuffer(resultSize, buffer); if (resultSize < bufLen || !bufferIn.isGood() || !bufferOut.isGood()) { bufferIn.close(); bufferOut.close(); break; } } std::cout << "\n\n"; } #endif
[ "lokeshrajatvyas@gmail.com" ]
lokeshrajatvyas@gmail.com
0eb9cab9f67c3e5093b48a387e50fe5c761342de
17e9c1ec2c2c46b14d40ff2feb6e9a63f384621c
/Digicon_Pitagora/src/main.cpp
3624ec0e0642a8d297f135b01e2595108d2d9293
[]
no_license
bolcof/of_archives
446d7f2cda270c69142103b839eaaecabb405bc3
ca1b375b536710b6ed5f8b73f0c26253fd67a7e4
refs/heads/master
2020-04-04T08:47:16.759701
2018-11-19T08:08:59
2018-11-19T08:08:59
155,794,558
0
0
null
null
null
null
UTF-8
C++
false
false
345
cpp
#include "ofMain.h" #include "ofApp.h" //======================================================================== int main( ){ ofSetupOpenGL(1440,810,OF_FULLSCREEN); // <-------- setup the GL context // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN // pass in width and height too: ofRunApp(new ofApp()); }
[ "noreply@github.com" ]
noreply@github.com
ab39be49c619a3781439363553a11f3f61960b50
3c249092e074e4ebe799f73ea95b682e4ffe1559
/SuperTerrain+/SuperRealism+/Public/SuperRealism+/Scene/Component/STPHeightfieldTerrain.h
c11c0c888e855b9532b068ca54b8b6cebfcfedc7
[ "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
stephen-hqxu/superterrainplus
632d23cc6472049e3f52da92b249ecebec4fe0f2
482724099a3c0da8d559b815a6543881f76f3390
refs/heads/master
2023-05-22T11:23:12.881725
2023-04-05T21:45:57
2023-04-05T21:45:57
329,717,558
13
2
MIT
2022-10-29T18:20:40
2021-01-14T19:45:11
C++
UTF-8
C++
false
false
5,570
h
#pragma once #ifndef _STP_HEIGHTFIELD_TERRAIN_H_ #define _STP_HEIGHTFIELD_TERRAIN_H_ #include <SuperRealism+/STPRealismDefine.h> //Scene Node #include "../STPSceneObject.hpp" #include "../../Geometry/STPPlaneGeometry.h" //GL Utility #include "../../Object/STPPipelineManager.h" #include "../../Object/STPBuffer.h" #include "../../Object/STPVertexArray.h" #include "../../Object/STPTexture.h" #include "../../Object/STPBindlessTexture.h" //Terrain Generator #include <SuperTerrain+/World/STPWorldPipeline.h> #include <SuperTerrain+/World/STPWorldMapPixelFormat.hpp> #include "../../Environment/STPMeshSetting.h" //GLM #include <glm/vec3.hpp> //System #include <optional> namespace SuperTerrainPlus::STPRealism { /** * @brief STPHeightfieldTerrain is a real-time photorealistic renderer for heightfield-base terrain. */ class STP_REALISM_API STPHeightfieldTerrain : public STPSceneObject::STPOpaqueObject { public: friend class STPWater; /** * @brief STPNormalBlendingAlgorithm selects normalmap blending algorithm in the shader */ enum class STPNormalBlendingAlgorithm : unsigned char { //Blend two normalmaps by adding them together Linear = 0x00u, //Blend by adding x,y component together and multiply z component Whiteout = 0x01u, //Treat two normalmap as heightmaps and blend based on the height difference PartialDerivative = 0x02u, //Blend by adding x,y together and use the mesh normal only as z component UDN = 0x03u, //Create a TBN matrix using mesh normal and transform texture normal to the terrain tangent space BasisTransform = 0x04u, //Project the texture normal to mesh normal RNM = 0x05u, //Disable use of texture normalmap, only mesh normal is in effect Disable = 0xFFu }; /** * @brief STPTerrainShaderOption specifies the compiler options to be passed to terrain shader compiler. */ struct STPTerrainShaderOption { public: //The initial position of the viewer. //This is used to initialise the rendered chunk position for the first few frames when heightmap are not yet generated. glm::dvec3 InitialViewPosition; //Specify the dimension of the noise sampling texture to be used in the shader. //Higher scale provides more randomness but also consumes more memory. glm::uvec3 NoiseDimension; //Set the seed for a texture of random number used during rendering, and regenerate the random texture //with the dimension initialised. STPSeed_t NoiseSeed; //Specify the normalmap blending algorithm to be used during rendering. STPNormalBlendingAlgorithm NormalBlender; }; private: //The main terrain generator STPWorldPipeline& TerrainGenerator; STPSceneObject::STPDepthRenderGroup::STPLightSpaceDatabase<1u> TerrainDepthRenderer; //A buffer representing the terrain plane. std::optional<STPPlaneGeometry> TerrainMesh; STPBuffer TerrainRenderCommand; STPTexture NoiseSample; STPBindlessTexture::STPHandle NoiseSampleHandle; //Shader program for terrain rendering //modeller contains vertex, tes control and tes eval, shader contains geom and frag. mutable STPProgramManager TerrainVertex, TerrainModeller, TerrainShader; STPPipelineManager TerrainRenderer; STPOpenGL::STPint MeshModelLocation, MeshQualityLocation; //data for texture splatting STPBuffer SplatRegion; STPOpenGL::STPuint64 SplatRegionAddress; /** * @brief Calculate the base chunk position (the coordinate of top-left corner) for the most top-left corner chunk. * @param horizontal_offset The chunk offset in xz direction in world coordinate. * @return The base chunk position. */ glm::dvec2 calcBaseChunkPosition(glm::dvec2); /** * @brief Update the terrain model matrix based on the current centre chunk position. */ void updateTerrainModel(); public: /** * @brief Initialise the heightfield terrain rendering engine without shadow. * @param generator_pipeline A pointer to the world pipeline that provides heightfield. * @param option The pointer to various compiler options. */ STPHeightfieldTerrain(STPWorldPipeline&, const STPTerrainShaderOption&); STPHeightfieldTerrain(const STPHeightfieldTerrain&) = delete; STPHeightfieldTerrain(STPHeightfieldTerrain&&) = delete; STPHeightfieldTerrain& operator=(const STPHeightfieldTerrain&) = delete; STPHeightfieldTerrain& operator=(STPHeightfieldTerrain&&) = delete; ~STPHeightfieldTerrain() = default; /** * @brief Update the terrain mesh setting. * @param mesh_setting The pointer to the new mesh setting to be updated. */ void setMesh(const STPEnvironment::STPMeshSetting&); /** * @brief Specifically adjust the mesh quality when rendering to depth buffer. * @param tess The pointer to the tessellation setting. * It is recommended to use a (much) lower quality than the actual rendering. */ void setDepthMeshQuality(const STPEnvironment::STPTessellationSetting&); /** * @brief Set the new view position and signal the terrain generator to prepare heightfield texture. * @param viewPos The world position of the viewing coordinate to be prepared. */ void setViewPosition(const glm::dvec3&); bool addDepthConfiguration(size_t, const STPShaderManager::STPShader*) override; /** * @brief Render a regular procedural heightfield terrain. * Terrain texture must be prepared prior to this call, and this function sync with the generator automatically. */ void render() const override; void renderDepth(size_t) const override; }; } #endif//_STP_HEIGHTFIELD_TERRAIN_H_
[ "stephen.hqxu@gmail.com" ]
stephen.hqxu@gmail.com
89df06fa86b619114a93c791eba4bcbf404be533
ec37ee79c6b57758119c5ebea120da8712f53dc5
/Recurssion/ReplacingPIWithValue.cpp
1ecc80e145b24183ad379d62099e5545cf17023e
[]
no_license
rakhi2207/C-Learning
76a063560270efbb68de95ab911aeabe22d58462
f576121685b1503c9ab4276c4ec480297f93a1fc
refs/heads/master
2023-06-25T08:07:41.130542
2021-07-25T11:11:35
2021-07-25T11:11:35
374,215,501
1
0
null
null
null
null
UTF-8
C++
false
false
408
cpp
#include<iostream> using namespace std; void replacingpi(string s) { if(s.length()==0) { return ; } if(s[0]=='p'&&s[1]=='i') { cout<<"3.14"; replacingpi(s.substr(2)); }else { cout<<s[0]; replacingpi(s.substr(1)); } } int main() { string s; cout<<"Enter a string "; cin>>s; replacingpi(s); cout<<"\n"; return 0; }
[ "jharakhi1211@gmail.com" ]
jharakhi1211@gmail.com
8cd97e86f69032f6137be7de460345c847091920
1f267e2f3591714abcb1d65817695624f582d99a
/host_bandcamp/StormGETPlugin.h
86c1667345bcb23f6529da69f1859625e2474a83
[ "MIT" ]
permissive
StormBit/StormGET
282b1428d812a19a59a63597b5d7891b83c09786
3f2acd4c9469262bb3830093dac53c580c1d1508
refs/heads/master
2021-01-25T07:11:44.731031
2020-04-26T15:12:27
2020-04-26T15:12:27
13,005,236
3
5
null
null
null
null
UTF-8
C++
false
false
227
h
#pragma once // CStormGETPlugin class __declspec(dllexport) CStormGETPlugin : public CWnd { DECLARE_DYNAMIC(CStormGETPlugin) public: CStormGETPlugin(); virtual ~CStormGETPlugin(); protected: DECLARE_MESSAGE_MAP() };
[ "reimu@reimuhakurei.net" ]
reimu@reimuhakurei.net
626f4a22bd513b6e04a17744d1e1e851e3ee9471
cef8d1ddd7c64582b56458b0ebf3fb39423e3f67
/third_party/entt-v3.8.1/test/entt/entity/throwing_component.hpp
878706c28190e7851a275e1f765deaba546c1ed9
[ "MIT", "CC-BY-SA-4.0", "CC-BY-4.0" ]
permissive
dantros/grafica_cpp
ecb9c093a7270933fe27bb6b018380c6bdff006f
1ad0283295e79b755c546f50944f433c290b5c25
refs/heads/dev
2023-08-26T04:55:34.883134
2021-10-18T04:24:36
2021-10-18T04:24:36
356,721,014
1
5
MIT
2021-10-18T00:40:53
2021-04-10T23:27:32
C++
UTF-8
C++
false
false
942
hpp
#ifndef ENTT_ENTITY_THROWING_COMPONENT_HPP #define ENTT_ENTITY_THROWING_COMPONENT_HPP namespace test { class throwing_component { struct test_exception {}; public: using exception_type = test_exception; static constexpr auto moved_from_value = -1; throwing_component(int value) : data{value} {} throwing_component(const throwing_component &other) : data{other.data} { if(data == trigger_on_value) { data = moved_from_value; throw exception_type{}; } } throwing_component & operator=(const throwing_component &other) { if(other.data == trigger_on_value) { data = moved_from_value; throw exception_type{}; } data = other.data; return *this; } operator int() const { return data; } static inline int trigger_on_value{}; private: int data{}; }; } #endif
[ "21376367+dantros@users.noreply.github.com" ]
21376367+dantros@users.noreply.github.com
026a1f8d22f196e117a62fa9822b92be33b2741f
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium_org/third_party/WebKit/Source/core/svg/SVGAnimatedAngle.cpp
a6265e5466b9bbacff3b5a3329e4afece7c0e5d8
[ "GPL-1.0-or-later", "LGPL-2.0-or-later", "Apache-2.0", "MIT", "BSD-3-Clause", "LGPL-2.0-only", "BSD-2-Clause", "LGPL-2.1-only" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
C++
false
false
6,959
cpp
/* * Copyright (C) Research In Motion Limited 2011, 2012. All rights reserved. * * 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; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "config.h" #include "core/svg/SVGAnimatedAngle.h" #include "bindings/v8/ExceptionStatePlaceholder.h" #include "core/svg/SVGAnimateElement.h" #include "core/svg/SVGMarkerElement.h" namespace WebCore { SVGAnimatedAngleAnimator::SVGAnimatedAngleAnimator(SVGAnimationElement* animationElement, SVGElement* contextElement) : SVGAnimatedTypeAnimator(AnimatedAngle, animationElement, contextElement) { } PassOwnPtr<SVGAnimatedType> SVGAnimatedAngleAnimator::constructFromString(const String& string) { OwnPtr<SVGAnimatedType> animatedType = SVGAnimatedType::createAngleAndEnumeration(new pair<SVGAngle, unsigned>); pair<SVGAngle, unsigned>& animatedPair = animatedType->angleAndEnumeration(); SVGAngle angle; SVGMarkerOrientType orientType = SVGPropertyTraits<SVGMarkerOrientType>::fromString(string, angle); if (orientType > 0) animatedPair.second = orientType; if (orientType == SVGMarkerOrientAngle) animatedPair.first = angle; return animatedType.release(); } PassOwnPtr<SVGAnimatedType> SVGAnimatedAngleAnimator::startAnimValAnimation(const SVGElementAnimatedPropertyList& animatedTypes) { return SVGAnimatedType::createAngleAndEnumeration(constructFromBaseValues<SVGAnimatedAngle, SVGAnimatedEnumeration>(animatedTypes)); } void SVGAnimatedAngleAnimator::stopAnimValAnimation(const SVGElementAnimatedPropertyList& animatedTypes) { stopAnimValAnimationForTypes<SVGAnimatedAngle, SVGAnimatedEnumeration>(animatedTypes); } void SVGAnimatedAngleAnimator::resetAnimValToBaseVal(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType* type) { resetFromBaseValues<SVGAnimatedAngle, SVGAnimatedEnumeration>(animatedTypes, type, &SVGAnimatedType::angleAndEnumeration); } void SVGAnimatedAngleAnimator::animValWillChange(const SVGElementAnimatedPropertyList& animatedTypes) { animValWillChangeForTypes<SVGAnimatedAngle, SVGAnimatedEnumeration>(animatedTypes); } void SVGAnimatedAngleAnimator::animValDidChange(const SVGElementAnimatedPropertyList& animatedTypes) { animValDidChangeForTypes<SVGAnimatedAngle, SVGAnimatedEnumeration>(animatedTypes); } void SVGAnimatedAngleAnimator::addAnimatedTypes(SVGAnimatedType* from, SVGAnimatedType* to) { ASSERT(from->type() == AnimatedAngle); ASSERT(from->type() == to->type()); const pair<SVGAngle, unsigned>& fromAngleAndEnumeration = from->angleAndEnumeration(); pair<SVGAngle, unsigned>& toAngleAndEnumeration = to->angleAndEnumeration(); // Only respect by animations, if from and by are both specified in angles (and not eg. 'auto'). if (fromAngleAndEnumeration.second != toAngleAndEnumeration.second || fromAngleAndEnumeration.second != SVGMarkerOrientAngle) return; const SVGAngle& fromAngle = fromAngleAndEnumeration.first; SVGAngle& toAngle = toAngleAndEnumeration.first; toAngle.setValue(toAngle.value() + fromAngle.value()); } void SVGAnimatedAngleAnimator::calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType* from, SVGAnimatedType* to, SVGAnimatedType* toAtEndOfDuration, SVGAnimatedType* animated) { ASSERT(m_animationElement); ASSERT(m_contextElement); const pair<SVGAngle, unsigned>& fromAngleAndEnumeration = m_animationElement->animationMode() == ToAnimation ? animated->angleAndEnumeration() : from->angleAndEnumeration(); const pair<SVGAngle, unsigned>& toAngleAndEnumeration = to->angleAndEnumeration(); const pair<SVGAngle, unsigned>& toAtEndOfDurationAngleAndEnumeration = toAtEndOfDuration->angleAndEnumeration(); pair<SVGAngle, unsigned>& animatedAngleAndEnumeration = animated->angleAndEnumeration(); if (fromAngleAndEnumeration.second != toAngleAndEnumeration.second) { // Animating from eg. auto to 90deg, or auto to 90deg. if (fromAngleAndEnumeration.second == SVGMarkerOrientAngle) { // Animating from an angle value to eg. 'auto' - this disabled additive as 'auto' is a keyword.. if (toAngleAndEnumeration.second == SVGMarkerOrientAuto) { if (percentage < 0.5f) { animatedAngleAndEnumeration.first = fromAngleAndEnumeration.first; animatedAngleAndEnumeration.second = SVGMarkerOrientAngle; return; } animatedAngleAndEnumeration.first.setValue(0); animatedAngleAndEnumeration.second = SVGMarkerOrientAuto; return; } animatedAngleAndEnumeration.first.setValue(0); animatedAngleAndEnumeration.second = SVGMarkerOrientUnknown; return; } } // From 'auto' to 'auto'. if (fromAngleAndEnumeration.second == SVGMarkerOrientAuto) { animatedAngleAndEnumeration.first.setValue(0); animatedAngleAndEnumeration.second = SVGMarkerOrientAuto; return; } // If the enumeration value is not angle or auto, its unknown. if (fromAngleAndEnumeration.second != SVGMarkerOrientAngle) { animatedAngleAndEnumeration.first.setValue(0); animatedAngleAndEnumeration.second = SVGMarkerOrientUnknown; return; } // Regular from angle to angle animation, with all features like additive etc. animatedAngleAndEnumeration.second = SVGMarkerOrientAngle; SVGAngle& animatedSVGAngle = animatedAngleAndEnumeration.first; const SVGAngle& toAtEndOfDurationSVGAngle = toAtEndOfDurationAngleAndEnumeration.first; float animatedAngle = animatedSVGAngle.value(); m_animationElement->animateAdditiveNumber(percentage, repeatCount, fromAngleAndEnumeration.first.value(), toAngleAndEnumeration.first.value(), toAtEndOfDurationSVGAngle.value(), animatedAngle); animatedSVGAngle.setValue(animatedAngle); } float SVGAnimatedAngleAnimator::calculateDistance(const String& fromString, const String& toString) { SVGAngle from = SVGAngle(); from.setValueAsString(fromString, ASSERT_NO_EXCEPTION); SVGAngle to = SVGAngle(); to.setValueAsString(toString, ASSERT_NO_EXCEPTION); return fabsf(to.value() - from.value()); } }
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
f39207187a686310640bed10536ab44e96aecce7
6f67ee0210e83307b3cea4d5462623d455301cd7
/RBAC/rhcreate.h
c22472b23f6df2a12e90f8e6972afd57087c8ff9
[]
no_license
Valses/Access-Control-Curriculum-Design
70f9712ec665a0a1a1745ff0a76a83aecfa2217b
872978505ebf1ec7afe6a1002f45e3cee65ae273
refs/heads/master
2021-01-23T18:30:54.454226
2019-02-09T03:18:50
2019-02-09T03:18:50
83,002,349
4
0
null
null
null
null
UTF-8
C++
false
false
479
h
#ifndef RHCREATE_H #define RHCREATE_H #include <QDialog> #include <QDebug> #include <QMessageBox> namespace Ui { class RHCreate; } class RHCreate : public QDialog { Q_OBJECT public: explicit RHCreate(QWidget *parent = 0); ~RHCreate(); bool findLoop(QString fa, QString cd); void addRHList(QString fa, QString cd); private slots: void on_yesButton_clicked(); void on_closeButton_clicked(); private: Ui::RHCreate *ui; }; #endif // RHCREATE_H
[ "noreply@github.com" ]
noreply@github.com
d0ee19d00e32b4e8506d40e4c8db89bad454b402
917e82a52fdd4344162eb413823a7b890003e579
/RFID/RFID.ino
282002a63a0c03d6192d8468174299027d4c31ba
[]
no_license
Juankis37275/Programas-Arduino
238455276721baaf606c7a356cae2d308d538db0
d47e8cc89357a08523a1c9fa670afc3b9d72bd6e
refs/heads/master
2022-01-17T10:32:48.460918
2019-06-01T18:38:31
2019-06-01T18:38:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
966
ino
#include <SPI.h> #include <MFRC522.h> #define SS_PIN 53 #define RST_PIN 2 int tags_1 [4] = {0xC6, 0x5A, 0x78, 0x23}; int tags_2 [4] = {0xC6, 0x5A, 0x78, 0x24}; bool val; MFRC522 mfrc522(SS_PIN, RST_PIN); // Instance of the class void setup() { Serial.begin(9600); SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522 Serial.println("RFID reading UID"); } void loop() { if ( mfrc522.PICC_IsNewCardPresent()) { if ( mfrc522.PICC_ReadCardSerial()) { Serial.print("Tag UID:"); for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); if (mfrc522.uid.uidByte[i] == tags_1[i]) { val = true; } else { val = false; } } Serial.println(); mfrc522.PICC_HaltA(); } } if(val==true){ Serial.println("Bienvenido"); val=false; } }
[ "sduque866@gmail.com" ]
sduque866@gmail.com
bb1f512dcdc90034705ac828f9632351e5478f6c
5456502f97627278cbd6e16d002d50f1de3da7bb
/ash/common/wm/overview/window_selector_controller.cc
1bc3c8ce67f0eca53191b30d8ce6a5ca4d4fe050
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/Chromium_7C66
72d108a413909eb3bd36c73a6c2f98de1573b6e5
c8649ab2a0f5a747369ed50351209a42f59672ee
refs/heads/master
2023-03-16T12:51:40.231959
2017-12-20T10:38:26
2017-12-20T10:38:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,424
cc
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/common/wm/overview/window_selector_controller.h" #include <vector> #include "ash/common/session/session_state_delegate.h" #include "ash/common/system/tray/system_tray_delegate.h" #include "ash/common/wm/mru_window_tracker.h" #include "ash/common/wm/overview/window_selector.h" #include "ash/common/wm/window_state.h" #include "ash/common/wm_shell.h" #include "ash/common/wm_window.h" #include "base/metrics/histogram.h" namespace ash { WindowSelectorController::WindowSelectorController() {} WindowSelectorController::~WindowSelectorController() { // Destroy widgets that may be still animating if shell shuts down soon after // exiting overview mode. for (std::unique_ptr<DelayedAnimationObserver>& animation_observer : delayed_animations_) { animation_observer->Shutdown(); } } // static bool WindowSelectorController::CanSelect() { // Don't allow a window overview if the screen is locked or a modal dialog is // open or running in kiosk app session. WmShell* wm_shell = WmShell::Get(); SessionStateDelegate* session_state_delegate = wm_shell->GetSessionStateDelegate(); SystemTrayDelegate* system_tray_delegate = wm_shell->system_tray_delegate(); return session_state_delegate->IsActiveUserSessionStarted() && !session_state_delegate->IsScreenLocked() && !wm_shell->IsSystemModalWindowOpen() && !wm_shell->IsPinned() && system_tray_delegate->GetUserLoginStatus() != LoginStatus::KIOSK_APP && system_tray_delegate->GetUserLoginStatus() != LoginStatus::ARC_KIOSK_APP; } bool WindowSelectorController::ToggleOverview() { if (IsSelecting()) { OnSelectionEnded(); } else { // Don't start overview if window selection is not allowed. if (!CanSelect()) return false; std::vector<WmWindow*> windows = WmShell::Get()->mru_window_tracker()->BuildMruWindowList(); auto end = std::remove_if(windows.begin(), windows.end(), std::not1(std::ptr_fun(&WindowSelector::IsSelectable))); windows.resize(end - windows.begin()); // Don't enter overview mode with no windows. if (windows.empty()) return false; WmShell::Get()->OnOverviewModeStarting(); window_selector_.reset(new WindowSelector(this)); window_selector_->Init(windows); OnSelectionStarted(); } return true; } bool WindowSelectorController::IsSelecting() const { return window_selector_.get() != NULL; } bool WindowSelectorController::IsRestoringMinimizedWindows() const { return window_selector_.get() != NULL && window_selector_->restoring_minimized_windows(); } // TODO(flackr): Make WindowSelectorController observe the activation of // windows, so we can remove WindowSelectorDelegate. void WindowSelectorController::OnSelectionEnded() { window_selector_->Shutdown(); window_selector_.reset(); last_selection_time_ = base::Time::Now(); WmShell::Get()->OnOverviewModeEnded(); } void WindowSelectorController::AddDelayedAnimationObserver( std::unique_ptr<DelayedAnimationObserver> animation_observer) { animation_observer->SetOwner(this); delayed_animations_.push_back(std::move(animation_observer)); } void WindowSelectorController::RemoveAndDestroyAnimationObserver( DelayedAnimationObserver* animation_observer) { class IsEqual { public: explicit IsEqual(DelayedAnimationObserver* animation_observer) : animation_observer_(animation_observer) {} bool operator()(const std::unique_ptr<DelayedAnimationObserver>& other) { return (other.get() == animation_observer_); } private: const DelayedAnimationObserver* animation_observer_; }; delayed_animations_.erase( std::remove_if(delayed_animations_.begin(), delayed_animations_.end(), IsEqual(animation_observer)), delayed_animations_.end()); } void WindowSelectorController::OnSelectionStarted() { if (!last_selection_time_.is_null()) { UMA_HISTOGRAM_LONG_TIMES("Ash.WindowSelector.TimeBetweenUse", base::Time::Now() - last_selection_time_); } } } // namespace ash
[ "lixiaodonglove7@aliyun.com" ]
lixiaodonglove7@aliyun.com
a9adbe3d2cc82175615ec17de87fb491f0daa2c8
e6cd51943f682a006da8b1245e6585e453334687
/Classes/Native/AssemblyU2DCSharpU2Dfirstpass_UnityStandardAssets_1171353544.h
d845d23bd535d6aa2cbacf9f1e8fd14da8d2d4c2
[]
no_license
JasonRy/Seer_0.9.1
a7495d385a6c5bcec6040ce061410d9eea4d09eb
f727a9442015b2dc03fc19d2fa68dc88ca8bfac0
refs/heads/master
2021-07-23T06:23:40.432032
2017-11-03T07:57:23
2017-11-03T08:53:35
109,366,091
0
0
null
null
null
null
UTF-8
C++
false
false
1,050
h
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Enum2862688501.h" #include "AssemblyU2DCSharpU2Dfirstpass_UnityStandardAssets_1171353544.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityStandardAssets.CinematicEffects.DepthOfField/FilterQuality struct FilterQuality_t1171353544 { public: // System.Int32 UnityStandardAssets.CinematicEffects.DepthOfField/FilterQuality::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(FilterQuality_t1171353544, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif
[ "renxiaoyi@me.com" ]
renxiaoyi@me.com
6709ff966498774866aa378863743bb6959ba08d
06c6c87d4e22c7c72f6d97a11a1c6c80008d628c
/Project1/src/inpainter.h
fd6673af9a63b6f392e0e6c1e4bfd886f6b5bd18
[]
no_license
vtalker/statistic-of-similar-patch-offset
e2fa76d17b1719be79e3b58140c410755129e154
8db8c200ee41c9c09cd8977175094e1e1f1c806d
refs/heads/master
2022-02-16T09:56:40.886743
2019-01-19T03:48:23
2019-01-19T03:48:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,174
h
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. // Copyright (C) 2008-2012, Willow Garage Inc., all rights reserved. // Third party copyrights are property of their respective owners. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistribution's of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistribution's 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. // // * The name of the copyright holders may not 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 Intel Corporation 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. // //M*/ #ifndef INPAINTER_H #define INPAINTER_H #include <opencv.hpp> #include "utils.h" #include "gco/GCoptimization.h" using namespace cv; typedef struct { Point pOffset; int nVoteNum; }ST_Offset; class Inpainter { public: const static int ERROR_INPUT_MAT_INVALID_TYPE=0; const static int ERROR_INPUT_MASK_INVALID_TYPE=1; const static int ERROR_MASK_INPUT_SIZE_MISMATCH=2; const static int ERROR_HALF_PATCH_WIDTH_ZERO=3; const static int CHECK_VALID=4; Inpainter(cv::Mat inputImage,cv::Mat mask,int halfPatchWidth=4,int mode=1); int k; int tau; cv::Mat inputImage; cv::Mat mask; cv::Mat result; cv::Mat workImage; Mat Label; int halfPatchWidth; int PatchSize; int checkValidInputs(); void inpaint(); void VisualizeResultLabelMap(GCoptimizationGeneralGraph *gc); private: Mat ann, annd; void GetKDominateOffSet(); }; #endif // INPAINTER_H
[ "noreply@github.com" ]
noreply@github.com
a64310d9ed835545a5cde4878667432bb4056845
ffd9ce6a610a622145abc8c539b47c408c38639f
/Extracted/stringtables/Addons/languagemissions_f_beta/config.cpp
77fee052a2e8c4a495268282d92308418291eb0b
[]
no_license
porcinus/Arma-3
ecb37f524ec43901bc84206269a41699811723a8
cc8ecf3b730c5b9ad316406cd03800059b22ca30
refs/heads/master
2023-06-08T16:04:54.783365
2023-06-04T18:30:13
2023-06-04T18:30:13
273,694,278
3
2
null
null
null
null
UTF-8
C++
false
false
794
cpp
// config.bin - 18:32:50 07/16/20, generated in 0.00 seconds // Generated by unRap v1.06 by Kegetys // Separate rootclasses: Disabled, Automatic comments: Enabled enum { DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class A3_LanguageMissions_F_Beta { author = "$STR_A3_Bohemia_Interactive"; name = "Arma 3 Beta - Mission Texts and Translations"; url = "https://www.arma3.com"; requiredAddons[] = {"A3_LanguageMissions_F"}; requiredVersion = 0.1; units[] = {}; weapons[] = {}; }; };
[ "noreply@github.com" ]
noreply@github.com
389564cd59e60798050bc278715245a561f6efdd
76b61368799ca40a15ba24dbe8204d65ba101d0b
/src/root_style.cpp
44d8c2c56c5bebf620548f92a22bad73fd464099
[]
no_license
gasperkm/auger-analysis
68f3b875b4e46dd8f226496abb56ccd04c5b0ab5
c7df46e87cc836eebadfcdcccd1914c8b15d0d70
refs/heads/master
2021-06-19T16:04:56.161564
2019-09-27T07:09:17
2019-09-27T07:09:17
112,312,601
0
0
null
null
null
null
UTF-8
C++
false
false
17,907
cpp
#include "root_style.h" #include <iostream> using namespace std; RootStyle::RootStyle() { labelsize = 24; labelfont = 63; titlesize = 24; titlefont = 63; textsize = 18; textfont = 63; c_SignalLine = TColor::GetColor("#0000ee"); c_SignalFill = TColor::GetColor("#7d99d1"); c_BackgroundLine = TColor::GetColor("#ff0000"); c_BackgroundFill = TColor::GetColor("#ff0000"); c_DataLine = TColor::GetColor("#000000"); c_DataFill = TColor::GetColor("#808080"); c_DataNormLine = TColor::GetColor("#00bb00"); c_DataNormFill = TColor::GetColor("#00bb00"); c_ResidLine = TColor::GetColor("#000000"); c_ResidFill = TColor::GetColor("#808080"); signalfill = 1001; backgroundfill = 3554; datafill = 3002; residfill = 3001; legendBaseHeight = 0.033; basestyle = new TStyle("basestyle", "basestyle"); } // Setting the base style settings void RootStyle::SetBaseStyle() { // Set title and label font sizes (with precision 3, these are given in pixels) basestyle->SetTextFont(textfont); basestyle->SetTextSize(textsize); basestyle->SetLabelFont(labelfont, "xyz"); basestyle->SetLabelSize(labelsize, "xyz"); basestyle->SetTitleFont(titlefont, "xyz"); basestyle->SetTitleSize(titlesize, "xyz"); // Set option and statistics basestyle->SetOptStat(0); basestyle->SetPalette(1,0); basestyle->SetOptTitle(0); basestyle->SetStatFontSize(0.024); basestyle->SetStatBorderSize(1); basestyle->SetStatColor(kGray); basestyle->SetStatX(0.925); basestyle->SetStatY(0.925); basestyle->SetStatW(0.13); // Set canvas and pads basestyle->SetCanvasBorderMode(0); basestyle->SetFrameBorderMode(0); basestyle->SetCanvasColor(0); basestyle->SetPadTickX(1); basestyle->SetPadTickY(1); basestyle->SetCanvasDefX(100); basestyle->SetCanvasDefY(50); basestyle->SetCanvasDefW(900); basestyle->SetCanvasDefH(600); basestyle->SetPadBorderMode(0); basestyle->SetPadBottomMargin(0.1); basestyle->SetPadTopMargin(0.04); basestyle->SetPadLeftMargin(0.125); basestyle->SetPadRightMargin(0.04); basestyle->SetPadColor(0); basestyle->SetPadGridX(kTRUE); basestyle->SetPadGridY(kTRUE); // Label and title offsets basestyle->SetLabelOffset(0.015,"xyz"); basestyle->SetTitleOffset(1.6, "x"); basestyle->SetTitleOffset(1.9, "y"); basestyle->SetTitleOffset(1.9, "z"); basestyle->SetEndErrorSize(10); gROOT->SetStyle("basestyle"); gROOT->ForceStyle(1); } // Setting the axis titles void RootStyle::SetAxisTitles(TF1 *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } // Setting the axis titles void RootStyle::SetAxisTitles(TH1 *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } void RootStyle::SetAxisTitles(TH2 *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } void RootStyle::SetAxisTitles(TGraph *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } void RootStyle::SetAxisTitles(TGraph2D *plot, string xtitle, string ytitle, string ztitle) { plot->SetTitle(""); plot->GetHistogram()->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetHistogram()->GetXaxis()->CenterTitle(); plot->GetHistogram()->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetHistogram()->GetYaxis()->CenterTitle(); plot->GetHistogram()->GetZaxis()->SetTitle(ztitle.c_str()); plot->GetHistogram()->GetZaxis()->CenterTitle(); } void RootStyle::SetAxisTitles(TGraphErrors *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } void RootStyle::SetAxisTitles(TGraphAsymmErrors *plot, string xtitle, string ytitle) { plot->SetTitle(""); plot->GetXaxis()->SetTitle(xtitle.c_str()); plot->GetXaxis()->CenterTitle(); plot->GetYaxis()->SetTitle(ytitle.c_str()); plot->GetYaxis()->CenterTitle(); } // Setting colors for histograms void RootStyle::SetHistColor(TH1 *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColor(c_BackgroundLine); plot->SetLineWidth(2); plot->SetFillColor(c_BackgroundFill); plot->SetFillStyle(backgroundfill); } else if(sigbackdata == 1) { plot->SetLineColor(c_SignalLine); plot->SetLineWidth(2); plot->SetFillColorAlpha(c_SignalFill, 0.75); plot->SetFillStyle(signalfill); } else if(sigbackdata == 2) { plot->SetLineColor(c_DataLine); plot->SetLineWidth(2); plot->SetFillColor(c_DataFill); plot->SetFillStyle(datafill); } else if(sigbackdata == 3) { plot->SetLineColor(c_ResidLine); plot->SetLineWidth(2); plot->SetFillColor(c_ResidFill); plot->SetFillStyle(residfill); } } // Setting colors for functions void RootStyle::SetFuncColor(TF1 *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColor(c_BackgroundLine); plot->SetLineWidth(2); } else if(sigbackdata == 1) { plot->SetLineColor(c_SignalLine); plot->SetLineWidth(2); } else if(sigbackdata == 2) { plot->SetLineColor(c_DataLine); plot->SetLineWidth(2); } else if(sigbackdata == 3) { plot->SetLineColor(c_ResidLine); plot->SetLineWidth(2); } } void RootStyle::SetHistColorSimple(TH1 *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColor(c_BackgroundLine); plot->SetLineWidth(2); } else if(sigbackdata == 1) { plot->SetLineColor(c_SignalLine); plot->SetLineWidth(2); } else if(sigbackdata == 2) { plot->SetLineColor(c_DataLine); plot->SetLineWidth(2); } else if(sigbackdata == 3) { plot->SetLineColor(c_ResidLine); plot->SetLineWidth(2); } } // Setting colors for graphs void RootStyle::SetGraphColor(TGraph *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColorAlpha(c_BackgroundLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_BackgroundLine, 0.75); plot->SetMarkerStyle(21); plot->SetMarkerSize(1.4); } else if(sigbackdata == 1) { plot->SetLineColorAlpha(c_SignalLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_SignalLine, 0.75); plot->SetMarkerStyle(20); plot->SetMarkerSize(1.4); } else if(sigbackdata == 2) { plot->SetLineColorAlpha(c_DataLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataLine, 0.75); plot->SetMarkerStyle(22); plot->SetMarkerSize(1.6); } else if(sigbackdata == 3) { plot->SetLineColorAlpha(c_DataNormLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataNormLine, 0.75); plot->SetMarkerStyle(23); plot->SetMarkerSize(1.6); } } void RootStyle::SetGraphColor(TGraphErrors *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColorAlpha(c_BackgroundLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_BackgroundLine, 0.75); plot->SetMarkerStyle(21); plot->SetMarkerSize(1.4); } else if(sigbackdata == 1) { plot->SetLineColorAlpha(c_SignalLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_SignalLine, 0.75); plot->SetMarkerStyle(20); plot->SetMarkerSize(1.4); } else if(sigbackdata == 2) { plot->SetLineColorAlpha(c_DataLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataLine, 0.75); plot->SetMarkerStyle(22); plot->SetMarkerSize(1.6); } else if(sigbackdata == 3) { plot->SetLineColorAlpha(c_DataNormLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataNormLine, 0.75); plot->SetMarkerStyle(23); plot->SetMarkerSize(1.6); } } void RootStyle::SetGraphColor(TGraphAsymmErrors *plot, int sigbackdata) { if(sigbackdata == 0) { plot->SetLineColorAlpha(c_BackgroundLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_BackgroundLine, 0.75); plot->SetMarkerStyle(21); plot->SetMarkerSize(1.4); } else if(sigbackdata == 1) { plot->SetLineColorAlpha(c_SignalLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_SignalLine, 0.75); plot->SetMarkerStyle(20); plot->SetMarkerSize(1.4); } else if(sigbackdata == 2) { plot->SetLineColorAlpha(c_DataLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataLine, 0.75); plot->SetMarkerStyle(22); plot->SetMarkerSize(1.6); } else if(sigbackdata == 3) { plot->SetLineColorAlpha(c_DataNormLine, 0.75); plot->SetLineWidth(2); plot->SetMarkerColorAlpha(c_DataNormLine, 0.75); plot->SetMarkerStyle(23); plot->SetMarkerSize(1.6); } } double RootStyle::SetLegendHeight(int nrfigs) { return nrfigs*legendBaseHeight; } void RootStyle::CreateColorScale(int cur, int nrscale) { int *ci = new int; *ci = 1738+cur; double *colormix = new double; *colormix = (double)cur/(double)(nrscale-1.); TColor *color = new TColor(*ci, *colormix, 0, 1.-(*colormix), "", 1); delete ci; delete colormix; } void RootStyle::SetColorScale(TH1 *plot, int cur, int nrscale) { int *ci = new int; *ci = 1738+cur; /* double *colormix = new double; *colormix = (double)cur/(double)(nrscale-1.); TColor *color = new TColor(*ci, *colormix, 0, 1.-(*colormix), "", 1);*/ plot->SetMarkerColor(*ci); plot->SetLineColor(*ci); plot->SetFillColorAlpha(*ci, 0.8); delete ci; // delete colormix; } void RootStyle::SetColorScale(TGraph *plot, int cur, int nrscale) { int *ci = new int; *ci = 1738+cur; /* double *colormix = new double; *colormix = (double)cur/(double)(nrscale-1.); TColor *color = new TColor(*ci, *colormix, 0, 1.-(*colormix), "", 1);*/ plot->SetMarkerColor(*ci); plot->SetLineColor(*ci); plot->SetFillColorAlpha(*ci, 0.8); delete ci; // delete colormix; } void RootStyle::SetColorScale(TGraphErrors *plot, int cur, int nrscale) { int *ci = new int; *ci = 1738+cur; /* double *colormix = new double; *colormix = (double)cur/(double)(nrscale-1.); TColor *color = new TColor(*ci, *colormix, 0, 1.-(*colormix), "", 1);*/ plot->SetMarkerColor(*ci); plot->SetLineColor(*ci); plot->SetFillColorAlpha(*ci, 0.8); delete ci; // delete colormix; } void RootStyle::SetColorScale(TGraphAsymmErrors *plot, int cur, int nrscale) { int *ci = new int; *ci = 1738+cur; /* double *colormix = new double; *colormix = (double)cur/(double)(nrscale-1.); TColor *color = new TColor(*ci, *colormix, 0, 1.-(*colormix), "", 1);*/ plot->SetMarkerColor(*ci); plot->SetLineColor(*ci); plot->SetFillColorAlpha(*ci, 0.8); delete ci; // delete colormix; } double RootStyle::GetPlotWidth(int size) { // Narrow if(size == -1) return 1000; // Medium/Default else if(size == 0) return 1200; // High else if(size == 1) return 1400; } double RootStyle::GetPlotHeight(int type, int size) { // Single plots if(type == 0) { // Very narrow if(size == -2) return 400; // Narrow else if(size == -1) return 600; // Medium/Default else if(size == 0) return 800; // High else if(size == 1) return 1000; // Very high else if(size == 2) return 1000; } // Multipad plots else if(type == 1) { // Very narrow if(size == -2) return 200; // Narrow else if(size == -1) return 300; // Medium/Default else if(size == 0) return 400; // High else if(size == 1) return 500; // Very high else if(size == 2) return 600; } } void RootStyle::SetSinglePlot(int xsize, int ysize, TCanvas *inCanv) { inCanv->SetCanvasSize(GetPlotWidth(xsize), GetPlotHeight(0, ysize)); inCanv->Modified(); inCanv->Update(); } void RootStyle::SetMultiPlot(int xsize, int ysize, int nrpads, TCanvas *inCanv) { inCanv->SetCanvasSize(GetPlotWidth(xsize), nrpads*GetPlotHeight(1, ysize)); cout << GetPlotWidth(xsize) << ", " << nrpads*GetPlotHeight(1, ysize) << endl; inCanv->Modified(); inCanv->Update(); } void RootStyle::SetGridPlot(int xsize, int ysize, int nrpads, TCanvas *inCanv) { // Grid plot arranges graphs in two columns inCanv->SetCanvasSize(2*GetPlotWidth(xsize), (nrpads/2.)*GetPlotHeight(1, ysize)); cout << 2*GetPlotWidth(xsize) << ", " << (nrpads/2.)*GetPlotHeight(1, ysize) << endl; inCanv->Modified(); inCanv->Update(); } void RootStyle::SetPaddedPlot(int nrpads, TCanvas *inCanv, TPad **inPads) { double *dtemp = new double[4]; string *stemp = new string; inCanv->cd(); dtemp[1] = 1.; for(int i = 0; i < nrpads; i++) { dtemp[2] = 1./nrpads - padTotDiffFactor; cout << "1/nrpads - padTotDiffFactor = " << dtemp[2] << endl; if(i != nrpads-1) dtemp[3] = dtemp[2] - padHeightDiffFactor; else dtemp[3] = dtemp[2] + (nrpads-1)*padHeightDiffFactor; cout << "Each pad height = " << dtemp[3] << endl; dtemp[0] = dtemp[1] - dtemp[3]; cout << "Pad limits = " << dtemp[0] << ", " << dtemp[1] << endl; *stemp = "pad" + ToString(i+1); inPads[i] = new TPad(stemp->c_str(), "", 0.005, dtemp[0], 0.995, dtemp[1]); if(i == nrpads-1) inPads[i]->SetBottomMargin(0.1 + padMarginDiffFactor*nrpads); cout << " IN: Pad " << i << " bottom margin = " << inPads[i]->GetBottomMargin() << endl; dtemp[1] -= dtemp[3]; inPads[i]->Draw(); } inCanv->Modified(); inCanv->Update(); delete stemp; delete[] dtemp; } void RootStyle::SetGridPaddedPlot(int nrpads, TCanvas *inCanv, TPad **inPads) { double *dtemp = new double[6]; string *stemp = new string; int *nrpadscol = new int; // number of pad columns (horizontal) int *nrpadsrow = new int; // number of pad rows (vertical) *nrpadscol = 2; *nrpadsrow = nrpads/(*nrpadscol); inCanv->cd(); dtemp[1] = 1.; for(int i = 0; i < (*nrpadsrow); i++) { for(int j = 0; j < (*nrpadscol); j++) { dtemp[2] = 1./(*nrpadsrow) - padTotDiffFactor; cout << "1/nrpads - padTotDiffFactor = " << dtemp[2] << endl; if(j+(*nrpadscol)*i < (nrpads)-2) dtemp[3] = dtemp[2] - padHeightDiffFactor; else dtemp[3] = dtemp[2] + ((*nrpadsrow)-1)*padHeightDiffFactor; cout << "Each pad height = " << dtemp[3] << endl; dtemp[0] = dtemp[1] - dtemp[3]; dtemp[4] = 0.005+0.495*j; dtemp[5] = 0.995-0.495*(1-j); if(j == 0) dtemp[5] += padWidthDiffFactor; else if(j == 1) dtemp[4] += padWidthDiffFactor; cout << "Pad limits (horizontal) = " << dtemp[4] << ", " << dtemp[5] << endl; cout << "Pad limits (vertical) = " << dtemp[0] << ", " << dtemp[1] << endl; *stemp = "pad" + ToString(j+(*nrpadscol)*i+1); inPads[j+(*nrpadscol)*i] = new TPad(stemp->c_str(), "", dtemp[4], dtemp[0], dtemp[5], dtemp[1]); if(j+(*nrpadscol)*i >= nrpads-2) inPads[j+(*nrpadscol)*i]->SetBottomMargin(0.1 + padMarginDiffFactor*(nrpads/2)); cout << " IN: Pad " << j+(*nrpadscol)*i << " bottom margin = " << inPads[j+(*nrpadscol)*i]->GetBottomMargin() << endl; if(j == 0) inPads[j+(*nrpadscol)*i]->SetRightMargin(0.03); cout << " IN: Pad " << j+(*nrpadscol)*i << " right margin = " << inPads[j+(*nrpadscol)*i]->GetRightMargin() << endl; if(j == 1) inPads[j+(*nrpadscol)*i]->SetLeftMargin(0.04); cout << " IN: Pad " << j+(*nrpadscol)*i << " left margin = " << inPads[j+(*nrpadscol)*i]->GetLeftMargin() << endl; inPads[j+(*nrpadscol)*i]->Draw(); } dtemp[1] -= dtemp[3]; } inCanv->Modified(); inCanv->Update(); delete nrpadscol; delete nrpadsrow; delete stemp; delete[] dtemp; } double RootStyle::GetPaddedXoffset(int nrpads, TCanvas *inCanv) { // return xTitleFactor*(inCanv->GetWindowHeight())/(inCanv->GetWindowWidth()); return xTitleFactor*(inCanv->GetWh())/(inCanv->GetWw()); } double RootStyle::GetPaddedYoffset(int nrpads, TCanvas *inCanv) { // return yTitleFactor*(inCanv->GetWindowHeight())/(inCanv->GetWindowWidth()); return yTitleFactor*(inCanv->GetWh())/(inCanv->GetWw()); } double RootStyle::GetGridXoffset(int nrpads, TCanvas *inCanv) { // return xTitleFactor*(inCanv->GetWindowHeight())/(inCanv->GetWindowWidth()); return 2*xTitleFactor*(inCanv->GetWh())/(inCanv->GetWw()); } double RootStyle::GetGridYoffset(int nrpads, TCanvas *inCanv) { // return yTitleFactor*(inCanv->GetWindowHeight())/(inCanv->GetWindowWidth()); return 2*yTitleFactor*(inCanv->GetWh())/(inCanv->GetWw()); } double RootStyle::GetSingleXoffset(TCanvas *inCanv) { return xTitleSingleFactor*(inCanv->GetWh())/(inCanv->GetWw()); } double RootStyle::GetSingleYoffset(TCanvas *inCanv) { return yTitleSingleFactor*(inCanv->GetWh())/(inCanv->GetWw()); }
[ "gasperkm@gmail.com" ]
gasperkm@gmail.com
f19d8e59e123044654bfbad833e75761b947592a
eae01881fad9c92cf03cfb23c4e39664355f117f
/src/hu_stuff.h
2c372597fb171a608a9063edb8e9d9d437f69c3a
[]
no_license
drfrag666/ZDoom-CL
181b477e4b4c3b2c93eb43e9db1e8319312a3980
581688a7a73105cca7ee8ad194a618d965d8a5b7
refs/heads/master
2021-01-23T00:02:09.213662
2019-01-09T16:05:56
2019-01-09T20:33:13
85,689,916
6
0
null
null
null
null
WINDOWS-1252
C++
false
false
1,241
h
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // published by id Software. All rights reserved. // // The source is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License // for more details. // // DESCRIPTION: Head up display // //----------------------------------------------------------------------------- #ifndef __HU_STUFF_H__ #define __HU_STUFF_H__ #include "d_event.h" // // Globally visible constants. // const byte HU_FONTSTART = '!'; // the first font characters const byte HU_FONTEND = 'ß'; // the last font characters // Calculate # of glyphs in font. const int HU_FONTSIZE = HU_FONTEND - HU_FONTSTART + 1; // // Chat routines // void CT_Init (void); BOOL CT_Responder (event_t* ev); void CT_Drawer (void); extern int chatmodeon; // [RH] Draw deathmatch scores class player_s; void HU_DrawScores (player_s *me); #endif
[ "drfrag666@hotmail.com" ]
drfrag666@hotmail.com
ac7eab30bf941d36c073cda7f780b035bfee3490
948e5f8f1961311f782d0d79d91e4733ec7224bd
/Virtual-Memory-Manager/vmm.cpp
410729df101afc947723c42e82344f389228055a
[]
no_license
gowriaddepalli/Operating-Systems_NYU
f471674f3c7a32cf5eb7d1a7f7643b9e6cd9ed80
52a33e425fe3520b19bd745352cdc3dc1b666685
refs/heads/master
2021-06-01T00:53:04.420805
2015-05-04T23:33:30
2015-05-04T23:33:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,605
cpp
#include <iostream> #include <fstream> #include <cstring> #include <stdlib.h> #include <iomanip> #include <string> #include <sstream> #include <queue> #include <vector> #include <stack> #include <algorithm> #include <cstdio> #include <cstring> #include <cstdlib> #include <unistd.h> #include <iostream> #include <string> #include "vmm.h" #include "bit.h" using namespace std; VMM::VMM() { ofs = 0; numOfFrames = 0; } //myRandom implementation as in PDF int VMM::getRandomNumber(int burst) { if (ofs == randomValues.size() - 1) ofs = 0; int returnValue = randomValues[ofs] % burst; ofs++; return returnValue; } void VMM::updatePage(std::vector<unsigned int>& list, unsigned int i) { } int NRU::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { vector<vector<int> > priority(4, vector<int>()); //put page in vector as per priority for (int i = 0; i < pagesVector.size(); i++) { unsigned int p = pagesVector[i]; if (getCurrentBit(pagesVector[i]) == 1) { unsigned int ref = getRefBit(p); unsigned int mod = getModBit(p); if (ref == 0 && mod == 0) { priority[0].push_back(getFrame(p)); } else if (ref == 0 && mod == 1) { priority[1].push_back(getFrame(p)); } else if (ref == 1 && mod == 0) { priority[2].push_back(getFrame(p)); } else if (ref == 1 && mod == 1) { priority[3].push_back(getFrame(p)); } } } int returnPage = -1; for (int i = 0; i < 4; i++) { if (priority[i].size() > 0) { int rand = getRandomNumber(priority[i].size()); returnPage = priority[i][rand]; break; } } count++; if (count == 10) { count = 0; for (int i = 0; i < pagesVector.size(); i++) { if (getCurrentBit(pagesVector[i]) == 1) { resetRefBit(pagesVector[i]); } } } return returnPage; } void LRU::updatePage(std::vector<unsigned int>& frameVector, unsigned int num) { for (int i = 0; i < frameVector.size(); i++) { if (frameVector[i] == num) { frameVector.erase(frameVector.begin() + i); break; } } frameVector.push_back(num); } int LRU::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { unsigned int frameNumber = frames.front(); frames.erase(frames.begin()); frames.push_back(frameNumber); return frames.back(); } int Randoom::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { int rand = getRandomNumber(frames.size()); return frames[rand]; } int FIFO::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { unsigned int frameNumber = frames.front(); frames.erase(frames.begin()); frames.push_back(frameNumber); return frames.back(); } int SecChance::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { int flag = 0; unsigned int frameNum, pg; while (!flag) { frameNum = frames.front(); pg = rev_frames[frameNum]; if (getRefBit(pagesVector[pg]) == 1) { resetRefBit(pagesVector[pg]); frames.erase(frames.begin()); frames.push_back(frameNum); } else { flag = 1; frames.erase(frames.begin()); frames.push_back(frameNum); } } return frames.back(); } int PhysicalClock::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { int flag = 0; unsigned int frameNum, pg; while (!flag) { frameNum = frames[count]; pg = rev_frames[frameNum]; if (getRefBit(pagesVector[pg]) == 1) { resetRefBit(pagesVector[pg]); } else { flag = 1; } count = (count + 1) % frames.size(); } return frameNum; } int VirtualClock::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { int flag = 0; unsigned int ret; while (!flag) { if (getCurrentBit(pagesVector[count]) == 1) { if (getRefBit(pagesVector[count]) == 1) { resetRefBit(pagesVector[count]); } else { flag = 1; ret = getFrame(pagesVector[count]); } } count = ((count + 1) % pagesVector.size()); } return ret; } int PhysicalAging::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { unsigned int mAge = 0xffffffff; unsigned int mFrame = -1; unsigned int mIndex = -1; //initialize if it is not initialized yet if (ageVector.size() == 0) { ageVector = std::vector<unsigned int>(numOfFrames, 0); } for (int i = 0; i < frames.size(); i++) { ageVector[i] = (ageVector[i] >> 1) | ((getRefBit(pagesVector[rev_frames[frames[i]]])) << 31); if (ageVector[i] < mAge) { mAge = ageVector[i]; mFrame = frames[i]; mIndex = i; } resetRefBit(pagesVector[rev_frames[frames[i]]]); } ageVector[mIndex] = 0;//reset the min age counter return mFrame; } int VirtualAging::getPage(vector<unsigned int>& pagesVector, vector<unsigned int>& frames, vector<unsigned int>& rev_frames) { unsigned int mAge = 0xffffffff; unsigned int mIndex = -1; //initialize if it is not initialized yet if (ageVector.size() == 0) { ageVector = std::vector<unsigned int>(64, 0); } for (int i = 0; i < pagesVector.size(); i++) { unsigned int pg = pagesVector[i]; ageVector[i] = (ageVector[i] >> 1) | ((getRefBit(pg)) << 31); if (getCurrentBit(pg) == 1 && ageVector[i] < mAge) { mAge = ageVector[i]; mIndex = i; } if (getCurrentBit(pg) == 1) { resetRefBit(pagesVector[i]); } } ageVector[mIndex] = 0; //cout<<"**"<<mIndex<<endl; return getFrame(pagesVector[mIndex]); }
[ "suruchi.sharma7389@gmail.com" ]
suruchi.sharma7389@gmail.com
d535b46cd169d4392c9deb776a34e0c61fb4cbf3
61d7eec6bd5a889fb3cc1fcc7ef2f89ec9b83e67
/IDEXReg.h
9c0669961d962d2e3e300fdc8846fb0e62eccce8
[]
no_license
tdattilo/pipeline-sim
d976390680125075a6018f87e6455be5fd017ece
b5a9d85c8afb33c9f3b11df086709fa092d16816
refs/heads/master
2020-04-16T22:11:05.274824
2019-01-16T02:11:20
2019-01-16T02:11:20
165,956,653
0
0
null
null
null
null
UTF-8
C++
false
false
904
h
//Thomas Dattilo Assignment 3 //MET CS471 //4/22/2017 #include <iostream> #ifndef IDEXREG #define IDEXREG class IDEXReg{ private: bool RegDst; bool ALUSrc; short ALUOp; bool MemRead; bool MemWrite; bool MemToReg; bool RegWrite; int ReadReg1Value; int ReadReg2Value; short SEOffset; int WriteReg_20_16; int WriteReg_15_11; short Function; public: IDEXReg(); void setValues(bool, bool, short, bool, bool, bool, bool, int, int, short, int, int, short); const IDEXReg& operator=(const IDEXReg&); bool getRegDst(); bool getALUSrc(); short getALUOp(); bool getMemRead(); bool getMemWrite(); bool getMemToReg(); bool getRegWrite(); int getReadReg1Value(); int getReadReg2Value(); short getSEOffset(); int getWriteReg_20_16(); int getWriteReg_15_11(); short getFunction(); friend std::ostream& operator<<(std::ostream&, const IDEXReg&); }; #endif
[ "noreply@github.com" ]
noreply@github.com
42c9d152d84dd6f866cda4291994537a4967bced
fa6a6fb34fb61c71bc55daea50e799164711126e
/CryGame/STLPORT/test/regression/greater.cpp
6e76e48c8dea39ee7151e07ae370389daa074829
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-stlport-4.5" ]
permissive
HackCarver/FunCry
3e683309b418b66d4b0baf267ace899b166e48f8
e03d420a825a70821e5d964556f3f87a9388d282
refs/heads/main
2023-08-24T06:43:19.121027
2021-10-15T23:42:59
2021-10-15T23:42:59
377,707,614
2
0
null
null
null
null
UTF-8
C++
false
false
548
cpp
// STLport regression testsuite component. // To compile as a separate example, please #define MAIN. #include <iostream> #include <algorithm> // #include <functional> #ifdef MAIN #define greater_test main #endif #if !defined (STLPORT) || defined(__STL_USE_NAMESPACES) using namespace std; #endif int greater_test(int, char**) { cout<<"Results of greater_test:"<<endl; int array [4] = { 3, 1, 4, 2 }; sort(array, array + 4, greater<int>()); for(int i = 0; i < 4; i++) cout << array[i] << endl; return 0; }
[ "valnjackattack@gmail.com" ]
valnjackattack@gmail.com
424ed2053878ba5e6e91bef9af4527e70d4b4dde
dc712308f0c028d9575d62ae948d4f74d3b77805
/Yugen/Platform/WindowsWindow.h
8b55b0534bcc599805a034aa4766ac9c8275fb3a
[]
no_license
tim-fa/Yugen
14da27c01baafc0a531e6232f5540b06fe97a4ed
d0c2b3abff0ec38da649f73c76879aa639b6da24
refs/heads/master
2022-11-27T23:47:28.078091
2020-08-13T19:22:56
2020-08-13T19:22:56
285,945,255
0
0
null
2020-08-12T21:09:19
2020-08-08T00:34:02
C++
UTF-8
C++
false
false
922
h
#pragma once // Library #include "Log/Logger.h" // Local #include "Window.h" #include "Renderer/GraphicsContext.h" namespace Yugen::Platform { class WindowsWindow : public Window { public: explicit WindowsWindow(const WindowProps& props); ~WindowsWindow(); void onUpdate() override; unsigned int getWidth() override; unsigned int getHeight() override; void setEventCallback(const EventCallbackFunction& callback) override; void setVSync(bool enabled) override; bool isVSyncOn() override; GLFWwindow* getGLFWWindow() { return window; } private: virtual void init(const WindowProps& props); virtual void shutdown(); GLFWwindow* window; Log::Logger logger; Render::GraphicsContext* context; struct WindowData { std::string title; unsigned int width, height; bool vsync; EventCallbackFunction callback; }; WindowData data; }; }
[ "tim.farahani@gmail.com" ]
tim.farahani@gmail.com
985715636b01b2713b600e7bb9e11a2094c6cec1
ac51dce98cb821df7334619d2fd25c26757d17d4
/ds2490286/Savitch_8thEdition_Chapter4_Problem3/main.cpp
fc4ae3a75d7726e4f2c3dffe38a58a5e7c1c5a71
[]
no_license
Riverside-City-College-Computer-Science/CSC5_Winter_2014_40375
a85aa5ef80ca44a0968fdbae52a5cd0c0a3ed621
853b40e40086ab97ef3075df4287b34a536c6573
refs/heads/master
2021-01-01T06:27:43.574978
2014-02-13T04:21:23
2014-02-13T04:21:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
297
cpp
/* * File: main.cpp * Author: David W. Smith * Created on January 21, 2014, 11:53 AM */ //System Libraries #include <iostream> #include <iomanip> using namespace std; //Global Constants //Function Prototypes float stkPric(int,int,int); int main(int argc, char** argv) { return 0; }
[ "dwsmit@dslextreme.com" ]
dwsmit@dslextreme.com
60c4c5928f4e0c1100f8dac5847baca02cc38aa1
3e25a010abbbbce66fa2b954321c302bd966e3a8
/src/qt/paymentserver.cpp
f72385a6b286bdb565c5e1a5f10e74af2f47c99c
[ "MIT" ]
permissive
mrwhalebones/thc
75a7e422543f0890699ba6b928b0364a1c5ba9f8
0911c282644d4c25f0ad292b9a619dbc3864ca07
refs/heads/master
2022-11-04T22:29:19.413307
2020-06-20T08:55:49
2020-06-20T08:55:49
272,751,494
0
0
null
null
null
null
UTF-8
C++
false
false
4,578
cpp
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "paymentserver.h" #include "guiconstants.h" #include "ui_interface.h" #include "util.h" #include <QByteArray> #include <QDataStream> #include <QDebug> #include <QFileOpenEvent> #include <QHash> #include <QLocalServer> #include <QLocalSocket> #include <QStringList> #include <QUrl> using namespace boost; const int BITCOIN_IPC_CONNECT_TIMEOUT = 1000; // milliseconds const QString BITCOIN_IPC_PREFIX("thecoin:"); // // Create a name that is unique for: // testnet / non-testnet // data directory // static QString ipcServerName() { QString name("TheCoinQt"); // Append a simple hash of the datadir // Note that GetDataDir(true) returns a different path // for -testnet versus main net QString ddir(GetDataDir(true).string().c_str()); name.append(QString::number(qHash(ddir))); return name; } // // This stores payment requests received before // the main GUI window is up and ready to ask the user // to send payment. // static QStringList savedPaymentRequests; // // Sending to the server is done synchronously, at startup. // If the server isn't already running, startup continues, // and the items in savedPaymentRequest will be handled // when uiReady() is called. // bool PaymentServer::ipcSendCommandLine() { bool fResult = false; const QStringList& args = qApp->arguments(); for (int i = 1; i < args.size(); i++) { if (!args[i].startsWith(BITCOIN_IPC_PREFIX, Qt::CaseInsensitive)) continue; savedPaymentRequests.append(args[i]); } foreach (const QString& arg, savedPaymentRequests) { QLocalSocket* socket = new QLocalSocket(); socket->connectToServer(ipcServerName(), QIODevice::WriteOnly); if (!socket->waitForConnected(BITCOIN_IPC_CONNECT_TIMEOUT)) return false; QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_0); out << arg; out.device()->seek(0); socket->write(block); socket->flush(); socket->waitForBytesWritten(BITCOIN_IPC_CONNECT_TIMEOUT); socket->disconnectFromServer(); delete socket; fResult = true; } return fResult; } PaymentServer::PaymentServer(QApplication* parent) : QObject(parent), saveURIs(true) { // Install global event filter to catch QFileOpenEvents on the mac (sent when you click bitcoin: links) parent->installEventFilter(this); QString name = ipcServerName(); // Clean up old socket leftover from a crash: QLocalServer::removeServer(name); uriServer = new QLocalServer(this); if (!uriServer->listen(name)) qDebug() << tr("Cannot start thecoin: click-to-pay handler"); else connect(uriServer, SIGNAL(newConnection()), this, SLOT(handleURIConnection())); } bool PaymentServer::eventFilter(QObject *object, QEvent *event) { // clicking on bitcoin: URLs creates FileOpen events on the Mac: if (event->type() == QEvent::FileOpen) { QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); if (!fileEvent->url().isEmpty()) { if (saveURIs) // Before main window is ready: savedPaymentRequests.append(fileEvent->url().toString()); else emit receivedURI(fileEvent->url().toString()); return true; } } return false; } void PaymentServer::uiReady() { saveURIs = false; foreach (const QString& s, savedPaymentRequests) emit receivedURI(s); savedPaymentRequests.clear(); } void PaymentServer::handleURIConnection() { QLocalSocket *clientConnection = uriServer->nextPendingConnection(); while (clientConnection->bytesAvailable() < (int)sizeof(quint32)) clientConnection->waitForReadyRead(); connect(clientConnection, SIGNAL(disconnected()), clientConnection, SLOT(deleteLater())); QDataStream in(clientConnection); in.setVersion(QDataStream::Qt_4_0); if (clientConnection->bytesAvailable() < (int)sizeof(quint16)) { return; } QString message; in >> message; if (saveURIs) savedPaymentRequests.append(message); else emit receivedURI(message); } void PaymentServer::setOptionsModel(OptionsModel *optionsModel) { this->optionsModel = optionsModel; }
[ "noreply@github.com" ]
noreply@github.com