blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
c1ab229c8f49eaf3b88c74d726bdac36e2283b1b
44db1ec8d639d2e78583e2844e5de1b38a1ca26f
/C(++)/W32/AirHockey/Text.cpp
74e0f72a1acaadd6bf9a026d8c41c54af62af65d
[]
no_license
braindef/code
adfb4e8980fd0fdbf23e051a5ffad72be22ae12d
f6fbaf3f1b1c41df391c706278b5bcb4e83d2ac2
refs/heads/master
2020-04-01T08:00:59.721124
2018-10-14T20:02:56
2018-10-14T20:02:56
153,013,739
0
0
null
null
null
null
ISO-8859-1
C++
false
false
8,441
cpp
Text.cpp
#include "GDef.h" #include "Utilities.h" #include "D3d.h" #include "Text.h" #include <d3dx9tex.h> LPDIRECT3DSURFACE9 textbitmap; char* text; //ein Zeiger, der genrell allen Text speichert, der am Bildschirm erscheinen soll" int* textcolor; //die Farbe jedes Zeichens, das im text Zeiger steht int textlen; //die Summe aller Zeichen die wir zeichenen müssen int textw,texth;//relative Höhe und Breite jedes Zeichens in dem int* tsign[256];//gewaltigen Zeiger in dem die Bildinfo jedes zeichens abgelegt wir int tsignc[256];//Zeiger des die Anzahl der Pixel jedes Zeichens von tsign speichert int g_InitText (void) { int r = 0; HDC pdc; RECT rect; char si = 0; D3DLOCKED_RECT pr,prr; char* p; textw = 15; texth = 18; //erstellen eines Surfaces in DirectX9: dürfte nicht weiter verwirrend sein, oder?) r = De->CreateOffscreenPlainSurface(256*textw, texth, D3DFMT_R5G6B5, D3DPOOL_SYSTEMMEM, &textbitmap, NULL); if (FAILED(r)) g_FailBox(1,"Failed to create Offscreen Surface for Textmap!"); //Wir holen und eine HDC, also einen Device-Handel des Surfaces ab, so dass wir mit der WINAPI in das Surface zeichenen können r = textbitmap->GetDC(&pdc); if (FAILED(r)) g_FailBox(1,"Failed to get Surface DC!"); //Generell: schwarz auf weiss SetTextColor(pdc,0x00ffffff); SetBkColor(pdc,0x00000000); //Schleife, die die Zeichen hintereinander in das Surface schreibt for(int i = 0; i < 256; i++) { rect.left = i*textw; rect.top = 0; rect.bottom = texth; rect.right = i*textw + textw; r = DrawText(pdc, &si, 1, &rect, DT_BOTTOM | DT_CENTER); si++; } textbitmap->ReleaseDC(pdc); //Abholen eines Zeigers auf den Speicher des Sufraces, in dem jetzt unsere Zeichen stehen textbitmap->LockRect(&pr,NULL,NULL); //p ist nun dieser Zeiger p = (char*)pr.pBits; //Das backbuffer Surface, stellt dann einfach unseren Backbuffer dar //Wir müssen ihn nur einmal locken, um dessen Pitch (also Anzahl der Pixel pro Zeile) zu erhalten LPDIRECT3DSURFACE9 backbuffer; De->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &backbuffer); backbuffer->LockRect(&prr,NULL,NULL); backbuffer->UnlockRect(); //Die mega-Schleife, die die Info des Surfaces zu unseren gunsten umbaut //Zeichen für Zeichen durchegehen... for(int i = 0; i < 256; i++) { int c = 0; int s = 0; //Zunächst einmal zählen wir durch wieviele Pixel denn zu malen sind und speichern diese Zahl in c for(int x = 0; x < textw; x++) { for(int y = 0; y < texth; y++) { if(*(short*)(p + i*textw*2 + y*pr.Pitch + x*2) != 0) c++; } } //Das können wir für später auch gleich mal Speichern tsignc[i] = c; //Und so können wir dann auch für jedes Zeichen in tsign eben gerade genug Speicher belegen und verwenden tsign[i] = new int[tsignc[i]]; //Jetzt nochmal die Doppelschleife, die alle Pixel des momentanen Zeichens durcheght for(int x = 0; x < textw; x++) { for(int y = 0; y < texth; y++) { //heisst so viel wie: Falls Pixel dann if(*(short*)(p + i*textw*2 + y*pr.Pitch + x*2) != 0) { //Speichere Momentane relative Speicherposition (allerdings mit der Pitch des Backbuffers!!!) für jeden Pixel //nach und nach in tsign ab tsign[i][s] = y*prr.Pitch + x*2; //s ist also der Zähler für die Anzahl der Pixel eines jeden Zeichens s++; } } } } //Das surface für die Zeichen können wir wieder vernichten! textbitmap->UnlockRect(); textbitmap->Release(); textbitmap = NULL; //Und zum Schluss initialisieren wir nur noch unsere Zischenspeicher für Text und dessen Farbe text = new char[4096]; ZeroMemory(text, 4096); textcolor = new int[4096]; ZeroMemory(textcolor, 4096*4); textlen = 0; return OK; } //Schreibt einen Text in den Zischenspeicher text mit der Farbe color int g_PrintText(int color, const char* list,...) { va_list valist; char* ntext; int otext = textlen; ntext = new char[strlen(list) + 256]; //Das übliche Spiel mit der Argumentlist... (sollte ja von den vorigen Tutoials schon bekannt sein va_start(valist,list); vsprintf(ntext,list,valist); va_end(valist); //Und dann nur noch in text an die richtige Stelle kopieren memcpy((void*)(text + textlen), ntext, strlen(ntext)); //und den Refernez-Zeichen-Zähler textlen um die Anzahl der zu schreibenden Zeichen erhöhen textlen += strlen(ntext); for(int i = otext; i < textlen ; i++) textcolor[i] = color; free(ntext); return OK; } //Funktion zum Zeichnen eines Textes an einer best. Position int g_DrawText(int color, int x, int y, const char* list,...) { //Vorneweg sinnlose Fälle auschließen!! if( x < 0 || y < 0 || x > 800 || y > 600) return OK; //Folgende Zeilen sollten ja schon von weiter oben oder unten ziemlich klar sein va_list valist; char* ntext; int textl = strlen(list); ntext = new char[strlen(list) + 256]; va_start(valist,list); vsprintf(ntext,list,valist); va_end(valist); //Wieder Locken usw... int col = 0; LPDIRECT3DSURFACE9 backbuffer; D3DLOCKED_RECT pr; De->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &backbuffer); backbuffer->LockRect(&pr,NULL,NULL); //Diesesmal berücksichtigen wir keine Zeilensprünge aber dafür relative x und y Position des Textes int re = (int)((x << 1) + pr.Pitch * y + (char*)(pr.pBits)); int rx = textw << 1; int rs = 1600 - (x << 1); //Ansonsten sieht die Schleife ziemlich gleich aus for(int i = 0; i < textl; i++) { //Dieses mal ohne row (da keine Zeilensprünge) und nur mit einer relativen Anfangsposition (re) int offs = (int)(col * rx); //Beenden wenn wir aus dem Bildschirm zeichnen!! if(offs > rs) continue; //N bisschen verschoben, weils vielleicht der Performance hilft! offs += re; //Das ist das selbe wie beim vorigem mal for(int j = 0; j < tsignc[*(ntext + i)]; j++) { *(short int*)(tsign[*(ntext + i)][j] + offs) = color; } col++; } backbuffer->UnlockRect(); free(ntext); return OK; } //Funktion zum Zeichnen eines MouseCursors (Warum beim Text?: Hat wohl minimal am meisten damit zu tun!) int g_DrawCursor(int p,int x,int y) { if( x < 9 || y < 9 || x > 791 || y > 591) return OK; //Der übliche Lock zeug um an Pointer und Pitch zu gelangen LPDIRECT3DSURFACE9 backbuffer; D3DLOCKED_RECT pr; De->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &backbuffer); backbuffer->LockRect(&pr,NULL,NULL); char* rp = (char*)(pr.pBits) + (x << 1) + y * pr.Pitch; //Zeichnet nichts anderes als ein Fadenkreuz! for (int i = -9; i < 10 ; i++) { *(short int*)(rp + (i << 1)) = 0xffff; *(short int*)(rp + (i * pr.Pitch)) = 0xffff; } backbuffer->UnlockRect(); return OK; } //Funktion die während der laufzeit des Programms den Text Zeichen für Zeichen und pixel für Pixel in den Backbuffer schreibt int g_DrawCompleteText (void) { int row = 0; //Anzahl der Zeilen int col = 0; //Anzahl der Spalten LPDIRECT3DSURFACE9 backbuffer; //Ein Surface für unseren Backbuffer D3DLOCKED_RECT pr; //Eben das Ding das wir brauchen um an einen Zeiger auf den Backbuffer zu gelangen //Backbuffer "abfragen" De->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &backbuffer); //Zeiger abholen backbuffer->LockRect(&pr,NULL,NULL); int ry = pr.Pitch * texth; int rx = textw << 1; //und los gehts: den ganzen Zwischenspeicher text durch (es stehen ja textlen Zeichen darin!) for(int i = 0; i < textlen; i++) { //Den Generellen Offset des Zeichens berechnen, also im Bezug auf Reihen und Spalten //unter Berücksichtigung aller Pitches und Auflösungen, usw. int offs = (int)(col * rx + row * ry + (char*)(pr.pBits)); if (*(text + i) == '\n' || col > 100) { row++; col = 0; continue; } //Dann einfach unser tsign des entsprechenden Zeichens runterratern und überall, wo //unsere relativ gespeicherte Offset-Info hinzeigt, die Farbe color in den Backbuffer ablegen //also eine Pixel mit der Farbe color mahlen for(int j = 0; j < tsignc[*(text + i)]; j++) { *(short int*)(tsign[*(text + i)][j] + offs) = textcolor[i]; } col++; } //Wieder der Abschlusskram! backbuffer->UnlockRect(); //Das darf man auf keinen Fall vergessen!! textlen = 0; return OK; }
d36fbb96a8778695a64def5d2dd7c1a0361450ea
e63a9ab6b2c2875aa350567a39371b1722dd0780
/Algoritmos/lista_8_repetição/exercicio7/main.cpp
d6391dce1af7cf15f0efd95910dec434c45686da
[]
no_license
furiossam/codeblocks
29120f5e68b35494b1d71c05656046eac1845a2c
2a6916fd425142a7c61aa95fcd576429e14c5063
refs/heads/master
2021-01-24T18:58:09.646855
2018-07-24T13:32:04
2018-07-24T13:32:04
86,161,822
0
0
null
null
null
null
UTF-8
C++
false
false
1,204
cpp
main.cpp
#include <iostream> using namespace std; int main() { int cont,n; double altura_mulheres=0,media_altura=0,altura,homens=0,mulheres=0; char sexo; do { cout << "Digite o numero de pessoas para o caluculo da media: " << endl; cin >> cont; n = cont; } while (cont < 1 ); do { cout << "Digite sua altura: " << endl; cin >> altura; do { cout << "Digite seu sexo" << endl; cin >> sexo; } while ((sexo!='f') && (sexo!='m') && (sexo!='F') && (sexo!='M')); if ((sexo = 'F') || (sexo = 'f')) { mulheres++; cont--; altura_mulheres += altura; media_altura += altura; } else { cont--; media_altura+= altura; } } while (cont!=0); media_altura = media_altura / n; if (mulheres > 0 ) { altura_mulheres = altura_mulheres / mulheres; } else { altura_mulheres = 0; } cout << "As medias de altura sao:" << endl; cout << "Mulheres : " << altura_mulheres << endl; cout << "Media Total : " << media_altura; }
80bd99d5bbae4b98a2b01f4df7a0c78a787d264d
c251c69949132212bf15432136104380719cbbfd
/SQF/dayz_code/Configs/CfgWeapons/Pistols/G17.hpp
92d88e35ba2c3be11651b11291650519812e1697
[]
no_license
DayZMod/DayZ
fc7c27ab4ceb9501229b0b952e6d0894fe6af57a
42368d7bbf0c85e51ddc75074a82196a21db9a55
refs/heads/Development
2021-01-23T16:26:17.696800
2019-01-26T16:24:58
2019-01-26T16:24:58
10,610,876
173
176
null
2020-03-26T14:26:53
2013-06-10T22:31:23
C++
UTF-8
C++
false
false
4,141
hpp
G17.hpp
class G17_DZ : glock17_EP1 { model = "z\addons\dayz_communityweapons\g17\g17.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_ca.paa"; displayName = $STR_DZ_WPN_G17_NAME; magazines[] = { 17Rnd_9x19_glock17, 17Rnd_9x19_glock17SD }; delete FlashLight; class Attachments { Attachment_Sup9 = "G17_SD_DZ"; Attachment_FL_Pist = "G17_FL_DZ"; Attachment_MFL_Pist = "G17_MFL_DZ"; }; }; class G17_FL_DZ : G17_DZ { model = "z\addons\dayz_communityweapons\g17\g17_fl.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_fl_ca.paa"; displayName = $STR_DZ_WPN_G17_FL_NAME; class FlashLight { color[] = {0.9, 0.9, 0.7, 0.9}; ambient[] = {0.1, 0.1, 0.1, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.1; }; class Attachments { Attachment_Sup9 = "G17_SD_FL_DZ"; }; class ItemActions { class RemoveFlashlight { text = $STR_DZ_ATT_FL_PST_RMVE; script = "; ['Attachment_FL_Pist',_id,'G17_DZ'] call player_removeAttachment"; }; }; }; class G17_MFL_DZ : G17_DZ { model = "z\addons\dayz_communityweapons\g17\g17_fl.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_fl_ca.paa"; displayName = $STR_DZ_WPN_G17_MFL_NAME; class FlashLight { color[] = {0.9, 0.0, 0.0, 0.9}; ambient[] = {0.1, 0.0, 0.0, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.08; }; class Attachments { Attachment_Sup9 = "G17_SD_MFL_DZ"; }; class ItemActions { class RemoveFlashlight { text = $STR_DZ_ATT_FL_PST_RMVE; script = "; ['Attachment_MFL_Pist',_id,'G17_DZ'] call player_removeAttachment"; }; }; }; class G17_SD_DZ : M9SD { model = "z\addons\dayz_communityweapons\g17\g17_sd.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_ca.paa"; displayName = $STR_DZ_WPN_G17_SD_NAME; magazines[] = { 17Rnd_9x19_glock17SD, 17Rnd_9x19_glock17 }; reloadMagazineSound[]={"Ca\Sounds_E\Weapons_E\Glock17\reload1",db0,1, 20}; recoil = "recoil_single_pistol_2outof3"; recoilProne = "recoil_single_pistol_prone_2outof3"; class Library {libTextDesc = $STR_EP1_LIB_glock17;}; descriptionShort = $STR_EP1_DSS_glock17_EP1; class Attachments { Attachment_FL_Pist = "G17_SD_FL_DZ"; Attachment_MFL_Pist = "G17_SD_MFL_DZ"; }; class ItemActions { class RemoveSuppressor { text = $STR_ATTACHMENT_RMVE_Silencer; script = "; ['Attachment_Sup9',_id,'G17_DZ'] call player_removeAttachment"; }; }; }; class G17_SD_FL_DZ : G17_SD_DZ { model = "z\addons\dayz_communityweapons\g17\g17_sd_fl.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_fl_ca.paa"; displayName = $STR_DZ_WPN_G17_SD_FL_NAME; class FlashLight { color[] = {0.9, 0.9, 0.7, 0.9}; ambient[] = {0.1, 0.1, 0.1, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.1; }; class Attachments {}; class ItemActions { class RemoveSuppressor { text = $STR_ATTACHMENT_RMVE_Silencer; script = "; ['Attachment_Sup9',_id,'G17_FL_DZ'] call player_removeAttachment"; }; class RemoveFlashlight { text = $STR_DZ_ATT_FL_PST_RMVE; script = "; ['Attachment_FL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment"; }; }; }; class G17_SD_MFL_DZ : G17_SD_DZ { model = "z\addons\dayz_communityweapons\g17\g17_sd_fl.p3d"; picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_fl_ca.paa"; displayName = $STR_DZ_WPN_G17_SD_MFL_NAME; class FlashLight { color[] = {0.9, 0.0, 0.0, 0.9}; ambient[] = {0.1, 0.0, 0.0, 1.0}; position = "flash dir"; direction = "flash"; angle = 30; scale[] = {1, 1, 0.5}; brightness = 0.08; }; class Attachments {}; class ItemActions { class RemoveSuppressor { text = $STR_ATTACHMENT_RMVE_Silencer; script = "; ['Attachment_Sup9',_id,'G17_MFL_DZ'] call player_removeAttachment"; }; class RemoveFlashlight { text = $STR_DZ_ATT_FL_PST_RMVE; script = "; ['Attachment_MFL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment"; }; }; };
572b7b1540b15f954515a23bad7edad0e5b7e83e
f90f6df156623241b0e5969470c753d1bd3751e6
/2021/10/c++/part-1.cc
a182c72adcdd549f4df086ae02df412664a91cde
[]
no_license
llllllllll/advent-of-code
f8065f6e6a8bd82c5ed3b65f97c91e3c41be1d35
6a76eb1e22acb09dd08429c56a84ca0803e6bff8
refs/heads/master
2022-12-17T14:30:27.340282
2022-12-07T06:42:21
2022-12-07T06:42:21
225,741,670
2
0
null
null
null
null
UTF-8
C++
false
false
1,229
cc
part-1.cc
#include "aoc/aoc.hpp" int score(std::string_view cs) { constexpr auto closes = [] { std::array<char, 256> closes; closes[')'] = '('; closes[']'] = '['; closes['}'] = '{'; closes['>'] = '<'; return closes; }(); constexpr auto scores = [] { std::array<int, 256> scores; scores[')'] = 3; scores[']'] = 57; scores['}'] = 1197; scores['>'] = 25137; return scores; }(); std::vector<char> stack; for (char c : cs) { switch (c) { case '(': case '[': case '{': case '<': stack.push_back(c); break; case ')': case ']': case '}': case '>': if (stack.back() != closes[c]) { return scores[c]; } stack.pop_back(); break; default: aoc::no_solution(); } } return 0; } template<std::ranges::input_range R> auto solution(R&& input) { int sum = 0; for (auto score : input | std::views::transform(score)) { sum += score; } return sum; } int main() { aoc::dbg(solution(aoc::input_range<aoc::line>())); }
36cbcb38e12b4638f044b2d1d27a02e8ed5a52ec
84bf029dab37d24efe8d81f998b6ea4d9aa6977f
/Library/MyTools/Cleaner.h
a314f9fcac6b6e941b329e04773d8deb9513e67a
[]
no_license
181847/LuaNet
ab57a115c7e17b5f8b050c614847f9a709b98ef0
39a72717a74215ebdb3cb6a12d2bb4ae6b20e60c
refs/heads/master
2021-09-05T09:32:34.015651
2018-01-26T03:48:33
2018-01-26T03:48:33
111,977,193
1
0
null
null
null
null
UTF-8
C++
false
false
259
h
Cleaner.h
#pragma once #include <functional> class Cleaner { public: Cleaner(std::function<void(void)> cleanFunc); ~Cleaner(); Cleaner(const Cleaner&) = delete; Cleaner& operator = (const Cleaner&) = delete; private: std::function<void(void)> cleanFunction; };
ca79620f37b50f190da6d68296ee6885d2f5bb41
a5f3b0001cdb692aeffc444a16f79a0c4422b9d0
/main/autodoc/inc/ary/loc/locp_le.hxx
f1aa8c6442e3e0d297aa260ffdf85eec6f04689d
[ "Apache-2.0", "CPL-1.0", "bzip2-1.0.6", "LicenseRef-scancode-other-permissive", "Zlib", "LZMA-exception", "LGPL-2.0-or-later", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-philippe-de-muyter", "OFL-1.1", "LGPL-2.1-only", "MPL-1.1", "X11", "LGPL-2.1-or-later", "GPL-2.0-only", "OpenSSL", "LicenseRef-scancode-cpl-0.5", "GPL-1.0-or-later", "NPL-1.1", "MIT", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "MPL-1.0", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "BSL-1.0", "LicenseRef-scancode-docbook", "LicenseRef-scancode-mit-old-style", "Python-2.0", "BSD-3-Clause", "IJG", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "LGPL-2.0-only", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown", "BSD-2-Clause", "Autoconf-exception-generic", "PSF-2.0", "NTP", "LicenseRef-scancode-python-cwi", "Afmparse", "W3C", "W3C-19980720", "curl", "LicenseRef-scancode-x11-xconsortium-veillard", "Bitstream-Vera", "HPND-sell-variant", "ICU" ]
permissive
apache/openoffice
b9518e36d784898c6c2ea3ebd44458a5e47825bb
681286523c50f34f13f05f7b87ce0c70e28295de
refs/heads/trunk
2023-08-30T15:25:48.357535
2023-08-28T19:50:26
2023-08-28T19:50:26
14,357,669
907
379
Apache-2.0
2023-08-16T20:49:37
2013-11-13T08:00:13
C++
UTF-8
C++
false
false
2,196
hxx
locp_le.hxx
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef ARY_LOCP_LE_HXX #define ARY_LOCP_LE_HXX // USED SERVICES // BASE CLASSES // COMPONENTS // PARAMETERS #include <cosv/ploc.hxx> #include <ary/loc/loc_types4loc.hxx> namespace ary { namespace loc { class Root; class Directory; class File; } } namespace ary { namespace loc { /** Provides access to files and directories stored in the repository. */ class LocationPilot { public: virtual ~LocationPilot() {} virtual Root & CheckIn_Root( const csv::ploc::Path & i_rPath ) = 0; virtual File & CheckIn_File( const String & i_name, const csv::ploc::DirectoryChain & i_subPath, Le_id i_root ) = 0; virtual Root & Find_Root( Le_id i_id ) const = 0; virtual Directory & Find_Directory( Le_id i_id ) const = 0; virtual File & Find_File( Le_id i_id ) const = 0; }; } // namespace loc } // namespace ary #endif
8edd8371bf2135e9f6336efa64fac2bd09e2bbfd
8e7d655025a743cea93a0f5526076a77505a1022
/src/Plane.cpp
f84ce5fbfff11a4943f19076c221ee1fca6e0e1a
[]
no_license
roukaour/trace
b855c6ec9e2ee302845f95c84d1edb5ddd68749a
5cbb1cff9b33d5e3039df77bcfaf0e7214336528
refs/heads/master
2021-05-14T13:03:16.600141
2018-01-05T20:53:19
2018-01-05T20:53:19
116,424,816
0
1
null
null
null
null
UTF-8
C++
false
false
1,632
cpp
Plane.cpp
#include <GL/glut.h> #include "Plane.h" #include "Entity.h" #include "Vector.h" #include "Ray.h" /** * The default constructor; yields an xz plane containing the origin. */ Plane::Plane() : Entity(), normal(0, 1, 0), distance(0), scale(1e4) {} /** * Returns the intersection of the given ray and this plane. */ Intersection Plane::intersect(Ray const &ray) { Intersection isec(this, &ray); double d = normal.dot(ray.direction); if (d == 0) { return isec; } double dist = -(normal.dot(ray.origin) + distance) / d; if (dist <= 0) { return isec; } isec.distance = dist; return isec; } /** * Returns the normal vector at the given point on this plane. */ Vector Plane::normal_at(Vector const &) const { return normal; } /** * Previews this plane. */ void Plane::preview() const { // Arbitrary vector not parallel to normal Vector w; Vector n = normal.abs(); if (n.x <= n.y && n.x <= n.z) w.x = 1; else if (n.y <= n.x && n.y <= n.z) w.y = 1; else w.z = 1; // Basis vectors Vector u = normal.cross(w).unit(); Vector v = normal.cross(u).unit(); // Center point Vector p0 = -normal * distance; // Axes Vector du = u * scale; Vector dv = v * scale; // Vertices Vector p1 = p0 - du - dv; Vector p2 = p0 + du - dv; Vector p3 = p0 + du + dv; Vector p4 = p0 - du + dv; // Draw the plane glMatrixMode(GL_MODELVIEW); glBegin(GL_QUADS); glNormal3d(normal.x, normal.y, normal.z); glVertex3d(p1.x, p1.y, p1.z); glVertex3d(p2.x, p2.y, p2.z); glVertex3d(p3.x, p3.y, p3.z); glVertex3d(p4.x, p4.y, p4.z); glEnd(); }
d36cccebd81ba41610b89c445ffcfbafa768872d
10205456a67a08eaebead48ec11166974bd4224e
/Maths.h
b1da0e33cb0f5707187e6c7c52ec7257bccd7771
[]
no_license
C-RJohnston/Advanced-Pong
219ce908f68a291df4a2de0b164e062b1630b6d1
6bcce0ce86e9f62de7d2f3f04ec087dd726ddefb
refs/heads/master
2022-04-07T16:02:35.109036
2020-02-18T01:38:18
2020-02-18T01:38:18
221,807,651
0
0
null
null
null
null
UTF-8
C++
false
false
384
h
Maths.h
#pragma once #include "Engine.h" #include <iostream> float dot(Vector2f vector1, Vector2f vector2); Vector2f normal(Vector2f vector); Vector2f project(Vector2f vector1, Vector2f vector2); void printVect(Vector2f vector); float findAngle(Vector2f vector1, Vector2f vector2); float value(Vector2f vector); Vector2f rotate(Vector2f vector, float angle, Vector2f offset=Vector2f(0,0));
ccc990458351b6e3eff3815ab3ee6a8a0288a66b
6d04f5e0565bcd618c961e04a386db414a0d3268
/Level.6.2.2.Visitor.Pattern/Liquor.h
29e6fe3f392c185e5bf53ae0357adc29c4c26e0a
[]
no_license
mamccorkle/CPSC.2376.Code.Examples.2020.Update
095fbedca949a6867edabc4148516963b598f0b7
d31aedf0be5e5e465c659a43eb9be53b48c58417
refs/heads/master
2023-03-12T17:00:52.019296
2021-02-16T16:02:38
2021-02-16T16:02:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
251
h
Liquor.h
#ifndef LIQUOR_H #define LIQUOR_H #include "GroceryItem.h"; class Liquor : public GroceryItem { public: Liquor(float price) : GroceryItem(price) {} double accept(iVisitor& visitor) override { return visitor.visit(this); } }; #endif // !LIQUOR_H
d74fa3974df011c300e4eddfc478daafd3c3f4bf
eafc5ac599f2e96c3ca61612abb109eba2abe655
/conjugateHeat/k3.0_noRadNoB/9600/bottomAir/p
5e344dffc878d5a6559b900e14378c5ca496d3f1
[]
no_license
kohyun/OpenFOAM_MSc_Thesis_Project
b651eb129611d41dbb4d3b08a2dec0d4db7663b3
11f6b69c23082b3b47b04963c5fc87b8ab4dd08d
refs/heads/master
2023-03-17T22:34:57.127580
2019-01-12T07:41:07
2019-01-12T07:41:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
38,274
p
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "9600/bottomAir"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField nonuniform List<scalar> 4000 ( 99828.36 99869.18 99904.33 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.4 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.89 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.4 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.41 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.89 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.41 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.15 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.42 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.07 99896.06 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.77 99896.16 99896.65 99897.01 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.06 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.77 99896.16 99896.66 99897.02 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.05 99896.04 99896.03 99828.43 99869.16 99904.32 99899.78 99896.16 99896.66 99897.02 99896.95 99896.9 99896.9 99896.89 99896.88 99896.87 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.04 99896.03 99828.43 99869.16 99904.32 99899.78 99896.16 99896.66 99897.02 99896.95 99896.9 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.03 99828.43 99869.17 99904.32 99899.78 99896.16 99896.66 99897.02 99896.95 99896.91 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99828.44 99869.17 99904.33 99899.78 99896.17 99896.66 99897.02 99896.95 99896.91 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99828.44 99869.17 99904.33 99899.78 99896.17 99896.66 99897.02 99896.95 99896.91 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99828.44 99869.17 99904.33 99899.78 99896.17 99896.66 99897.02 99896.96 99896.91 99896.9 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99828.44 99869.17 99904.33 99899.78 99896.17 99896.66 99897.02 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99828.44 99869.17 99904.33 99899.78 99896.17 99896.66 99897.02 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.06 99896.05 99896.04 99896.03 99896.02 99828.45 99869.18 99904.33 99899.78 99896.17 99896.67 99897.02 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.03 99896.02 99828.45 99869.18 99904.33 99899.79 99896.17 99896.67 99897.03 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99828.45 99869.18 99904.34 99899.79 99896.18 99896.67 99897.03 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99828.46 99869.18 99904.34 99899.79 99896.18 99896.67 99897.03 99896.96 99896.91 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99828.46 99869.19 99904.34 99899.79 99896.18 99896.67 99897.03 99896.96 99896.92 99896.91 99896.91 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99828.46 99869.19 99904.34 99899.79 99896.18 99896.67 99897.03 99896.97 99896.92 99896.91 99896.91 99896.89 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.07 99896.06 99896.04 99896.03 99896.02 99896.01 99896 99828.47 99869.2 99904.35 99899.8 99896.18 99896.68 99897.03 99896.97 99896.92 99896.91 99896.91 99896.9 99896.89 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.09 99896.08 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99896 99828.47 99869.2 99904.35 99899.8 99896.18 99896.68 99897.03 99896.97 99896.92 99896.91 99896.91 99896.9 99896.88 99896.87 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.1 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896.01 99896 99828.48 99869.21 99904.35 99899.8 99896.19 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.87 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.03 99896.02 99896 99895.99 99828.48 99869.21 99904.35 99899.8 99896.19 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.86 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.11 99896.09 99896.08 99896.07 99896.06 99896.05 99896.04 99896.02 99896.01 99896 99895.99 99828.5 99869.23 99904.36 99899.81 99896.19 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.1 99896.09 99896.08 99896.07 99896.06 99896.05 99896.03 99896.02 99896.01 99895.99 99895.98 99828.49 99869.23 99904.36 99899.81 99896.19 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.87 99896.85 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.1 99896.09 99896.08 99896.07 99896.06 99896.04 99896.03 99896.02 99896 99895.99 99895.97 99828.56 99869.25 99904.35 99899.81 99896.2 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.1 99896.09 99896.08 99896.07 99896.06 99896.04 99896.03 99896.02 99896 99895.98 99895.96 ) ; boundaryField { bottomAir_bottom { type symmetryPlane; } leftLet { type calculated; value uniform 100000; } rightLet { type calculated; value nonuniform List<scalar> 40 ( 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.03 99896.02 99896.02 99896.02 99896.02 99896.02 99896.02 99896.02 99896.02 99896.02 99896.01 99896.01 99896.01 99896.01 99896.01 99896.01 99896 99896 99896 99895.99 99895.99 99895.98 99895.97 99895.97 99895.95 ) ; } frontAndBack { type empty; } bottomAir_to_wall { type calculated; value nonuniform List<scalar> 100 ( 99828.56 99869.25 99904.35 99899.81 99896.2 99896.68 99897.04 99896.97 99896.92 99896.92 99896.91 99896.9 99896.89 99896.88 99896.87 99896.86 99896.84 99896.83 99896.82 99896.81 99896.8 99896.79 99896.78 99896.77 99896.76 99896.75 99896.74 99896.73 99896.72 99896.71 99896.7 99896.69 99896.68 99896.67 99896.66 99896.65 99896.64 99896.63 99896.62 99896.61 99896.6 99896.59 99896.58 99896.57 99896.56 99896.55 99896.54 99896.53 99896.52 99896.51 99896.5 99896.49 99896.48 99896.47 99896.46 99896.45 99896.44 99896.43 99896.42 99896.41 99896.4 99896.39 99896.38 99896.37 99896.36 99896.35 99896.34 99896.33 99896.32 99896.31 99896.3 99896.29 99896.28 99896.27 99896.26 99896.25 99896.24 99896.23 99896.22 99896.21 99896.2 99896.19 99896.18 99896.17 99896.16 99896.15 99896.14 99896.13 99896.12 99896.1 99896.09 99896.08 99896.07 99896.06 99896.04 99896.03 99896.02 99896 99895.98 99895.96 ) ; } } // ************************************************************************* //
13d5e59c14ad200a080b65c173c1d1e97c2373de
fbe60fa0d8e888bfdcf20beb2ef062f0f24fbcbd
/Algorithms/sum-of-square-numbers.cpp
99e5bbf3564aa85a908a61ce4bf9ebb4b9e43987
[]
no_license
aman1228/LeetCode
552e5feff8a67c05ba318efa3a8a2d121ab64636
76a3d6878719643cbca59643ff8e697498411498
refs/heads/master
2023-04-03T13:27:06.340091
2021-04-18T00:15:51
2021-04-18T00:20:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,024
cpp
sum-of-square-numbers.cpp
/* * @lc app=leetcode id=633 lang=cpp * * [633] Sum of Square Numbers * * https://leetcode.com/problems/sum-of-square-numbers/description/ * * algorithms * Easy (32.62%) * Likes: 373 * Dislikes: 247 * Total Accepted: 50.4K * Total Submissions: 154.6K * Testcase Example: '5' * * Given a non-negative integer c, your task is to decide whether there're two * integers a and b such that a^2 + b^2 = c. * * Example 1: * * * Input: 5 * Output: True * Explanation: 1 * 1 + 2 * 2 = 5 * * * * * Example 2: * * * Input: 3 * Output: False * * * * */ class Solution { public: bool judgeSquareSum(int c) { if (c < 0) { return false; } return f1(c); } private: bool f1(long c) { for (long i = sqrt(c); i >= 0; --i) { long j = c - i * i; long k = sqrt(j); if (k * k == j) { return true; } } return false; } };
ad56ff3fe18fbbf202208baa53c8fd1bf0bbfab8
38b9daafe39f937b39eefc30501939fd47f7e668
/tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta/58.8/p
893bf74fdf2e6f92b78d334253d2fb8f03d53563
[]
no_license
rubynuaa/2-way-coupling
3a292840d9f56255f38c5e31c6b30fcb52d9e1cf
a820b57dd2cac1170b937f8411bc861392d8fbaa
refs/heads/master
2020-04-08T18:49:53.047796
2018-08-29T14:22:18
2018-08-29T14:22:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
187,089
p
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "58.8"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField nonuniform List<scalar> 21420 ( 4238.92 4254.86 4267.02 4275.27 4279.55 4279.61 4275.35 4267.02 4254.79 4238.71 4219.03 4196.02 4170.05 4141.43 4110.58 4077.89 4043.77 4008.69 3973.04 3937.22 3901.57 3866.36 3837.56 3804.66 3773.28 3743.53 3715.5 3689.27 3664.89 3642.38 3621.76 3602.99 3586.06 3570.92 3557.53 3545.83 3535.77 3527.29 3520.37 3514.94 3510.98 3508.49 3507.45 3508.05 3510.05 3513.55 3518.56 3525.09 3533.21 3542.95 3554.35 3567.47 3582.33 3598.96 3617.41 3637.65 3659.69 3683.5 3709.01 3736.13 3764.75 3794.71 3825.83 3857.91 3890.69 3923.87 3957.18 3990.27 4022.81 4054.43 4084.76 4113.47 4140.2 4164.59 4186.34 4205.14 4220.73 4232.87 4241.34 4246.01 4246.71 4243.51 4236.3 4225.19 4210.31 4191.85 4170.06 4145.21 4117.64 4087.7 4055.77 4022.27 3987.61 3952.22 3916.52 3880.91 3845.79 3811.55 3778.46 3746.84 3716.92 3688.89 3662.9 3639.02 3617.31 3597.76 3580.35 3565.01 3551.68 3540.26 3530.69 3522.87 3516.71 3512.14 3509.07 3507.46 3507.26 3508.44 3510.93 3514.72 3519.8 3526.16 3533.79 3542.7 3552.9 3564.4 3577.23 3591.4 3606.94 3623.89 3642.28 3662.13 3683.48 3706.32 3730.65 3756.44 3783.63 3812.13 3841.83 3872.54 3904.03 3936.06 3968.34 4000.54 4032.3 4063.22 4092.89 4120.88 4146.77 4170.14 4190.61 4207.83 4221.46 4231.26 4237.03 4238.56 4235.93 4229.05 4218.02 4203 4184.23 4162 4136.67 4108.66 4078.41 4046.4 4013.12 3979.06 3944.68 3910.43 3876.7 3843.93 3812.29 3782.1 3753.53 3726.74 3701.8 3678.76 3657.63 3638.38 3620.99 3605.4 3591.55 3579.38 3568.83 3559.84 3552.34 3546.27 3541.57 3538.19 3536.08 3535.17 3535.47 3536.96 3539.58 3543.36 3548.31 3554.43 3561.75 3570.32 3580.17 3591.35 3603.9 3617.87 3633.31 3650.24 3668.71 3688.72 3710.29 3733.39 3757.99 3784.04 3811.44 3840.08 3869.8 3900.43 3931.73 3963.41 3995.19 4026.73 4057.68 4087.63 4116.18 4142.91 4167.38 4189.18 4207.92 4223.24 4234.82 4242.42 4245.85 4245 4239.87 4230.56 4217.15 4199.9 4179.1 4155.1 4128.33 4099.21 4068.23 4035.88 4002.64 3968.97 3935.33 3902.09 3869.64 3838.27 3808.23 3779.73 3752.92 3727.9 3704.74 3683.44 3664.02 3646.43 3630.62 3616.52 3604.06 3593.17 3583.77 3575.8 3569.2 3563.91 3559.89 3557.11 3555.51 3555.07 3555.82 3557.75 3560.82 3565.03 3570.39 3576.92 3584.61 3593.49 3603.58 3614.9 3627.51 3641.41 3656.67 3673.33 3691.41 3710.94 3731.94 3754.44 3778.44 3803.91 3830.77 3858.92 3888.08 3917.5 3948.15 3979.4 4010.8 4041.98 4072.46 4101.75 4129.4 4154.91 4177.85 4197.81 4214.4 4227.34 4236.41 4241.44 4242.27 4238.79 4231.17 4219.6 4204.33 4185.7 4164.05 4139.76 4113.28 4085.06 4055.55 4025.17 3994.33 3963.43 3932.8 3902.71 3873.59 3846.4 3819.46 3793.61 3769.01 3745.71 3723.74 3703.11 3683.81 3665.83 3649.16 3633.78 3619.7 3606.9 3595.41 3585.24 3576.42 3568.96 3562.92 3558.33 3555.21 3553.61 3553.59 3555.4 3558.87 3564.03 3570.88 3579.4 3589.6 3601.47 3615.01 3630.16 3646.89 3665.19 3685.01 4140.94 4156.9 4169.06 4177.32 4181.6 4181.68 4177.41 4169.08 4156.84 4140.74 4121.05 4098.02 4072.03 4043.39 4012.53 3979.82 3945.68 3910.58 3874.92 3839.09 3803.43 3768.24 3739.35 3706.47 3675.1 3645.35 3617.31 3591.08 3566.7 3544.2 3523.57 3504.82 3487.89 3472.75 3459.36 3447.66 3437.6 3429.13 3422.21 3416.79 3412.83 3410.33 3409.3 3409.89 3411.9 3415.4 3420.4 3426.93 3435.04 3444.78 3456.18 3469.3 3484.15 3500.78 3519.23 3539.47 3561.51 3585.32 3610.83 3637.95 3666.58 3696.54 3727.67 3759.76 3792.55 3825.74 3859.06 3892.17 3924.72 3956.36 3986.71 4015.43 4042.17 4066.58 4088.34 4107.16 4122.76 4134.91 4143.39 4148.06 4148.77 4145.56 4138.35 4127.23 4112.34 4093.87 4072.06 4047.2 4019.61 3989.65 3957.7 3924.19 3889.51 3854.1 3818.38 3782.76 3747.63 3713.37 3680.28 3648.65 3618.72 3590.69 3564.7 3540.82 3519.11 3499.57 3482.16 3466.82 3453.49 3442.09 3432.52 3424.7 3418.54 3413.97 3410.91 3409.3 3409.1 3410.29 3412.77 3416.57 3421.65 3428 3435.64 3444.55 3454.75 3466.25 3479.07 3493.23 3508.78 3525.72 3544.11 3563.96 3585.31 3608.15 3632.48 3658.27 3685.46 3713.96 3743.67 3774.38 3805.88 3837.92 3870.22 3902.44 3934.21 3965.14 3994.83 4022.84 4048.75 4072.14 4092.63 4109.86 4123.51 4133.32 4139.09 4140.63 4137.98 4131.1 4120.07 4105.04 4086.25 4064 4038.65 4010.62 3980.35 3948.32 3915.02 3880.94 3846.54 3812.28 3778.54 3745.76 3714.11 3683.91 3655.34 3628.55 3603.61 3580.57 3559.44 3540.2 3522.81 3507.22 3493.38 3481.21 3470.67 3461.68 3454.18 3448.11 3443.42 3440.04 3437.92 3437.02 3437.32 3438.81 3441.43 3445.21 3450.16 3456.28 3463.6 3472.17 3482.02 3493.19 3505.74 3519.71 3535.14 3552.07 3570.54 3590.55 3612.11 3635.22 3659.82 3685.87 3713.27 3741.91 3771.64 3802.28 3833.59 3865.28 3897.07 3928.63 3959.59 3989.56 4018.13 4044.88 4069.37 4091.19 4109.94 4125.28 4136.87 4144.48 4147.92 4147.06 4141.93 4132.62 4119.2 4101.93 4081.11 4057.1 4030.3 4001.16 3970.16 3937.79 3904.53 3870.85 3837.18 3803.94 3771.47 3740.09 3710.05 3681.55 3654.74 3629.72 3606.55 3585.26 3565.83 3548.25 3532.44 3518.35 3505.89 3495 3485.61 3477.64 3471.05 3465.76 3461.74 3458.96 3457.36 3456.93 3457.67 3459.61 3462.67 3466.89 3472.25 3478.77 3486.47 3495.34 3505.43 3516.75 3529.35 3543.26 3558.51 3575.17 3593.24 3612.77 3633.77 3656.27 3680.27 3705.74 3732.6 3760.75 3789.92 3819.35 3850 3881.26 3912.69 3943.89 3974.39 4003.69 4031.36 4056.89 4079.86 4099.83 4116.44 4129.39 4138.47 4143.5 4144.34 4140.85 4133.22 4121.64 4106.36 4087.71 4066.04 4041.73 4015.23 3986.99 3957.46 3927.06 3896.21 3865.3 3834.66 3804.56 3775.44 3748.23 3721.29 3695.45 3670.85 3647.55 3625.57 3604.94 3585.65 3567.67 3551 3535.63 3521.54 3508.75 3497.26 3487.08 3478.26 3470.81 3464.77 3460.17 3457.05 3455.45 3455.43 3457.24 3460.7 3465.86 3472.71 3481.23 3491.44 3503.31 3516.84 3531.99 3548.73 3567.02 3586.84 4043.08 4059.07 4071.26 4079.53 4083.82 4083.92 4079.63 4071.29 4059.03 4042.91 4023.19 4000.13 3974.1 3945.43 3914.53 3881.78 3847.61 3812.47 3776.78 3740.93 3705.26 3670.09 3641.05 3608.2 3576.82 3547.07 3519.04 3492.81 3468.43 3445.93 3425.31 3406.56 3389.64 3374.51 3361.12 3349.43 3339.37 3330.91 3323.99 3318.57 3314.61 3312.12 3311.09 3311.68 3313.68 3317.18 3322.18 3328.7 3336.81 3346.55 3357.94 3371.05 3385.9 3402.53 3420.97 3441.22 3463.25 3487.06 3512.58 3539.7 3568.33 3598.31 3629.45 3661.56 3694.36 3727.58 3760.93 3794.06 3826.64 3858.31 3888.69 3917.44 3944.22 3968.66 3990.45 4009.3 4024.92 4037.09 4045.59 4050.27 4051 4047.76 4040.55 4029.42 4014.51 3996.01 3974.18 3949.28 3921.65 3891.66 3859.67 3826.12 3791.41 3755.97 3720.21 3684.56 3649.4 3615.13 3582.01 3550.37 3520.43 3492.4 3466.4 3442.53 3420.82 3401.28 3383.88 3368.55 3355.23 3343.83 3334.27 3326.46 3320.31 3315.75 3312.69 3311.09 3310.9 3312.08 3314.57 3318.36 3323.44 3329.8 3337.43 3346.34 3356.54 3368.03 3380.85 3395.01 3410.55 3427.49 3445.88 3465.73 3487.07 3509.9 3534.24 3560.03 3587.22 3615.73 3645.45 3676.17 3707.69 3739.76 3772.08 3804.32 3836.13 3867.1 3896.82 3924.86 3950.81 3974.24 3994.76 4012.02 4025.7 4035.53 4041.31 4042.87 4040.2 4033.32 4022.27 4007.21 3988.39 3966.11 3940.72 3912.65 3882.34 3850.27 3816.93 3782.8 3748.37 3714.08 3680.32 3647.51 3615.85 3585.64 3557.07 3530.27 3505.33 3482.3 3461.17 3441.94 3424.55 3408.97 3395.13 3382.97 3372.44 3363.46 3355.96 3349.9 3345.21 3341.83 3339.72 3338.82 3339.13 3340.62 3343.24 3347.02 3351.96 3358.08 3365.4 3373.96 3383.81 3394.97 3407.52 3421.48 3436.91 3453.84 3472.3 3492.31 3513.87 3536.97 3561.58 3587.63 3615.04 3643.69 3673.43 3704.08 3735.41 3767.13 3798.94 3830.53 3861.52 3891.53 3920.14 3946.92 3971.45 3993.3 4012.09 4027.46 4039.08 4046.7 4050.16 4049.29 4044.16 4034.83 4021.39 4004.09 3983.23 3959.18 3932.34 3903.16 3872.12 3839.71 3806.41 3772.69 3739 3705.73 3673.24 3641.85 3611.79 3583.28 3556.46 3531.44 3508.28 3486.99 3467.57 3449.99 3434.19 3420.11 3407.66 3396.78 3387.39 3379.43 3372.84 3367.56 3363.55 3360.76 3359.17 3358.73 3359.48 3361.42 3364.48 3368.7 3374.06 3380.58 3388.27 3397.14 3407.22 3418.55 3431.14 3445.04 3460.29 3476.94 3495.01 3514.53 3535.53 3558.02 3582.02 3607.49 3634.36 3662.52 3691.7 3721.13 3751.81 3783.1 3814.55 3845.79 3876.33 3905.68 3933.39 3958.96 3981.96 4001.97 4018.61 4031.59 4040.68 4045.72 4046.58 4043.05 4035.42 4023.81 4008.5 3989.82 3968.12 3943.77 3917.24 3888.96 3859.39 3828.96 3798.07 3767.14 3736.48 3706.36 3677.23 3650.01 3623.07 3597.22 3572.62 3549.32 3527.35 3506.72 3487.43 3469.45 3452.79 3437.42 3423.33 3410.54 3399.05 3388.87 3380.05 3372.6 3366.55 3361.95 3358.83 3357.22 3357.21 3359.01 3362.48 3367.64 3374.48 3383 3393.2 3405.08 3418.61 3433.76 3450.49 3468.79 3488.61 3945.35 3961.38 3973.6 3981.89 3986.19 3986.33 3982.01 3973.66 3961.37 3945.21 3925.44 3902.34 3876.26 3847.53 3816.57 3783.77 3749.54 3714.35 3678.62 3642.73 3607.04 3571.9 3542.64 3509.83 3478.47 3448.71 3420.68 3394.45 3370.08 3347.58 3326.97 3308.22 3291.31 3276.19 3262.81 3251.12 3241.08 3232.62 3225.71 3220.29 3216.35 3213.85 3212.82 3213.4 3215.41 3218.9 3223.89 3230.42 3238.52 3248.25 3259.63 3272.74 3287.58 3304.2 3322.64 3342.88 3364.91 3388.72 3414.24 3441.38 3470.02 3500.01 3531.17 3563.3 3596.14 3629.39 3662.77 3695.95 3728.57 3760.28 3790.71 3819.52 3846.34 3870.82 3892.66 3911.55 3927.21 3939.41 3947.93 3952.63 3953.38 3950.11 3942.9 3931.75 3916.81 3898.28 3876.4 3851.45 3823.77 3793.72 3761.68 3728.07 3693.31 3657.81 3622.01 3586.31 3551.12 3516.81 3483.67 3452 3422.05 3394.01 3368.01 3344.14 3322.44 3302.91 3285.51 3270.2 3256.89 3245.51 3235.96 3228.16 3222.02 3217.46 3214.42 3212.82 3212.63 3213.82 3216.31 3220.1 3225.19 3231.54 3239.17 3248.08 3258.27 3269.77 3282.58 3296.74 3312.27 3329.2 3347.58 3367.42 3388.76 3411.59 3435.92 3461.72 3488.92 3517.44 3547.17 3577.91 3609.46 3641.55 3673.91 3706.2 3738.05 3769.07 3798.85 3826.95 3852.96 3876.44 3897.02 3914.32 3928.03 3937.89 3943.7 3945.28 3942.59 3935.7 3924.62 3909.53 3890.66 3868.32 3842.88 3814.74 3784.37 3752.23 3718.83 3684.65 3650.17 3615.83 3582.04 3549.19 3517.51 3487.29 3458.7 3431.9 3406.97 3383.94 3362.82 3343.59 3326.22 3310.65 3296.82 3284.67 3274.14 3265.17 3257.69 3251.64 3246.95 3243.58 3241.48 3240.58 3240.89 3242.38 3245 3248.78 3253.72 3259.83 3267.15 3275.7 3285.54 3296.7 3309.24 3323.2 3338.62 3355.54 3374 3394 3415.56 3438.66 3463.27 3489.33 3516.75 3545.41 3575.16 3605.84 3637.19 3668.94 3700.8 3732.43 3763.47 3793.53 3822.19 3849.03 3873.62 3895.53 3914.37 3929.78 3941.44 3949.09 3952.57 3951.7 3946.55 3937.19 3923.72 3906.38 3885.47 3861.36 3834.46 3805.22 3774.12 3741.64 3708.29 3674.52 3640.77 3607.46 3574.95 3543.53 3513.45 3484.93 3458.1 3433.08 3409.92 3388.64 3369.23 3351.66 3335.87 3321.8 3309.36 3298.49 3289.11 3281.16 3274.58 3269.3 3265.3 3262.52 3260.93 3260.5 3261.25 3263.18 3266.25 3270.46 3275.82 3282.34 3290.03 3298.89 3308.97 3320.29 3332.88 3346.77 3362.01 3378.65 3396.71 3416.22 3437.22 3459.71 3483.7 3509.17 3536.05 3564.22 3593.42 3622.87 3653.57 3684.9 3716.4 3747.7 3778.29 3807.71 3835.48 3861.11 3884.17 3904.24 3920.92 3933.93 3943.05 3948.11 3948.98 3945.41 3937.77 3926.13 3910.78 3892.05 3870.29 3845.88 3819.29 3790.95 3761.32 3730.84 3699.92 3668.94 3638.25 3608.12 3578.97 3551.72 3524.77 3498.93 3474.32 3451.03 3429.06 3408.44 3389.15 3371.18 3354.52 3339.15 3325.07 3312.28 3300.78 3290.61 3281.78 3274.33 3268.28 3263.68 3260.55 3258.94 3258.92 3260.72 3264.18 3269.34 3276.19 3284.7 3294.91 3306.78 3320.31 3335.46 3352.19 3370.49 3390.32 3847.75 3863.83 3876.09 3884.41 3888.72 3888.89 3884.55 3876.19 3863.85 3847.65 3827.82 3804.65 3778.5 3749.7 3718.66 3685.78 3651.48 3616.23 3580.43 3544.5 3508.79 3473.67 3444.15 3411.38 3380.02 3350.27 3322.23 3296.01 3271.64 3249.15 3228.54 3209.81 3192.91 3177.8 3164.43 3152.76 3142.72 3134.27 3127.37 3121.96 3118.02 3115.53 3114.5 3115.07 3117.07 3120.56 3125.55 3132.06 3140.16 3149.88 3161.26 3174.35 3189.18 3205.8 3224.22 3244.46 3266.49 3290.3 3315.83 3342.97 3371.63 3401.64 3432.83 3465 3497.87 3531.17 3564.6 3597.83 3630.51 3662.28 3692.78 3721.65 3748.53 3773.08 3794.98 3813.92 3829.63 3841.87 3850.42 3855.14 3855.91 3852.63 3845.4 3834.22 3819.24 3800.66 3778.72 3753.71 3725.96 3695.84 3663.73 3630.04 3595.21 3559.64 3523.77 3488.02 3452.77 3418.43 3385.25 3353.55 3323.58 3295.52 3269.52 3245.65 3223.96 3204.44 3187.06 3171.76 3158.47 3147.11 3137.58 3129.79 3123.66 3119.12 3116.08 3114.49 3114.32 3115.5 3118 3121.8 3126.88 3133.23 3140.86 3149.77 3159.96 3171.45 3184.25 3198.4 3213.92 3230.85 3249.22 3269.05 3290.38 3313.21 3337.54 3363.34 3390.54 3419.08 3448.83 3479.6 3511.18 3543.32 3575.73 3608.07 3639.99 3671.08 3700.93 3729.11 3755.19 3778.75 3799.39 3816.76 3830.52 3840.42 3846.25 3847.85 3845.15 3838.24 3827.13 3811.99 3793.06 3770.65 3745.12 3716.9 3686.44 3654.22 3620.74 3586.49 3551.93 3517.54 3483.69 3450.8 3419.09 3388.85 3360.25 3333.45 3308.51 3285.49 3264.38 3245.17 3227.81 3212.25 3198.44 3186.3 3175.79 3166.83 3159.36 3153.31 3148.64 3145.28 3143.18 3142.29 3142.61 3144.09 3146.72 3150.49 3155.43 3161.54 3168.85 3177.39 3187.22 3198.37 3210.9 3224.85 3240.26 3257.18 3275.62 3295.62 3317.18 3340.28 3364.89 3390.96 3418.39 3447.07 3476.84 3507.55 3538.94 3570.73 3602.64 3634.33 3665.44 3695.56 3724.3 3751.22 3775.88 3797.87 3816.78 3832.24 3843.95 3851.64 3855.13 3854.27 3849.11 3839.72 3826.2 3808.8 3787.82 3763.64 3736.65 3707.32 3676.14 3643.59 3610.15 3576.31 3542.51 3509.15 3476.59 3445.13 3415.03 3386.49 3359.66 3334.64 3311.48 3290.2 3270.81 3253.25 3237.48 3223.42 3211 3200.14 3190.78 3182.84 3176.26 3171 3167 3164.23 3162.64 3162.22 3162.96 3164.9 3167.97 3172.18 3177.54 3184.05 3191.74 3200.6 3210.67 3221.98 3234.55 3248.44 3263.67 3280.3 3298.35 3317.85 3338.83 3361.32 3385.31 3410.78 3437.66 3465.85 3495.08 3524.54 3555.29 3586.67 3618.24 3649.6 3680.28 3709.77 3737.63 3763.35 3786.49 3806.62 3823.37 3836.43 3845.58 3850.65 3851.53 3847.94 3840.27 3828.58 3813.18 3794.38 3772.54 3748.06 3721.39 3692.97 3663.27 3632.73 3601.74 3570.72 3539.99 3509.82 3480.66 3453.37 3426.42 3400.57 3375.96 3352.67 3330.71 3310.09 3290.81 3272.85 3256.19 3240.83 3226.75 3213.96 3202.46 3192.29 3183.46 3176 3169.95 3165.34 3162.21 3160.6 3160.57 3162.36 3165.83 3170.99 3177.83 3186.34 3196.54 3208.41 3221.94 3237.09 3253.83 3272.13 3291.96 3750.26 3766.41 3778.72 3787.08 3791.42 3791.6 3787.27 3778.87 3766.48 3750.22 3730.32 3707.06 3680.82 3651.93 3620.8 3587.82 3553.43 3518.1 3482.23 3446.24 3410.49 3375.39 3345.57 3312.85 3281.49 3251.74 3223.7 3197.47 3173.11 3150.63 3130.04 3111.32 3094.43 3079.33 3065.98 3054.32 3044.3 3035.86 3028.97 3023.57 3019.64 3017.15 3016.12 3016.68 3018.68 3022.17 3027.15 3033.65 3041.73 3051.44 3062.81 3075.89 3090.71 3107.31 3125.73 3145.96 3167.99 3191.81 3217.34 3244.49 3273.17 3303.21 3334.43 3366.64 3399.56 3432.91 3466.41 3499.7 3532.46 3564.31 3594.89 3623.84 3650.8 3675.42 3697.4 3716.41 3732.18 3744.47 3753.06 3757.81 3758.6 3755.31 3748.05 3736.84 3721.81 3703.17 3681.16 3656.07 3628.23 3598.01 3565.81 3532.03 3497.1 3461.45 3425.51 3389.68 3354.36 3319.97 3286.74 3255.01 3225.01 3196.94 3170.93 3147.07 3125.39 3105.88 3088.52 3073.25 3059.98 3048.63 3039.12 3031.35 3025.25 3020.72 3017.69 3016.12 3015.95 3017.14 3019.64 3023.44 3028.52 3034.88 3042.5 3051.41 3061.59 3073.07 3085.87 3100.01 3115.52 3132.44 3150.79 3170.62 3191.94 3214.76 3239.09 3264.89 3292.1 3320.65 3350.43 3381.24 3412.86 3445.05 3477.52 3509.94 3541.93 3573.11 3603.05 3631.33 3657.5 3681.15 3701.88 3719.33 3733.15 3743.1 3748.96 3750.58 3747.88 3740.94 3729.78 3714.58 3695.58 3673.08 3647.45 3619.13 3588.56 3556.23 3522.65 3488.3 3453.66 3419.19 3385.29 3352.34 3320.6 3290.33 3261.72 3234.91 3209.97 3186.96 3165.86 3146.67 3129.32 3113.78 3099.98 3087.87 3077.37 3068.42 3060.97 3054.94 3050.28 3046.92 3044.83 3043.95 3044.28 3045.76 3048.39 3052.16 3057.09 3063.19 3070.5 3079.03 3088.85 3099.99 3112.5 3126.44 3141.84 3158.75 3177.18 3197.18 3218.73 3241.83 3266.44 3292.52 3319.96 3348.66 3378.47 3409.21 3440.65 3472.5 3504.47 3536.23 3567.42 3597.63 3626.46 3653.47 3678.23 3700.31 3719.31 3734.85 3746.62 3754.35 3757.86 3757.02 3751.83 3742.4 3728.83 3711.35 3690.29 3666 3638.92 3609.48 3578.19 3545.54 3512.01 3478.08 3444.2 3410.77 3378.16 3346.66 3316.53 3287.97 3261.13 3236.1 3212.95 3191.69 3172.3 3154.76 3139.01 3124.97 3112.57 3101.73 3092.39 3084.46 3077.9 3072.65 3068.66 3065.89 3064.31 3063.89 3064.63 3066.57 3069.64 3073.86 3079.21 3085.72 3093.4 3102.25 3112.31 3123.61 3136.18 3150.05 3165.27 3181.88 3199.92 3219.41 3240.38 3262.85 3286.84 3312.31 3339.21 3367.42 3396.68 3426.16 3456.96 3488.41 3520.06 3551.51 3582.29 3611.88 3639.85 3665.67 3688.91 3709.13 3725.95 3739.07 3748.26 3753.35 3754.24 3750.63 3742.92 3731.18 3715.7 3696.82 3674.89 3650.31 3623.54 3595.03 3565.24 3534.61 3503.55 3472.46 3441.68 3411.47 3382.29 3354.96 3328 3302.14 3277.54 3254.25 3232.29 3211.68 3192.41 3174.46 3157.8 3142.45 3128.37 3115.58 3104.09 3093.91 3085.08 3077.62 3071.56 3066.95 3063.81 3062.19 3062.15 3063.94 3067.41 3072.56 3079.4 3087.91 3098.11 3109.98 3123.51 3138.66 3155.4 3173.7 3193.54 3652.9 3669.13 3681.5 3689.91 3694.27 3694.47 3690.14 3681.7 3669.25 3652.92 3632.93 3609.58 3583.23 3554.23 3522.98 3489.89 3455.4 3419.96 3384 3347.94 3312.15 3277.06 3246.92 3214.23 3182.88 3153.12 3125.08 3098.85 3074.5 3052.03 3031.45 3012.74 2995.87 2980.8 2967.46 2955.82 2945.81 2937.39 2930.51 2925.12 2921.19 2918.71 2917.68 2918.24 2920.24 2923.71 2928.68 2935.17 2943.24 2952.94 2964.29 2977.35 2992.16 3008.75 3027.16 3047.38 3069.41 3093.23 3118.77 3145.94 3174.64 3204.71 3235.97 3268.23 3301.21 3334.63 3368.2 3401.58 3434.42 3466.36 3497.03 3526.08 3553.14 3577.86 3599.92 3619.02 3634.86 3647.21 3655.85 3660.63 3661.43 3658.14 3650.85 3639.6 3624.52 3605.8 3583.7 3558.51 3530.57 3500.24 3467.93 3434.04 3399 3363.24 3327.2 3291.28 3255.88 3221.44 3188.15 3156.38 3126.35 3098.27 3072.25 3048.39 3026.72 3007.23 2989.9 2974.64 2961.4 2950.08 2940.59 2932.85 2926.76 2922.25 2919.25 2917.68 2917.52 2918.72 2921.23 2925.03 2930.11 2936.47 2944.09 2952.99 2963.17 2974.64 2987.43 3001.56 3017.06 3033.96 3052.3 3072.11 3093.42 3116.24 3140.56 3166.37 3193.6 3222.16 3251.97 3282.82 3314.49 3346.75 3379.29 3411.79 3443.89 3475.17 3505.22 3533.61 3559.9 3583.66 3604.5 3622.03 3635.94 3645.95 3651.84 3653.48 3650.78 3643.8 3632.59 3617.32 3598.22 3575.61 3549.87 3521.42 3490.72 3458.27 3424.56 3390.1 3355.36 3320.8 3286.82 3253.81 3222.02 3191.72 3163.09 3136.27 3111.34 3088.34 3067.26 3048.08 3030.76 3015.24 3001.46 2989.36 2978.88 2969.96 2962.52 2956.51 2951.86 2948.52 2946.44 2945.57 2945.9 2947.39 2950.01 2953.78 2958.71 2964.8 2972.09 2980.62 2990.42 3001.55 3014.05 3027.97 3043.36 3060.25 3078.68 3098.66 3120.21 3143.31 3167.93 3194.01 3221.47 3250.2 3280.04 3310.82 3342.32 3374.23 3406.28 3438.13 3469.41 3499.73 3528.67 3555.8 3580.68 3602.87 3621.97 3637.6 3649.44 3657.23 3660.77 3659.93 3654.73 3645.24 3631.6 3614.04 3592.87 3568.47 3541.25 3511.69 3480.28 3447.5 3413.86 3379.82 3345.85 3312.35 3279.67 3248.12 3217.96 3189.37 3162.52 3137.48 3114.33 3093.08 3073.72 3056.2 3040.47 3026.46 3014.08 3003.26 2993.93 2986.03 2979.48 2974.24 2970.27 2967.51 2965.93 2965.52 2966.25 2968.2 2971.28 2975.49 2980.84 2987.34 2995.01 3003.86 3013.91 3025.2 3037.75 3051.6 3066.81 3083.4 3101.42 3120.89 3141.85 3164.32 3188.3 3213.78 3240.68 3268.92 3298.22 3327.72 3358.58 3390.11 3421.86 3453.42 3484.32 3514.04 3542.12 3568.08 3591.43 3611.76 3628.67 3641.87 3651.11 3656.22 3657.11 3653.49 3645.72 3633.91 3618.35 3599.37 3577.33 3552.63 3525.74 3497.11 3467.21 3436.48 3405.33 3374.16 3343.32 3313.07 3283.86 3256.48 3229.51 3203.65 3179.05 3155.76 3133.82 3113.22 3093.95 3076.01 3059.36 3044.01 3029.94 3017.16 3005.66 2995.48 2986.65 2979.18 2973.12 2968.5 2965.35 2963.73 2963.67 2965.46 2968.93 2974.08 2980.91 2989.42 2999.62 3011.48 3025.01 3040.16 3056.9 3075.2 3095.05 3555.67 3571.98 3584.44 3592.9 3597.29 3597.5 3593.17 3584.69 3572.17 3555.76 3535.67 3512.2 3485.73 3456.59 3425.22 3391.99 3357.37 3321.81 3285.75 3249.6 3213.77 3178.67 3148.19 3115.53 3084.18 3054.41 3026.37 3000.15 2975.8 2953.34 2932.78 2914.09 2897.24 2882.19 2868.87 2857.25 2847.26 2838.86 2831.99 2826.61 2822.7 2820.22 2819.18 2819.74 2821.73 2825.2 2830.16 2836.64 2844.69 2854.37 2865.7 2878.75 2893.54 2910.12 2928.51 2948.73 2970.75 2994.57 3020.12 3047.31 3076.04 3106.14 3137.45 3169.77 3202.82 3236.31 3269.97 3303.44 3336.39 3368.44 3399.22 3428.38 3455.55 3480.38 3502.55 3521.74 3537.67 3550.09 3558.79 3563.61 3564.43 3561.14 3553.81 3542.51 3527.36 3508.55 3486.35 3461.04 3432.98 3402.52 3370.08 3336.06 3300.89 3265.02 3228.86 3192.84 3157.35 3122.84 3089.48 3057.66 3027.6 2999.49 2973.47 2949.61 2927.96 2908.49 2891.18 2875.96 2862.75 2851.46 2842 2834.28 2828.22 2823.73 2820.74 2819.2 2819.05 2820.25 2822.77 2826.57 2831.66 2838.01 2845.63 2854.52 2864.69 2876.16 2888.93 2903.05 2918.53 2935.42 2953.75 2973.54 2994.84 3017.65 3041.97 3067.78 3095.02 3123.61 3153.44 3184.35 3216.08 3248.41 3281.04 3313.65 3345.85 3377.26 3407.44 3435.96 3462.38 3486.28 3507.23 3524.87 3538.87 3548.95 3554.89 3556.55 3553.85 3546.83 3535.56 3520.2 3500.99 3478.26 3452.37 3423.77 3392.93 3360.32 3326.47 3291.88 3257.02 3222.35 3188.29 3155.2 3123.36 3093.03 3064.38 3037.55 3012.63 2989.63 2968.57 2949.42 2932.12 2916.62 2902.87 2890.79 2880.34 2871.43 2864.01 2858.02 2853.39 2850.07 2848 2847.14 2847.48 2848.96 2851.59 2855.36 2860.28 2866.36 2873.64 2882.16 2891.95 2903.05 2915.54 2929.44 2944.81 2961.69 2980.1 3000.07 3021.62 3044.71 3069.34 3095.44 3122.92 3151.67 3181.55 3212.38 3243.95 3275.94 3308.08 3340.03 3371.42 3401.87 3430.94 3458.2 3483.21 3505.54 3524.76 3540.5 3552.42 3560.27 3563.84 3563.01 3557.79 3548.25 3534.52 3516.86 3495.57 3471.03 3443.67 3413.96 3382.39 3349.47 3315.69 3281.54 3247.46 3213.86 3181.11 3149.5 3119.3 3090.68 3063.81 3038.78 3015.63 2994.4 2975.05 2957.56 2941.86 2927.87 2915.52 2904.73 2895.43 2887.54 2881.01 2875.79 2871.82 2869.08 2867.51 2867.1 2867.83 2869.78 2872.86 2877.07 2882.42 2888.91 2896.57 2905.41 2915.45 2926.73 2939.26 2953.09 2968.28 2984.86 3002.86 3022.31 3043.26 3065.71 3089.68 3115.16 3142.08 3170.35 3199.7 3229.22 3260.15 3291.78 3323.64 3355.33 3386.37 3416.23 3444.47 3470.56 3494.06 3514.51 3531.53 3544.81 3554.11 3559.25 3560.15 3556.5 3548.68 3536.79 3521.13 3502.03 3479.86 3455.02 3427.99 3399.23 3369.2 3338.35 3307.1 3275.84 3244.93 3214.63 3185.38 3157.94 3130.96 3105.1 3080.49 3057.21 3035.27 3014.69 2995.44 2977.5 2960.87 2945.52 2931.46 2918.67 2907.18 2897 2888.16 2880.68 2874.61 2869.99 2866.83 2865.2 2865.13 2866.92 2870.38 2875.53 2882.36 2890.86 2901.05 2912.91 2926.44 2941.59 2958.33 2976.64 2996.5 3458.56 3474.98 3487.52 3496.04 3500.47 3500.7 3496.36 3487.84 3475.24 3458.74 3438.53 3414.93 3388.31 3359.03 3327.49 3294.12 3259.35 3223.65 3187.47 3151.22 3115.33 3080.22 3049.4 3016.76 2985.4 2955.62 2927.57 2901.35 2877.01 2854.57 2834.03 2815.36 2798.54 2783.51 2770.22 2758.62 2748.65 2740.26 2733.41 2728.04 2724.14 2721.67 2720.63 2721.18 2723.17 2726.62 2731.57 2738.03 2746.07 2755.73 2767.05 2780.07 2794.84 2811.4 2829.78 2849.99 2872.01 2895.83 2921.39 2948.6 2977.36 3007.51 3038.87 3071.25 3104.38 3137.96 3171.72 3205.3 3238.36 3270.54 3301.45 3330.74 3358.04 3383 3405.28 3424.58 3440.61 3453.12 3461.88 3466.75 3467.58 3464.29 3456.93 3445.56 3430.33 3411.43 3389.11 3363.67 3335.46 3304.86 3272.27 3238.1 3202.79 3166.77 3130.49 3094.35 3058.74 3024.16 2990.72 2958.84 2928.75 2900.62 2874.59 2850.74 2829.1 2809.66 2792.38 2777.19 2764.01 2752.76 2743.33 2735.65 2729.61 2725.15 2722.18 2720.65 2720.51 2721.73 2724.25 2728.06 2733.15 2739.5 2747.12 2756 2766.16 2777.62 2790.38 2804.48 2819.95 2836.82 2855.12 2874.91 2896.19 2918.99 2943.31 2969.12 2996.37 3024.99 3054.86 3085.82 3117.63 3150.04 3182.77 3215.49 3247.82 3279.37 3309.7 3338.37 3364.95 3388.99 3410.08 3427.85 3441.95 3452.11 3458.11 3459.79 3457.08 3450.02 3438.68 3423.22 3403.89 3381.01 3354.96 3326.2 3295.17 3262.4 3228.39 3193.64 3158.64 3123.85 3089.69 3056.52 3024.62 2994.25 2965.58 2938.74 2913.82 2890.84 2869.8 2850.67 2833.4 2817.93 2804.2 2792.16 2781.73 2772.85 2765.45 2759.48 2754.87 2751.56 2749.51 2748.67 2749.01 2750.5 2753.13 2756.89 2761.8 2767.88 2775.15 2783.64 2793.41 2804.5 2816.96 2830.85 2846.2 2863.06 2881.46 2901.42 2922.96 2946.05 2970.68 2996.79 3024.3 3053.08 3083.01 3113.9 3145.54 3177.62 3209.86 3241.92 3273.45 3304.03 3333.26 3360.67 3385.84 3408.31 3427.67 3443.54 3455.56 3463.48 3467.09 3466.27 3461.02 3451.41 3437.59 3419.81 3398.38 3373.68 3346.15 3316.27 3284.54 3251.45 3217.52 3183.23 3149.02 3115.32 3082.49 3050.81 3020.55 2991.91 2965.02 2939.98 2916.85 2895.63 2876.31 2858.84 2843.17 2829.22 2816.9 2806.14 2796.86 2788.99 2782.49 2777.28 2773.33 2770.6 2769.05 2768.64 2769.36 2771.32 2774.41 2778.61 2783.95 2790.44 2798.09 2806.92 2816.95 2828.2 2840.72 2854.53 2869.7 2886.25 2904.23 2923.66 2944.59 2967.02 2990.99 3016.47 3043.41 3071.71 3101.12 3130.65 3161.67 3193.42 3225.41 3257.24 3288.44 3318.47 3346.87 3373.14 3396.79 3417.39 3434.53 3447.91 3457.27 3462.45 3463.35 3459.68 3451.79 3439.81 3424.03 3404.8 3382.48 3357.48 3330.29 3301.37 3271.2 3240.21 3208.84 3177.48 3146.49 3116.13 3086.84 3059.34 3032.35 3006.47 2981.87 2958.6 2936.67 2916.09 2896.86 2878.94 2862.31 2846.98 2832.92 2820.14 2808.64 2798.46 2789.61 2782.13 2776.06 2771.42 2768.26 2766.61 2766.53 2768.31 2771.77 2776.91 2783.74 2792.24 2802.42 2814.28 2827.8 2842.96 2859.7 2878.01 2897.88 3361.57 3378.11 3390.74 3399.34 3403.82 3404.06 3399.71 3391.14 3378.46 3361.84 3341.5 3317.76 3290.98 3261.52 3229.82 3196.27 3161.33 3125.49 3089.17 3052.81 3016.83 2981.69 2950.54 2917.9 2886.53 2856.74 2828.69 2802.47 2778.14 2755.72 2735.2 2716.55 2699.75 2684.75 2671.49 2659.91 2649.97 2641.6 2634.77 2629.42 2625.53 2623.07 2622.03 2622.57 2624.55 2627.99 2632.92 2639.37 2647.38 2657.02 2668.32 2681.32 2696.07 2712.61 2730.98 2751.17 2773.19 2797.01 2822.58 2849.81 2878.61 2908.8 2940.22 2972.68 3005.9 3039.58 3073.45 3107.15 3140.35 3172.67 3203.72 3233.16 3260.6 3285.7 3308.12 3327.55 3343.69 3356.29 3365.12 3370.04 3370.89 3367.59 3360.19 3348.77 3333.44 3314.42 3291.97 3266.39 3238.02 3207.25 3174.49 3140.15 3104.68 3068.51 3032.08 2995.81 2960.09 2925.39 2891.88 2859.94 2829.8 2801.65 2775.61 2751.77 2730.15 2710.73 2693.49 2678.34 2665.2 2653.98 2644.6 2636.95 2630.94 2626.51 2623.56 2622.05 2621.93 2623.16 2625.69 2629.5 2634.59 2640.94 2648.55 2657.43 2667.58 2679.02 2691.77 2705.85 2721.3 2738.15 2756.44 2776.2 2797.47 2820.26 2844.57 2870.39 2897.66 2926.3 2956.21 2987.24 3019.12 3051.63 3084.47 3117.32 3149.8 3181.5 3212 3240.85 3267.6 3291.81 3313.06 3330.96 3345.18 3355.43 3361.49 3363.2 3360.48 3353.38 3341.96 3326.38 3306.91 3283.87 3257.64 3228.68 3197.47 3164.5 3130.3 3095.38 3060.23 3025.3 2991.03 2957.77 2925.8 2895.38 2866.69 2839.84 2814.93 2791.96 2770.95 2751.84 2734.6 2719.17 2705.47 2693.45 2683.05 2674.2 2666.83 2660.89 2656.3 2653.01 2650.97 2650.14 2650.49 2651.99 2654.62 2658.38 2663.28 2669.34 2676.6 2685.08 2694.82 2705.89 2718.33 2732.19 2747.53 2764.37 2782.75 2802.7 2824.22 2847.32 2871.95 2898.08 2925.61 2954.43 2984.41 3015.36 3047.09 3079.27 3111.62 3143.82 3175.49 3206.23 3235.62 3263.22 3288.56 3311.2 3330.72 3346.72 3358.86 3366.86 3370.51 3369.7 3364.41 3354.73 3340.81 3322.89 3301.3 3276.43 3248.71 3218.64 3186.71 3153.44 3119.34 3084.89 3050.54 3016.73 2983.79 2952.04 2921.73 2893.05 2866.14 2841.1 2817.97 2796.77 2777.48 2760.05 2744.41 2730.49 2718.21 2707.48 2698.23 2690.4 2683.91 2678.72 2674.79 2672.08 2670.53 2670.14 2670.85 2672.82 2675.9 2680.11 2685.44 2691.92 2699.56 2708.38 2718.39 2729.63 2742.12 2755.91 2771.06 2787.58 2805.53 2824.94 2845.85 2868.27 2892.22 2917.71 2944.67 2973 3002.48 3032.03 3063.14 3095.02 3127.15 3159.15 3190.52 3220.74 3249.34 3275.8 3299.63 3320.39 3337.67 3351.16 3360.6 3365.81 3366.71 3363.01 3355.05 3342.97 3327.06 3307.67 3285.18 3260.01 3232.64 3203.55 3173.2 3142.07 3110.56 3079.08 3048 3017.58 2988.23 2960.67 2933.67 2907.79 2883.18 2859.92 2838 2817.44 2798.22 2780.31 2763.7 2748.38 2734.32 2721.55 2710.05 2699.87 2691.01 2683.53 2677.44 2672.79 2669.62 2667.96 2667.87 2669.64 2673.09 2678.23 2685.06 2693.55 2703.73 2715.58 2729.1 2744.26 2761 2779.32 2799.19 3264.71 3281.38 3294.12 3302.8 3307.32 3307.59 3303.23 3294.59 3281.82 3265.09 3244.6 3220.69 3193.73 3164.09 3132.19 3098.45 3063.33 3027.31 2990.84 2954.35 2918.28 2883.09 2851.61 2818.96 2787.58 2757.78 2729.72 2703.5 2679.19 2656.78 2636.28 2617.67 2600.9 2585.92 2572.69 2561.14 2551.23 2542.88 2536.07 2530.74 2526.86 2524.4 2523.36 2523.9 2525.88 2529.3 2534.22 2540.64 2548.64 2558.25 2569.52 2582.5 2597.23 2613.74 2632.09 2652.27 2674.28 2698.11 2723.69 2750.95 2779.78 2810.03 2841.52 2874.06 2907.37 2941.16 2975.16 3009 3042.34 3074.82 3106.03 3135.63 3163.24 3188.49 3211.06 3230.63 3246.89 3259.6 3268.52 3273.48 3274.36 3271.06 3263.62 3252.12 3236.69 3217.55 3194.94 3169.19 3140.65 3109.7 3076.75 3042.22 3006.57 2970.22 2933.63 2897.22 2861.38 2826.55 2792.96 2760.95 2730.76 2702.58 2676.53 2652.7 2631.1 2611.72 2594.51 2579.4 2566.31 2555.13 2545.79 2538.18 2532.21 2527.8 2524.89 2523.4 2523.29 2524.53 2527.07 2530.89 2535.98 2542.32 2549.93 2558.81 2568.95 2580.38 2593.11 2607.17 2622.6 2639.42 2657.69 2677.43 2698.68 2721.46 2745.76 2771.58 2798.87 2827.55 2857.51 2888.61 2920.57 2953.18 2986.15 3019.14 3051.78 3083.67 3114.35 3143.39 3170.33 3194.73 3216.15 3234.22 3248.57 3258.92 3265.04 3266.78 3264.06 3256.9 3245.39 3229.69 3210.06 3186.84 3160.41 3131.23 3099.8 3066.62 3032.21 2997.1 2961.77 2926.7 2892.3 2858.94 2826.9 2796.43 2767.7 2740.85 2715.94 2693 2672.01 2652.94 2635.73 2620.33 2606.67 2594.68 2584.32 2575.49 2568.16 2562.24 2557.68 2554.41 2552.39 2551.57 2551.93 2553.43 2556.06 2559.82 2564.71 2570.76 2578 2586.46 2596.18 2607.23 2619.64 2633.48 2648.79 2665.61 2683.97 2703.9 2725.42 2748.51 2773.15 2799.3 2826.85 2855.72 2885.75 2916.77 2948.61 2980.89 3013.36 3045.71 3077.54 3108.46 3138.04 3165.83 3191.37 3214.2 3233.9 3250.05 3262.31 3270.4 3274.1 3273.3 3267.98 3258.22 3244.18 3226.11 3204.34 3179.27 3151.35 3121.06 3088.91 3055.44 3021.14 2986.51 2952.02 2918.07 2885.03 2853.2 2822.82 2794.1 2767.18 2742.13 2719.01 2697.83 2678.57 2661.17 2645.58 2631.7 2619.46 2608.77 2599.55 2591.74 2585.28 2580.12 2576.21 2573.51 2571.98 2571.59 2572.3 2574.28 2577.36 2581.56 2586.89 2593.36 2600.99 2609.79 2619.79 2631 2643.47 2657.24 2672.35 2688.85 2706.77 2726.15 2747.04 2769.44 2793.38 2818.87 2845.85 2874.23 2903.77 2933.34 2964.56 2996.58 3028.87 3061.06 3092.63 3123.06 3151.87 3178.54 3202.57 3223.51 3240.95 3254.56 3264.08 3269.34 3270.25 3266.51 3258.46 3246.28 3230.21 3210.66 3187.98 3162.61 3135.04 3105.75 3075.22 3043.91 3012.26 2980.65 2949.46 2918.97 2889.57 2861.95 2834.92 2809.03 2784.43 2761.17 2739.27 2718.73 2699.52 2681.63 2665.04 2649.72 2635.67 2622.9 2611.41 2601.22 2592.36 2584.86 2578.77 2574.11 2570.92 2569.25 2569.14 2570.9 2574.35 2579.49 2586.31 2594.79 2604.97 2616.82 2630.33 2645.49 2662.23 2680.56 2700.44 3167.97 3184.79 3197.65 3206.42 3211 3211.28 3206.91 3198.21 3185.34 3168.47 3147.82 3123.73 3096.57 3066.72 3034.6 3000.65 2965.33 2929.13 2892.48 2855.85 2819.67 2784.42 2752.63 2719.95 2688.54 2658.72 2630.66 2604.45 2580.14 2557.75 2537.28 2518.7 2501.96 2487.02 2473.82 2462.31 2452.42 2444.1 2437.31 2432 2428.13 2425.68 2424.65 2425.18 2427.14 2430.56 2435.45 2441.85 2449.82 2459.41 2470.65 2483.6 2498.31 2514.79 2533.12 2553.29 2575.29 2599.13 2624.73 2652.01 2680.88 2711.18 2742.74 2775.38 2808.8 2842.71 2876.85 2910.84 2944.34 2976.99 3008.38 3038.15 3065.94 3091.37 3114.11 3133.83 3150.23 3163.05 3172.06 3177.09 3178 3174.68 3167.19 3155.61 3140.08 3120.79 3098.02 3072.1 3043.36 3012.2 2979.04 2944.31 2908.45 2871.92 2835.15 2798.57 2762.59 2727.63 2693.95 2661.86 2631.62 2603.41 2577.35 2553.53 2531.95 2512.61 2495.44 2480.38 2467.33 2456.21 2446.91 2439.34 2433.41 2429.04 2426.16 2424.69 2424.6 2425.86 2428.41 2432.23 2437.32 2443.66 2451.27 2460.13 2470.26 2481.67 2494.39 2508.43 2523.83 2540.63 2558.87 2578.59 2599.82 2622.58 2646.88 2672.71 2700.01 2728.72 2758.73 2789.92 2821.97 2854.7 2887.8 2920.96 2953.78 2985.85 3016.74 3045.99 3073.15 3097.75 3119.37 3137.61 3152.11 3162.57 3168.76 3170.53 3167.81 3160.6 3148.99 3133.15 3113.34 3089.91 3063.26 3033.85 3002.18 2968.76 2934.12 2898.8 2863.28 2828.04 2793.5 2760.03 2727.91 2697.38 2668.63 2641.77 2616.86 2593.94 2572.99 2553.95 2536.78 2521.42 2507.79 2495.85 2485.51 2476.73 2469.42 2463.54 2459 2455.76 2453.76 2452.96 2453.33 2454.83 2457.46 2461.21 2466.1 2472.13 2479.35 2487.79 2497.49 2508.51 2520.89 2534.7 2549.98 2566.78 2585.12 2605.04 2626.54 2649.63 2674.28 2700.44 2728.03 2756.94 2787.03 2818.13 2850.08 2882.47 2915.09 2947.59 2979.61 3010.72 3040.51 3068.52 3094.27 3117.31 3137.2 3153.53 3165.93 3174.12 3177.87 3177.08 3171.72 3161.87 3147.7 3129.47 3107.5 3082.21 3054.05 3023.52 2991.15 2957.44 2922.93 2888.11 2853.45 2819.36 2786.19 2754.27 2723.83 2695.07 2668.12 2643.07 2619.97 2598.81 2579.58 2562.22 2546.67 2532.84 2520.64 2509.99 2500.81 2493.03 2486.6 2481.46 2477.57 2474.89 2473.37 2472.99 2473.71 2475.7 2478.77 2482.96 2488.28 2494.75 2502.36 2511.15 2521.13 2532.32 2544.76 2558.51 2573.59 2590.05 2607.94 2627.29 2648.15 2670.53 2694.46 2719.96 2746.96 2775.38 2805 2834.58 2865.93 2898.1 2930.58 2962.96 2994.76 3025.42 3054.47 3081.36 3105.62 3126.76 3144.37 3158.11 3167.73 3173.04 3173.95 3170.18 3162.04 3149.72 3133.5 3113.75 3090.87 3065.27 3037.48 3007.98 2977.24 2945.75 2913.93 2882.19 2850.88 2820.31 2790.85 2763.15 2736.11 2710.21 2685.61 2662.36 2640.47 2619.95 2600.77 2582.89 2566.31 2551.01 2536.97 2524.2 2512.71 2502.51 2493.65 2486.14 2480.03 2475.36 2472.16 2470.48 2470.34 2472.1 2475.55 2480.68 2487.49 2495.97 2506.14 2517.98 2531.5 2546.65 2563.4 2581.73 2601.63 3071.36 3088.34 3101.34 3110.2 3114.84 3115.15 3110.75 3101.98 3089 3071.99 3051.17 3026.87 2999.49 2969.41 2937.07 2902.88 2867.33 2830.93 2794.1 2757.3 2721.01 2685.68 2653.58 2620.86 2589.41 2559.58 2531.51 2505.3 2481.01 2458.65 2438.2 2419.65 2402.95 2388.05 2374.89 2363.41 2353.55 2345.26 2338.49 2333.2 2329.35 2326.91 2325.87 2326.4 2328.36 2331.75 2336.62 2343 2350.94 2360.5 2371.71 2384.63 2399.31 2415.77 2434.08 2454.23 2476.23 2500.06 2525.67 2552.99 2581.9 2612.27 2643.9 2676.65 2710.18 2744.23 2778.51 2812.67 2846.35 2879.18 2910.77 2940.74 2968.72 2994.34 3017.26 3037.15 3053.7 3066.65 3075.76 3080.85 3081.79 3078.46 3070.93 3059.26 3043.6 3024.16 3001.21 2975.09 2946.13 2914.75 2881.36 2846.41 2810.33 2773.59 2736.62 2699.87 2663.74 2628.64 2594.84 2562.68 2532.38 2504.14 2478.07 2454.26 2432.71 2413.4 2396.28 2381.27 2368.28 2357.21 2347.97 2340.44 2334.56 2330.22 2327.37 2325.93 2325.86 2327.13 2329.69 2333.52 2338.6 2344.95 2352.55 2361.4 2371.52 2382.92 2395.61 2409.63 2425.01 2441.78 2459.99 2479.68 2500.89 2523.63 2547.93 2573.76 2601.09 2629.83 2659.89 2691.17 2723.32 2756.17 2789.43 2822.76 2855.77 2888.06 2919.17 2948.66 2976.05 3000.88 3022.71 3041.14 3055.8 3066.38 3072.66 3074.47 3071.73 3064.46 3052.74 3036.75 3016.75 2993.1 2966.2 2936.53 2904.59 2870.92 2836.03 2800.47 2764.75 2729.33 2694.64 2661.05 2628.84 2598.25 2569.46 2542.59 2517.7 2494.8 2473.88 2454.88 2437.75 2422.43 2408.85 2396.94 2386.65 2377.9 2370.63 2364.78 2360.27 2357.06 2355.08 2354.3 2354.68 2356.19 2358.82 2362.56 2367.44 2373.46 2380.65 2389.07 2398.74 2409.73 2422.08 2435.86 2451.12 2467.88 2486.21 2506.1 2527.6 2550.68 2575.34 2601.52 2629.14 2658.1 2688.25 2719.43 2751.5 2784.03 2816.8 2849.47 2881.68 2913.02 2943.03 2971.27 2997.26 3020.54 3040.64 3057.15 3069.71 3078 3081.82 3081.04 3075.63 3065.69 3051.38 3032.96 3010.77 2985.24 2956.83 2926.04 2893.41 2859.45 2824.71 2789.68 2754.83 2720.58 2687.29 2655.27 2624.76 2595.95 2568.97 2543.92 2520.83 2499.7 2480.5 2463.19 2447.69 2433.91 2421.76 2411.15 2402.01 2394.27 2387.87 2382.76 2378.89 2376.22 2374.73 2374.36 2375.07 2377.07 2380.14 2384.32 2389.64 2396.09 2403.69 2412.47 2422.42 2433.59 2446 2459.71 2474.76 2491.19 2509.04 2528.37 2549.2 2571.55 2595.47 2620.97 2647.99 2676.47 2706.17 2735.75 2767.24 2799.59 2832.26 2864.86 2896.9 2927.81 2957.12 2984.28 3008.77 3030.14 3047.93 3061.82 3071.54 3076.91 3077.82 3074.01 3065.77 3053.31 3036.91 3016.96 2993.84 2968.01 2939.97 2910.23 2879.28 2847.58 2815.58 2783.68 2752.24 2721.59 2692.08 2664.3 2637.23 2611.32 2586.72 2563.48 2541.62 2521.11 2501.95 2484.1 2467.54 2452.24 2438.21 2425.45 2413.95 2403.75 2394.88 2387.37 2381.25 2376.56 2373.35 2371.64 2371.49 2373.24 2376.68 2381.81 2388.61 2397.08 2407.24 2419.08 2432.59 2447.75 2464.5 2482.83 2502.74 2974.87 2992.03 3005.17 3014.14 3018.84 3019.18 3014.76 3005.92 2992.82 2975.65 2954.63 2930.11 2902.5 2872.17 2839.57 2805.14 2769.34 2732.71 2695.68 2658.71 2622.28 2586.86 2554.46 2521.68 2490.2 2460.35 2432.27 2406.06 2381.79 2359.45 2339.04 2320.53 2303.86 2289 2275.88 2264.44 2254.61 2246.36 2239.61 2234.34 2230.51 2228.08 2227.04 2227.57 2229.51 2232.88 2237.74 2244.09 2252 2261.53 2272.7 2285.59 2300.24 2316.67 2334.95 2355.09 2377.07 2400.91 2426.54 2453.89 2482.85 2513.28 2545 2577.86 2611.51 2645.71 2680.15 2714.49 2748.37 2781.4 2813.19 2843.38 2871.57 2897.4 2920.51 2940.59 2957.31 2970.39 2979.61 2984.77 2985.75 2982.41 2974.82 2963.06 2947.26 2927.66 2904.52 2878.17 2848.98 2817.36 2783.72 2748.52 2712.21 2675.23 2638.06 2601.12 2564.82 2529.57 2495.66 2463.4 2433.04 2404.76 2378.69 2354.88 2333.36 2314.1 2297.04 2282.08 2269.15 2258.14 2248.95 2241.48 2235.63 2231.34 2228.52 2227.12 2227.06 2228.35 2230.92 2234.75 2239.84 2246.19 2253.78 2262.62 2272.73 2284.11 2296.78 2310.77 2326.12 2342.86 2361.04 2380.71 2401.89 2424.62 2448.9 2474.74 2502.08 2530.87 2560.98 2592.36 2624.62 2657.61 2691.03 2724.55 2757.77 2790.29 2821.65 2851.39 2879.03 2904.11 2926.17 2944.81 2959.64 2970.36 2976.73 2978.58 2975.83 2968.49 2956.65 2940.5 2920.29 2896.39 2869.23 2839.28 2807.05 2773.09 2737.94 2702.12 2666.17 2630.55 2595.7 2561.98 2529.68 2499.03 2470.2 2443.32 2418.44 2395.57 2374.68 2355.73 2338.65 2323.37 2309.83 2297.97 2287.72 2279.01 2271.79 2265.97 2261.5 2258.31 2256.35 2255.59 2255.98 2257.5 2260.13 2263.87 2268.73 2274.73 2281.91 2290.3 2299.94 2310.89 2323.21 2336.96 2352.18 2368.92 2387.22 2407.1 2428.58 2451.66 2476.32 2502.52 2530.18 2559.19 2589.42 2620.67 2652.89 2685.55 2718.48 2751.35 2783.77 2815.34 2845.6 2874.09 2900.34 2923.87 2944.21 2960.93 2973.65 2982.07 2985.95 2985.17 2979.72 2969.68 2955.21 2936.59 2914.17 2888.38 2859.69 2828.61 2795.69 2761.47 2726.47 2691.21 2656.16 2621.74 2588.31 2556.18 2525.59 2496.73 2469.74 2444.68 2421.6 2400.5 2381.35 2364.08 2348.63 2334.91 2322.81 2312.26 2303.16 2295.45 2289.08 2284 2280.16 2277.51 2276.03 2275.68 2276.39 2278.4 2281.46 2285.64 2290.94 2297.39 2304.98 2313.73 2323.67 2334.8 2347.19 2360.87 2375.87 2392.26 2410.08 2429.37 2450.17 2472.5 2496.4 2521.89 2548.94 2577.48 2607.28 2636.85 2668.5 2701.03 2733.91 2766.76 2799.06 2830.25 2859.84 2887.27 2912.03 2933.64 2951.64 2965.69 2975.52 2980.94 2981.86 2978 2969.66 2957.05 2940.45 2920.28 2896.91 2870.81 2842.51 2812.51 2781.31 2749.4 2717.19 2685.13 2653.56 2622.8 2593.24 2565.39 2538.29 2512.36 2487.76 2464.54 2442.69 2422.21 2403.07 2385.24 2368.7 2353.42 2339.4 2326.64 2315.15 2304.94 2296.06 2288.53 2282.4 2277.7 2274.47 2272.75 2272.57 2274.32 2277.75 2282.87 2289.67 2298.13 2308.28 2320.11 2333.62 2348.78 2365.53 2383.87 2403.79 2878.51 2895.86 2909.15 2918.24 2923.02 2923.38 2918.93 2910.01 2896.78 2879.44 2858.22 2833.46 2805.6 2774.99 2742.12 2707.41 2671.36 2634.48 2597.23 2560.08 2523.48 2487.96 2455.28 2422.43 2390.91 2361.02 2332.94 2306.74 2282.48 2260.17 2239.79 2221.32 2204.7 2189.88 2176.8 2165.4 2155.62 2147.39 2140.68 2135.43 2131.61 2129.19 2128.16 2128.68 2130.61 2133.96 2138.79 2145.11 2152.99 2162.49 2173.62 2186.48 2201.09 2217.49 2235.75 2255.86 2277.84 2301.68 2327.33 2354.7 2383.72 2414.22 2446.03 2479.01 2512.8 2547.15 2581.77 2616.3 2650.38 2683.64 2715.66 2746.07 2774.5 2800.55 2823.88 2844.15 2861.04 2874.28 2883.62 2888.86 2889.87 2886.52 2878.87 2867 2851.06 2831.28 2807.93 2781.35 2751.91 2720.02 2686.12 2650.65 2614.07 2576.86 2539.45 2502.3 2465.82 2430.41 2396.38 2364.02 2333.6 2305.28 2279.2 2255.41 2233.92 2214.71 2197.7 2182.81 2169.94 2158.99 2149.86 2142.44 2136.65 2132.4 2129.62 2128.25 2128.21 2129.52 2132.1 2135.94 2141.03 2147.37 2154.96 2163.79 2173.88 2185.24 2197.89 2211.86 2227.17 2243.88 2262.03 2281.66 2302.82 2325.52 2349.8 2375.64 2403.01 2431.84 2462.01 2493.5 2525.87 2559 2592.6 2626.32 2659.77 2692.54 2724.17 2754.18 2782.1 2807.44 2829.76 2848.62 2863.64 2874.51 2880.97 2882.86 2880.1 2872.69 2860.73 2844.39 2823.96 2799.8 2772.35 2742.09 2709.55 2675.28 2639.84 2603.75 2567.55 2531.72 2496.7 2462.83 2430.43 2399.71 2370.85 2343.95 2319.09 2296.25 2275.4 2256.49 2239.46 2224.24 2210.75 2198.93 2188.73 2180.07 2172.88 2167.1 2162.66 2159.51 2157.58 2156.83 2157.24 2158.77 2161.4 2165.13 2169.98 2175.96 2183.11 2191.47 2201.08 2212 2224.29 2238 2253.19 2269.9 2288.16 2308.02 2329.49 2352.56 2377.23 2403.46 2431.15 2460.22 2490.52 2521.86 2554.23 2587.04 2620.15 2653.22 2685.87 2717.68 2748.21 2776.99 2803.52 2827.32 2847.91 2864.85 2877.76 2886.3 2890.26 2889.49 2883.99 2873.83 2859.19 2840.35 2817.68 2791.6 2762.61 2731.23 2698 2663.49 2628.22 2592.71 2557.44 2522.84 2489.26 2457.01 2426.34 2397.43 2370.41 2345.35 2322.28 2301.21 2282.11 2264.9 2249.51 2235.84 2223.8 2213.3 2204.25 2196.58 2190.25 2185.19 2181.38 2178.76 2177.29 2176.96 2177.7 2179.69 2182.75 2186.91 2192.2 2198.64 2206.21 2214.95 2224.86 2235.97 2248.32 2261.96 2276.92 2293.27 2311.05 2330.3 2351.06 2373.36 2397.25 2422.74 2449.82 2478.42 2508.32 2537.87 2569.7 2602.43 2635.54 2668.65 2701.23 2732.72 2762.62 2790.35 2815.4 2837.26 2855.49 2869.71 2879.67 2885.15 2886.08 2882.16 2873.71 2860.93 2844.13 2823.7 2800.07 2773.68 2745.1 2714.82 2683.36 2651.2 2618.79 2586.54 2554.82 2523.96 2494.35 2466.41 2439.27 2413.34 2388.74 2365.53 2343.71 2323.25 2304.14 2286.33 2269.81 2254.55 2240.54 2227.78 2216.28 2206.07 2197.18 2189.64 2183.5 2178.79 2175.54 2173.79 2173.58 2175.33 2178.76 2183.87 2190.66 2199.11 2209.25 2221.08 2234.58 2249.74 2266.49 2284.84 2304.78 2782.28 2799.83 2813.29 2822.5 2827.36 2827.76 2823.28 2814.27 2800.9 2783.38 2761.93 2736.92 2708.78 2677.88 2644.71 2609.71 2573.37 2536.24 2498.75 2461.39 2424.62 2388.99 2356.02 2323.09 2291.52 2261.61 2233.51 2207.32 2183.08 2160.8 2140.46 2122.03 2105.46 2090.69 2077.66 2066.3 2056.56 2048.37 2041.68 2036.46 2032.66 2030.25 2029.22 2029.74 2031.65 2034.98 2039.78 2046.07 2053.92 2063.38 2074.48 2087.29 2101.86 2118.23 2136.46 2156.56 2178.52 2202.36 2228.03 2255.44 2284.51 2315.08 2346.98 2380.11 2414.03 2448.55 2483.36 2518.1 2552.41 2585.9 2618.16 2648.82 2677.49 2703.79 2727.35 2747.83 2764.92 2778.32 2787.78 2793.11 2794.16 2790.79 2783.09 2771.1 2755.01 2735.03 2711.45 2684.61 2654.9 2622.73 2588.54 2552.79 2515.93 2478.46 2440.81 2403.43 2366.76 2331.18 2297 2264.55 2234.05 2205.7 2179.6 2155.83 2134.38 2115.22 2098.27 2083.45 2070.65 2059.77 2050.7 2043.35 2037.61 2033.41 2030.67 2029.32 2029.32 2030.64 2033.23 2037.08 2042.17 2048.51 2056.08 2064.91 2074.98 2086.32 2098.95 2112.88 2128.17 2144.84 2162.95 2182.55 2203.67 2226.36 2250.63 2276.47 2303.86 2332.73 2362.96 2394.57 2427.06 2460.36 2494.14 2528.08 2561.78 2594.81 2626.73 2657.03 2685.25 2710.88 2733.47 2752.57 2767.8 2778.82 2785.39 2787.33 2784.55 2777.07 2764.97 2748.44 2727.76 2703.32 2675.55 2644.96 2612.09 2577.49 2541.73 2505.35 2468.89 2432.83 2397.61 2363.6 2331.09 2300.29 2271.39 2244.49 2219.64 2196.83 2176.03 2157.18 2140.2 2125.03 2111.59 2099.83 2089.67 2081.06 2073.92 2068.18 2063.78 2060.66 2058.75 2058.03 2058.45 2059.99 2062.62 2066.35 2071.18 2077.14 2084.27 2092.6 2102.17 2113.05 2125.3 2138.97 2154.13 2170.8 2189.04 2208.87 2230.32 2253.39 2278.07 2304.31 2332.05 2361.18 2391.56 2422.99 2455.53 2488.48 2521.79 2555.08 2587.97 2620.06 2650.88 2679.95 2706.78 2730.88 2751.74 2768.93 2782.03 2790.72 2794.75 2794 2788.43 2778.15 2763.33 2744.26 2721.31 2694.93 2665.61 2633.9 2600.34 2565.51 2529.95 2494.17 2458.66 2423.87 2390.13 2357.76 2327 2298.03 2270.98 2245.92 2222.88 2201.84 2182.78 2165.63 2150.3 2136.7 2124.73 2114.28 2105.28 2097.65 2091.36 2086.34 2082.55 2079.95 2078.51 2078.19 2078.97 2080.93 2083.98 2088.14 2093.42 2099.84 2107.4 2116.12 2126 2137.08 2149.4 2162.99 2177.91 2194.22 2211.95 2231.16 2251.89 2274.16 2298.02 2323.51 2350.61 2379.28 2409.31 2438.81 2470.84 2503.79 2537.14 2570.53 2603.41 2635.23 2665.45 2693.51 2718.87 2741.02 2759.48 2773.9 2783.98 2789.53 2790.46 2786.48 2777.92 2764.96 2747.93 2727.24 2703.31 2676.62 2647.73 2617.15 2585.4 2552.99 2520.35 2487.91 2456.03 2425.04 2395.39 2367.36 2340.19 2314.24 2289.65 2266.45 2244.65 2224.23 2205.14 2187.36 2170.86 2155.62 2141.62 2128.87 2117.37 2107.15 2098.25 2090.7 2084.54 2079.81 2076.54 2074.78 2074.54 2076.28 2079.7 2084.81 2091.58 2100.03 2110.16 2121.97 2135.47 2150.63 2167.39 2185.74 2205.69 2686.18 2703.94 2717.59 2726.93 2731.87 2732.3 2727.79 2718.69 2705.18 2687.45 2665.77 2640.48 2612.04 2580.83 2547.34 2512.03 2475.39 2437.97 2400.23 2362.66 2325.69 2289.94 2256.69 2223.68 2192.05 2162.11 2134 2107.81 2083.6 2061.35 2041.05 2022.67 2006.14 1991.42 1978.44 1967.13 1957.43 1949.28 1942.63 1937.43 1933.65 1931.26 1930.22 1930.74 1932.63 1935.95 1940.71 1946.97 1954.78 1964.2 1975.26 1988.04 2002.56 2018.89 2037.09 2057.16 2079.12 2102.96 2128.64 2156.09 2185.22 2215.87 2247.88 2281.13 2315.22 2349.92 2384.93 2419.89 2454.44 2488.18 2520.7 2551.62 2580.56 2607.11 2630.92 2651.63 2668.92 2682.5 2692.1 2697.52 2698.61 2695.24 2687.46 2675.36 2659.09 2638.9 2615.08 2587.97 2557.97 2525.5 2491 2454.93 2417.79 2380.03 2342.11 2304.5 2267.62 2231.86 2197.54 2164.97 2134.4 2106.01 2079.9 2056.15 2034.74 2015.64 1998.76 1984.01 1971.28 1960.47 1951.48 1944.18 1938.5 1934.35 1931.65 1930.35 1930.37 1931.71 1934.31 1938.16 1943.26 1949.59 1957.16 1965.97 1976.03 1987.35 1999.95 2013.85 2029.1 2045.74 2063.81 2083.37 2104.46 2127.12 2151.38 2177.22 2204.64 2233.55 2263.84 2295.59 2328.2 2361.66 2395.65 2429.82 2463.78 2497.11 2529.32 2559.95 2588.48 2614.42 2637.3 2656.67 2672.12 2683.31 2689.99 2691.98 2689.19 2681.62 2669.38 2652.64 2631.7 2606.95 2578.84 2547.9 2514.67 2479.72 2443.61 2406.92 2370.17 2333.87 2298.46 2264.29 2231.65 2200.78 2171.84 2144.93 2120.1 2097.33 2076.58 2057.78 2040.86 2025.75 2012.36 2000.65 1990.55 1981.99 1974.9 1969.21 1964.85 1961.76 1959.88 1959.19 1959.62 1961.17 1963.8 1967.52 1972.33 1978.27 1985.37 1993.67 2003.21 2014.05 2026.25 2039.88 2055 2071.64 2089.84 2109.65 2131.08 2154.15 2178.83 2205.1 2232.88 2262.07 2292.53 2324.1 2356.75 2389.89 2423.4 2456.92 2490.08 2522.46 2553.59 2582.98 2610.14 2634.55 2655.71 2673.16 2686.47 2695.31 2699.43 2698.68 2693.06 2682.65 2667.63 2648.31 2625.06 2598.35 2568.68 2536.61 2502.7 2467.53 2431.66 2395.6 2359.84 2324.84 2290.92 2258.42 2227.57 2198.54 2171.46 2146.4 2123.38 2102.38 2083.37 2066.29 2051.03 2037.5 2025.59 2015.2 2006.25 1998.67 1992.42 1987.43 1983.67 1981.11 1979.68 1979.39 1980.2 1982.14 1985.18 1989.33 1994.59 2001 2008.54 2017.24 2027.09 2038.14 2050.42 2063.97 2078.84 2095.1 2112.79 2131.95 2152.64 2174.87 2198.71 2224.2 2251.32 2280.07 2310.24 2339.67 2371.92 2405.1 2438.72 2472.4 2505.61 2537.77 2568.35 2596.76 2622.45 2644.9 2663.62 2678.24 2688.47 2694.09 2695.03 2690.98 2682.29 2669.14 2651.87 2630.89 2606.65 2579.63 2550.4 2519.5 2487.45 2454.76 2421.88 2389.23 2357.18 2326.06 2296.37 2268.25 2241.04 2215.08 2190.49 2167.31 2145.54 2125.14 2106.09 2088.34 2071.86 2056.63 2042.65 2029.9 2018.4 2008.18 1999.27 1991.7 1985.52 1980.78 1977.49 1975.7 1975.43 1977.17 1980.58 1985.68 1992.44 2000.87 2010.99 2022.8 2036.3 2051.45 2068.21 2086.58 2106.54 2590.2 2608.2 2622.04 2631.53 2636.56 2637.02 2632.47 2623.27 2609.6 2591.67 2569.73 2544.14 2515.39 2483.85 2450.02 2414.37 2377.41 2339.69 2301.68 2263.87 2226.71 2190.8 2157.29 2124.18 2092.49 2062.51 2034.39 2008.22 1984.02 1961.81 1941.55 1923.22 1906.75 1892.09 1879.16 1867.9 1858.24 1850.13 1843.52 1838.35 1834.59 1832.21 1831.18 1831.69 1833.56 1836.85 1841.59 1847.81 1855.58 1864.96 1875.97 1888.7 1903.18 1919.48 1937.64 1957.69 1979.63 2003.47 2029.17 2056.66 2085.85 2116.59 2148.71 2182.1 2216.35 2251.24 2286.47 2321.67 2356.47 2390.47 2423.28 2454.48 2483.7 2510.52 2534.6 2555.55 2573.07 2586.83 2596.58 2602.09 2603.23 2599.84 2591.99 2579.76 2563.32 2542.9 2518.82 2491.42 2461.11 2428.31 2393.48 2357.1 2319.63 2281.57 2243.38 2205.51 2168.41 2132.45 2097.98 2065.29 2034.64 2006.21 1980.1 1956.36 1935 1915.96 1899.15 1884.48 1871.83 1861.1 1852.18 1844.95 1839.33 1835.23 1832.58 1831.32 1831.36 1832.73 1835.35 1839.2 1844.29 1850.62 1858.19 1866.99 1877.03 1888.32 1900.89 1914.76 1929.97 1946.57 1964.6 1984.11 2005.17 2027.8 2052.05 2077.9 2105.34 2134.3 2164.68 2196.51 2229.28 2262.92 2297.12 2331.54 2365.79 2399.42 2431.96 2462.92 2491.8 2518.07 2541.27 2560.91 2576.6 2587.97 2594.77 2596.82 2594.01 2586.36 2573.95 2556.99 2535.77 2510.69 2482.22 2450.9 2417.29 2381.96 2345.49 2308.46 2271.41 2234.84 2199.22 2164.88 2132.13 2101.18 2072.19 2045.27 2020.46 1997.73 1977.04 1958.3 1941.44 1926.39 1913.06 1901.41 1891.37 1882.86 1875.82 1870.18 1865.87 1862.81 1860.97 1860.29 1860.75 1862.31 1864.94 1868.64 1873.44 1879.36 1886.43 1894.69 1904.19 1914.98 1927.14 1940.73 1955.81 1972.41 1990.58 2010.35 2031.76 2054.82 2079.52 2105.81 2133.63 2162.89 2193.44 2225.14 2257.92 2291.26 2324.99 2358.76 2392.2 2424.88 2456.34 2486.08 2513.59 2538.34 2559.82 2577.54 2591.08 2600.08 2604.29 2603.56 2597.87 2587.32 2572.09 2552.5 2528.93 2501.87 2471.83 2439.37 2405.09 2369.56 2333.35 2296.98 2260.95 2225.73 2191.63 2158.99 2128.04 2098.96 2071.85 2046.78 2023.78 2002.83 1983.88 1966.86 1951.67 1938.22 1926.38 1916.06 1907.17 1899.64 1893.43 1888.48 1884.75 1882.21 1880.81 1880.53 1881.39 1883.3 1886.33 1890.46 1895.72 1902.11 1909.64 1918.31 1928.14 1939.15 1951.39 1964.89 1979.72 1995.92 2013.55 2032.67 2053.31 2075.51 2099.32 2124.8 2151.95 2180.77 2211.1 2240.44 2272.94 2306.37 2340.26 2374.26 2407.82 2440.35 2471.31 2500.09 2526.14 2548.91 2567.91 2582.75 2593.13 2598.83 2599.77 2595.65 2586.83 2573.47 2555.93 2534.65 2510.08 2482.7 2453.12 2421.87 2389.5 2356.52 2323.38 2290.51 2258.27 2227.01 2197.29 2169.08 2141.82 2115.84 2091.26 2068.1 2046.36 2025.99 2006.98 1989.26 1972.8 1957.6 1943.62 1930.88 1919.38 1909.15 1900.23 1892.64 1886.45 1881.68 1878.38 1876.56 1876.26 1877.99 1881.4 1886.48 1893.23 1901.66 1911.76 1923.56 1937.05 1952.21 1968.97 1987.34 2007.32 2494.35 2512.6 2526.65 2536.29 2541.41 2541.92 2537.33 2528.02 2514.19 2496.03 2473.81 2447.91 2418.83 2386.93 2352.74 2316.73 2279.42 2241.38 2203.09 2165.02 2127.65 2091.59 2057.81 2024.59 1992.84 1962.82 1934.69 1908.52 1884.36 1862.18 1841.97 1823.69 1807.28 1792.67 1779.8 1768.6 1758.99 1750.93 1744.34 1739.2 1735.47 1733.1 1732.08 1732.59 1734.44 1737.7 1742.4 1748.58 1756.32 1765.65 1776.62 1789.3 1803.73 1819.98 1838.11 1858.13 1880.05 1903.9 1929.62 1957.15 1986.4 2017.23 2049.47 2083 2117.43 2152.52 2187.98 2223.43 2258.5 2292.79 2325.89 2357.39 2386.91 2414.03 2438.38 2459.6 2477.35 2491.31 2501.21 2506.83 2508.02 2504.62 2496.69 2484.33 2467.69 2447.04 2422.67 2394.97 2364.32 2331.18 2296 2259.26 2221.46 2183.08 2144.59 2106.46 2069.12 2032.95 1998.32 1965.51 1934.78 1906.29 1880.18 1856.47 1835.16 1816.18 1799.45 1784.86 1772.3 1761.66 1752.81 1745.66 1740.1 1736.06 1733.46 1732.23 1732.31 1733.7 1736.33 1740.19 1745.28 1751.6 1759.16 1767.95 1777.97 1789.24 1801.78 1815.62 1830.78 1847.34 1865.32 1884.79 1905.81 1928.42 1952.64 1978.5 2005.96 2034.97 2065.44 2097.36 2130.3 2164.13 2198.56 2233.24 2267.79 2301.74 2334.64 2365.96 2395.2 2421.83 2445.35 2465.3 2481.24 2492.81 2499.74 2501.84 2499.02 2491.27 2478.7 2461.5 2439.98 2414.54 2385.69 2353.97 2319.94 2284.21 2247.35 2209.96 2172.6 2135.75 2099.9 2065.39 2032.5 2001.47 1972.44 1945.52 1920.72 1898.05 1877.41 1858.74 1841.94 1826.96 1813.69 1802.1 1792.12 1783.66 1776.69 1771.1 1766.83 1763.82 1762 1761.36 1761.83 1763.4 1766.03 1769.73 1774.51 1780.4 1787.44 1795.67 1805.12 1815.86 1827.98 1841.52 1856.55 1873.1 1891.24 1910.98 1932.37 1955.42 1980.12 2006.44 2034.31 2063.63 2094.29 2126.12 2159.04 2192.59 2226.55 2260.58 2294.32 2327.33 2359.14 2389.25 2417.13 2442.24 2464.06 2482.08 2495.87 2505.04 2509.35 2508.63 2502.87 2492.17 2476.71 2456.83 2432.92 2405.48 2375.04 2342.18 2307.5 2271.58 2235.01 2198.32 2162.01 2126.55 2092.27 2059.48 2028.43 1999.28 1972.14 1947.07 1924.1 1903.19 1884.3 1867.36 1852.25 1838.88 1827.11 1816.86 1808.03 1800.55 1794.38 1789.47 1785.78 1783.27 1781.89 1781.64 1782.52 1784.41 1787.43 1791.56 1796.8 1803.18 1810.69 1819.33 1829.13 1840.11 1852.3 1865.75 1880.53 1896.68 1914.25 1933.32 1953.92 1976.07 1999.85 2025.32 2052.49 2081.38 2111.91 2141.12 2173.9 2207.59 2241.78 2276.11 2310.04 2342.96 2374.33 2403.51 2429.93 2453.05 2472.35 2487.42 2497.96 2503.74 2504.69 2500.5 2491.53 2477.96 2460.14 2438.53 2413.59 2385.84 2355.87 2324.26 2291.55 2258.26 2224.84 2191.73 2159.31 2127.89 2098.15 2069.84 2042.53 2016.53 1991.95 1968.82 1947.11 1926.79 1907.8 1890.12 1873.69 1858.5 1844.54 1831.8 1820.3 1810.07 1801.13 1793.53 1787.32 1782.53 1779.21 1777.36 1777.03 1778.76 1782.16 1787.22 1793.96 1802.37 1812.46 1824.25 1837.74 1852.9 1869.66 1888.03 1908.03 2398.63 2417.15 2431.41 2441.22 2446.45 2446.99 2442.37 2432.94 2418.93 2400.54 2378.02 2351.79 2322.34 2290.07 2255.49 2219.11 2181.44 2143.06 2104.45 2066.12 2028.53 1992.29 1958.25 1924.92 1893.09 1863.04 1834.9 1808.74 1784.6 1762.47 1742.31 1724.09 1707.73 1693.19 1680.38 1669.23 1659.68 1651.66 1645.12 1640.01 1636.3 1633.95 1632.93 1633.43 1635.26 1638.49 1643.16 1649.29 1656.98 1666.27 1677.19 1689.82 1704.2 1720.41 1738.49 1758.48 1780.39 1804.24 1829.98 1857.54 1886.86 1917.79 1950.16 1983.83 2018.46 2053.76 2089.46 2125.18 2160.53 2195.12 2228.54 2260.36 2290.19 2317.62 2342.27 2363.76 2381.76 2395.94 2406.01 2411.74 2412.98 2409.57 2401.56 2389.05 2372.21 2351.3 2326.64 2298.6 2267.61 2234.1 2198.54 2161.44 2123.28 2084.56 2045.75 2007.33 1969.75 1933.37 1898.56 1865.62 1834.8 1806.27 1780.15 1756.47 1735.21 1716.3 1699.66 1685.16 1672.69 1662.13 1653.37 1646.29 1640.81 1636.83 1634.28 1633.1 1633.21 1634.62 1637.26 1641.12 1646.22 1652.54 1660.09 1668.86 1678.86 1690.11 1702.62 1716.41 1731.53 1748.04 1765.97 1785.4 1806.37 1828.95 1853.16 1879.01 1906.5 1935.57 1966.13 1998.15 2031.26 2065.29 2099.96 2134.93 2169.78 2204.09 2237.35 2269.06 2298.68 2325.69 2349.57 2369.83 2386.04 2397.82 2404.89 2407.05 2404.21 2396.37 2383.62 2366.16 2344.32 2318.51 2289.25 2257.09 2222.63 2186.47 2149.2 2111.43 2073.73 2036.59 2000.5 1965.8 1932.78 1901.66 1872.59 1845.66 1820.89 1798.26 1777.7 1759.09 1742.37 1727.45 1714.25 1702.73 1692.8 1684.41 1677.5 1671.96 1667.74 1664.77 1662.99 1662.37 1662.87 1664.45 1667.08 1670.77 1675.53 1681.39 1688.4 1696.59 1706 1716.69 1728.75 1742.24 1757.22 1773.74 1791.83 1811.54 1832.91 1855.95 1880.65 1906.99 1934.91 1964.31 1995.07 2027.03 2060.1 2093.87 2128.08 2162.39 2196.45 2229.8 2261.99 2292.48 2320.76 2346.25 2368.43 2386.78 2400.83 2410.19 2414.6 2413.9 2408.06 2397.19 2381.5 2361.31 2337.04 2309.2 2278.33 2245.04 2209.93 2173.6 2136.65 2099.62 2063.01 2027.3 1992.81 1959.87 1928.71 1899.5 1872.33 1847.26 1824.32 1803.46 1784.63 1767.77 1752.75 1739.46 1727.78 1717.6 1708.83 1701.41 1695.29 1690.42 1686.76 1684.28 1682.93 1682.7 1683.6 1685.49 1688.49 1692.61 1697.84 1704.2 1711.69 1720.31 1730.08 1741.02 1753.16 1766.56 1781.28 1797.37 1814.89 1833.9 1854.44 1876.55 1900.3 1925.75 1952.94 1981.91 2012.64 2041.72 2074.8 2108.76 2143.26 2177.94 2212.26 2245.61 2277.41 2307.01 2333.84 2357.32 2376.93 2392.26 2402.97 2408.84 2409.8 2405.54 2396.4 2382.59 2364.48 2342.52 2317.2 2289.04 2258.67 2226.67 2193.6 2159.97 2126.27 2092.91 2060.28 2028.71 1998.93 1970.52 1943.17 1917.15 1892.58 1869.48 1847.8 1827.51 1808.57 1790.92 1774.52 1759.36 1745.41 1732.68 1721.17 1710.93 1701.98 1694.36 1688.13 1683.32 1679.97 1678.11 1677.74 1679.46 1682.85 1687.9 1694.62 1703.02 1713.09 1724.87 1738.36 1753.51 1770.28 1788.66 1808.67 2303.04 2321.84 2336.34 2346.32 2351.65 2352.23 2347.58 2338.03 2323.83 2305.19 2282.36 2255.78 2225.95 2193.28 2158.29 2121.5 2083.44 2044.7 2005.77 1967.15 1929.34 1892.9 1858.6 1825.16 1793.26 1763.16 1735.01 1708.86 1684.75 1662.66 1642.56 1624.4 1608.11 1593.63 1580.88 1569.8 1560.3 1552.33 1545.83 1540.75 1537.07 1534.74 1533.73 1534.21 1536.03 1539.22 1543.85 1549.95 1557.59 1566.82 1577.69 1590.26 1604.6 1620.75 1638.8 1658.75 1680.64 1704.49 1730.25 1757.85 1787.24 1818.27 1850.78 1884.6 1919.42 1954.96 1990.91 2026.91 2062.56 2097.47 2131.22 2163.37 2193.55 2221.3 2246.26 2268.05 2286.32 2300.72 2310.97 2316.82 2318.12 2314.69 2306.59 2293.93 2276.87 2255.69 2230.72 2202.33 2170.96 2137.06 2101.12 2063.63 2025.09 1986.01 1946.87 1908.15 1870.29 1833.69 1798.7 1765.62 1734.71 1706.13 1680 1656.35 1635.15 1616.33 1599.77 1585.37 1573 1562.54 1553.86 1546.87 1541.45 1537.54 1535.04 1533.91 1534.06 1535.49 1538.14 1542.01 1547.1 1553.42 1560.96 1569.72 1579.7 1590.92 1603.4 1617.15 1632.23 1648.68 1666.56 1685.94 1706.86 1729.41 1753.59 1779.45 1806.96 1836.09 1866.74 1898.87 1932.16 1966.4 2001.32 2036.58 2071.77 2106.44 2140.1 2172.21 2202.24 2229.65 2253.91 2274.52 2291.01 2303.01 2310.23 2312.46 2309.6 2301.65 2288.71 2270.98 2248.8 2222.6 2192.9 2160.28 2125.36 2088.74 2051.04 2012.87 1974.8 1937.35 1901.02 1866.12 1832.96 1801.75 1772.63 1745.69 1720.96 1698.39 1677.89 1659.36 1642.71 1627.87 1614.74 1603.28 1593.42 1585.1 1578.25 1572.77 1568.61 1565.68 1563.93 1563.35 1563.87 1565.46 1568.09 1571.76 1576.5 1582.33 1589.31 1597.46 1606.82 1617.45 1629.46 1642.9 1657.83 1674.3 1692.35 1712.02 1733.36 1756.39 1781.1 1807.47 1835.43 1864.91 1895.77 1927.88 1961.11 1995.11 2029.57 2064.18 2098.57 2132.3 2164.87 2195.78 2224.48 2250.39 2272.95 2291.63 2305.96 2315.53 2320.05 2319.36 2313.44 2302.4 2286.45 2265.93 2241.28 2213.01 2181.69 2147.94 2112.37 2075.62 2038.27 2000.87 1963.95 1927.97 1893.27 1860.17 1828.9 1799.61 1772.42 1747.35 1724.44 1703.63 1684.88 1668.1 1653.17 1639.98 1628.39 1618.28 1609.58 1602.22 1596.14 1591.32 1587.7 1585.25 1583.92 1583.71 1584.62 1586.51 1589.51 1593.62 1598.83 1605.17 1612.64 1621.24 1630.97 1641.87 1653.97 1667.31 1681.97 1697.99 1715.45 1734.4 1754.89 1776.96 1800.67 1826.1 1853.3 1882.33 1913.29 1942.24 1975.64 2009.88 2044.7 2079.76 2114.5 2148.29 2180.54 2210.6 2237.85 2261.73 2281.67 2297.26 2308.16 2314.12 2315.09 2310.75 2301.44 2287.39 2268.95 2246.62 2220.89 2192.31 2161.51 2129.1 2095.64 2061.67 2027.66 1994.04 1961.18 1929.46 1899.64 1871.14 1843.73 1817.7 1793.14 1770.06 1748.43 1728.18 1709.28 1691.67 1675.3 1660.16 1646.22 1633.5 1621.99 1611.74 1602.77 1595.14 1588.89 1584.06 1580.68 1578.79 1578.38 1580.1 1583.48 1588.51 1595.21 1603.6 1613.66 1625.42 1638.91 1654.06 1670.83 1689.22 1709.24 2207.57 2226.67 2241.42 2251.59 2257.04 2257.66 2252.97 2243.3 2228.89 2209.99 2186.83 2159.87 2129.63 2096.55 2061.13 2023.91 1985.44 1946.33 1907.05 1868.13 1830.06 1793.43 1758.88 1725.31 1693.32 1663.18 1635.02 1608.88 1584.81 1562.77 1542.72 1524.63 1508.41 1494 1481.32 1470.3 1460.86 1452.94 1446.48 1441.44 1437.78 1435.47 1434.48 1434.95 1436.74 1439.9 1444.49 1450.53 1458.13 1467.31 1478.12 1490.64 1504.91 1521.02 1539.01 1558.93 1580.81 1604.65 1630.42 1658.08 1687.54 1718.67 1751.32 1785.31 1820.33 1856.1 1892.33 1928.62 1964.59 1999.84 2033.93 2066.44 2096.97 2125.07 2150.36 2172.46 2191.01 2205.66 2216.09 2222.07 2223.42 2219.98 2211.8 2198.97 2181.68 2160.21 2134.91 2106.15 2074.39 2040.08 2003.72 1965.82 1926.88 1887.42 1847.93 1808.89 1770.76 1733.92 1698.73 1665.51 1634.5 1605.88 1579.75 1556.13 1534.99 1516.26 1499.8 1485.5 1473.23 1462.87 1454.29 1447.37 1442.04 1438.19 1435.74 1434.67 1434.88 1436.31 1438.97 1442.84 1447.94 1454.25 1461.78 1470.53 1480.49 1491.68 1504.12 1517.83 1532.86 1549.26 1567.08 1586.4 1607.28 1629.78 1653.95 1679.8 1707.34 1736.52 1767.27 1799.52 1833 1867.46 1902.64 1938.22 1973.76 2008.81 2042.88 2075.43 2105.89 2133.72 2158.39 2179.35 2196.15 2208.39 2215.76 2218.06 2215.18 2207.12 2193.98 2175.97 2153.43 2126.8 2096.63 2063.53 2028.12 1991.02 1952.86 1914.26 1875.82 1838.04 1801.44 1766.34 1733.03 1701.73 1672.56 1645.62 1620.92 1598.42 1578 1559.54 1542.97 1528.21 1515.15 1503.77 1493.98 1485.72 1478.94 1473.53 1469.42 1466.54 1464.83 1464.27 1464.82 1466.43 1469.06 1472.71 1477.43 1483.23 1490.17 1498.28 1507.58 1518.16 1530.11 1543.49 1558.37 1574.79 1592.79 1612.43 1633.74 1656.76 1681.47 1707.87 1735.88 1765.43 1796.41 1828.66 1862.06 1896.31 1931.04 1965.95 2000.69 2034.81 2067.8 2099.15 2128.29 2154.63 2177.61 2196.65 2211.28 2221.06 2225.69 2225.02 2219.02 2207.8 2191.58 2170.71 2145.64 2116.92 2085.13 2050.89 2014.84 1977.63 1939.85 1902.08 1864.82 1828.56 1793.64 1760.37 1728.99 1699.63 1672.4 1647.35 1624.47 1603.72 1585.04 1568.35 1553.52 1540.43 1528.93 1518.91 1510.28 1502.97 1496.94 1492.17 1488.59 1486.17 1484.87 1484.67 1485.59 1487.5 1490.49 1494.58 1499.78 1506.1 1513.55 1522.12 1531.82 1542.68 1554.72 1568.01 1582.6 1598.55 1615.95 1634.84 1655.27 1677.28 1700.95 1726.36 1753.56 1782.66 1813.81 1842.72 1876.42 1910.95 1946.11 1981.56 2016.73 2050.99 2083.73 2114.27 2141.98 2166.27 2186.57 2202.44 2213.53 2219.59 2220.56 2216.14 2206.65 2192.34 2173.56 2150.84 2124.68 2095.64 2064.39 2031.54 1997.67 1963.34 1929 1895.11 1862.01 1830.12 1800.3 1771.69 1744.22 1718.17 1693.62 1670.58 1648.98 1628.79 1609.93 1592.36 1576.03 1560.91 1546.98 1534.27 1522.76 1512.49 1503.51 1495.86 1489.58 1484.73 1481.33 1479.42 1478.97 1480.67 1484.05 1489.05 1495.74 1504.12 1514.15 1525.9 1539.39 1554.54 1571.32 1589.7 1609.74 2112.24 2131.66 2146.67 2157.03 2162.61 2163.28 2158.53 2148.73 2134.11 2114.93 2091.42 2064.06 2033.41 1999.88 1964 1926.33 1887.44 1847.92 1808.28 1769.04 1730.71 1693.89 1659.07 1625.36 1593.3 1563.11 1534.93 1508.81 1484.78 1462.79 1442.8 1424.78 1408.63 1394.3 1381.69 1370.73 1361.36 1353.49 1347.08 1342.08 1338.45 1336.16 1335.18 1335.63 1337.39 1340.52 1345.06 1351.06 1358.6 1367.73 1378.48 1390.94 1405.15 1421.2 1439.14 1459.03 1480.88 1504.72 1530.51 1558.21 1587.74 1618.98 1651.78 1685.94 1721.18 1757.21 1793.71 1830.31 1866.62 1902.22 1936.68 1969.56 2000.46 2028.93 2054.57 2077 2095.84 2110.74 2121.38 2127.49 2128.91 2125.45 2117.17 2104.17 2086.64 2064.87 2039.22 2010.07 1977.89 1943.14 1906.35 1868.01 1828.65 1788.79 1748.94 1709.56 1671.14 1634.05 1598.66 1565.29 1534.18 1505.51 1479.37 1455.79 1434.73 1416.08 1399.73 1385.54 1373.38 1363.12 1354.64 1347.82 1342.56 1338.78 1336.4 1335.37 1335.64 1337.09 1339.75 1343.63 1348.72 1355.03 1362.55 1371.28 1381.23 1392.39 1404.79 1418.45 1433.42 1449.77 1467.53 1486.79 1507.62 1530.08 1554.23 1580.07 1607.63 1636.87 1667.71 1700.09 1733.76 1768.45 1803.92 1839.82 1875.73 1911.19 1945.7 1978.7 2009.62 2037.9 2062.99 2084.34 2101.46 2113.95 2121.48 2123.86 2120.96 2112.79 2099.44 2081.12 2058.19 2031.11 2000.46 1966.85 1930.92 1893.31 1854.66 1815.61 1776.77 1738.65 1701.76 1666.45 1633 1601.6 1572.39 1545.45 1520.78 1498.35 1478.02 1459.65 1443.16 1428.48 1415.5 1404.18 1394.47 1386.28 1379.57 1374.23 1370.18 1367.35 1365.68 1365.16 1365.72 1367.35 1369.98 1373.62 1378.31 1384.08 1390.98 1399.05 1408.3 1418.81 1430.69 1444.02 1458.85 1475.21 1493.17 1512.76 1534.04 1557.04 1581.76 1608.18 1636.24 1665.88 1696.97 1729.37 1762.95 1797.46 1832.46 1867.7 1902.81 1937.33 1970.77 2002.58 2032.19 2058.99 2082.4 2101.84 2116.78 2126.78 2131.54 2130.89 2124.8 2113.38 2096.87 2075.63 2050.13 2020.93 1988.63 1953.87 1917.32 1879.63 1841.4 1803.23 1765.63 1729.07 1693.92 1660.48 1628.97 1599.55 1572.29 1547.24 1524.39 1503.71 1485.11 1468.52 1453.79 1440.8 1429.41 1419.47 1410.92 1403.67 1397.7 1392.96 1389.43 1387.05 1385.78 1385.6 1386.53 1388.44 1391.42 1395.5 1400.68 1406.98 1414.41 1422.96 1432.62 1443.43 1455.42 1468.65 1483.17 1499.05 1516.38 1535.2 1555.57 1577.52 1601.15 1626.53 1653.73 1682.87 1714.15 1743.22 1777.15 1811.96 1847.47 1883.34 1918.97 1953.73 1986.98 2018.02 2046.21 2070.94 2091.62 2107.79 2119.09 2125.25 2126.23 2121.71 2112.04 2097.45 2078.31 2055.17 2028.55 1999.04 1967.31 1933.99 1899.7 1864.98 1830.31 1796.13 1762.78 1730.68 1700.9 1672.16 1644.63 1618.56 1594.03 1571.02 1549.48 1529.33 1510.52 1492.99 1476.7 1461.6 1447.69 1434.98 1423.47 1413.2 1404.2 1396.53 1390.22 1385.35 1381.93 1379.98 1379.49 1381.19 1384.55 1389.54 1396.2 1404.56 1414.57 1426.31 1439.8 1454.95 1471.73 1490.12 1510.17 2017.04 2036.79 2052.07 2062.65 2068.35 2069.08 2064.29 2054.35 2039.5 2020.02 1996.15 1968.37 1937.27 1903.27 1866.91 1828.77 1789.42 1749.49 1709.46 1669.88 1631.27 1594.26 1559.17 1525.32 1493.17 1462.93 1434.74 1408.64 1384.65 1362.71 1342.8 1324.84 1308.78 1294.52 1281.99 1271.11 1261.8 1253.99 1247.62 1242.66 1239.06 1236.79 1235.82 1236.26 1238 1241.08 1245.58 1251.53 1259.02 1268.09 1278.77 1291.16 1305.32 1321.3 1339.19 1359.04 1380.87 1404.7 1430.51 1458.25 1487.86 1519.21 1552.16 1586.51 1621.97 1658.26 1695.06 1731.98 1768.64 1804.61 1839.45 1872.74 1904.02 1932.87 1958.88 1981.66 2000.82 2015.98 2026.83 2033.09 2034.57 2031.1 2022.72 2009.54 1991.75 1969.66 1943.63 1914.07 1881.46 1846.26 1809 1770.21 1730.41 1690.13 1649.88 1610.15 1571.44 1534.07 1498.48 1464.95 1433.74 1405.01 1378.88 1355.34 1334.35 1315.81 1299.56 1285.49 1273.44 1263.3 1254.92 1248.19 1243.02 1239.31 1236.99 1236.02 1236.36 1237.81 1240.48 1244.36 1249.46 1255.76 1263.27 1271.99 1281.91 1293.04 1305.4 1319.01 1333.93 1350.22 1367.92 1387.12 1407.89 1430.3 1454.42 1480.26 1507.84 1537.14 1568.08 1600.59 1634.46 1669.39 1705.15 1741.39 1777.69 1813.58 1848.55 1882.02 1913.43 1942.19 1967.72 1989.48 2006.94 2019.69 2027.4 2029.86 2026.94 2018.65 2005.07 1986.43 1963.1 1935.55 1904.37 1870.22 1833.74 1795.6 1756.44 1716.92 1677.66 1639.18 1601.99 1566.47 1532.86 1501.35 1472.1 1445.16 1420.54 1398.18 1377.94 1359.67 1343.27 1328.67 1315.77 1304.53 1294.89 1286.78 1280.15 1274.88 1270.89 1268.11 1266.48 1265.99 1266.59 1268.23 1270.86 1274.49 1279.15 1284.88 1291.74 1299.77 1308.96 1319.4 1331.22 1344.48 1359.25 1375.56 1393.47 1413.01 1434.25 1457.24 1481.96 1508.41 1536.53 1566.24 1597.45 1630.01 1663.78 1698.55 1733.85 1769.43 1804.93 1839.88 1873.77 1906.07 1936.18 1963.47 1987.34 2007.19 2022.46 2032.71 2037.6 2036.96 2030.78 2019.16 2002.34 1980.71 1954.75 1925.04 1892.21 1856.91 1819.82 1781.62 1742.93 1704.33 1666.36 1629.5 1594.1 1560.48 1528.85 1499.35 1472.07 1447.03 1424.22 1403.61 1385.09 1368.6 1353.99 1341.11 1329.82 1319.98 1311.5 1304.32 1298.4 1293.72 1290.22 1287.88 1286.64 1286.48 1287.42 1289.33 1292.3 1296.37 1301.54 1307.82 1315.23 1323.75 1333.38 1344.14 1356.07 1369.23 1383.67 1399.49 1416.74 1435.49 1455.79 1477.69 1501.26 1526.6 1553.81 1582.98 1614.31 1643.71 1677.82 1712.92 1748.79 1785.09 1821.21 1856.5 1890.28 1921.86 1950.56 1975.75 1996.82 2013.31 2024.83 2031.11 2032.09 2027.47 2017.61 2002.71 1983.2 1959.62 1932.52 1902.49 1870.26 1836.46 1801.71 1766.59 1731.57 1697.09 1663.47 1631.13 1601.47 1572.57 1544.96 1518.88 1494.36 1471.4 1449.9 1429.81 1411.06 1393.57 1377.31 1362.24 1348.35 1335.65 1324.13 1313.85 1304.83 1297.13 1290.81 1285.91 1282.46 1280.49 1279.96 1281.65 1285 1289.95 1296.6 1304.94 1314.93 1326.65 1340.13 1355.29 1372.07 1390.46 1410.53 1921.97 1942.07 1957.65 1968.44 1974.29 1975.07 1970.23 1960.14 1945.05 1925.26 1901 1872.78 1841.21 1806.72 1769.85 1731.21 1691.39 1651.02 1610.59 1570.66 1531.73 1494.54 1459.19 1425.19 1392.94 1362.65 1334.46 1308.38 1284.43 1262.55 1242.7 1224.83 1208.84 1194.67 1182.22 1171.41 1162.17 1154.42 1148.11 1143.18 1139.61 1137.37 1136.41 1136.84 1138.55 1141.59 1146.04 1151.93 1159.37 1168.38 1178.99 1191.31 1205.4 1221.32 1239.16 1258.96 1280.76 1304.59 1330.41 1358.21 1387.89 1419.36 1452.46 1487 1522.7 1559.26 1596.37 1633.64 1670.66 1707.02 1742.26 1775.96 1807.66 1836.91 1863.3 1886.44 1905.93 1921.38 1932.46 1938.87 1940.43 1936.93 1928.45 1915.07 1897.01 1874.59 1848.17 1818.18 1785.1 1749.42 1711.68 1672.4 1632.14 1591.43 1550.77 1510.68 1471.63 1434 1398.18 1364.48 1333.17 1304.39 1278.26 1254.77 1233.87 1215.43 1199.3 1185.35 1173.43 1163.4 1155.13 1148.51 1143.42 1139.79 1137.53 1136.62 1137.02 1138.48 1141.16 1145.05 1150.14 1156.44 1163.94 1172.64 1182.54 1193.64 1205.95 1219.52 1234.38 1250.6 1268.23 1287.37 1308.07 1330.44 1354.53 1380.36 1407.96 1437.32 1468.35 1501.01 1535.09 1570.27 1606.33 1642.93 1679.64 1715.98 1751.43 1785.41 1817.33 1846.58 1872.59 1894.77 1912.6 1925.63 1933.52 1936.07 1933.13 1924.71 1910.9 1891.92 1868.16 1840.1 1808.37 1773.65 1736.6 1697.9 1658.2 1618.18 1578.48 1539.62 1502.13 1466.37 1432.61 1401 1371.7 1344.77 1320.2 1297.92 1277.78 1259.61 1243.29 1228.79 1215.97 1204.81 1195.25 1187.22 1180.67 1175.48 1171.56 1168.83 1167.24 1166.79 1167.41 1169.07 1171.7 1175.31 1179.95 1185.63 1192.46 1200.44 1209.57 1219.94 1231.68 1244.88 1259.59 1275.84 1293.69 1313.18 1334.39 1357.36 1382.08 1408.56 1436.72 1466.53 1497.85 1530.57 1564.53 1599.6 1635.19 1671.13 1707.03 1742.43 1776.81 1809.62 1840.25 1868.07 1892.42 1912.7 1928.33 1938.84 1943.87 1943.25 1936.97 1925.13 1907.99 1885.94 1859.49 1829.25 1795.86 1759.98 1722.34 1683.6 1644.41 1605.37 1567.02 1529.85 1494.19 1460.38 1428.63 1399.06 1371.74 1346.71 1323.95 1303.41 1284.98 1268.61 1254.12 1241.36 1230.17 1220.43 1212.03 1204.91 1199.05 1194.42 1190.97 1188.67 1187.46 1187.32 1188.26 1190.19 1193.15 1197.2 1202.35 1208.61 1216 1224.49 1234.08 1244.79 1256.67 1269.75 1284.13 1299.86 1317.03 1335.71 1355.94 1377.77 1401.29 1426.59 1453.78 1482.98 1514.28 1544.21 1578.43 1613.81 1650.06 1686.82 1723.45 1759.29 1793.64 1825.78 1855.01 1880.69 1902.19 1919.01 1930.76 1937.16 1938.15 1933.43 1923.36 1908.15 1888.24 1864.18 1836.57 1806.01 1773.24 1738.93 1703.71 1668.17 1632.78 1597.98 1564.1 1531.45 1502 1472.89 1445.2 1419.11 1394.62 1371.71 1350.26 1330.23 1311.53 1294.1 1277.88 1262.83 1248.96 1236.26 1224.74 1214.44 1205.41 1197.69 1191.34 1186.41 1182.94 1180.94 1180.36 1182.04 1185.38 1190.31 1196.93 1205.26 1215.21 1226.92 1240.4 1255.56 1272.35 1290.73 1310.81 1827.04 1847.5 1863.38 1874.41 1880.4 1881.25 1876.35 1866.1 1850.78 1830.66 1805.99 1777.3 1745.24 1710.23 1672.82 1633.67 1593.34 1552.51 1511.66 1471.36 1432.12 1394.74 1359.11 1324.95 1292.61 1262.27 1234.06 1208.01 1184.11 1162.3 1142.52 1124.73 1108.83 1094.75 1082.38 1071.65 1062.48 1054.8 1048.54 1043.65 1040.11 1037.89 1036.96 1037.37 1039.04 1042.04 1046.44 1052.27 1059.65 1068.6 1079.14 1091.39 1105.41 1121.26 1139.04 1158.79 1180.57 1204.38 1230.22 1258.06 1287.82 1319.41 1352.68 1387.42 1423.36 1460.2 1497.64 1535.26 1572.67 1609.43 1645.1 1679.23 1711.36 1741.03 1767.83 1791.35 1811.18 1826.94 1838.25 1844.82 1846.45 1842.94 1834.35 1820.77 1802.43 1779.64 1752.81 1722.37 1688.8 1652.62 1614.37 1574.6 1533.85 1492.68 1451.6 1411.12 1371.74 1333.82 1297.77 1263.9 1232.48 1203.65 1177.52 1154.09 1133.27 1114.95 1098.95 1085.12 1073.33 1063.43 1055.28 1048.76 1043.76 1040.21 1038.02 1037.17 1037.64 1039.1 1041.79 1045.68 1050.77 1057.06 1064.56 1073.24 1083.12 1094.18 1106.45 1119.97 1134.77 1150.92 1168.48 1187.54 1208.18 1230.49 1254.55 1280.37 1307.99 1337.4 1368.54 1401.35 1435.64 1471.08 1507.46 1544.44 1581.57 1618.38 1654.34 1688.84 1721.3 1751.09 1777.59 1800.23 1818.44 1831.76 1839.85 1842.48 1839.52 1830.97 1816.91 1797.57 1773.36 1744.77 1712.47 1677.15 1639.49 1600.19 1559.93 1519.39 1479.23 1439.98 1402.16 1366.17 1332.24 1300.53 1271.18 1244.26 1219.74 1197.56 1177.53 1159.46 1143.24 1128.83 1116.1 1105.02 1095.55 1087.6 1081.14 1076.03 1072.17 1069.5 1067.95 1067.53 1068.19 1069.87 1072.51 1076.1 1080.7 1086.34 1093.12 1101.06 1110.13 1120.42 1132.08 1145.22 1159.87 1176.05 1193.84 1213.28 1234.45 1257.4 1282.12 1308.62 1336.84 1366.73 1398.18 1431.06 1465.22 1500.59 1536.49 1572.79 1609.12 1644.99 1679.89 1713.24 1744.42 1772.78 1797.65 1818.39 1834.4 1845.18 1850.36 1849.75 1843.36 1831.3 1813.82 1791.33 1764.37 1733.56 1699.57 1663.1 1624.86 1585.56 1545.86 1506.36 1467.61 1430.1 1394.18 1360.17 1328.29 1298.65 1271.3 1246.29 1223.58 1203.11 1184.78 1168.52 1154.17 1141.53 1130.47 1120.82 1112.51 1105.46 1099.65 1095.07 1091.67 1089.41 1088.24 1088.12 1089.07 1091 1093.95 1097.98 1103.12 1109.36 1116.73 1125.19 1134.74 1145.4 1157.21 1170.22 1184.52 1200.17 1217.26 1235.85 1256.01 1277.77 1301.23 1326.48 1353.66 1382.87 1414.12 1444.65 1478.96 1514.63 1551.28 1588.52 1625.68 1662.1 1697.05 1729.78 1759.58 1785.78 1807.72 1824.89 1836.89 1843.41 1844.41 1839.58 1829.28 1813.75 1793.41 1768.87 1740.71 1709.58 1676.26 1641.41 1605.69 1569.71 1533.94 1498.82 1464.65 1431.66 1402.49 1373.14 1345.37 1319.27 1294.81 1271.94 1250.56 1230.58 1211.95 1194.57 1178.39 1163.37 1149.51 1136.82 1125.3 1114.99 1105.93 1098.18 1091.8 1086.85 1083.35 1081.33 1080.72 1082.38 1085.69 1090.59 1097.19 1105.5 1115.43 1127.12 1140.6 1155.76 1172.55 1190.94 1211.02 1732.23 1753.09 1769.29 1780.56 1786.71 1787.62 1782.67 1772.26 1756.67 1736.2 1711.11 1681.92 1649.35 1613.8 1575.83 1536.12 1495.28 1453.97 1412.68 1371.99 1332.41 1294.84 1258.93 1224.61 1192.18 1161.78 1133.57 1107.54 1083.7 1061.95 1042.26 1024.56 1008.75 994.749 982.473 971.831 962.736 955.116 948.91 944.065 940.558 938.369 937.459 937.851 939.486 942.44 946.779 952.553 959.872 968.748 979.225 991.395 1005.34 1021.12 1038.83 1058.52 1080.28 1104.08 1129.93 1157.82 1187.66 1219.37 1252.82 1287.77 1323.95 1361.09 1398.87 1436.86 1474.67 1511.86 1547.97 1582.54 1615.12 1645.24 1672.46 1696.38 1716.58 1732.66 1744.22 1750.96 1752.67 1749.14 1740.44 1726.65 1708 1684.84 1657.58 1626.66 1592.58 1555.87 1517.09 1476.8 1435.54 1393.89 1352.36 1311.49 1271.74 1233.53 1197.24 1163.19 1131.65 1102.78 1076.65 1053.28 1032.56 1014.37 998.497 984.811 973.158 963.381 955.355 948.94 944.042 940.571 938.449 937.655 938.154 939.669 942.366 946.264 951.355 957.637 965.122 973.791 983.643 994.674 1006.9 1020.36 1035.09 1051.17 1068.65 1087.64 1108.21 1130.46 1154.48 1180.29 1207.92 1237.4 1268.63 1301.6 1336.11 1371.81 1408.52 1445.89 1483.48 1520.78 1557.27 1592.33 1625.35 1655.69 1682.73 1705.84 1724.46 1738.08 1746.38 1749.11 1746.13 1737.44 1723.12 1703.41 1678.71 1649.57 1616.65 1580.7 1542.41 1502.49 1461.63 1420.54 1379.9 1340.23 1302.08 1265.85 1231.76 1199.94 1170.54 1143.63 1119.18 1097.1 1077.19 1059.24 1043.12 1028.8 1016.16 1005.16 995.781 987.924 981.549 976.523 972.739 970.129 968.618 968.241 968.931 970.637 973.271 976.84 981.41 987.005 993.742 1001.64 1010.64 1020.84 1032.42 1045.49 1060.07 1076.2 1093.92 1113.31 1134.42 1157.36 1182.08 1208.6 1236.87 1266.85 1298.43 1331.48 1365.83 1401.53 1437.75 1474.43 1511.2 1547.57 1583 1616.92 1648.68 1677.61 1703.03 1724.25 1740.66 1751.73 1757.06 1756.47 1749.97 1737.67 1719.82 1696.88 1669.37 1637.97 1603.36 1566.25 1527.39 1487.51 1447.27 1407.28 1368.11 1330.26 1294.06 1259.85 1227.85 1198.13 1170.76 1145.77 1123.11 1102.72 1084.49 1068.36 1054.14 1041.64 1030.7 1021.16 1012.94 1005.96 1000.21 995.683 992.328 990.107 988.972 988.872 989.836 991.767 994.713 998.727 1003.85 1010.07 1017.41 1025.84 1035.36 1045.97 1057.71 1070.64 1084.86 1100.41 1117.42 1135.93 1156 1177.7 1201.08 1226.27 1253.43 1282.65 1313.86 1345 1379.41 1415.38 1452.45 1490.18 1527.9 1564.92 1600.51 1633.87 1664.26 1691 1713.41 1730.95 1743.21 1749.87 1750.87 1745.93 1735.39 1719.51 1698.73 1673.66 1644.94 1613.22 1579.3 1543.9 1507.66 1471.21 1435.05 1399.59 1365.13 1331.75 1302.93 1273.3 1245.44 1219.34 1194.91 1172.11 1150.79 1130.88 1112.31 1094.98 1078.85 1063.86 1050.02 1037.33 1025.81 1015.48 1006.4 998.626 992.217 987.23 983.709 981.665 981.022 982.66 985.945 990.814 997.384 1005.68 1015.57 1027.24 1040.73 1055.89 1072.68 1091.07 1111.15 1637.56 1658.82 1675.36 1686.89 1693.21 1694.18 1689.18 1678.59 1662.73 1641.91 1616.36 1586.66 1553.54 1517.43 1478.87 1438.59 1397.19 1355.39 1313.63 1272.54 1232.63 1194.84 1158.65 1124.17 1091.64 1061.19 1032.97 1006.98 983.194 961.511 941.901 924.295 908.582 894.679 882.498 871.943 862.927 855.376 849.228 844.426 840.953 838.793 837.915 838.278 839.878 842.78 847.062 852.772 860.029 868.835 879.236 891.324 905.186 920.893 938.53 958.169 979.902 1003.69 1029.54 1057.49 1087.41 1119.25 1152.87 1188.03 1224.47 1261.93 1300.06 1338.43 1376.66 1414.29 1450.87 1485.91 1518.96 1549.54 1577.2 1601.54 1622.13 1638.53 1650.36 1657.27 1659.06 1655.53 1646.7 1632.69 1613.72 1590.17 1562.46 1531.03 1496.43 1459.16 1419.83 1378.99 1337.2 1295.04 1253.06 1211.77 1171.65 1133.12 1096.59 1062.35 1030.7 1001.77 975.65 952.35 931.742 913.676 897.951 884.408 872.9 863.259 855.36 849.062 844.264 840.879 838.826 838.092 838.648 840.191 842.898 846.8 851.891 858.167 865.643 874.296 884.124 895.118 907.296 920.694 935.362 951.365 968.763 987.673 1008.17 1030.35 1054.33 1080.12 1107.77 1137.3 1168.64 1201.79 1236.5 1272.49 1309.54 1347.32 1385.37 1423.19 1460.24 1495.88 1529.49 1560.41 1588 1611.62 1630.66 1644.61 1653.11 1655.94 1652.95 1644.12 1629.53 1609.42 1584.21 1554.47 1520.92 1484.3 1445.35 1404.78 1363.29 1321.63 1280.49 1240.39 1201.89 1165.42 1131.16 1099.24 1069.79 1042.89 1018.51 996.543 976.765 958.933 942.918 928.697 916.158 905.245 895.953 888.188 881.904 876.97 873.262 870.715 869.245 868.906 869.632 871.367 874.001 877.548 882.082 887.624 894.315 902.172 911.1 921.211 932.706 945.694 960.217 976.278 993.933 1013.25 1034.32 1057.23 1081.94 1108.49 1136.81 1166.89 1198.59 1231.81 1266.37 1302.42 1338.95 1376.04 1413.27 1450.15 1486.15 1520.65 1553.02 1582.57 1608.55 1630.29 1647.12 1658.49 1663.99 1663.42 1656.8 1644.25 1626.02 1602.58 1574.51 1542.48 1507.21 1469.43 1429.93 1389.43 1348.63 1308.13 1268.53 1230.32 1193.84 1159.42 1127.29 1097.5 1070.11 1045.14 1022.53 1002.24 984.119 968.117 954.051 941.692 930.882 921.45 913.314 906.407 900.717 896.245 892.943 890.765 889.665 889.587 890.566 892.496 895.434 899.429 904.528 910.727 918.046 926.455 935.927 946.485 958.156 971.009 985.139 1000.6 1017.51 1035.93 1055.92 1077.54 1100.85 1125.97 1153.1 1182.32 1213.53 1245.22 1279.78 1316.06 1353.56 1391.81 1430.12 1467.75 1504.02 1538.04 1569.05 1596.36 1619.26 1637.2 1649.73 1656.53 1657.54 1652.48 1641.7 1625.45 1604.19 1578.58 1549.26 1516.91 1482.37 1446.38 1409.6 1372.68 1336.1 1300.3 1265.54 1231.78 1203.27 1173.36 1145.43 1119.32 1094.94 1072.2 1050.95 1031.11 1012.61 995.344 979.253 964.298 950.468 937.792 926.264 915.918 906.816 899.011 892.571 887.554 884.007 881.943 881.28 882.881 886.137 890.969 897.51 905.791 915.645 927.291 940.784 955.948 972.745 991.122 1011.21 1543.03 1564.7 1581.6 1593.4 1599.9 1600.94 1595.88 1585.12 1568.97 1547.77 1521.75 1491.5 1457.81 1421.12 1381.94 1341.05 1299.09 1256.77 1214.53 1173 1132.74 1094.74 1058.27 1023.62 990.986 960.481 932.261 906.306 882.59 860.977 841.457 823.951 808.339 794.537 782.453 771.992 763.057 755.578 749.49 744.733 741.294 739.165 738.323 738.657 740.218 743.065 747.287 752.928 760.124 768.857 779.178 791.176 804.959 820.586 838.143 857.722 879.429 903.196 929.057 957.056 987.05 1019.02 1052.83 1088.22 1124.92 1162.7 1201.21 1239.98 1278.64 1316.73 1353.78 1389.32 1422.86 1453.92 1482.05 1506.82 1527.81 1544.57 1556.68 1563.78 1565.66 1562.11 1553.16 1538.91 1519.6 1495.63 1467.45 1435.5 1400.35 1362.5 1322.59 1281.18 1238.83 1196.16 1153.69 1111.96 1071.46 1032.61 995.806 961.378 929.608 900.624 874.518 851.296 830.808 812.884 797.313 783.924 772.572 763.072 755.305 749.126 744.431 741.134 739.152 738.479 739.124 740.668 743.383 747.289 752.379 758.649 766.116 774.754 784.555 795.514 807.638 820.975 835.572 851.494 868.806 887.632 908.044 930.161 954.094 979.865 1007.53 1037.11 1068.56 1101.88 1136.81 1173.09 1210.5 1248.7 1287.24 1325.6 1363.22 1399.47 1433.71 1465.23 1493.41 1517.55 1537.04 1551.34 1560.07 1563.01 1559.99 1551.02 1536.13 1515.61 1489.87 1459.51 1425.28 1387.97 1348.32 1307.07 1264.93 1222.68 1181.01 1140.46 1101.6 1064.88 1030.45 998.418 968.921 942.046 917.748 895.9 876.259 858.559 842.65 828.531 816.09 805.263 796.063 788.396 782.211 777.373 773.745 771.26 769.836 769.534 770.294 772.058 774.696 778.223 782.719 788.202 794.844 802.666 811.519 821.528 832.93 845.841 860.297 876.292 893.872 913.124 934.136 957.02 981.727 1008.29 1036.67 1066.84 1098.67 1132.07 1166.85 1203.21 1240.1 1277.6 1315.31 1352.73 1389.31 1424.44 1457.45 1487.63 1514.22 1536.5 1553.77 1565.48 1571.15 1570.6 1563.86 1551.04 1532.4 1508.45 1479.78 1447.09 1411.13 1372.66 1332.47 1291.34 1249.95 1208.92 1168.86 1130.3 1093.52 1058.89 1026.62 996.771 969.347 944.411 921.866 901.663 883.664 867.798 853.891 841.681 831.005 821.687 813.641 806.81 801.179 796.765 793.519 791.386 790.321 790.267 791.257 793.185 796.117 800.093 805.171 811.348 818.645 827.028 836.46 846.961 858.559 871.326 885.368 900.732 917.544 935.872 955.77 977.311 1000.53 1025.57 1052.67 1081.89 1113.13 1145.29 1180.04 1216.66 1254.6 1293.4 1332.32 1370.61 1407.58 1442.29 1473.96 1501.87 1525.28 1543.63 1556.45 1563.4 1564.41 1559.23 1548.2 1531.56 1509.81 1483.62 1453.67 1420.66 1385.47 1348.86 1311.52 1274.1 1237.09 1200.94 1165.88 1131.84 1103.41 1073.31 1045.32 1019.22 994.889 972.223 951.046 931.286 912.85 895.651 879.608 864.685 850.87 838.203 826.669 816.305 807.177 799.342 792.869 787.82 784.246 782.164 781.495 783.045 786.268 791.059 797.568 805.835 815.645 827.266 840.767 855.939 872.738 891.107 911.192 1448.63 1470.74 1488.01 1500.11 1506.78 1507.91 1502.78 1491.83 1475.38 1453.79 1427.27 1396.44 1362.17 1324.86 1285.03 1243.52 1200.95 1158.1 1115.35 1073.37 1032.74 994.569 957.786 922.957 890.227 859.662 831.443 805.53 781.889 760.35 740.926 723.525 708.019 694.321 682.34 671.977 663.127 655.723 649.697 644.986 641.582 639.485 638.683 638.988 640.505 643.297 647.453 653.021 660.156 668.812 679.049 690.954 704.654 720.194 737.667 757.18 778.863 802.605 828.467 856.524 886.591 918.7 952.701 988.317 1025.3 1063.42 1102.3 1141.49 1180.6 1219.17 1256.73 1292.78 1326.83 1358.38 1387 1412.23 1433.65 1450.77 1463.17 1470.48 1472.45 1468.89 1459.81 1445.3 1425.65 1401.25 1372.58 1340.07 1304.34 1265.88 1225.37 1183.36 1140.43 1097.21 1054.24 1012.06 971.152 931.965 894.895 860.268 828.381 799.349 773.259 750.123 729.774 712.003 696.595 683.365 672.169 662.816 655.186 649.131 644.542 641.337 639.428 638.813 639.462 641.093 643.82 647.731 652.821 659.084 666.541 675.163 684.939 695.861 707.932 721.205 735.727 751.564 768.784 787.518 807.846 829.884 853.769 879.516 907.186 936.825 968.37 1001.87 1037.04 1073.61 1111.39 1150.03 1189.08 1227.99 1266.23 1303.12 1338.01 1370.17 1398.95 1423.66 1443.61 1458.28 1467.24 1470.29 1467.25 1458.14 1442.96 1422 1395.71 1364.68 1329.73 1291.69 1251.31 1209.35 1166.52 1123.65 1081.44 1040.42 1001.18 964.206 929.608 897.482 867.937 841.088 816.884 795.171 775.674 758.111 742.316 728.301 715.965 705.231 696.125 688.561 682.477 677.738 674.192 671.767 670.397 670.128 670.923 672.718 675.366 678.869 683.329 688.746 695.337 703.128 711.903 721.799 733.103 745.935 760.322 776.251 793.751 812.929 833.882 856.739 881.435 908.016 936.447 966.706 998.674 1032.25 1067.3 1103.91 1141.19 1179.12 1217.33 1255.31 1292.5 1328.28 1361.95 1392.81 1420.03 1442.89 1460.63 1472.68 1478.53 1478 1471.14 1458.03 1438.98 1414.48 1385.19 1351.81 1315.13 1275.92 1235.03 1193.22 1151.23 1109.65 1069.11 1030.17 993.087 958.235 925.846 895.931 868.484 843.581 821.108 800.998 783.127 767.403 753.665 741.618 731.085 721.887 713.932 707.177 701.606 697.248 694.061 691.977 690.946 690.918 691.932 693.846 696.77 700.724 705.777 711.933 719.207 727.565 736.958 747.4 758.923 771.599 785.552 800.813 817.519 835.747 855.552 877.008 900.13 925.069 952.123 981.352 1012.66 1045.21 1080.21 1117.17 1155.58 1194.94 1234.51 1273.49 1311.18 1346.62 1378.98 1407.52 1431.48 1450.26 1463.38 1470.49 1471.51 1466.19 1454.89 1437.84 1415.57 1388.77 1358.16 1324.46 1288.59 1251.34 1213.4 1175.47 1138.01 1101.51 1066.17 1031.92 1003.34 973.148 945.107 919.032 894.757 872.174 851.074 831.397 813.037 795.906 779.913 765.022 751.221 738.564 727.024 716.64 707.485 699.617 693.108 688.026 684.423 682.327 681.673 683.152 686.337 691.082 697.557 705.812 715.573 727.166 740.679 755.861 772.661 791.019 811.093 1354.36 1376.94 1394.59 1406.99 1413.86 1415.08 1409.88 1398.74 1381.97 1359.97 1332.93 1301.5 1266.61 1228.67 1188.15 1145.98 1102.79 1059.39 1016.11 973.664 932.603 894.322 857.188 822.18 789.355 758.727 730.513 704.649 681.092 659.626 640.304 623.017 607.62 594.031 582.158 571.899 563.137 555.81 549.851 545.186 541.817 539.753 539.004 539.27 540.739 543.473 547.562 553.051 560.126 568.702 578.848 590.656 604.271 619.717 637.102 656.541 678.205 701.914 727.772 755.893 786.028 818.278 852.482 888.334 925.591 964.064 1003.35 1042.97 1082.55 1121.62 1159.7 1196.28 1230.87 1262.94 1292.05 1317.77 1339.63 1357.14 1369.85 1377.36 1379.41 1375.85 1366.64 1351.87 1331.85 1306.99 1277.8 1244.72 1208.38 1169.28 1128.16 1085.52 1042 998.217 954.717 912.068 870.751 831.218 793.869 759.036 727.03 697.95 671.88 648.845 628.638 611.027 595.787 582.72 571.689 562.491 555.007 549.084 544.607 541.497 539.663 539.108 539.827 541.488 544.222 548.138 553.227 559.484 566.931 575.538 585.29 596.174 608.188 621.394 635.838 651.588 668.708 687.348 707.584 729.535 753.367 779.086 806.754 836.445 868.087 901.772 937.176 974.05 1012.21 1051.3 1090.88 1130.38 1169.26 1206.81 1242.38 1275.21 1304.64 1329.94 1350.39 1365.45 1374.64 1377.8 1374.74 1365.48 1349.99 1328.56 1301.67 1269.95 1234.26 1195.46 1154.33 1111.62 1068.07 1024.56 981.799 940.282 900.662 863.438 828.672 796.45 766.858 740.036 715.938 694.364 675.021 657.606 641.933 628.028 615.801 605.165 596.154 588.695 582.711 578.074 574.611 572.243 570.935 570.699 571.529 573.358 576.012 579.494 583.919 589.263 595.8 603.566 612.259 622.03 633.23 645.983 660.301 676.16 693.574 712.673 733.562 756.389 781.069 807.667 836.146 866.498 898.597 932.358 967.68 1004.54 1042.22 1080.6 1119.33 1157.9 1195.72 1232.18 1266.55 1298.12 1326 1349.46 1367.7 1380.12 1386.15 1385.63 1378.64 1365.25 1345.74 1320.68 1290.72 1256.62 1219.17 1179.19 1137.57 1095.07 1052.44 1010.3 969.27 929.948 892.555 857.477 824.964 794.993 767.522 742.661 720.269 700.254 682.523 666.954 653.396 641.523 631.139 622.063 614.197 607.516 602.005 597.704 594.577 592.544 591.55 591.548 592.575 594.475 597.395 601.329 606.357 612.49 619.741 628.075 637.426 647.808 659.255 671.836 685.696 700.847 717.446 735.567 755.273 776.635 799.647 824.471 851.474 880.707 912.116 944.99 980.267 1017.59 1056.49 1096.44 1136.67 1176.41 1214.84 1251.04 1284.12 1313.31 1337.84 1357.07 1370.52 1377.79 1378.82 1373.37 1361.78 1344.31 1321.48 1294.04 1262.74 1228.32 1191.74 1153.81 1115.25 1076.78 1038.87 1002.01 966.392 932.043 903.054 872.875 844.798 818.753 794.543 772.054 751.036 731.448 713.167 696.108 680.169 665.31 651.522 638.877 627.329 616.923 607.74 599.836 593.289 588.174 584.539 582.43 581.816 583.201 586.343 591.039 597.477 605.724 615.427 626.99 640.516 655.715 672.514 690.858 710.914 1260.24 1283.28 1301.35 1314.07 1321.15 1322.46 1317.18 1305.84 1288.74 1266.32 1238.73 1206.65 1171.14 1132.53 1091.29 1048.44 1004.59 960.635 916.786 873.863 832.326 794.01 756.472 721.284 688.37 657.673 629.47 603.66 580.197 558.805 539.593 522.425 507.143 493.669 481.909 471.758 463.088 455.841 449.952 445.334 441.999 439.967 439.288 439.502 440.923 443.594 447.615 453.017 460.035 468.526 478.577 490.283 503.81 519.154 536.447 555.805 577.453 601.12 626.971 655.16 685.355 717.754 752.168 788.264 825.805 864.646 904.345 944.41 984.475 1024.06 1062.69 1099.83 1134.96 1167.58 1197.21 1223.44 1245.75 1263.68 1276.72 1284.45 1286.62 1283.03 1273.68 1258.64 1238.22 1212.88 1183.15 1149.46 1112.51 1072.75 1030.98 987.703 943.544 899.176 855.126 811.989 770.244 730.353 692.711 657.67 625.543 596.42 570.377 547.447 527.388 509.945 494.887 482.001 471.147 462.116 454.783 448.998 444.638 441.623 439.865 439.371 440.202 441.863 444.599 448.517 453.605 459.855 467.291 475.883 485.611 496.457 508.413 521.547 535.913 551.573 568.586 587.129 607.267 629.124 652.904 678.587 706.251 735.992 767.728 801.608 837.253 874.429 912.972 952.534 992.664 1032.76 1072.29 1110.54 1146.81 1180.34 1210.45 1236.37 1257.35 1272.81 1282.25 1285.53 1282.45 1273.03 1257.21 1235.3 1207.8 1175.36 1138.89 1099.3 1057.37 1013.89 969.585 925.405 882.082 840.059 800.046 762.568 727.625 695.297 665.657 638.869 614.895 593.488 574.31 557.041 541.502 527.72 515.605 505.073 496.156 488.806 482.924 478.387 475.009 472.699 471.45 471.253 472.113 473.974 476.642 480.11 484.504 489.768 496.246 503.993 512.6 522.234 533.326 546 560.249 576.037 593.361 612.373 633.193 655.989 680.65 707.259 735.782 766.229 798.456 832.395 867.988 905.112 943.201 982.034 1021.3 1060.46 1098.95 1136.12 1171.2 1203.52 1232.1 1256.21 1274.96 1287.77 1294 1293.5 1286.37 1272.67 1252.69 1227.03 1196.37 1161.52 1123.29 1082.51 1040.12 996.904 953.616 910.889 869.354 829.639 791.931 756.622 723.988 693.971 666.475 641.667 619.366 599.452 581.872 566.469 553.096 541.408 531.183 522.231 514.45 507.838 502.388 498.145 495.082 493.104 492.142 492.169 493.211 495.09 498.01 501.92 506.922 513.031 520.259 528.566 537.875 548.195 559.567 572.045 585.807 600.843 617.33 635.338 654.936 676.197 699.087 723.775 750.716 779.949 811.472 844.63 880.212 917.913 957.322 997.89 1038.8 1079.33 1118.54 1155.54 1189.37 1219.25 1244.38 1264.09 1277.87 1285.31 1286.34 1280.77 1268.86 1250.95 1227.54 1199.44 1167.4 1132.23 1094.89 1056.27 1017.07 978.044 939.655 902.426 866.539 832.116 802.631 772.49 744.386 718.382 694.247 671.863 650.93 631.438 613.24 596.259 580.375 565.55 551.772 539.141 527.584 517.155 507.94 499.999 493.412 488.263 484.594 482.472 481.89 483.19 486.284 490.928 497.328 505.568 515.21 526.74 540.279 555.503 572.296 590.626 610.652 1166.25 1189.78 1208.28 1221.34 1228.63 1230.05 1224.69 1213.14 1195.7 1172.83 1144.67 1111.91 1075.74 1036.45 994.442 950.889 906.35 861.829 817.388 773.97 731.92 693.616 655.63 620.266 587.269 556.497 528.31 502.562 479.206 457.886 438.792 421.751 406.589 393.234 381.591 371.556 362.979 355.817 350 345.43 342.129 340.129 339.515 339.686 341.056 343.663 347.611 352.92 359.885 368.286 378.237 389.835 403.272 418.507 435.702 454.967 476.605 500.223 526.059 554.326 584.568 617.126 651.758 688.106 725.933 765.158 805.286 845.814 886.384 926.508 965.706 1003.42 1039.13 1072.31 1102.48 1129.22 1152.02 1170.38 1183.77 1191.72 1193.95 1190.4 1180.91 1165.57 1144.75 1118.9 1088.62 1054.28 1016.69 976.222 933.78 889.832 845.024 800.052 755.44 711.809 669.629 629.381 591.448 556.197 523.959 494.798 468.785 445.966 426.079 408.82 393.955 381.254 370.579 361.716 354.536 348.891 344.649 341.732 340.049 339.612 340.545 342.219 344.956 348.878 353.964 360.206 367.629 376.206 385.906 396.712 408.605 421.663 435.947 451.51 468.412 486.851 506.882 528.642 552.364 578.002 605.661 635.448 667.269 701.367 737.246 774.739 813.683 853.731 894.432 935.157 975.37 1014.33 1051.36 1085.6 1116.41 1142.98 1164.5 1180.38 1190.07 1193.44 1190.37 1180.8 1164.63 1142.21 1114.06 1080.86 1043.56 1003.14 960.398 916.122 871.042 826.171 782.278 739.719 699.3 661.587 626.476 594.061 564.401 537.659 513.835 492.6 473.581 456.459 441.058 427.41 415.412 404.989 396.163 388.923 383.138 378.694 375.403 373.158 371.96 371.806 372.72 374.632 377.285 380.739 385.103 390.275 396.694 404.432 412.943 422.421 433.403 445.995 460.181 475.893 493.122 512.042 532.788 555.55 580.188 606.804 635.366 665.905 698.264 732.377 768.236 805.642 844.142 883.429 923.246 963.029 1002.2 1040.12 1075.95 1109.04 1138.36 1163.13 1182.43 1195.65 1202.07 1201.59 1194.33 1180.3 1159.83 1133.54 1102.17 1066.52 1027.46 985.84 942.648 898.697 854.729 811.403 769.351 729.211 691.199 655.669 622.927 592.878 565.353 540.612 518.426 498.619 481.198 465.976 452.794 441.303 431.245 422.417 414.716 408.164 402.773 398.588 395.588 393.671 392.739 392.791 393.868 395.719 398.629 402.514 407.487 413.574 420.777 429.056 438.318 448.572 459.87 472.241 485.9 500.819 517.182 535.071 554.55 575.698 598.453 622.982 649.85 679.072 710.718 744.139 780.044 818.138 858.071 899.281 940.904 982.236 1022.29 1060.12 1094.73 1125.34 1151.09 1171.31 1185.43 1193.06 1194.09 1188.38 1176.16 1157.78 1133.76 1104.95 1072.15 1036.18 998.067 958.707 918.841 879.245 840.362 802.761 766.599 732.098 702.113 671.995 643.868 617.918 593.867 571.602 550.756 531.368 513.258 496.358 480.533 465.743 451.972 439.357 427.792 417.335 408.087 400.106 393.476 388.291 384.588 382.452 381.908 383.114 386.156 390.753 397.112 405.345 414.922 426.417 439.963 455.23 472.007 490.323 510.306 1072.4 1096.43 1115.38 1128.81 1136.32 1137.86 1132.4 1120.64 1102.84 1079.5 1050.75 1017.26 980.427 940.435 897.614 853.326 808.066 762.975 717.907 673.981 631.426 593.095 554.648 519.12 486.052 455.195 427.033 401.354 378.121 356.867 337.9 320.995 305.956 292.725 281.204 271.29 262.809 255.733 249.994 245.469 242.203 240.228 239.732 239.834 241.145 243.683 247.552 252.757 259.676 267.981 277.83 289.314 302.66 317.78 334.872 354.034 375.669 399.225 425.036 453.389 483.663 516.388 551.25 587.855 625.97 665.598 706.169 747.176 788.269 828.948 868.737 907.048 943.351 977.115 1007.85 1035.14 1058.45 1077.25 1091.01 1099.21 1101.53 1097.98 1088.34 1072.7 1051.44 1025.07 994.206 959.204 920.959 879.758 836.629 791.989 746.512 700.919 655.722 611.588 568.96 528.344 490.087 454.599 422.236 393.035 367.065 344.374 324.684 307.62 292.955 280.453 269.97 261.283 254.26 248.761 244.642 241.822 240.207 239.792 240.778 242.556 245.301 249.232 254.323 260.557 267.966 276.524 286.196 296.964 308.794 321.773 335.97 351.428 368.212 386.535 406.448 428.103 451.756 477.336 504.977 534.8 566.686 601.014 637.108 674.935 714.275 754.828 796.118 837.495 878.423 918.137 955.947 990.951 1022.51 1049.76 1071.85 1088.18 1098.13 1101.62 1098.53 1088.81 1072.27 1049.33 1020.49 986.511 948.342 907.078 863.492 818.394 772.492 726.909 682.446 639.317 598.488 560.572 525.297 492.799 463.128 436.418 412.752 391.7 372.841 355.858 340.6 327.103 315.239 304.927 296.195 289.061 283.37 279.001 275.805 273.623 272.47 272.354 273.311 275.272 277.914 281.369 285.714 290.787 297.159 304.89 313.287 322.605 333.48 345.988 360.115 375.751 392.873 411.697 432.361 455.091 479.696 506.318 534.909 565.53 598.017 632.298 668.413 706.105 745.016 784.777 825.148 865.577 905.44 944.14 980.741 1014.65 1044.74 1070.22 1090.09 1103.75 1110.38 1109.91 1102.5 1088.14 1067.14 1040.19 1008.05 971.576 931.651 889.17 845.158 800.456 755.797 711.863 669.288 628.739 590.424 554.687 521.841 491.76 464.203 439.542 417.486 397.798 380.532 365.5 352.516 341.236 331.352 322.654 315.022 308.515 303.182 299.057 296.12 294.264 293.366 293.444 294.588 296.401 299.281 303.13 308.076 314.141 321.32 329.565 338.778 348.961 360.189 372.444 385.994 400.785 417.012 434.775 454.126 475.151 497.749 522.09 548.877 578.074 609.848 643.509 679.759 718.258 758.732 800.612 842.973 885.109 926.077 964.776 1000.21 1031.58 1057.99 1078.73 1093.22 1101.03 1102.07 1096.22 1083.68 1064.79 1040.13 1010.59 976.987 940.188 901.249 861.13 820.565 780.382 740.985 703.009 666.566 631.977 601.507 571.393 543.24 517.358 493.4 471.274 450.513 431.239 413.22 396.408 380.645 365.89 352.121 339.527 327.951 317.464 308.18 300.157 293.482 288.258 284.52 282.366 281.883 282.973 285.96 290.512 296.828 305.054 314.568 326.021 339.567 354.902 371.647 389.95 409.874 978.697 1003.24 1022.66 1036.47 1044.22 1045.88 1040.33 1028.35 1010.16 986.35 956.974 922.715 885.186 844.483 800.798 755.75 709.729 664.077 618.335 573.893 530.913 492.372 453.517 417.848 384.723 353.762 325.633 300.027 276.931 255.739 236.925 220.176 205.269 192.158 180.76 170.976 162.591 155.603 149.948 145.472 142.253 140.317 140.416 139.906 141.139 143.603 147.411 152.479 159.368 167.568 177.298 188.681 201.942 216.941 233.929 252.979 274.648 298.131 323.91 352.365 382.649 415.543 450.644 487.506 525.914 565.962 606.992 648.497 690.127 731.379 771.784 810.716 847.636 882.003 913.317 941.18 965.018 984.295 998.449 1006.9 1009.34 1005.79 995.996 980.032 958.328 931.403 899.948 864.239 825.323 783.333 739.495 694.123 647.933 601.692 555.877 511.234 468.122 427.111 388.529 352.83 320.418 291.223 265.343 242.825 223.36 206.509 192.056 179.759 169.463 160.954 154.088 148.731 144.737 142.016 140.482 140.149 141.637 142.965 145.672 149.605 154.696 160.917 168.311 176.853 186.502 197.241 209.016 221.92 236.036 251.392 268.051 286.257 306.044 327.58 351.164 376.672 404.275 434.124 466.151 500.531 536.92 575.074 614.807 655.87 697.755 739.795 781.453 821.94 860.564 896.359 928.693 956.666 979.371 996.17 1006.4 1010.01 1006.92 997.068 980.146 956.655 927.091 892.286 853.205 811.054 766.581 720.619 673.88 627.574 582.538 538.827 497.571 459.474 424.024 391.429 361.766 335.131 311.66 290.826 272.133 255.299 240.2 226.873 215.155 204.951 196.306 189.267 183.656 179.351 176.234 174.114 173.009 172.924 173.937 175.946 178.597 182.056 186.391 191.372 197.692 205.409 213.666 222.818 233.594 246.034 260.086 275.653 292.662 311.39 331.958 354.66 379.217 405.848 434.462 465.153 497.764 532.184 568.568 606.53 645.845 686.106 727.014 768.118 808.681 848.192 885.589 920.349 951.235 977.456 997.935 1012.06 1018.9 1018.44 1010.89 996.178 974.623 946.985 914.058 876.734 835.922 792.556 747.696 702.222 656.862 612.308 569.201 528.23 489.589 453.648 420.717 390.594 363.015 338.454 316.551 297.005 279.916 265.092 252.317 241.262 231.559 222.986 215.405 208.922 203.635 199.57 196.694 194.889 194.02 194.096 195.26 197.123 199.971 203.776 208.704 214.761 221.916 230.115 239.27 249.377 260.534 272.668 286.101 300.756 316.849 334.465 353.674 374.57 396.991 421.103 447.797 476.957 508.863 542.728 579.356 618.268 659.3 701.875 745.014 787.988 829.891 869.515 905.81 937.969 965.061 986.358 1001.24 1009.24 1010.29 1004.29 991.403 971.996 946.655 916.346 881.903 844.237 804.438 763.53 722.236 681.452 641.517 603.165 566.434 531.745 500.812 470.686 442.501 416.706 392.849 370.88 350.201 331.051 313.126 296.408 280.707 265.987 252.211 239.649 228.063 217.546 208.223 200.157 193.435 188.166 184.392 182.216 181.821 182.77 185.685 190.199 196.48 204.696 214.151 225.557 239.081 254.524 271.207 289.506 309.353 885.133 910.196 930.116 944.325 952.332 954.096 948.457 936.271 917.676 893.372 863.345 828.254 790.019 748.598 703.986 658.162 611.329 565.137 518.665 473.7 430.506 391.325 352.226 316.425 283.255 252.179 224.141 198.641 175.687 154.536 135.889 119.3 104.522 91.527 80.303 70.8037 62.8503 56.6447 52.3163 49.2275 47.0244 45.7379 45.5161 46.0559 47.4695 49.8358 53.3193 58.0083 64.3276 71.7149 80.4125 90.5477 102.579 116.483 132.843 151.709 173.461 196.88 222.616 251.236 281.507 314.61 349.95 387.071 425.763 466.248 507.754 549.773 591.956 633.804 674.851 714.428 751.987 786.977 818.889 847.346 871.734 891.511 906.076 914.785 917.251 913.78 903.837 887.536 865.359 837.849 805.769 769.31 729.708 686.878 642.331 596.217 549.318 502.438 456.021 410.889 367.319 325.973 287.149 251.28 218.897 189.781 164.045 141.845 122.912 106.822 93.3891 82.3921 73.6221 66.7673 61.5611 57.7179 54.9392 53.1106 52.1042 51.8751 52.5107 53.8244 55.9906 59.1395 63.282 68.4166 74.5928 81.8463 90.2102 99.7357 110.43 122.49 136.118 151.328 167.873 185.985 205.671 227.092 250.637 276.072 303.642 333.459 365.626 400.061 436.743 475.204 515.338 556.911 599.403 642.119 684.515 725.795 765.253 801.857 834.999 863.712 887.061 904.342 914.852 918.457 915.471 905.482 888.151 864.08 833.751 798.105 758.049 714.995 669.627 622.8 575.216 528.168 482.577 438.29 396.613 358.393 322.802 290.192 260.637 234.124 210.897 190.312 171.794 155.181 140.383 127.472 116.257 106.659 98.7003 92.4077 87.5292 83.847 81.1987 79.4495 78.5943 78.5963 79.5639 81.3439 83.6374 86.6578 90.4873 94.9294 100.587 107.493 114.98 123.476 133.843 146.136 160.079 175.614 192.516 211.139 231.617 254.297 278.787 305.425 334.049 364.806 397.53 432.041 468.713 506.927 546.63 587.399 628.835 670.634 711.904 752.256 790.475 826.119 857.851 884.839 905.955 920.562 927.621 927.159 919.466 904.405 882.265 853.912 820.161 781.956 740.208 695.917 650.185 603.934 557.847 512.655 468.999 427.638 388.692 352.593 319.646 289.52 261.944 237.545 215.85 196.486 179.633 165.089 152.627 141.941 132.605 124.375 117.114 110.926 105.982 102.246 99.6299 98.0095 97.2041 97.2541 98.6756 100.116 102.647 106.088 110.622 116.282 123.046 130.893 139.818 149.867 160.932 172.948 186.253 200.767 216.72 234.169 253.221 273.975 296.208 320.031 346.623 375.736 407.77 441.785 478.835 518.164 559.767 603.071 646.998 690.928 733.752 774.333 811.521 844.51 872.318 894.197 909.48 917.693 918.749 912.608 899.345 879.394 853.34 822.225 786.901 748.33 707.627 665.902 623.846 582.449 541.952 503.226 466.202 431.408 400.025 369.875 341.641 315.951 292.199 270.409 249.81 230.811 212.99 196.384 180.757 166.069 152.277 139.748 128.145 117.59 108.22 100.101 93.3263 88.0055 84.188 81.9942 81.5146 82.7141 85.6903 90.2622 96.5475 104.622 113.854 125.045 138.491 154.152 170.711 189.015 208.746 791.715 817.301 837.754 852.387 860.652 862.519 856.793 844.411 825.379 800.566 769.867 733.879 694.925 652.785 607.171 560.559 512.852 466.16 418.892 373.399 330.107 289.974 250.753 214.94 181.754 150.512 122.601 97.2826 75.0708 57.02 45.6552 36.348 28.1707 21.1583 15.3649 10.8042 7.16005 4.5363 3.04791 2.15729 1.55586 1.27833 1.43405 1.86453 2.5146 3.50468 4.9106 7.06461 9.80376 13.1128 17.048 21.6994 27.5328 34.9297 44.9688 58.7163 77.0804 97.6073 121.469 149.86 180.035 213.518 249.155 286.553 325.537 366.46 408.455 451.001 493.751 536.219 577.931 618.178 656.405 692.036 724.568 753.647 778.607 798.911 813.915 822.898 825.384 822.003 811.899 795.236 772.562 744.44 711.724 674.485 634.22 590.519 545.279 498.432 450.812 403.306 356.261 310.701 266.77 225.128 186.046 150.01 118.062 90.5424 68.5934 52.7521 40.6522 31.1264 23.7958 18.3414 14.4578 11.7955 10.0322 8.84886 8.06375 7.5889 7.34883 7.31656 7.4957 7.9202 8.65283 9.77742 11.3523 13.3978 15.9524 19.0882 22.9028 27.5301 33.1373 40.0812 48.879 60.1113 73.62 89.0807 106.67 126.795 150.037 175.45 203.033 232.833 265.112 299.613 336.562 375.323 415.855 457.951 501.06 544.457 587.614 629.705 670.029 707.442 741.426 770.904 794.912 812.696 823.49 827.089 824.192 814.075 796.308 771.635 740.516 704.015 662.936 618.997 572.722 525.046 476.576 428.777 382.659 337.842 295.902 257.708 222.054 189.425 159.951 133.742 111.366 92.2273 75.9989 62.8709 52.6935 44.4263 37.6137 32.0663 27.6894 24.4226 21.9989 20.2076 18.9201 18.0859 17.7031 17.7188 18.0398 18.778 19.831 21.215 23.0745 25.4547 28.3939 31.6132 35.638 40.7517 47.5553 56.3715 67.2914 80.3092 95.0789 112.018 131.496 154 178.44 205.07 233.695 264.527 297.349 331.92 368.875 407.339 447.41 488.652 530.622 573.135 615.076 656.301 695.338 731.892 764.524 792.296 814.101 829.211 836.494 836.019 828.18 812.766 789.991 760.898 726.278 687.162 644.447 599.234 552.615 505.63 458.822 413.031 368.878 327.216 288.035 251.846 218.918 188.832 161.312 137.321 116.357 98.1301 83.0936 71.0745 61.6757 54.4254 48.3369 43.1147 38.5807 34.7605 31.774 29.5504 27.9937 27.021 26.4944 26.4145 26.8354 27.6864 28.9828 30.7827 33.248 36.4951 40.6002 45.6484 51.7938 59.4126 68.3958 78.4332 89.8566 102.7 117.341 134.075 152.8 173.412 195.43 218.906 245.373 274.423 306.593 340.676 378.208 417.947 460.128 504.193 548.925 593.843 637.653 679.231 717.349 751.205 779.761 802.25 817.958 826.387 827.434 821.165 807.509 786.99 760.184 728.228 691.978 652.468 610.813 568.243 525.393 483.373 442.287 403.18 365.842 330.927 299.13 268.957 240.679 215.163 191.526 169.924 149.385 130.557 112.841 96.3736 80.9014 66.6303 54.7211 47.1188 40.5868 34.8578 29.8495 25.5555 22.0065 19.2407 17.2619 16.1181 15.8016 16.4667 17.909 20.0922 23.0849 26.9235 31.3511 36.7744 43.5832 56.9983 72.1586 89.821 108.516 698.443 724.551 745.574 760.657 769.186 771.145 765.333 752.776 733.277 707.934 676.543 639.586 599.899 557.055 510.343 462.939 414.289 367.164 318.974 272.905 229.44 188.745 149.247 113.43 80.5759 53.6115 37.6889 24.1809 13.2077 6.52866 4.1508 2.77763 1.69864 0.925229 0.482418 0.397052 0.380143 0.363016 0.341326 0.319869 0.313575 0.312433 0.301247 0.286492 0.281744 0.282928 0.28266 0.295329 0.318887 0.365994 0.474829 0.685491 1.13064 2.06481 4.02979 8.37107 15.8508 25.2479 37.9701 57.5156 82.7199 113.018 148.132 185.703 225.183 266.603 309.111 352.191 395.514 438.623 481.022 521.957 560.883 597.174 630.34 660.074 685.627 706.489 721.966 731.241 733.712 730.461 720.182 703.139 679.949 651.185 617.826 579.772 538.849 494.194 448.267 400.677 352.308 304.184 256.513 210.478 166.012 124.362 87.2388 58.2561 37.6689 22.3476 12.4946 7.65803 4.7557 2.82501 1.60486 0.906181 0.573044 0.468914 0.46572 0.46934 0.472992 0.47772 0.483376 0.488268 0.492912 0.505894 0.530025 0.568976 0.626806 0.713521 0.843519 1.04271 1.3566 1.85538 2.66114 3.99187 6.214 9.92489 15.2999 22.0944 30.7594 42.2704 58.5192 79.4821 103.951 132.236 164.539 199.156 236.336 275.401 316.287 358.933 402.664 446.752 490.691 533.622 574.861 613.105 647.967 678.25 702.942 721.245 732.326 735.917 733.113 722.884 704.646 679.358 647.413 610.083 567.905 523.089 475.784 427.241 378.003 329.562 283.118 237.712 195.34 157.155 121.789 90.8664 66.0051 47.9033 34.1638 23.6266 15.7845 10.6624 7.76182 5.75541 4.28242 3.20945 2.44349 1.93151 1.57377 1.30829 1.11377 0.978349 0.914136 0.892342 0.904198 0.951717 1.02387 1.12863 1.35486 1.82731 2.22161 2.44448 3.03722 4.15747 5.97759 8.71227 12.7262 18.0839 24.7977 33.5964 45.4557 62.011 82.5077 106.292 133.501 164.31 197.216 231.858 269.07 307.774 348.213 389.869 432.392 475.656 518.229 560.373 600.213 637.668 671.233 699.818 722.331 737.959 745.426 744.971 736.978 721.223 697.77 667.928 632.402 592.396 548.685 502.587 455.12 407.442 359.912 313.585 268.97 226.995 187.509 151.297 118.916 90.6152 67.3038 50.5328 37.4276 26.9562 19.269 13.9681 10.5466 8.50034 6.9165 5.63516 4.56814 3.69133 3.011 2.50288 2.13189 1.8816 1.73486 1.66722 1.69148 1.79034 1.95957 2.22645 2.6254 3.22205 4.10786 5.37331 7.14439 9.74149 13.2404 17.4166 22.5224 28.7429 36.6928 47.2445 61.0329 78.1083 97.1467 118.601 144.11 173.055 205.047 239.684 277.492 317.626 360.382 405.243 450.798 496.725 541.586 584.207 623.292 658.057 687.391 710.522 726.675 735.331 736.376 729.97 715.899 694.786 667.189 634.354 597.134 556.652 513.989 470.554 426.867 384.207 342.49 302.999 265.355 230.39 198.216 168.038 139.69 114.4 91.1212 70.5601 53.9005 42.7515 32.8076 23.9001 15.8635 9.21015 4.80681 3.29138 2.38431 1.79322 1.33813 0.989868 0.728438 0.534979 0.38996 0.269175 0.192221 0.136283 0.0544552 -0.0400197 -0.141393 -0.248181 -0.360658 -0.447398 -0.364692 3.26906 10.5069 19.0624 28.1962 605.32 631.937 653.58 669.141 677.939 679.941 674.088 661.375 641.366 615.48 583.377 545.372 504.935 461.417 413.495 365.318 315.597 268.071 218.97 172.443 128.693 87.5578 52.4556 32.4235 16.3443 6.42138 3.35489 1.46675 0.663552 0.572274 0.515449 0.458615 0.415187 0.373319 0.326739 0.290199 0.274266 0.258752 0.239053 0.22053 0.213748 0.209932 0.198079 0.183419 0.17558 0.171417 0.16304 0.157551 0.152303 0.146258 0.144891 0.146619 0.152599 0.166102 0.18674 0.260156 0.464867 1.05251 2.81363 7.96079 18.5904 33.3272 56.4566 88.0643 124.811 166.653 209.678 253.334 297.24 341.02 384.127 425.775 465.423 502.388 536.202 566.623 592.792 614.243 630.222 639.805 642.142 639.117 628.651 611.207 587.467 558.02 524.006 485.041 443.47 397.73 351.122 302.705 253.463 204.612 156.243 110.564 70.5633 41.6733 20.7241 9.09347 4.06445 1.35395 0.364857 0.268277 0.241734 0.225895 0.218609 0.215238 0.215518 0.213481 0.205917 0.200989 0.19742 0.194804 0.19298 0.191531 0.190415 0.190581 0.19103 0.191976 0.193852 0.196906 0.201598 0.208237 0.21811 0.232615 0.255095 0.29178 0.355443 0.472544 0.693838 1.1526 2.12793 4.28652 9.08762 17.5428 29.074 45.4188 70.1127 100.543 136.157 175.475 216.655 259.805 304.156 348.923 393.621 437.386 479.595 518.693 554.478 585.636 611.065 629.915 641.319 644.93 642.207 631.895 613.143 587.205 554.366 516.132 472.731 427.14 378.864 329.474 279.403 230.114 183.255 137.262 96.0767 63.9402 40.4111 22.807 11.6753 6.45026 3.42224 1.56984 0.577044 0.255995 0.233049 0.226561 0.216954 0.211831 0.207493 0.202786 0.201277 0.200985 0.200499 0.198281 0.194691 0.191215 0.189059 0.188564 0.188972 0.193263 0.214328 0.276686 0.279961 0.254295 0.258941 0.301892 0.375797 0.459341 0.563868 0.79315 1.33647 2.47666 4.99178 10.3905 18.872 30.421 46.6017 70.4307 99.2437 132.017 169.346 208.238 249.007 291.036 334.134 378.104 421.303 464.407 505.04 543.437 577.919 607.369 630.625 646.777 654.491 653.982 645.873 629.761 605.606 575 538.551 497.654 452.9 405.917 357.559 309.117 260.828 213.894 168.868 126.969 89.4196 60.0381 38.9274 22.941 12.3229 7.25987 4.24681 2.21458 1.04788 0.472773 0.270764 0.251391 0.248228 0.240437 0.235617 0.228018 0.222183 0.220071 0.216848 0.212323 0.209986 0.210662 0.213606 0.217287 0.22095 0.225196 0.231315 0.240918 0.260983 0.299701 0.353832 0.435474 0.565316 0.781279 1.16486 1.83618 3.10824 5.53675 10.0265 16.8881 25.5531 36.9048 53.5492 76.9208 105.079 138.722 176.704 217.198 260.519 306.212 352.604 399.583 445.561 489.265 529.352 565.069 595.211 619.016 635.636 644.531 645.558 639.036 624.519 602.79 574.36 540.603 502.367 460.887 417.147 372.824 328.227 284.949 242.647 202.815 164.869 129.87 97.6365 69.1645 48.101 33.5817 21.223 11.4803 5.80929 3.70073 2.29404 1.2568 0.60723 0.522164 0.505649 0.502426 0.486368 0.462121 0.433059 0.396028 0.349417 0.292621 0.226693 0.153786 0.0983096 0.041524 -0.0358294 -0.125048 -0.22111 -0.322481 -0.429078 -0.51847 -0.603302 -0.961675 -1.19042 -1.35427 -1.46799 512.352 539.451 561.773 577.851 586.911 588.877 583.065 570.223 549.645 523.208 490.374 451.234 410.022 365.898 316.596 267.601 216.791 169.104 119.015 72.1003 40.636 19.9435 6.63845 2.85053 0.980947 0.779122 0.645271 0.547594 0.49887 0.439609 0.391128 0.341927 0.302442 0.261615 0.221172 0.187623 0.170708 0.155316 0.13685 0.119823 0.112811 0.108339 0.0973527 0.0845902 0.0767878 0.0721709 0.0642057 0.0584489 0.0528577 0.0468861 0.0440274 0.0432762 0.0437222 0.0454329 0.0425744 0.0426614 0.0471583 0.0560348 0.0867557 0.178227 0.559833 2.03529 7.67605 21.0845 40.5535 72.1755 111.034 154.387 198.929 243.373 287.229 329.62 370.022 407.684 442.154 473.29 500.089 522.164 538.676 548.596 550.699 547.981 537.278 519.397 495.051 464.818 430.124 390.111 347.879 300.828 253.482 204.137 154.1 105.675 63.2378 33.2739 13.1385 4.81449 1.11975 0.249386 0.182967 0.143156 0.148168 0.140298 0.128328 0.119463 0.112669 0.108967 0.10843 0.106163 0.0997128 0.095015 0.0915828 0.08898 0.0870783 0.0856091 0.0843798 0.0839833 0.0836929 0.0834659 0.0835719 0.0839939 0.0849077 0.0859504 0.0873077 0.0886021 0.0899539 0.0922598 0.0965956 0.103406 0.113115 0.128526 0.154735 0.209162 0.339526 0.692633 1.74272 4.87443 13.4878 27.232 48.1741 79.8682 117.82 160.757 205.743 251.147 296.569 341.021 384.245 424.174 460.866 492.894 519.138 538.538 550.3 553.559 551.223 540.827 521.481 494.81 461.074 422.026 377.221 330.849 281.409 231.19 180.14 130.248 85.9155 50.3259 25.4132 10.9125 4.69243 1.48064 0.289929 0.176118 0.171463 0.143978 0.122979 0.127134 0.117972 0.109239 0.102188 0.0981654 0.0936742 0.0892001 0.0862224 0.0855115 0.0863382 0.0863318 0.0841439 0.0798909 0.0763247 0.0739611 0.0718147 0.0709983 0.0766705 0.0840983 0.0870037 0.0896246 0.0928457 0.0956377 0.098401 0.103296 0.108258 0.113508 0.123781 0.144861 0.201792 0.348276 0.740883 1.8808 5.19392 13.6398 26.7155 45.6685 75.0762 110 149.935 192.318 235.905 280.494 324.309 368.345 409.758 449.147 484.547 514.865 538.9 555.595 563.49 562.985 554.749 538.289 513.373 481.95 444.534 402.689 356.823 308.9 259.539 210.297 161.404 114.805 73.8277 43.9411 22.2103 9.8227 4.52487 1.61458 0.378638 0.206309 0.199733 0.16501 0.142602 0.119862 0.100795 0.0936456 0.091258 0.089978 0.0883519 0.0871052 0.0862279 0.085653 0.0837016 0.079776 0.0780362 0.0786549 0.0800632 0.0839534 0.0863805 0.0858144 0.0821886 0.07693 0.0729514 0.0733933 0.0778459 0.0840667 0.0916055 0.101544 0.113738 0.129603 0.158074 0.212405 0.343088 0.649113 1.33345 2.97128 7.05291 15.9669 29.0778 49.6949 80.4317 117.337 160.609 207.094 254.327 302.337 349.558 394.409 435.535 472.249 503.221 527.737 544.848 553.996 554.977 548.373 533.371 511.009 481.7 446.977 407.685 365.182 320.259 275.086 229.593 185.808 142.954 102.915 66.9434 42.9705 24.4526 11.4933 5.29104 2.67734 1.01782 0.52344 0.482713 0.467891 0.451557 0.431511 0.414162 0.394843 0.384616 0.38249 0.368826 0.346594 0.319252 0.284109 0.239817 0.186078 0.124053 0.0566324 0.00251595 -0.053538 -0.126869 -0.211206 -0.302339 -0.398718 -0.499545 -0.589792 -0.689139 -0.991754 -1.20775 -1.36276 -1.46553 419.552 447.075 470.16 486.801 496.109 497.885 492.258 479.337 458.111 431.114 397.549 357.183 315.151 270.43 219.578 170.008 118.104 70.2519 35.4232 14.2091 4.58285 1.43868 0.974162 0.777048 0.705454 0.604969 0.50262 0.421644 0.375983 0.322331 0.27645 0.230255 0.192611 0.153436 0.11613 0.0850014 0.0674229 0.0521429 0.0350097 0.0194006 0.0120533 0.00677728 -0.00338252 -0.014746 -0.0224675 -0.0271382 -0.0344378 -0.0399304 -0.0451681 -0.050528 -0.0532866 -0.0545407 -0.0543361 -0.0535708 -0.056748 -0.0577645 -0.0563081 -0.0558043 -0.0538103 -0.0534895 -0.0452453 -0.0175015 0.0965197 0.66647 3.28014 14.0755 32.9588 62.7231 102.199 145.689 190.349 233.456 274.642 313.045 348.189 380.075 407.515 430.254 447.32 457.604 459.396 457.054 446.061 427.654 402.635 371.527 336.103 294.801 251.924 203.372 155.535 106.279 62.0777 30.663 10.5099 3.05409 0.371816 0.111234 0.0640221 0.0663165 0.0500377 0.0338132 0.0409047 0.0360548 0.0265184 0.0184633 0.0121845 0.00858756 0.00750765 0.00509322 -0.000562212 -0.00500639 -0.00830496 -0.0107988 -0.0126314 -0.0139349 -0.0151176 -0.0155745 -0.0158434 -0.0160727 -0.0159774 -0.0156333 -0.0148741 -0.0140556 -0.013023 -0.0121636 -0.0114491 -0.0102292 -0.00800171 -0.00489957 -0.00159138 0.00156391 0.0042976 0.00785596 0.0149439 0.0272864 0.0536138 0.123538 0.372289 1.37547 5.53187 17.6426 36.797 68.0474 108.644 153.529 199.76 244.771 288.884 329.656 367.345 400.096 427.121 447.079 459.206 461.702 460.086 449.614 429.549 402.109 367.479 327.543 281.129 234.004 183.28 132.662 83.6594 45.7521 20.2977 7.01299 1.84949 0.241711 0.125853 0.0963771 0.0650932 0.04249 0.0414863 0.0302771 0.0184864 0.0221569 0.0154172 0.00798657 0.00197596 -0.00178258 -0.00607086 -0.0104309 -0.0135409 -0.014044 -0.0131904 -0.0131742 -0.0151982 -0.0193909 -0.0230056 -0.025516 -0.027984 -0.0294062 -0.0259666 -0.0240011 -0.0189752 -0.0133405 -0.0094186 -0.00765484 -0.0070199 -0.00450669 -0.000909776 0.00106556 0.00090841 0.000986747 0.00271436 0.00997247 0.0252414 0.0461176 0.106987 0.33592 1.25275 4.83 15.6534 32.5367 59.4003 96.0449 137.865 182.999 227.369 272.177 314.388 354.783 391.1 422.264 447.095 464.32 472.304 471.874 463.487 446.688 420.898 388.614 350.177 307.311 260.289 211.425 161.356 112.339 68.4021 36.7314 15.0822 5.65954 1.51955 0.25857 0.182417 0.128775 0.0685004 0.0188289 0.015545 0.0179026 0.0222577 0.0127766 -0.00174825 -0.00800269 -0.010154 -0.0109217 -0.0121882 -0.0133336 -0.0138384 -0.0144156 -0.016164 -0.0199446 -0.0218394 -0.0211334 -0.0193348 -0.0158459 -0.013347 -0.0140447 -0.0180333 -0.0237116 -0.028161 -0.0290605 -0.026573 -0.0228805 -0.0184998 -0.0134984 -0.0095907 -0.00819619 -0.00897047 -0.012198 -0.00809461 0.00757463 0.0271715 0.0620585 0.156796 0.470912 1.55559 5.63311 17.7087 36.0967 67.2666 109.06 156.095 205.073 253.516 299.594 341.825 379.604 411.423 436.684 454.312 463.73 464.627 457.981 442.453 419.45 389.221 353.476 313.08 269.576 223.424 177.61 131.221 87.5123 51.5072 27.4879 11.258 4.5604 1.43255 0.510486 0.442641 0.39523 0.365617 0.360392 0.345733 0.337867 0.326893 0.30935 0.297231 0.28078 0.270989 0.267003 0.25404 0.232882 0.20675 0.173286 0.131315 0.0806539 0.0224417 -0.0402696 -0.0930973 -0.148028 -0.217496 -0.29713 -0.383418 -0.474897 -0.570642 -0.660903 -0.76751 -1.02922 -1.23007 -1.37539 -1.46791 326.918 354.77 378.747 396.006 405.543 407.012 401.675 388.718 366.772 339.207 304.904 263.162 220.228 175.216 122.693 72.026 36.0409 12.5727 3.77587 1.35126 1.064 0.878416 0.75168 0.611878 0.556033 0.470014 0.377597 0.303264 0.256271 0.205686 0.161987 0.118433 0.082345 0.0450717 0.0106745 -0.0181812 -0.035958 -0.0510262 -0.0669923 -0.0813621 -0.0888312 -0.0945384 -0.10395 -0.114052 -0.12161 -0.126413 -0.133225 -0.138525 -0.143462 -0.148325 -0.151009 -0.152082 -0.152116 -0.151518 -0.154528 -0.155173 -0.154345 -0.15443 -0.153502 -0.154589 -0.154595 -0.151489 -0.148448 -0.140012 -0.0929582 0.182287 1.87999 10.3562 28.8496 56.7176 95.5769 137.515 179.361 218.439 254.27 286.952 315.07 338.539 356.177 366.851 368.448 366.415 355.031 336.084 310.343 278.207 242.109 199.452 156.411 107.533 64.8166 31.8654 10.3133 2.50391 0.159239 0.000477191 -0.0182929 -0.050134 -0.0576103 -0.0462519 -0.0552709 -0.0667114 -0.0622347 -0.0666504 -0.075006 -0.082451 -0.0883151 -0.0917998 -0.0932544 -0.0957371 -0.100757 -0.104941 -0.108059 -0.110453 -0.112213 -0.113448 -0.114621 -0.11509 -0.115349 -0.115523 -0.115436 -0.11507 -0.114385 -0.113597 -0.11263 -0.111817 -0.11106 -0.109783 -0.107686 -0.104845 -0.101859 -0.0991369 -0.0971227 -0.0950666 -0.0920097 -0.0895221 -0.0884238 -0.0862163 -0.0779799 -0.0540137 0.0277066 0.442368 2.70852 12.7947 32.0144 62.9904 104.431 148.817 193.509 234.917 273.836 307.386 335.093 355.603 368.186 370.702 368.965 358.528 337.634 309.379 273.934 232.984 185.107 137.878 88.3705 48.5901 19.7654 5.99271 1.1306 0.0971953 0.0132173 -0.0164972 -0.039979 -0.0409992 -0.0474886 -0.062154 -0.0633287 -0.0718796 -0.081007 -0.0793037 -0.0852199 -0.09228 -0.0978451 -0.10149 -0.10569 -0.109933 -0.113066 -0.113476 -0.112459 -0.112144 -0.11461 -0.118562 -0.122108 -0.124615 -0.127497 -0.129154 -0.12602 -0.122189 -0.11744 -0.112504 -0.109338 -0.107642 -0.106046 -0.103164 -0.10009 -0.0984612 -0.098765 -0.099366 -0.0994025 -0.0968455 -0.0924236 -0.0910342 -0.0923837 -0.0902084 -0.0730897 -0.00790999 0.305855 1.91552 9.33374 25.4535 50.761 88.6615 130.584 176.05 218.826 260.251 297.511 329.498 355.144 372.884 381.162 380.695 372.131 355.048 328.317 295.144 255.763 211.911 164.077 115.405 69.9653 36.1332 13.3266 4.17476 0.704087 0.121821 0.0372046 -0.00415134 -0.0287582 -0.0337009 -0.0525088 -0.0861068 -0.0900292 -0.0862122 -0.0807762 -0.0875544 -0.100141 -0.106517 -0.109022 -0.109944 -0.111232 -0.112556 -0.113119 -0.113465 -0.115223 -0.118791 -0.120865 -0.120368 -0.118078 -0.11458 -0.112396 -0.113054 -0.117045 -0.122728 -0.127053 -0.127949 -0.125533 -0.122127 -0.118011 -0.113382 -0.109926 -0.109135 -0.111063 -0.115919 -0.115941 -0.108916 -0.104641 -0.104526 -0.102762 -0.0931536 -0.0730514 0.0173752 0.441576 2.38934 11.9176 32.0074 64.623 108.999 157.532 204.821 247.97 287.085 319.799 345.854 364.026 373.74 374.474 367.868 351.748 328.116 296.91 260.047 218.638 174.331 127.005 81.6067 44.8215 20.1655 6.625 1.89096 0.465245 0.365263 0.290495 0.302171 0.28352 0.257896 0.240512 0.238397 0.226888 0.219726 0.209304 0.193085 0.18186 0.166842 0.15692 0.15166 0.139426 0.119366 0.0944259 0.0626028 0.0228843 -0.0247878 -0.0793514 -0.137694 -0.18882 -0.242217 -0.307952 -0.383036 -0.464572 -0.55123 -0.642166 -0.731578 -0.841292 -1.06936 -1.255 -1.39057 -1.47413 234.459 262.507 287.53 305.477 315.275 316.23 311.324 298.344 275.619 247.494 212.343 169.57 125.651 79.2318 37.7973 14.1791 3.81963 1.37488 1.09113 0.970138 0.828628 0.702824 0.594725 0.475234 0.419062 0.338037 0.252525 0.184308 0.137055 0.0892064 0.0476849 0.00676019 -0.0277772 -0.0630678 -0.0949244 -0.121722 -0.139368 -0.154102 -0.169014 -0.182301 -0.189764 -0.195765 -0.204508 -0.213711 -0.220859 -0.225633 -0.231944 -0.236993 -0.241684 -0.246131 -0.248681 -0.249814 -0.249964 -0.249669 -0.252585 -0.253083 -0.252037 -0.252193 -0.251367 -0.252441 -0.252875 -0.251131 -0.251286 -0.255675 -0.255421 -0.254768 -0.218901 -0.0532269 1.21517 8.35467 25.9442 51.6133 87.2328 124.355 160.543 193.965 222.704 246.959 265.226 276.366 278.025 276.306 264.439 244.812 218.404 185.317 149.114 106.024 67.3257 33.7667 11.4132 2.68233 0.0569916 -0.136315 -0.129619 -0.157911 -0.145461 -0.158924 -0.161307 -0.152058 -0.158612 -0.167683 -0.165216 -0.169163 -0.176528 -0.183415 -0.188965 -0.192402 -0.19415 -0.19667 -0.201159 -0.205061 -0.208001 -0.2103 -0.211995 -0.213197 -0.214286 -0.214766 -0.215029 -0.215163 -0.215088 -0.214719 -0.214094 -0.213345 -0.212418 -0.211608 -0.21078 -0.209518 -0.207561 -0.204878 -0.202085 -0.199468 -0.197471 -0.195363 -0.192543 -0.190476 -0.189808 -0.189391 -0.188661 -0.189881 -0.192342 -0.184909 -0.143135 0.102433 1.78614 10.9146 30.2741 60.5166 99.984 140.164 180.13 214.578 243.007 264.078 277.262 281.556 278.33 267.782 245.958 217.045 180.987 139.28 92.2778 53.9518 22.9384 6.85271 1.15157 0.028874 -0.0880311 -0.13067 -0.150167 -0.139626 -0.149005 -0.147862 -0.151898 -0.16338 -0.165794 -0.173115 -0.180485 -0.180549 -0.18617 -0.192783 -0.19798 -0.201597 -0.205642 -0.209624 -0.212623 -0.213082 -0.212221 -0.212055 -0.214384 -0.217951 -0.221267 -0.223736 -0.226599 -0.228526 -0.225372 -0.220814 -0.215859 -0.211348 -0.208995 -0.20743 -0.205345 -0.202308 -0.199582 -0.198146 -0.198407 -0.199257 -0.199239 -0.196689 -0.192371 -0.191 -0.194692 -0.198028 -0.199752 -0.202121 -0.200197 -0.166934 -0.0171811 0.880663 6.37935 22.2982 46.1837 83.7357 123.544 165.545 203.68 236.467 262.961 281.21 290.227 289.572 280.856 263.499 235.747 201.817 161.897 118.036 73.8439 39.0422 14.4511 4.1754 0.600232 0.0545533 -0.0601204 -0.134161 -0.146312 -0.133764 -0.140078 -0.142058 -0.15692 -0.184647 -0.190302 -0.187617 -0.182552 -0.18747 -0.198467 -0.205046 -0.20797 -0.209216 -0.210598 -0.21201 -0.212652 -0.212816 -0.214623 -0.217802 -0.219951 -0.219599 -0.217192 -0.213811 -0.211843 -0.21257 -0.216256 -0.221754 -0.225938 -0.226706 -0.224438 -0.22114 -0.217114 -0.212622 -0.209265 -0.208518 -0.21052 -0.215062 -0.215329 -0.209781 -0.206361 -0.207684 -0.209061 -0.207527 -0.210848 -0.210792 -0.200671 -0.178763 0.0188362 1.61034 11.0847 32.81 67.8643 111.086 154.419 194.6 228.2 255.204 273.958 284.029 284.505 278.01 261.207 236.965 204.852 166.875 124.769 80.682 43.2108 18.1001 5.2046 0.899126 0.295906 0.196188 0.212101 0.188575 0.153479 0.170865 0.157974 0.136785 0.121608 0.118744 0.108411 0.10152 0.0915102 0.0766299 0.0664754 0.0527705 0.0428628 0.0366159 0.0250005 0.00607092 -0.0176547 -0.0478184 -0.0852957 -0.130059 -0.181114 -0.235422 -0.284587 -0.336128 -0.398218 -0.468881 -0.545748 -0.62766 -0.713968 -0.801682 -0.911223 -1.11168 -1.28238 -1.40824 -1.48388 142.514 170.213 196.537 215.227 225.322 226.294 221.143 208.196 184.587 156.008 120.123 75.413 40.3153 17.0004 3.84717 1.42844 1.13693 0.988633 0.845666 0.771537 0.658936 0.550528 0.448083 0.340527 0.282827 0.20667 0.127821 0.0644749 0.0180188 -0.0272016 -0.0665779 -0.105 -0.137957 -0.171141 -0.200707 -0.225615 -0.242876 -0.257176 -0.271092 -0.28339 -0.290771 -0.296886 -0.305023 -0.313492 -0.320172 -0.32487 -0.330724 -0.335514 -0.339898 -0.343951 -0.346383 -0.34752 -0.347821 -0.347689 -0.350569 -0.350989 -0.349909 -0.350102 -0.349377 -0.350194 -0.350755 -0.34922 -0.349781 -0.353934 -0.356084 -0.361463 -0.362774 -0.36704 -0.340588 -0.206054 0.800891 6.74832 22.4406 43.4004 72.26 102.679 130.799 155.739 174.548 186.189 187.254 186.265 174.109 154.471 127.804 94.7208 63.2168 33.7387 12.6249 3.0991 0.0216423 -0.271211 -0.264124 -0.29772 -0.261362 -0.268554 -0.254679 -0.2623 -0.263456 -0.256663 -0.261634 -0.268966 -0.268044 -0.271809 -0.278382 -0.284709 -0.289874 -0.293203 -0.295144 -0.297649 -0.301674 -0.305272 -0.308057 -0.310239 -0.311865 -0.313065 -0.314046 -0.314528 -0.314783 -0.314903 -0.314828 -0.314486 -0.313917 -0.31323 -0.312365 -0.311624 -0.310786 -0.309568 -0.307742 -0.305244 -0.30264 -0.30017 -0.298042 -0.295914 -0.293443 -0.291494 -0.290721 -0.290337 -0.289899 -0.291482 -0.295459 -0.299714 -0.307232 -0.312509 -0.281049 -0.0868756 1.44104 10.2269 28.6541 54.6389 89.4024 122.323 151.016 172.5 186.304 189.047 187.271 177.255 154.727 125.856 90.5753 56.3923 25.9964 8.56616 1.70407 0.0131695 -0.167577 -0.242439 -0.258453 -0.254481 -0.258761 -0.246863 -0.251906 -0.251341 -0.255063 -0.264428 -0.267836 -0.274699 -0.281093 -0.282224 -0.287393 -0.293493 -0.298347 -0.301905 -0.305743 -0.309473 -0.312253 -0.31276 -0.312132 -0.312086 -0.314258 -0.317504 -0.320565 -0.322929 -0.325568 -0.327372 -0.32447 -0.320282 -0.315237 -0.311104 -0.309007 -0.307361 -0.305251 -0.302358 -0.299902 -0.298633 -0.298705 -0.299275 -0.299206 -0.296849 -0.292346 -0.291079 -0.294873 -0.298206 -0.300718 -0.304884 -0.310456 -0.310945 -0.314095 -0.302763 -0.187548 0.530764 4.95336 20.3637 42.23 75.7192 110.918 143.462 170.71 189.279 198.486 197.76 189.244 172.069 143.69 110.299 73.604 41.701 16.745 4.99854 0.791744 -0.0069155 -0.141287 -0.224008 -0.241724 -0.255471 -0.255168 -0.240877 -0.242686 -0.245162 -0.259465 -0.283622 -0.290485 -0.288932 -0.284243 -0.288044 -0.297888 -0.304288 -0.307383 -0.308831 -0.31025 -0.311669 -0.312321 -0.312476 -0.314266 -0.317132 -0.31914 -0.318867 -0.316609 -0.313638 -0.311703 -0.312447 -0.315833 -0.320869 -0.324823 -0.325608 -0.323521 -0.320359 -0.316493 -0.312189 -0.308936 -0.308153 -0.309959 -0.314044 -0.314521 -0.309666 -0.306088 -0.307187 -0.308743 -0.308237 -0.312529 -0.315664 -0.319759 -0.334118 -0.344507 -0.33009 -0.178995 1.54859 13.238 35.1808 67.452 103.733 137.133 164.921 184.158 194.569 194.77 188.456 170.875 146.205 113.36 76.0391 43.3825 17.6915 4.95992 0.615051 0.138354 0.0832896 0.0652274 0.0384931 0.0703804 0.0587226 0.0339388 0.0472222 0.0361243 0.0165552 0.00357682 -0.000566206 -0.010002 -0.0165769 -0.0258674 -0.039613 -0.0490426 -0.0614872 -0.071217 -0.0780928 -0.0892456 -0.107076 -0.129563 -0.158053 -0.193301 -0.23522 -0.282874 -0.333408 -0.380397 -0.429818 -0.488326 -0.554672 -0.626945 -0.704167 -0.785924 -0.871183 -0.978307 -1.15566 -1.31196 -1.42828 -1.49683 56.8235 80.1722 106.02 125.394 135.771 137.2 131.209 118.155 93.8408 64.1653 38.8327 16.485 4.18972 1.29491 1.01154 0.993109 0.870809 0.778551 0.667034 0.601532 0.498422 0.399223 0.30284 0.204625 0.146542 0.0757229 0.00293446 -0.0559802 -0.101067 -0.143709 -0.180913 -0.216879 -0.248163 -0.279204 -0.306653 -0.329783 -0.346468 -0.360241 -0.373224 -0.384614 -0.391826 -0.397934 -0.40551 -0.413295 -0.419517 -0.424083 -0.429509 -0.43402 -0.438133 -0.441843 -0.444144 -0.445273 -0.445654 -0.445741 -0.448226 -0.448668 -0.447884 -0.448082 -0.447414 -0.44813 -0.448737 -0.447697 -0.448462 -0.452031 -0.45451 -0.458857 -0.462429 -0.470499 -0.471297 -0.479795 -0.465567 -0.354889 0.382034 4.2981 16.1085 31.46 49.5375 70.1281 86.8659 97.7784 100.364 99.8717 87.6605 69.0882 48.8146 27.6415 11.3001 3.15784 -0.0231114 -0.381352 -0.399197 -0.439069 -0.401195 -0.407295 -0.372467 -0.372074 -0.360296 -0.364967 -0.36554 -0.360757 -0.364804 -0.370839 -0.370938 -0.37448 -0.380341 -0.386125 -0.390903 -0.394103 -0.396152 -0.398605 -0.40223 -0.405535 -0.408158 -0.410218 -0.411772 -0.412981 -0.413851 -0.414334 -0.414579 -0.414687 -0.414621 -0.414304 -0.413792 -0.413157 -0.412366 -0.411684 -0.410843 -0.409695 -0.408004 -0.405701 -0.403352 -0.401069 -0.399075 -0.397113 -0.394896 -0.393153 -0.392066 -0.391517 -0.391287 -0.392744 -0.396568 -0.401143 -0.409362 -0.420752 -0.429611 -0.444177 -0.41776 -0.223505 1.16464 8.2785 24.1051 43.6185 65.7502 84.2611 97.233 101.211 98.9571 89.3208 69.2074 47.7054 25.4893 9.78183 2.3458 0.03378 -0.247091 -0.344909 -0.376107 -0.37418 -0.370613 -0.360898 -0.360789 -0.351222 -0.354262 -0.354325 -0.35823 -0.366377 -0.37029 -0.376519 -0.382133 -0.383976 -0.388727 -0.394307 -0.398834 -0.402305 -0.405932 -0.409383 -0.411934 -0.412488 -0.412072 -0.412177 -0.414166 -0.417094 -0.419922 -0.422156 -0.424572 -0.42614 -0.423605 -0.419584 -0.415177 -0.41123 -0.409156 -0.407508 -0.405468 -0.402799 -0.4006 -0.399434 -0.399455 -0.399878 -0.399818 -0.397592 -0.393358 -0.392291 -0.395443 -0.398466 -0.401348 -0.404854 -0.410227 -0.412956 -0.420779 -0.430932 -0.433088 -0.420107 -0.33445 0.298361 4.03452 17.2709 35.9069 58.8511 82.4348 99.1264 108.013 108.581 99.9772 84.0023 60.4598 37.5631 17.0976 5.94257 1.22537 -0.0129485 -0.243146 -0.345418 -0.34744 -0.353174 -0.354042 -0.358752 -0.356126 -0.344536 -0.345376 -0.34874 -0.362375 -0.383295 -0.390667 -0.390036 -0.386247 -0.389463 -0.397847 -0.403886 -0.40705 -0.408619 -0.410052 -0.411426 -0.41205 -0.412294 -0.41397 -0.416562 -0.418366 -0.418159 -0.416123 -0.413429 -0.411708 -0.412425 -0.415533 -0.420068 -0.423716 -0.424506 -0.422646 -0.419689 -0.416074 -0.412064 -0.409008 -0.408156 -0.409676 -0.413267 -0.4138 -0.409515 -0.406116 -0.406567 -0.407863 -0.407946 -0.411922 -0.415602 -0.420228 -0.434823 -0.45057 -0.473407 -0.494628 -0.477091 -0.254544 1.90963 14.1843 32.1652 54.5626 78.4816 96.0491 105.92 106.077 99.8689 82.2234 60.4361 37.6141 16.0568 4.91522 0.473793 -0.00828862 -0.0686385 -0.0892737 -0.0759165 -0.0733514 -0.0837903 -0.0565446 -0.0651165 -0.0839319 -0.0758145 -0.0852138 -0.102907 -0.114242 -0.119317 -0.128041 -0.134324 -0.14314 -0.155692 -0.164651 -0.175956 -0.185396 -0.192591 -0.203322 -0.220071 -0.241296 -0.268103 -0.301138 -0.340274 -0.384629 -0.431595 -0.476237 -0.523327 -0.578292 -0.64041 -0.708153 -0.780726 -0.857946 -0.940101 -1.04324 -1.20092 -1.34351 -1.45054 -1.51266 1.51345 16.9213 31.0178 41.5489 47.7451 49.1581 45.1427 38.6367 24.2684 9.66992 3.30658 1.03198 0.872511 0.821665 0.752187 0.756679 0.674537 0.598175 0.499285 0.433818 0.338688 0.247841 0.157846 0.0681003 0.010642 -0.0551894 -0.122285 -0.176974 -0.220208 -0.260277 -0.295287 -0.328854 -0.358386 -0.38729 -0.412744 -0.434188 -0.450151 -0.463315 -0.475405 -0.485945 -0.492927 -0.49893 -0.505961 -0.513121 -0.51891 -0.523296 -0.52831 -0.532543 -0.536372 -0.539769 -0.541879 -0.54307 -0.543479 -0.543658 -0.545688 -0.546202 -0.545899 -0.546056 -0.545726 -0.546234 -0.546446 -0.545943 -0.547121 -0.550078 -0.552581 -0.556082 -0.560189 -0.56754 -0.570383 -0.58146 -0.589149 -0.599062 -0.594207 -0.526424 -0.14227 1.53464 6.44481 15.3995 23.8853 29.8343 33.5893 31.5293 23.9545 14.3142 6.77105 1.97731 -0.243914 -0.478319 -0.528236 -0.57691 -0.546192 -0.548685 -0.511005 -0.507343 -0.478061 -0.474421 -0.4649 -0.467714 -0.468045 -0.464708 -0.468003 -0.472999 -0.473777 -0.477107 -0.482338 -0.487612 -0.492011 -0.495069 -0.49716 -0.499536 -0.50281 -0.505838 -0.508294 -0.510229 -0.511709 -0.512917 -0.513694 -0.514151 -0.514392 -0.514487 -0.514431 -0.514133 -0.513679 -0.513083 -0.512379 -0.511726 -0.510924 -0.509842 -0.508275 -0.506175 -0.504065 -0.501943 -0.500102 -0.498281 -0.496285 -0.494824 -0.493795 -0.493523 -0.493508 -0.494857 -0.497829 -0.502341 -0.510491 -0.521198 -0.531352 -0.549776 -0.561317 -0.575644 -0.563148 -0.394772 0.572471 4.6091 13.2554 21.9962 29.1778 32.1838 29.9708 25.0321 14.6785 7.03973 2.19513 0.062647 -0.327383 -0.474249 -0.530116 -0.505511 -0.494151 -0.481329 -0.47326 -0.463801 -0.462411 -0.455176 -0.457221 -0.45786 -0.461655 -0.468695 -0.472817 -0.478455 -0.483439 -0.485735 -0.49011 -0.49521 -0.499417 -0.502768 -0.50617 -0.50935 -0.511683 -0.512269 -0.512037 -0.512265 -0.514117 -0.516739 -0.519332 -0.521433 -0.523601 -0.524925 -0.522668 -0.519422 -0.515029 -0.511348 -0.509385 -0.507749 -0.505803 -0.503358 -0.50139 -0.500337 -0.500302 -0.500614 -0.500415 -0.498427 -0.494819 -0.493914 -0.496926 -0.499742 -0.502285 -0.505298 -0.510277 -0.513593 -0.521421 -0.531544 -0.537275 -0.545069 -0.557197 -0.555496 -0.477657 0.00458746 2.52712 10.0837 21.1176 29.994 35.1461 35.9598 30.8695 22.2154 11.6066 4.96959 1.28023 0.00453399 -0.326001 -0.475833 -0.502831 -0.491473 -0.465571 -0.459385 -0.456857 -0.45985 -0.45757 -0.448656 -0.449068 -0.452904 -0.465504 -0.483532 -0.490968 -0.491062 -0.488217 -0.490984 -0.498115 -0.503722 -0.506883 -0.508496 -0.509941 -0.511241 -0.511841 -0.512178 -0.513735 -0.516053 -0.517663 -0.51752 -0.515714 -0.513338 -0.511743 -0.512422 -0.515278 -0.519343 -0.52263 -0.523425 -0.521778 -0.519053 -0.515724 -0.51205 -0.509277 -0.508481 -0.509756 -0.51275 -0.51319 -0.509475 -0.506348 -0.506411 -0.507585 -0.50781 -0.511089 -0.514907 -0.519653 -0.533221 -0.548737 -0.569871 -0.595094 -0.610936 -0.638747 -0.629298 -0.380467 1.23007 8.09408 19.5142 28.6488 34.1889 35.4668 30.697 20.2 9.78958 3.49474 0.117125 -0.243547 -0.26226 -0.247691 -0.228706 -0.225645 -0.200934 -0.197786 -0.202489 -0.181716 -0.188299 -0.202638 -0.198324 -0.206499 -0.221997 -0.232231 -0.237845 -0.245906 -0.251954 -0.260394 -0.271805 -0.280291 -0.290573 -0.299624 -0.306954 -0.317246 -0.332925 -0.352871 -0.377987 -0.408825 -0.445233 -0.486387 -0.52994 -0.572099 -0.616686 -0.668136 -0.726097 -0.789365 -0.857317 -0.929974 -1.00848 -1.10654 -1.24721 -1.37683 -1.47487 -1.53113 -2.94901 -2.3248 -1.98422 -1.59451 -0.65148 -0.268014 0.405851 1.53121 0.77584 0.412091 0.554302 0.605926 0.596964 0.596262 0.553904 0.556994 0.490049 0.420402 0.331988 0.267461 0.179689 0.0963739 0.0128469 -0.0690734 -0.124952 -0.18601 -0.247712 -0.29837 -0.339425 -0.376912 -0.409704 -0.440916 -0.468627 -0.495417 -0.51896 -0.53879 -0.553922 -0.566408 -0.577636 -0.587373 -0.594066 -0.599885 -0.606383 -0.612962 -0.618325 -0.622503 -0.627126 -0.631072 -0.634628 -0.637737 -0.639673 -0.640871 -0.641381 -0.641522 -0.643128 -0.644003 -0.64387 -0.644168 -0.644061 -0.644211 -0.644235 -0.644027 -0.645603 -0.648086 -0.650688 -0.653718 -0.657997 -0.664439 -0.667888 -0.677258 -0.685699 -0.697894 -0.709398 -0.722049 -0.725949 -0.700021 -0.582883 -0.202874 0.617242 1.55979 2.41155 2.18488 0.980316 -0.289084 -0.605166 -0.636358 -0.681714 -0.703597 -0.683591 -0.685933 -0.65306 -0.646088 -0.61366 -0.606056 -0.582257 -0.577037 -0.569181 -0.570673 -0.5708 -0.568477 -0.571185 -0.57535 -0.576558 -0.57968 -0.584358 -0.589149 -0.593185 -0.596085 -0.598168 -0.600444 -0.603403 -0.60617 -0.608455 -0.610261 -0.611659 -0.612757 -0.61352 -0.613953 -0.61419 -0.614278 -0.614226 -0.613956 -0.61355 -0.612998 -0.612369 -0.611745 -0.610991 -0.60997 -0.608519 -0.606618 -0.604704 -0.602746 -0.601076 -0.599332 -0.597642 -0.596252 -0.595423 -0.595153 -0.595377 -0.596753 -0.599799 -0.604566 -0.611899 -0.621261 -0.63157 -0.649042 -0.662131 -0.681322 -0.702059 -0.714716 -0.70402 -0.600839 -0.198331 0.49866 1.64272 2.2999 1.96671 1.19213 0.159798 -0.376912 -0.510182 -0.635326 -0.69874 -0.672166 -0.65503 -0.617755 -0.597301 -0.583285 -0.574958 -0.566894 -0.564869 -0.559276 -0.560603 -0.561543 -0.565132 -0.571247 -0.57538 -0.580502 -0.584962 -0.587519 -0.59155 -0.596192 -0.600083 -0.603283 -0.606453 -0.609369 -0.611492 -0.612099 -0.612018 -0.612343 -0.614023 -0.616382 -0.61874 -0.620695 -0.622653 -0.623749 -0.621777 -0.618886 -0.61485 -0.611463 -0.609563 -0.608007 -0.606128 -0.60395 -0.602149 -0.601221 -0.601089 -0.601373 -0.601047 -0.599371 -0.596239 -0.595565 -0.59826 -0.600928 -0.603547 -0.606854 -0.610908 -0.614378 -0.622133 -0.631083 -0.636351 -0.645602 -0.660452 -0.676411 -0.690103 -0.695336 -0.644975 -0.379853 0.443188 1.73853 2.86443 3.24899 2.56259 1.11225 0.154596 -0.256764 -0.46683 -0.622352 -0.676859 -0.661506 -0.628485 -0.599098 -0.569908 -0.561935 -0.559781 -0.562006 -0.560034 -0.553094 -0.553273 -0.557275 -0.568724 -0.584247 -0.591442 -0.592121 -0.590115 -0.592481 -0.598679 -0.603791 -0.60687 -0.608474 -0.60991 -0.611121 -0.61171 -0.612106 -0.613545 -0.61561 -0.617031 -0.616931 -0.615351 -0.613191 -0.611807 -0.61247 -0.615057 -0.618684 -0.621621 -0.622413 -0.620936 -0.618446 -0.615388 -0.612041 -0.609545 -0.608804 -0.609862 -0.612385 -0.612783 -0.609614 -0.606861 -0.606646 -0.607614 -0.607849 -0.610733 -0.614417 -0.618788 -0.63134 -0.646206 -0.665066 -0.68883 -0.70656 -0.737479 -0.76249 -0.785519 -0.792742 -0.709038 -0.35002 0.422671 1.38021 2.13408 1.67285 0.261263 -0.533207 -0.51516 -0.490743 -0.462496 -0.417236 -0.384704 -0.352871 -0.346684 -0.322328 -0.320514 -0.321535 -0.305847 -0.311034 -0.322075 -0.320345 -0.327612 -0.341221 -0.350471 -0.356348 -0.363787 -0.369614 -0.377587 -0.387932 -0.395937 -0.405307 -0.413896 -0.421204 -0.431027 -0.44565 -0.464299 -0.487719 -0.516376 -0.550107 -0.588147 -0.628409 -0.667978 -0.709921 -0.757872 -0.811734 -0.870574 -0.933923 -1.00197 -1.07636 -1.16861 -1.29433 -1.41173 -1.50113 -1.55197 -2.80739 -2.30182 -1.97781 -1.64526 -1.47101 -1.16804 -0.723899 -0.227075 -0.0760433 0.143801 0.306924 0.386869 0.39697 0.400817 0.367019 0.365422 0.307576 0.243666 0.164121 0.101672 0.0212616 -0.055094 -0.132176 -0.206801 -0.260356 -0.316785 -0.373331 -0.420098 -0.458722 -0.493614 -0.524163 -0.553052 -0.578889 -0.603595 -0.625288 -0.643559 -0.657778 -0.669526 -0.679914 -0.688881 -0.695238 -0.700801 -0.706792 -0.712813 -0.717767 -0.721708 -0.725952 -0.729612 -0.732896 -0.735737 -0.737549 -0.738701 -0.739262 -0.739438 -0.74062 -0.741843 -0.74169 -0.74235 -0.742217 -0.74222 -0.742526 -0.742606 -0.743894 -0.746211 -0.74901 -0.751393 -0.756144 -0.761929 -0.765535 -0.773892 -0.782133 -0.793137 -0.804132 -0.817167 -0.830139 -0.843114 -0.855179 -0.868806 -0.879838 -0.885805 -0.890517 -0.882717 -0.858888 -0.858395 -0.852223 -0.83872 -0.819816 -0.811219 -0.786488 -0.780493 -0.7516 -0.74159 -0.714987 -0.705655 -0.685942 -0.679855 -0.673178 -0.673727 -0.673683 -0.672082 -0.674326 -0.677827 -0.679284 -0.682193 -0.686383 -0.690715 -0.694408 -0.697136 -0.69917 -0.70133 -0.704004 -0.706525 -0.708637 -0.710315 -0.711626 -0.712637 -0.71336 -0.713773 -0.714003 -0.714087 -0.714044 -0.713806 -0.713444 -0.712949 -0.71238 -0.711809 -0.711101 -0.710161 -0.70884 -0.707132 -0.705401 -0.703626 -0.702104 -0.70049 -0.699051 -0.697751 -0.697071 -0.696812 -0.697177 -0.69838 -0.70145 -0.705774 -0.712927 -0.721811 -0.732165 -0.747154 -0.760323 -0.779207 -0.800867 -0.819689 -0.83735 -0.855617 -0.869512 -0.872858 -0.88201 -0.881882 -0.860596 -0.85357 -0.833952 -0.83734 -0.852837 -0.842173 -0.830012 -0.785454 -0.754395 -0.718666 -0.698526 -0.685633 -0.677461 -0.670287 -0.667787 -0.663368 -0.664183 -0.665284 -0.668634 -0.673971 -0.67798 -0.682623 -0.686652 -0.689311 -0.693025 -0.697224 -0.700814 -0.703834 -0.706765 -0.709427 -0.711348 -0.711972 -0.712008 -0.712405 -0.713925 -0.716039 -0.718179 -0.719972 -0.721726 -0.722594 -0.720881 -0.718193 -0.714625 -0.711599 -0.709763 -0.708287 -0.706506 -0.704573 -0.702965 -0.702133 -0.701958 -0.702183 -0.701842 -0.700478 -0.697739 -0.697438 -0.699563 -0.702247 -0.704692 -0.707783 -0.711807 -0.715525 -0.72284 -0.730481 -0.735907 -0.74498 -0.759916 -0.775467 -0.792128 -0.811424 -0.833465 -0.852913 -0.863717 -0.870191 -0.868991 -0.869243 -0.816442 -0.806421 -0.793588 -0.803142 -0.830823 -0.829721 -0.811456 -0.773258 -0.730878 -0.699615 -0.673645 -0.665549 -0.663399 -0.664796 -0.663012 -0.657598 -0.657684 -0.661678 -0.671977 -0.685359 -0.692133 -0.693262 -0.691941 -0.694075 -0.699437 -0.704055 -0.706975 -0.708554 -0.709944 -0.711064 -0.711645 -0.712079 -0.713404 -0.715213 -0.716458 -0.716387 -0.715024 -0.713067 -0.711933 -0.71256 -0.714866 -0.718076 -0.720668 -0.7214 -0.720109 -0.717874 -0.715098 -0.712079 -0.709844 -0.709151 -0.710023 -0.712127 -0.712398 -0.70969 -0.70735 -0.707071 -0.707963 -0.708297 -0.710856 -0.714347 -0.718526 -0.730189 -0.743885 -0.761047 -0.782491 -0.800355 -0.828093 -0.852727 -0.877906 -0.902542 -0.912359 -0.910598 -0.904219 -0.892808 -0.870738 -0.845925 -0.817427 -0.744489 -0.69232 -0.62748 -0.587183 -0.537898 -0.504268 -0.473359 -0.46563 -0.443203 -0.442654 -0.441268 -0.4294 -0.433461 -0.442051 -0.442035 -0.448574 -0.460525 -0.468895 -0.474807 -0.481682 -0.487254 -0.494731 -0.504079 -0.51159 -0.520128 -0.528207 -0.535363 -0.544679 -0.558253 -0.575592 -0.597312 -0.623805 -0.654904 -0.689906 -0.726974 -0.763867 -0.803053 -0.847514 -0.897325 -0.951774 -1.01053 -1.07391 -1.1438 -1.22978 -1.34213 -1.44804 -1.52914 -1.57495 -2.68689 -2.27653 -1.97594 -1.68005 -1.4969 -1.21805 -0.821796 -0.395139 -0.231584 -0.0319236 0.113493 0.188758 0.203683 0.209563 0.182549 0.176443 0.125419 0.0671416 -0.00406466 -0.0634478 -0.136781 -0.206555 -0.277221 -0.344979 -0.395653 -0.447547 -0.499129 -0.542098 -0.578103 -0.610383 -0.638664 -0.665256 -0.689173 -0.711828 -0.731717 -0.748472 -0.761714 -0.772674 -0.782237 -0.790458 -0.796439 -0.801699 -0.807196 -0.812674 -0.817226 -0.820912 -0.82479 -0.828161 -0.831177 -0.833768 -0.835462 -0.836608 -0.837127 -0.837359 -0.838249 -0.839461 -0.83971 -0.84036 -0.840494 -0.840497 -0.840815 -0.841505 -0.842256 -0.844277 -0.847403 -0.849543 -0.854142 -0.85946 -0.863076 -0.870612 -0.878534 -0.888259 -0.898277 -0.910135 -0.92202 -0.933992 -0.945552 -0.958835 -0.969674 -0.977061 -0.979909 -0.977611 -0.975937 -0.966251 -0.955071 -0.937774 -0.916003 -0.903825 -0.881343 -0.873044 -0.849245 -0.838256 -0.815968 -0.805756 -0.789129 -0.7827 -0.776918 -0.776818 -0.776646 -0.775557 -0.777433 -0.780396 -0.781972 -0.784667 -0.788415 -0.792314 -0.795676 -0.79822 -0.800176 -0.802202 -0.804615 -0.806901 -0.808841 -0.81039 -0.81161 -0.812574 -0.813215 -0.813605 -0.813824 -0.813904 -0.81387 -0.813662 -0.813342 -0.812904 -0.812397 -0.811883 -0.81123 -0.810378 -0.809197 -0.807681 -0.80615 -0.804582 -0.803199 -0.801811 -0.800513 -0.799473 -0.798868 -0.798756 -0.799217 -0.800433 -0.803357 -0.807431 -0.814086 -0.822111 -0.831945 -0.845389 -0.858566 -0.87568 -0.895631 -0.914087 -0.931713 -0.949151 -0.962738 -0.968538 -0.976604 -0.975478 -0.975341 -0.971637 -0.977878 -0.96994 -0.969387 -0.947125 -0.924681 -0.881812 -0.850895 -0.819531 -0.800474 -0.788202 -0.78016 -0.773687 -0.770977 -0.767422 -0.767898 -0.769071 -0.772143 -0.776812 -0.780624 -0.784804 -0.788461 -0.791109 -0.794517 -0.798302 -0.801592 -0.804412 -0.807103 -0.809519 -0.811256 -0.811878 -0.812014 -0.81245 -0.813843 -0.815713 -0.817649 -0.819283 -0.820828 -0.821538 -0.820023 -0.817614 -0.814416 -0.811743 -0.809996 -0.808585 -0.806966 -0.805233 -0.803841 -0.803114 -0.80298 -0.803143 -0.802879 -0.801734 -0.799517 -0.79943 -0.801235 -0.803683 -0.806069 -0.80895 -0.812694 -0.816115 -0.823006 -0.829961 -0.835763 -0.843933 -0.85757 -0.872908 -0.889062 -0.908327 -0.929456 -0.948201 -0.959979 -0.966758 -0.966379 -0.9659 -0.971097 -0.965899 -0.967708 -0.955298 -0.954893 -0.937727 -0.909629 -0.870902 -0.83098 -0.801197 -0.777911 -0.769536 -0.767208 -0.767939 -0.766339 -0.762078 -0.762176 -0.766049 -0.775229 -0.786777 -0.793052 -0.794474 -0.793716 -0.795692 -0.800304 -0.804444 -0.80716 -0.808706 -0.810019 -0.811052 -0.811612 -0.812085 -0.81329 -0.814871 -0.815948 -0.815887 -0.814742 -0.813044 -0.812074 -0.812663 -0.814713 -0.817525 -0.819792 -0.820452 -0.819334 -0.817335 -0.814825 -0.812118 -0.810136 -0.809477 -0.810189 -0.811935 -0.812101 -0.8098 -0.807795 -0.80745 -0.808296 -0.808723 -0.810967 -0.814275 -0.818362 -0.829171 -0.841701 -0.857429 -0.876847 -0.894212 -0.91922 -0.942102 -0.965246 -0.987724 -0.997999 -0.997798 -0.992446 -0.981118 -0.959724 -0.943746 -0.916952 -0.848213 -0.799762 -0.738265 -0.698388 -0.652636 -0.622001 -0.593845 -0.58485 -0.565538 -0.564454 -0.561457 -0.55243 -0.555625 -0.562389 -0.563485 -0.569417 -0.579894 -0.587477 -0.593257 -0.599597 -0.604877 -0.611831 -0.620252 -0.627248 -0.635018 -0.642549 -0.649447 -0.658215 -0.670746 -0.686762 -0.706779 -0.731125 -0.759632 -0.791662 -0.825614 -0.859763 -0.8961 -0.937075 -0.982872 -1.03296 -1.08713 -1.14577 -1.21087 -1.29025 -1.39051 -1.48561 -1.55877 -1.59987 -2.5842 -2.2488 -1.97449 -1.70926 -1.52613 -1.27043 -0.918068 -0.548925 -0.383201 -0.20471 -0.075352 -0.00401793 0.0123172 0.0190794 -0.00267776 -0.011412 -0.0560901 -0.108839 -0.172409 -0.228057 -0.294532 -0.357972 -0.422289 -0.483527 -0.530883 -0.578307 -0.625088 -0.664325 -0.697571 -0.727217 -0.753205 -0.777519 -0.799482 -0.820117 -0.838236 -0.853506 -0.865724 -0.875855 -0.884602 -0.892096 -0.897665 -0.902583 -0.907596 -0.912546 -0.916701 -0.920115 -0.923638 -0.92672 -0.929472 -0.931821 -0.933393 -0.934504 -0.935049 -0.93534 -0.936135 -0.937197 -0.937828 -0.938306 -0.938476 -0.938447 -0.938719 -0.939892 -0.940645 -0.942462 -0.94552 -0.947882 -0.951375 -0.956551 -0.96027 -0.96718 -0.974758 -0.983368 -0.9923 -1.00282 -1.01358 -1.02449 -1.03511 -1.04721 -1.05698 -1.06427 -1.06654 -1.06475 -1.06401 -1.05402 -1.04338 -1.02699 -1.00725 -0.994841 -0.975864 -0.966908 -0.946842 -0.935433 -0.91645 -0.90607 -0.891933 -0.885525 -0.880463 -0.879931 -0.87967 -0.878934 -0.880515 -0.883033 -0.884632 -0.887111 -0.89045 -0.893943 -0.896983 -0.899334 -0.901182 -0.903064 -0.905232 -0.907293 -0.909059 -0.910476 -0.911599 -0.912481 -0.913071 -0.913439 -0.913646 -0.913724 -0.913697 -0.913519 -0.91324 -0.912854 -0.91241 -0.911945 -0.911358 -0.910589 -0.909536 -0.908209 -0.906853 -0.905484 -0.904261 -0.903069 -0.901953 -0.901139 -0.900674 -0.900712 -0.901285 -0.902629 -0.905377 -0.909353 -0.915476 -0.922924 -0.932138 -0.944367 -0.956815 -0.972431 -0.990644 -1.00792 -1.0243 -1.04071 -1.05327 -1.06012 -1.0675 -1.06588 -1.0673 -1.06625 -1.06997 -1.06395 -1.05897 -1.03734 -1.01483 -0.977313 -0.948383 -0.920294 -0.902241 -0.890638 -0.882972 -0.877133 -0.87439 -0.871479 -0.871734 -0.872885 -0.875672 -0.879754 -0.883295 -0.887052 -0.890348 -0.892912 -0.896014 -0.899415 -0.902405 -0.905011 -0.907462 -0.909641 -0.911206 -0.911813 -0.912016 -0.91247 -0.913726 -0.915386 -0.917121 -0.918599 -0.919948 -0.920537 -0.919208 -0.917072 -0.914215 -0.911848 -0.910214 -0.908886 -0.907419 -0.905892 -0.904678 -0.904064 -0.90397 -0.904127 -0.903926 -0.902955 -0.901267 -0.901211 -0.902977 -0.905226 -0.907595 -0.910296 -0.913657 -0.917122 -0.923341 -0.929746 -0.935168 -0.943142 -0.955526 -0.96981 -0.98503 -1.00367 -1.02379 -1.04162 -1.05371 -1.05988 -1.06076 -1.06107 -1.06624 -1.06463 -1.06346 -1.05274 -1.047 -1.02939 -1.003 -0.967706 -0.931121 -0.902952 -0.881931 -0.873603 -0.871129 -0.871362 -0.869925 -0.866565 -0.866708 -0.870358 -0.878494 -0.888435 -0.894177 -0.895771 -0.895425 -0.89728 -0.901237 -0.904918 -0.907416 -0.9089 -0.910126 -0.91107 -0.911606 -0.912098 -0.913177 -0.914552 -0.915479 -0.915427 -0.914492 -0.913012 -0.912198 -0.912739 -0.914542 -0.916994 -0.918975 -0.919569 -0.918616 -0.916851 -0.914613 -0.912222 -0.910478 -0.909895 -0.910477 -0.911876 -0.911968 -0.910064 -0.908381 -0.908019 -0.908778 -0.909236 -0.911184 -0.914422 -0.918445 -0.928294 -0.939731 -0.954054 -0.971612 -0.98822 -1.01087 -1.03187 -1.05248 -1.07212 -1.08149 -1.08181 -1.07689 -1.0664 -1.04729 -1.03222 -1.00557 -0.946016 -0.900418 -0.846102 -0.8081 -0.766348 -0.740479 -0.715997 -0.705552 -0.689517 -0.68591 -0.681929 -0.675066 -0.677591 -0.682982 -0.684755 -0.690155 -0.699323 -0.706179 -0.711706 -0.717529 -0.722485 -0.728896 -0.736449 -0.742913 -0.749958 -0.756916 -0.763466 -0.771647 -0.783137 -0.797821 -0.816133 -0.838346 -0.864299 -0.893415 -0.924311 -0.955662 -0.989075 -1.02656 -1.06838 -1.11413 -1.1637 -1.21755 -1.27761 -1.35022 -1.43939 -1.52429 -1.58985 -1.62652 -2.4945 -2.22003 -1.97351 -1.73689 -1.55927 -1.32663 -1.01551 -0.695953 -0.534456 -0.375303 -0.259942 -0.19417 -0.177486 -0.170529 -0.187697 -0.197834 -0.236972 -0.284389 -0.340844 -0.392247 -0.452059 -0.509336 -0.567385 -0.62238 -0.666074 -0.709075 -0.751193 -0.786743 -0.817125 -0.844116 -0.867787 -0.889836 -0.909817 -0.92846 -0.944837 -0.958646 -0.969803 -0.979071 -0.987006 -0.993786 -0.998914 -1.00345 -1.00799 -1.01243 -1.01619 -1.01932 -1.02249 -1.02529 -1.02778 -1.0299 -1.03134 -1.03237 -1.03294 -1.03335 -1.03403 -1.03497 -1.03556 -1.03594 -1.03609 -1.03628 -1.03668 -1.03766 -1.03847 -1.04053 -1.04337 -1.04593 -1.04871 -1.05384 -1.05759 -1.06375 -1.0707 -1.07852 -1.08646 -1.09574 -1.10531 -1.11507 -1.12467 -1.13528 -1.14384 -1.15023 -1.15243 -1.15087 -1.14985 -1.14019 -1.13055 -1.11574 -1.0986 -1.08675 -1.07041 -1.06121 -1.044 -1.0328 -1.01658 -1.00653 -0.994453 -0.988304 -0.983847 -0.983043 -0.982723 -0.982228 -0.983564 -0.985705 -0.987263 -0.989519 -0.992479 -0.995587 -0.998315 -1.00046 -1.00219 -1.00391 -1.00585 -1.0077 -1.00929 -1.01058 -1.0116 -1.01241 -1.01294 -1.01328 -1.01348 -1.01356 -1.01354 -1.01339 -1.01315 -1.01282 -1.01244 -1.01203 -1.01152 -1.01084 -1.00992 -1.00877 -1.00759 -1.00641 -1.00536 -1.00434 -1.00344 -1.00278 -1.0025 -1.00263 -1.00333 -1.00471 -1.00734 -1.01114 -1.01684 -1.02372 -1.03221 -1.04328 -1.05495 -1.06915 -1.08561 -1.10141 -1.11631 -1.13126 -1.1427 -1.14952 -1.15609 -1.1544 -1.15609 -1.15605 -1.15783 -1.15211 -1.14589 -1.1266 -1.10541 -1.07252 -1.04561 -1.02051 -1.00382 -0.993046 -0.985866 -0.980621 -0.977918 -0.975497 -0.975596 -0.976671 -0.97917 -0.982729 -0.985962 -0.989316 -0.992275 -0.9947 -0.997509 -1.00054 -1.00324 -1.00562 -1.00784 -1.00979 -1.01119 -1.01177 -1.01201 -1.01246 -1.01358 -1.01506 -1.0166 -1.01793 -1.0191 -1.01956 -1.01843 -1.01651 -1.014 -1.01192 -1.01042 -1.0092 -1.00788 -1.00657 -1.00552 -1.00502 -1.00497 -1.00514 -1.005 -1.00426 -1.00297 -1.00306 -1.00467 -1.0068 -1.00906 -1.01163 -1.01483 -1.01825 -1.02373 -1.02969 -1.03484 -1.04231 -1.05352 -1.06656 -1.081 -1.09811 -1.11675 -1.13325 -1.1452 -1.15106 -1.15257 -1.15316 -1.15667 -1.15612 -1.15256 -1.14267 -1.13577 -1.11975 -1.09574 -1.06374 -1.03053 -1.00452 -0.985745 -0.977709 -0.97515 -0.97499 -0.973676 -0.971031 -0.971219 -0.974592 -0.981748 -0.990282 -0.995464 -0.997126 -0.997089 -0.998804 -1.0022 -1.00545 -1.00772 -1.00912 -1.01025 -1.01111 -1.01161 -1.01211 -1.01307 -1.01425 -1.01504 -1.015 -1.01424 -1.01291 -1.01225 -1.01275 -1.01433 -1.01647 -1.01819 -1.01871 -1.01789 -1.01634 -1.01435 -1.01225 -1.01073 -1.01022 -1.01072 -1.01188 -1.01195 -1.01034 -1.0089 -1.00851 -1.00927 -1.0098 -1.0115 -1.01451 -1.01838 -1.02735 -1.0378 -1.05082 -1.06678 -1.08226 -1.10249 -1.12143 -1.13979 -1.15692 -1.16516 -1.16554 -1.16091 -1.15111 -1.13497 -1.11996 -1.09417 -1.04297 -1.0006 -0.953653 -0.918879 -0.880216 -0.858195 -0.836546 -0.827039 -0.812995 -0.807074 -0.802581 -0.797391 -0.799403 -0.803751 -0.805894 -0.810803 -0.818804 -0.824976 -0.830163 -0.835476 -0.840079 -0.845932 -0.85267 -0.858585 -0.864938 -0.871302 -0.877433 -0.884987 -0.895435 -0.908779 -0.925385 -0.94548 -0.968912 -0.995163 -1.02305 -1.05156 -1.08199 -1.11599 -1.15385 -1.19529 -1.24025 -1.28924 -1.34407 -1.40981 -1.4887 -1.56396 -1.62224 -1.65472 -2.41587 -2.19138 -1.97288 -1.76313 -1.59564 -1.38622 -1.11378 -0.838136 -0.685424 -0.544229 -0.441837 -0.383106 -0.364759 -0.357961 -0.372499 -0.383201 -0.417315 -0.459527 -0.509296 -0.556092 -0.609412 -0.660648 -0.712516 -0.761482 -0.801248 -0.839855 -0.877426 -0.909322 -0.936761 -0.961074 -0.982405 -1.0022 -1.02018 -1.03686 -1.05151 -1.06387 -1.07394 -1.08232 -1.08945 -1.09552 -1.10018 -1.10432 -1.10838 -1.11233 -1.11569 -1.11852 -1.12136 -1.12386 -1.1261 -1.12799 -1.12932 -1.13025 -1.13081 -1.13133 -1.13186 -1.1327 -1.13317 -1.13351 -1.13402 -1.13441 -1.1349 -1.13561 -1.13616 -1.13865 -1.1416 -1.14389 -1.14655 -1.15122 -1.15495 -1.16033 -1.1663 -1.17358 -1.18053 -1.18857 -1.19692 -1.20542 -1.21384 -1.22293 -1.23022 -1.23567 -1.23757 -1.23644 -1.23503 -1.22662 -1.21774 -1.20471 -1.18982 -1.17868 -1.16461 -1.15556 -1.14089 -1.13034 -1.11648 -1.10708 -1.09675 -1.09102 -1.08709 -1.08614 -1.08579 -1.08546 -1.08659 -1.08841 -1.08988 -1.09191 -1.09451 -1.09725 -1.09968 -1.10162 -1.1032 -1.10476 -1.10648 -1.10811 -1.10954 -1.11069 -1.11162 -1.11235 -1.11283 -1.11313 -1.11331 -1.11339 -1.11338 -1.11326 -1.11307 -1.11279 -1.11247 -1.11212 -1.11168 -1.1111 -1.11031 -1.10935 -1.10834 -1.10735 -1.10648 -1.10565 -1.10496 -1.10447 -1.10436 -1.1046 -1.1054 -1.10682 -1.10935 -1.11294 -1.11819 -1.12452 -1.13236 -1.14222 -1.15285 -1.16554 -1.18021 -1.19434 -1.20768 -1.22087 -1.23095 -1.23729 -1.24293 -1.2417 -1.24348 -1.24341 -1.24425 -1.23906 -1.23256 -1.21536 -1.19569 -1.1669 -1.1425 -1.12038 -1.10523 -1.09537 -1.08873 -1.08404 -1.08147 -1.07943 -1.07944 -1.08043 -1.08264 -1.08573 -1.08864 -1.09161 -1.09425 -1.09649 -1.09901 -1.10169 -1.1041 -1.10625 -1.10823 -1.10996 -1.1112 -1.11175 -1.11202 -1.11246 -1.11345 -1.11474 -1.1161 -1.11727 -1.11829 -1.11864 -1.11768 -1.11598 -1.1138 -1.11199 -1.11063 -1.10953 -1.10837 -1.10725 -1.10638 -1.106 -1.106 -1.10619 -1.10614 -1.10562 -1.10469 -1.10496 -1.10646 -1.10847 -1.11065 -1.11309 -1.11607 -1.11932 -1.12429 -1.12958 -1.13452 -1.14144 -1.15146 -1.16329 -1.17646 -1.19188 -1.20873 -1.22355 -1.23461 -1.24004 -1.2419 -1.2422 -1.24555 -1.24435 -1.24002 -1.23108 -1.22381 -1.20928 -1.18759 -1.15896 -1.12942 -1.10596 -1.08935 -1.08175 -1.07916 -1.07871 -1.07752 -1.07543 -1.07567 -1.07874 -1.08497 -1.09227 -1.09688 -1.09853 -1.09873 -1.10029 -1.10319 -1.10604 -1.10807 -1.10937 -1.11039 -1.11117 -1.11163 -1.11211 -1.11296 -1.11398 -1.11465 -1.11461 -1.11408 -1.11285 -1.1123 -1.11277 -1.11416 -1.116 -1.11747 -1.11792 -1.11723 -1.11588 -1.11414 -1.11232 -1.11101 -1.11057 -1.11097 -1.11193 -1.11196 -1.11066 -1.10946 -1.1091 -1.10981 -1.11037 -1.11191 -1.11464 -1.11825 -1.12628 -1.13576 -1.14762 -1.16204 -1.17628 -1.19447 -1.21134 -1.22737 -1.24194 -1.24889 -1.24924 -1.24492 -1.23594 -1.22188 -1.20753 -1.18333 -1.1397 -1.10165 -1.05988 -1.02899 -0.993403 -0.974056 -0.954104 -0.946437 -0.934703 -0.927936 -0.923312 -0.919466 -0.921087 -0.924634 -0.926934 -0.931373 -0.938326 -0.943846 -0.94863 -0.953436 -0.957661 -0.962945 -0.968913 -0.974264 -0.979948 -0.985704 -0.991354 -0.998246 -1.00765 -1.01965 -1.03455 -1.05254 -1.07348 -1.09691 -1.12183 -1.14746 -1.17486 -1.20536 -1.23928 -1.27642 -1.31678 -1.36085 -1.41029 -1.46912 -1.53838 -1.6045 -1.6558 -1.68429 -2.347 -2.16345 -1.97261 -1.7886 -1.63458 -1.44861 -1.2126 -0.976546 -0.836184 -0.712343 -0.622134 -0.569871 -0.551625 -0.544844 -0.557113 -0.567684 -0.597174 -0.634294 -0.677728 -0.719653 -0.766627 -0.811915 -0.857685 -0.900789 -0.936421 -0.970655 -1.00378 -1.03204 -1.05648 -1.07809 -1.09706 -1.11461 -1.13057 -1.1453 -1.15825 -1.16918 -1.17814 -1.1856 -1.19192 -1.19729 -1.20147 -1.20517 -1.20877 -1.21224 -1.21521 -1.21773 -1.22023 -1.22245 -1.22442 -1.2261 -1.22731 -1.22815 -1.22872 -1.22923 -1.22978 -1.23058 -1.23098 -1.23149 -1.2321 -1.23257 -1.23282 -1.23388 -1.2344 -1.23666 -1.23982 -1.24183 -1.24456 -1.24846 -1.25216 -1.25686 -1.26177 -1.26848 -1.27458 -1.28144 -1.28866 -1.29588 -1.30297 -1.31056 -1.31658 -1.32103 -1.32254 -1.32161 -1.32005 -1.31285 -1.30499 -1.29367 -1.28084 -1.2707 -1.25861 -1.25011 -1.23765 -1.22801 -1.21621 -1.20767 -1.19886 -1.19367 -1.19023 -1.18923 -1.18887 -1.18865 -1.1896 -1.19114 -1.19249 -1.19429 -1.19655 -1.19894 -1.20107 -1.20279 -1.20421 -1.20561 -1.20711 -1.20854 -1.2098 -1.21081 -1.21163 -1.21227 -1.21271 -1.21298 -1.21315 -1.21322 -1.21323 -1.21314 -1.21298 -1.21275 -1.2125 -1.2122 -1.21184 -1.21135 -1.2107 -1.20991 -1.20908 -1.20828 -1.20758 -1.20693 -1.20644 -1.20612 -1.20617 -1.20653 -1.20743 -1.20889 -1.21134 -1.21472 -1.21954 -1.22532 -1.23248 -1.24126 -1.25079 -1.26201 -1.27478 -1.28715 -1.29874 -1.31003 -1.3186 -1.32418 -1.32877 -1.32797 -1.32943 -1.32933 -1.32969 -1.32501 -1.31859 -1.3034 -1.28571 -1.26081 -1.23922 -1.21996 -1.20644 -1.19757 -1.19158 -1.18742 -1.18506 -1.18334 -1.1833 -1.18419 -1.18612 -1.18877 -1.19135 -1.19394 -1.19627 -1.19829 -1.20052 -1.20286 -1.20499 -1.20689 -1.20863 -1.21015 -1.21124 -1.21174 -1.21202 -1.21243 -1.2133 -1.21442 -1.21561 -1.21663 -1.2175 -1.21776 -1.21695 -1.21548 -1.2136 -1.21204 -1.21083 -1.20986 -1.20886 -1.20793 -1.20722 -1.20695 -1.20701 -1.20725 -1.20728 -1.20696 -1.20637 -1.20678 -1.20823 -1.21014 -1.21223 -1.21453 -1.21732 -1.2204 -1.22489 -1.22962 -1.23415 -1.24048 -1.24937 -1.25981 -1.2716 -1.28523 -1.30001 -1.31297 -1.32273 -1.32753 -1.32944 -1.32914 -1.33222 -1.33071 -1.32629 -1.31826 -1.3111 -1.29809 -1.27891 -1.25375 -1.22796 -1.20722 -1.19266 -1.18567 -1.18313 -1.18251 -1.18144 -1.1798 -1.18007 -1.18281 -1.18818 -1.19437 -1.19842 -1.2 -1.20033 -1.20174 -1.2042 -1.20667 -1.20846 -1.20964 -1.21055 -1.21124 -1.21167 -1.21211 -1.21285 -1.21371 -1.21428 -1.21423 -1.21359 -1.21277 -1.21233 -1.21275 -1.21395 -1.21554 -1.2168 -1.21719 -1.21662 -1.21546 -1.21395 -1.21239 -1.21128 -1.21091 -1.21126 -1.21206 -1.21208 -1.21105 -1.21007 -1.20979 -1.21043 -1.21094 -1.21227 -1.21475 -1.21817 -1.22535 -1.23388 -1.24452 -1.25741 -1.27035 -1.28649 -1.30132 -1.31506 -1.32741 -1.33314 -1.33328 -1.32923 -1.32103 -1.30876 -1.29532 -1.27308 -1.23591 -1.20248 -1.16543 -1.13796 -1.1068 -1.0894 -1.07129 -1.06431 -1.05419 -1.04854 -1.04407 -1.04136 -1.04268 -1.0456 -1.0479 -1.05189 -1.05789 -1.06278 -1.06712 -1.07141 -1.07523 -1.07994 -1.08517 -1.08995 -1.09498 -1.10012 -1.10524 -1.11144 -1.11979 -1.13044 -1.14363 -1.15953 -1.178 -1.19865 -1.22063 -1.24336 -1.26768 -1.29469 -1.32469 -1.35754 -1.39328 -1.43238 -1.47632 -1.52824 -1.58839 -1.64581 -1.69039 -1.71507 -2.28565 -2.13656 -1.97274 -1.81363 -1.67561 -1.5133 -1.31183 -1.11203 -0.986568 -0.879387 -0.801197 -0.7554 -0.737938 -0.731143 -0.741528 -0.751428 -0.776596 -0.808727 -0.846112 -0.882971 -0.923722 -0.963127 -1.00288 -1.04025 -1.0716 -1.10147 -1.13022 -1.15486 -1.17626 -1.19516 -1.21175 -1.22704 -1.24098 -1.25378 -1.26504 -1.27455 -1.28238 -1.28891 -1.29442 -1.2991 -1.30277 -1.30603 -1.30916 -1.31217 -1.31474 -1.31694 -1.31911 -1.32104 -1.32276 -1.32422 -1.32532 -1.32605 -1.32661 -1.32705 -1.32765 -1.32839 -1.32878 -1.32936 -1.32992 -1.33063 -1.33072 -1.33225 -1.3332 -1.33443 -1.33764 -1.3397 -1.34248 -1.34601 -1.34959 -1.35343 -1.35726 -1.36332 -1.36866 -1.37435 -1.38042 -1.38638 -1.39208 -1.39824 -1.40301 -1.40649 -1.40757 -1.40666 -1.40509 -1.39905 -1.39234 -1.38273 -1.37187 -1.36289 -1.35252 -1.34482 -1.33431 -1.32576 -1.31582 -1.30828 -1.30084 -1.29626 -1.29329 -1.2923 -1.29194 -1.2918 -1.29259 -1.29388 -1.29508 -1.29665 -1.29859 -1.30064 -1.30247 -1.30398 -1.30523 -1.30645 -1.30775 -1.30898 -1.31006 -1.31095 -1.31166 -1.3122 -1.3126 -1.31284 -1.313 -1.31307 -1.31308 -1.31302 -1.31291 -1.31273 -1.31254 -1.31231 -1.31203 -1.31164 -1.31112 -1.31049 -1.30983 -1.30921 -1.30869 -1.30823 -1.30793 -1.30778 -1.30798 -1.30847 -1.30944 -1.31094 -1.31329 -1.31646 -1.32086 -1.32612 -1.33252 -1.3402 -1.34861 -1.35832 -1.36924 -1.37975 -1.38953 -1.3989 -1.40592 -1.41052 -1.41407 -1.41345 -1.41461 -1.41439 -1.41446 -1.41025 -1.40429 -1.39115 -1.3757 -1.35449 -1.33581 -1.31932 -1.30751 -1.29971 -1.29441 -1.29078 -1.28866 -1.28723 -1.28715 -1.28792 -1.28958 -1.29183 -1.29407 -1.29629 -1.2983 -1.3001 -1.30203 -1.30404 -1.30588 -1.30754 -1.30905 -1.31036 -1.3113 -1.31175 -1.31201 -1.31239 -1.31314 -1.3141 -1.31512 -1.316 -1.31673 -1.31693 -1.31624 -1.31498 -1.3134 -1.31207 -1.31103 -1.3102 -1.30936 -1.30862 -1.30807 -1.30791 -1.30805 -1.30834 -1.30848 -1.30837 -1.30807 -1.3086 -1.31 -1.3118 -1.31377 -1.31595 -1.31854 -1.32143 -1.32542 -1.3296 -1.33377 -1.33944 -1.34718 -1.35624 -1.36649 -1.37821 -1.39076 -1.40174 -1.40992 -1.41393 -1.41555 -1.41508 -1.41739 -1.41581 -1.4117 -1.40466 -1.398 -1.38661 -1.36999 -1.34831 -1.32622 -1.30827 -1.29573 -1.28946 -1.28708 -1.28636 -1.28542 -1.28414 -1.28442 -1.28681 -1.29137 -1.29656 -1.30005 -1.30151 -1.30191 -1.30316 -1.30522 -1.30732 -1.30888 -1.30992 -1.31072 -1.31132 -1.3117 -1.31211 -1.31274 -1.31346 -1.31393 -1.31387 -1.31328 -1.31266 -1.31232 -1.31271 -1.31374 -1.31509 -1.31617 -1.31648 -1.316 -1.31502 -1.31374 -1.31242 -1.3115 -1.31119 -1.31149 -1.31218 -1.31222 -1.3114 -1.31064 -1.3104 -1.31091 -1.31135 -1.31262 -1.31473 -1.31787 -1.32421 -1.33189 -1.34137 -1.3529 -1.36444 -1.37834 -1.39105 -1.40276 -1.41302 -1.41763 -1.41752 -1.41372 -1.40631 -1.39568 -1.38351 -1.36357 -1.33205 -1.30306 -1.27146 -1.24695 -1.22055 -1.20473 -1.18895 -1.1816 -1.17262 -1.1692 -1.16481 -1.16309 -1.16418 -1.1666 -1.16881 -1.17234 -1.17747 -1.18175 -1.18561 -1.18939 -1.19279 -1.19692 -1.20145 -1.20564 -1.21003 -1.21454 -1.21909 -1.22456 -1.23187 -1.24115 -1.25264 -1.26646 -1.28248 -1.30038 -1.31945 -1.33926 -1.36047 -1.38398 -1.41006 -1.43863 -1.46975 -1.50384 -1.54219 -1.58721 -1.63869 -1.68777 -1.72588 -1.74688 -2.2305 -2.11087 -1.97328 -1.83847 -1.71829 -1.57986 -1.41134 -1.24529 -1.13647 -1.0456 -0.979226 -0.939893 -0.92319 -0.916907 -0.925776 -0.934578 -0.955654 -0.982889 -1.01446 -1.04611 -1.08074 -1.11431 -1.14812 -1.17987 -1.2068 -1.23232 -1.25677 -1.2778 -1.29612 -1.31228 -1.32647 -1.33953 -1.35143 -1.36232 -1.37189 -1.37999 -1.38667 -1.39226 -1.39695 -1.40093 -1.40408 -1.40688 -1.40955 -1.41209 -1.41426 -1.41614 -1.41798 -1.41963 -1.4211 -1.42235 -1.42332 -1.42396 -1.42449 -1.42488 -1.4255 -1.42613 -1.42654 -1.42712 -1.42776 -1.42853 -1.4289 -1.43035 -1.43172 -1.43284 -1.4356 -1.43761 -1.44036 -1.44347 -1.44689 -1.45006 -1.45313 -1.45848 -1.46291 -1.46736 -1.47223 -1.47693 -1.48129 -1.48602 -1.48955 -1.49205 -1.4927 -1.49171 -1.49029 -1.48531 -1.4797 -1.47172 -1.4627 -1.45499 -1.44633 -1.43963 -1.43092 -1.42356 -1.41534 -1.40889 -1.40272 -1.39878 -1.39626 -1.39535 -1.39501 -1.39492 -1.39557 -1.39663 -1.39767 -1.399 -1.40063 -1.40235 -1.4039 -1.40518 -1.40625 -1.4073 -1.40839 -1.40943 -1.41034 -1.41109 -1.4117 -1.41218 -1.41251 -1.41272 -1.41286 -1.41293 -1.41295 -1.41292 -1.41285 -1.41273 -1.41259 -1.41243 -1.41223 -1.41195 -1.41157 -1.4111 -1.41062 -1.41019 -1.40985 -1.40957 -1.40946 -1.40948 -1.40983 -1.41043 -1.41148 -1.41298 -1.41523 -1.41817 -1.42214 -1.42686 -1.43251 -1.43917 -1.4464 -1.45458 -1.46364 -1.47226 -1.48016 -1.48758 -1.493 -1.49653 -1.49905 -1.4984 -1.49928 -1.49895 -1.49887 -1.49519 -1.48994 -1.47884 -1.46575 -1.44805 -1.43231 -1.41849 -1.40845 -1.40176 -1.3972 -1.3941 -1.39226 -1.39107 -1.39098 -1.39163 -1.39302 -1.39489 -1.39679 -1.39866 -1.40036 -1.4019 -1.40354 -1.40524 -1.40679 -1.40821 -1.40948 -1.41059 -1.41137 -1.41177 -1.41201 -1.41233 -1.41298 -1.41378 -1.41464 -1.41538 -1.41598 -1.41613 -1.41556 -1.41452 -1.41321 -1.4121 -1.41124 -1.41056 -1.40988 -1.40932 -1.40894 -1.4089 -1.40911 -1.40948 -1.40974 -1.40983 -1.40981 -1.41047 -1.41183 -1.41353 -1.41541 -1.41744 -1.41981 -1.42243 -1.42592 -1.42959 -1.43339 -1.43836 -1.44496 -1.45262 -1.46125 -1.47094 -1.48119 -1.49009 -1.49654 -1.49959 -1.5007 -1.50011 -1.50178 -1.50023 -1.49665 -1.49066 -1.48477 -1.47504 -1.46099 -1.44275 -1.42428 -1.40915 -1.39859 -1.39314 -1.39098 -1.39024 -1.38944 -1.38844 -1.38872 -1.39075 -1.39454 -1.39882 -1.40176 -1.40305 -1.40348 -1.40454 -1.40625 -1.408 -1.40931 -1.41021 -1.4109 -1.41141 -1.41174 -1.4121 -1.41263 -1.41322 -1.4136 -1.41354 -1.41307 -1.41257 -1.41231 -1.41265 -1.41353 -1.41466 -1.41556 -1.41582 -1.41544 -1.41463 -1.41356 -1.41247 -1.41171 -1.41148 -1.41173 -1.41232 -1.41236 -1.41174 -1.41118 -1.41098 -1.41141 -1.41185 -1.41297 -1.41479 -1.41768 -1.42324 -1.43006 -1.43836 -1.44835 -1.45817 -1.46974 -1.48058 -1.4905 -1.49871 -1.50228 -1.50193 -1.49839 -1.49179 -1.48296 -1.47223 -1.45491 -1.42862 -1.40382 -1.37742 -1.35603 -1.33391 -1.31996 -1.30658 -1.299 -1.29128 -1.28976 -1.28624 -1.28475 -1.28564 -1.28766 -1.2897 -1.29277 -1.2971 -1.30078 -1.30413 -1.3074 -1.31036 -1.31391 -1.31775 -1.32134 -1.3251 -1.32897 -1.33292 -1.33764 -1.34389 -1.35181 -1.3616 -1.37334 -1.38694 -1.40211 -1.41829 -1.43515 -1.45323 -1.47324 -1.49541 -1.51971 -1.54619 -1.57525 -1.60793 -1.64609 -1.68924 -1.7303 -1.76213 -1.77958 -2.18033 -2.08638 -1.97422 -1.86327 -1.76229 -1.64791 -1.51106 -1.37686 -1.28591 -1.21111 -1.15638 -1.12341 -1.10727 -1.10348 -1.10983 -1.11721 -1.13437 -1.15679 -1.18272 -1.20906 -1.23764 -1.26541 -1.29334 -1.31955 -1.34198 -1.36314 -1.38335 -1.40078 -1.41599 -1.42941 -1.44119 -1.45201 -1.46186 -1.47086 -1.47876 -1.48545 -1.49098 -1.49561 -1.4995 -1.50279 -1.50542 -1.50774 -1.50995 -1.51203 -1.51383 -1.51537 -1.51688 -1.51824 -1.51946 -1.52049 -1.5213 -1.52186 -1.5224 -1.52279 -1.52338 -1.52402 -1.52451 -1.52516 -1.52587 -1.52653 -1.52713 -1.52838 -1.52986 -1.53163 -1.53373 -1.5359 -1.53851 -1.54067 -1.54375 -1.54649 -1.54907 -1.55337 -1.55722 -1.56036 -1.56405 -1.56752 -1.57059 -1.57388 -1.57617 -1.57772 -1.57795 -1.57694 -1.57569 -1.57166 -1.56707 -1.56062 -1.55337 -1.54702 -1.54004 -1.53452 -1.52749 -1.5214 -1.51479 -1.50946 -1.50449 -1.50123 -1.49917 -1.49837 -1.49808 -1.49802 -1.49855 -1.49939 -1.50026 -1.50135 -1.50268 -1.50408 -1.50534 -1.5064 -1.50728 -1.50815 -1.50903 -1.50988 -1.51063 -1.51125 -1.51176 -1.51222 -1.51244 -1.5126 -1.51272 -1.51279 -1.51283 -1.51282 -1.51279 -1.51272 -1.51265 -1.51255 -1.51243 -1.51225 -1.512 -1.51171 -1.5114 -1.51116 -1.511 -1.51092 -1.511 -1.5112 -1.5117 -1.51243 -1.51355 -1.51508 -1.51723 -1.51994 -1.52349 -1.52762 -1.5325 -1.5381 -1.54412 -1.55077 -1.558 -1.5647 -1.57072 -1.57619 -1.57999 -1.58235 -1.58385 -1.58302 -1.5836 -1.58325 -1.58309 -1.58 -1.57559 -1.56652 -1.55584 -1.54153 -1.52872 -1.5175 -1.50926 -1.50372 -1.49994 -1.49738 -1.49584 -1.49488 -1.49479 -1.49533 -1.49646 -1.49797 -1.49953 -1.50105 -1.50244 -1.50371 -1.50506 -1.50644 -1.50772 -1.50888 -1.50992 -1.51082 -1.51146 -1.5118 -1.512 -1.51228 -1.51282 -1.51347 -1.51417 -1.51477 -1.51526 -1.51536 -1.51491 -1.51406 -1.51302 -1.51213 -1.51144 -1.51092 -1.51041 -1.51002 -1.5098 -1.50987 -1.51017 -1.51062 -1.51101 -1.51129 -1.51154 -1.51235 -1.5137 -1.51535 -1.51713 -1.51904 -1.52117 -1.52355 -1.52658 -1.52973 -1.53303 -1.53723 -1.54267 -1.54893 -1.55586 -1.56352 -1.57145 -1.57816 -1.58282 -1.58481 -1.58529 -1.58457 -1.58573 -1.58432 -1.58137 -1.57646 -1.57149 -1.56346 -1.55199 -1.53714 -1.5222 -1.50987 -1.50126 -1.4967 -1.49484 -1.49415 -1.49349 -1.49273 -1.49298 -1.49465 -1.49771 -1.50113 -1.50353 -1.50463 -1.50504 -1.50592 -1.50728 -1.5087 -1.50977 -1.51052 -1.51108 -1.5115 -1.51178 -1.51208 -1.51251 -1.51298 -1.51328 -1.51323 -1.51285 -1.51246 -1.51227 -1.51257 -1.5133 -1.51423 -1.51497 -1.51519 -1.51488 -1.51423 -1.51336 -1.51249 -1.5119 -1.51173 -1.51196 -1.51244 -1.51251 -1.51209 -1.51169 -1.51157 -1.51204 -1.51243 -1.51327 -1.51482 -1.5175 -1.52225 -1.52808 -1.53512 -1.54347 -1.55159 -1.56105 -1.57034 -1.57843 -1.58458 -1.58711 -1.58645 -1.58314 -1.57737 -1.56995 -1.56089 -1.54637 -1.52503 -1.50451 -1.48308 -1.46502 -1.44694 -1.43508 -1.42408 -1.41746 -1.41074 -1.40957 -1.4082 -1.40627 -1.40701 -1.40869 -1.41051 -1.41313 -1.41671 -1.41978 -1.42263 -1.42538 -1.42788 -1.43085 -1.43403 -1.43703 -1.44015 -1.44338 -1.44671 -1.45067 -1.45586 -1.46242 -1.47051 -1.48018 -1.49137 -1.50384 -1.51714 -1.53104 -1.54596 -1.56247 -1.58075 -1.60077 -1.62262 -1.6466 -1.67357 -1.7049 -1.74 -1.77331 -1.79904 -1.81301 -2.13395 -2.06299 -1.97552 -1.88812 -1.80732 -1.71711 -1.61096 -1.50719 -1.43496 -1.37609 -1.33289 -1.30584 -1.29209 -1.29093 -1.29398 -1.29988 -1.31326 -1.33087 -1.35123 -1.37215 -1.39472 -1.4167 -1.43877 -1.45949 -1.47735 -1.49414 -1.51012 -1.52394 -1.53603 -1.54669 -1.55604 -1.5646 -1.57241 -1.5795 -1.58573 -1.591 -1.59537 -1.59903 -1.60209 -1.60468 -1.60675 -1.60858 -1.61032 -1.61196 -1.61332 -1.61454 -1.61573 -1.61681 -1.6178 -1.61864 -1.61932 -1.61982 -1.62033 -1.6208 -1.62127 -1.62197 -1.62237 -1.62301 -1.62366 -1.62427 -1.6252 -1.6262 -1.62773 -1.62967 -1.63107 -1.6337 -1.63606 -1.63764 -1.64028 -1.64263 -1.64481 -1.64775 -1.6511 -1.65332 -1.65591 -1.65816 -1.65993 -1.66181 -1.66289 -1.6635 -1.66333 -1.66249 -1.66135 -1.65819 -1.65458 -1.64961 -1.64406 -1.63911 -1.63378 -1.62942 -1.62403 -1.61928 -1.6142 -1.61002 -1.60621 -1.60365 -1.60205 -1.6014 -1.60117 -1.60113 -1.60153 -1.60217 -1.60286 -1.60371 -1.60474 -1.60582 -1.60681 -1.60763 -1.60833 -1.609 -1.60969 -1.61035 -1.61093 -1.61141 -1.61181 -1.61224 -1.61236 -1.61248 -1.61258 -1.61265 -1.61269 -1.61271 -1.61271 -1.61269 -1.61267 -1.61264 -1.6126 -1.61252 -1.6124 -1.61225 -1.61212 -1.61205 -1.61207 -1.61218 -1.61244 -1.61284 -1.61349 -1.61436 -1.61555 -1.61712 -1.61918 -1.6217 -1.62485 -1.62842 -1.63255 -1.63711 -1.64191 -1.64704 -1.65241 -1.6572 -1.66129 -1.66481 -1.66698 -1.66811 -1.66856 -1.6675 -1.66774 -1.6674 -1.66721 -1.66479 -1.66129 -1.65427 -1.64602 -1.63497 -1.62505 -1.61638 -1.60996 -1.60562 -1.60265 -1.60064 -1.59943 -1.59868 -1.59861 -1.59903 -1.59991 -1.60107 -1.60228 -1.60346 -1.60454 -1.60554 -1.60659 -1.60767 -1.60866 -1.60956 -1.61037 -1.61107 -1.61157 -1.61184 -1.612 -1.61221 -1.61266 -1.61315 -1.61369 -1.61416 -1.61454 -1.61461 -1.61426 -1.61361 -1.61282 -1.61215 -1.61163 -1.61125 -1.6109 -1.61068 -1.61061 -1.61079 -1.61117 -1.6117 -1.61221 -1.61268 -1.61316 -1.6141 -1.61547 -1.61708 -1.61875 -1.62056 -1.62251 -1.62469 -1.62729 -1.62995 -1.63274 -1.63619 -1.64047 -1.64534 -1.6505 -1.65611 -1.66167 -1.66618 -1.66898 -1.66977 -1.66954 -1.66864 -1.66942 -1.66825 -1.66596 -1.66214 -1.65821 -1.65191 -1.64301 -1.63151 -1.62002 -1.61046 -1.60379 -1.60018 -1.59867 -1.59808 -1.59756 -1.59701 -1.59722 -1.59853 -1.60088 -1.6035 -1.60536 -1.60624 -1.60659 -1.60728 -1.60832 -1.60941 -1.61025 -1.61084 -1.61128 -1.61161 -1.61183 -1.61206 -1.6124 -1.61276 -1.61298 -1.61293 -1.61266 -1.61236 -1.61223 -1.61248 -1.61306 -1.61379 -1.61438 -1.61456 -1.61431 -1.61381 -1.61314 -1.61249 -1.61206 -1.61196 -1.61218 -1.61259 -1.61268 -1.61241 -1.61218 -1.6122 -1.61266 -1.613 -1.6137 -1.61504 -1.6173 -1.62115 -1.62584 -1.63146 -1.63795 -1.64487 -1.65245 -1.65978 -1.66614 -1.67061 -1.67215 -1.67118 -1.66809 -1.66313 -1.65751 -1.65011 -1.63846 -1.62178 -1.60558 -1.58888 -1.57418 -1.56 -1.55041 -1.54175 -1.53668 -1.53156 -1.52987 -1.52967 -1.528 -1.52862 -1.52999 -1.53154 -1.53368 -1.53653 -1.539 -1.54131 -1.54353 -1.54555 -1.54792 -1.55044 -1.55283 -1.55531 -1.55788 -1.56055 -1.56371 -1.56782 -1.573 -1.57938 -1.58699 -1.59578 -1.60556 -1.61599 -1.62692 -1.63868 -1.65167 -1.66606 -1.68183 -1.69902 -1.7179 -1.73913 -1.76367 -1.79094 -1.81671 -1.83647 -1.84702 -2.09056 -2.04065 -1.97718 -1.91306 -1.85312 -1.78718 -1.71095 -1.63657 -1.58354 -1.54043 -1.50853 -1.48795 -1.47885 -1.47736 -1.47887 -1.48328 -1.49289 -1.50562 -1.52033 -1.53564 -1.55212 -1.56824 -1.58439 -1.59958 -1.61277 -1.62512 -1.63685 -1.64704 -1.65596 -1.66383 -1.67074 -1.67705 -1.68279 -1.688 -1.69258 -1.69644 -1.69966 -1.70236 -1.70461 -1.70653 -1.70807 -1.70944 -1.71072 -1.71193 -1.71299 -1.71387 -1.71474 -1.71553 -1.71626 -1.71689 -1.7174 -1.71779 -1.71817 -1.71868 -1.71906 -1.71968 -1.71994 -1.72051 -1.72109 -1.72168 -1.72286 -1.72378 -1.72531 -1.7271 -1.72829 -1.73091 -1.73304 -1.73461 -1.73689 -1.73887 -1.74065 -1.74255 -1.74488 -1.74661 -1.74802 -1.74901 -1.74943 -1.74986 -1.74972 -1.74939 -1.74882 -1.74806 -1.74713 -1.74482 -1.74221 -1.73869 -1.73478 -1.73126 -1.7275 -1.72438 -1.72057 -1.71719 -1.71359 -1.7106 -1.70789 -1.70607 -1.70492 -1.70444 -1.70426 -1.70424 -1.70452 -1.70498 -1.70547 -1.70608 -1.70681 -1.70758 -1.70828 -1.70887 -1.70937 -1.70986 -1.71035 -1.71082 -1.71123 -1.71157 -1.71186 -1.71219 -1.71226 -1.71235 -1.71242 -1.71249 -1.71254 -1.71258 -1.71261 -1.71264 -1.71268 -1.71271 -1.71275 -1.71277 -1.71277 -1.71278 -1.71281 -1.71291 -1.7131 -1.71339 -1.71381 -1.71437 -1.71516 -1.71614 -1.71741 -1.71898 -1.72097 -1.72328 -1.72607 -1.72911 -1.73252 -1.73609 -1.73974 -1.74343 -1.74704 -1.74994 -1.7521 -1.75365 -1.75408 -1.7539 -1.75329 -1.75191 -1.7518 -1.75152 -1.75135 -1.74962 -1.7471 -1.7421 -1.73624 -1.7284 -1.72137 -1.71519 -1.7106 -1.70748 -1.70534 -1.7039 -1.70302 -1.70249 -1.70244 -1.70274 -1.70336 -1.70419 -1.70505 -1.70588 -1.70666 -1.70738 -1.70813 -1.7089 -1.70961 -1.71025 -1.71083 -1.71133 -1.71169 -1.71188 -1.712 -1.71214 -1.71247 -1.71283 -1.71322 -1.71355 -1.71383 -1.71387 -1.71362 -1.71316 -1.7126 -1.71214 -1.71179 -1.71156 -1.71138 -1.71131 -1.71138 -1.71167 -1.71213 -1.71274 -1.71338 -1.71401 -1.71471 -1.71576 -1.71714 -1.71869 -1.72028 -1.72194 -1.7237 -1.72564 -1.72784 -1.73004 -1.73234 -1.73506 -1.73825 -1.74177 -1.74519 -1.74881 -1.75204 -1.75433 -1.75519 -1.75467 -1.75365 -1.75253 -1.753 -1.75213 -1.75051 -1.74778 -1.74494 -1.74042 -1.73409 -1.72593 -1.71777 -1.71096 -1.70621 -1.7036 -1.70249 -1.70204 -1.70167 -1.70129 -1.70145 -1.70238 -1.70405 -1.7059 -1.70723 -1.70787 -1.70814 -1.70863 -1.70937 -1.71014 -1.71074 -1.71117 -1.71148 -1.71172 -1.71188 -1.71205 -1.71228 -1.71254 -1.71269 -1.71264 -1.71246 -1.71224 -1.71216 -1.71236 -1.7128 -1.71335 -1.71379 -1.71392 -1.71372 -1.71335 -1.71289 -1.71243 -1.71215 -1.7121 -1.7123 -1.71265 -1.71275 -1.71262 -1.71253 -1.71269 -1.71303 -1.71328 -1.7139 -1.71507 -1.71668 -1.71967 -1.72328 -1.72753 -1.73233 -1.73782 -1.74358 -1.74879 -1.75341 -1.75654 -1.75716 -1.75588 -1.753 -1.74887 -1.74441 -1.73901 -1.73035 -1.71815 -1.70616 -1.69402 -1.68331 -1.67306 -1.66595 -1.65974 -1.65588 -1.65248 -1.65133 -1.65084 -1.64989 -1.65039 -1.65143 -1.65264 -1.65427 -1.65637 -1.65823 -1.65996 -1.66163 -1.66316 -1.66493 -1.66679 -1.66857 -1.67041 -1.67232 -1.67431 -1.67665 -1.67967 -1.68349 -1.68818 -1.69375 -1.70016 -1.70728 -1.71486 -1.72282 -1.73139 -1.74087 -1.75137 -1.76287 -1.77541 -1.78918 -1.80462 -1.82241 -1.84201 -1.86041 -1.87432 -1.88146 -2.04928 -2.01938 -1.97949 -1.93838 -1.89953 -1.85787 -1.81122 -1.76573 -1.73254 -1.70544 -1.68511 -1.67248 -1.66734 -1.66545 -1.66665 -1.66952 -1.67547 -1.68337 -1.69249 -1.70207 -1.71237 -1.72245 -1.73254 -1.74203 -1.75032 -1.75805 -1.76539 -1.77176 -1.77735 -1.78228 -1.78659 -1.79051 -1.79407 -1.79729 -1.80011 -1.80249 -1.80446 -1.80611 -1.80748 -1.80863 -1.80955 -1.81036 -1.81112 -1.81186 -1.81237 -1.81289 -1.8134 -1.81388 -1.81434 -1.81476 -1.81513 -1.81546 -1.81579 -1.8163 -1.81676 -1.81733 -1.81798 -1.81875 -1.81959 -1.82049 -1.8218 -1.82307 -1.82465 -1.82648 -1.82793 -1.83017 -1.83211 -1.83357 -1.83536 -1.83679 -1.83793 -1.83895 -1.83999 -1.8406 -1.84056 -1.84011 -1.83915 -1.83808 -1.83664 -1.83538 -1.83442 -1.83379 -1.83305 -1.83159 -1.82999 -1.82789 -1.82558 -1.82348 -1.82126 -1.81939 -1.81712 -1.81509 -1.81295 -1.81117 -1.80955 -1.80846 -1.80777 -1.80747 -1.80736 -1.80735 -1.80751 -1.80778 -1.80808 -1.80845 -1.80888 -1.80935 -1.80976 -1.81012 -1.81042 -1.81071 -1.81101 -1.81129 -1.81154 -1.81174 -1.81191 -1.81202 -1.81212 -1.81218 -1.81225 -1.81231 -1.81238 -1.81244 -1.81252 -1.8126 -1.81269 -1.8128 -1.81292 -1.81304 -1.81318 -1.81334 -1.81354 -1.81382 -1.81419 -1.81465 -1.81525 -1.81598 -1.8169 -1.81799 -1.81933 -1.8209 -1.82278 -1.82486 -1.82726 -1.82974 -1.83241 -1.83498 -1.8375 -1.83976 -1.84163 -1.84268 -1.84291 -1.84252 -1.84123 -1.83971 -1.83805 -1.83628 -1.83585 -1.83566 -1.83555 -1.83451 -1.83302 -1.82997 -1.82649 -1.82183 -1.81765 -1.81396 -1.8112 -1.80931 -1.80801 -1.80715 -1.80661 -1.8063 -1.80627 -1.80644 -1.80682 -1.80731 -1.80782 -1.80832 -1.80879 -1.80923 -1.80968 -1.81014 -1.81056 -1.81095 -1.8113 -1.8116 -1.81181 -1.81193 -1.81199 -1.81205 -1.81225 -1.81248 -1.81273 -1.81294 -1.81311 -1.81312 -1.81297 -1.81268 -1.81235 -1.81209 -1.81193 -1.81186 -1.81184 -1.81194 -1.81216 -1.81257 -1.81314 -1.81384 -1.81461 -1.81542 -1.81632 -1.81752 -1.81892 -1.82041 -1.82187 -1.82337 -1.82494 -1.8266 -1.8284 -1.83011 -1.83185 -1.83384 -1.83588 -1.83805 -1.8398 -1.84141 -1.84237 -1.84248 -1.84139 -1.83954 -1.83774 -1.83635 -1.83658 -1.83605 -1.83508 -1.83344 -1.83171 -1.829 -1.82524 -1.82037 -1.81547 -1.81142 -1.80857 -1.80698 -1.80631 -1.80602 -1.80579 -1.80557 -1.80567 -1.80623 -1.80723 -1.80833 -1.80913 -1.80952 -1.80969 -1.80998 -1.81042 -1.81088 -1.81124 -1.8115 -1.81169 -1.81183 -1.81193 -1.81203 -1.81217 -1.81232 -1.81241 -1.81236 -1.81223 -1.81211 -1.81208 -1.81224 -1.81256 -1.81295 -1.81325 -1.81334 -1.81321 -1.81299 -1.81273 -1.81249 -1.81237 -1.81242 -1.81264 -1.81296 -1.81313 -1.8132 -1.81333 -1.81364 -1.81397 -1.81417 -1.8147 -1.81565 -1.81689 -1.81921 -1.82188 -1.82501 -1.82856 -1.83243 -1.83631 -1.8395 -1.84204 -1.84338 -1.84287 -1.84109 -1.83825 -1.83485 -1.83262 -1.82894 -1.82326 -1.81543 -1.80763 -1.79993 -1.79373 -1.78743 -1.78298 -1.77921 -1.77664 -1.77466 -1.7743 -1.77382 -1.77339 -1.77377 -1.77447 -1.77529 -1.77636 -1.77768 -1.77885 -1.77994 -1.78099 -1.78195 -1.78303 -1.78416 -1.78525 -1.78637 -1.78753 -1.78874 -1.79017 -1.79201 -1.79435 -1.79722 -1.80066 -1.80461 -1.809 -1.81367 -1.81862 -1.82398 -1.82994 -1.83656 -1.84383 -1.85177 -1.86045 -1.87016 -1.88125 -1.89333 -1.90447 -1.91257 -1.91622 -1.99921 -1.99032 -1.97632 -1.96075 -1.94518 -1.92862 -1.91059 -1.89258 -1.87844 -1.86644 -1.85684 -1.85067 -1.8473 -1.84559 -1.84552 -1.84636 -1.8486 -1.85181 -1.8556 -1.85975 -1.86424 -1.8687 -1.87321 -1.87752 -1.88138 -1.88503 -1.88849 -1.89154 -1.89427 -1.89672 -1.89887 -1.90084 -1.90262 -1.90422 -1.90561 -1.90678 -1.90777 -1.90861 -1.90931 -1.90992 -1.91043 -1.9109 -1.91134 -1.91178 -1.91202 -1.91238 -1.91273 -1.91308 -1.91344 -1.9138 -1.91417 -1.91457 -1.91501 -1.91556 -1.91616 -1.91683 -1.91772 -1.91865 -1.91972 -1.92089 -1.92224 -1.92366 -1.92524 -1.92694 -1.92843 -1.93019 -1.93173 -1.93291 -1.93405 -1.93476 -1.93511 -1.93507 -1.93476 -1.93381 -1.93222 -1.93029 -1.92798 -1.92556 -1.92305 -1.92107 -1.92001 -1.91932 -1.91899 -1.91847 -1.91793 -1.91724 -1.91648 -1.91579 -1.91506 -1.91444 -1.9137 -1.91302 -1.91232 -1.91173 -1.91119 -1.91082 -1.91059 -1.91049 -1.91045 -1.91044 -1.9105 -1.91059 -1.91069 -1.91081 -1.91096 -1.91111 -1.91125 -1.91137 -1.91147 -1.91157 -1.91167 -1.91176 -1.91184 -1.91191 -1.91195 -1.91197 -1.91202 -1.91206 -1.91212 -1.91218 -1.91227 -1.91237 -1.91249 -1.91263 -1.91279 -1.91297 -1.91319 -1.91343 -1.91371 -1.91404 -1.91444 -1.91492 -1.9155 -1.91618 -1.917 -1.91792 -1.91904 -1.92028 -1.92172 -1.92332 -1.92512 -1.92694 -1.92893 -1.93073 -1.93258 -1.93399 -1.93518 -1.93573 -1.93559 -1.93454 -1.93266 -1.93028 -1.92741 -1.92477 -1.92234 -1.92047 -1.91992 -1.91985 -1.91982 -1.91948 -1.91898 -1.91797 -1.91682 -1.91527 -1.91388 -1.91267 -1.91175 -1.91111 -1.91067 -1.91038 -1.9102 -1.91009 -1.91008 -1.91014 -1.91027 -1.91043 -1.91061 -1.91077 -1.91093 -1.91107 -1.91122 -1.91138 -1.91152 -1.91165 -1.91176 -1.91186 -1.91193 -1.91197 -1.91199 -1.91197 -1.91207 -1.91216 -1.91227 -1.91236 -1.91243 -1.91241 -1.91235 -1.91224 -1.91215 -1.9121 -1.91213 -1.91224 -1.91241 -1.91269 -1.91309 -1.91364 -1.91433 -1.91517 -1.9161 -1.91713 -1.91827 -1.91965 -1.92109 -1.92255 -1.92392 -1.92528 -1.92663 -1.92798 -1.92933 -1.93046 -1.93156 -1.93269 -1.93344 -1.93407 -1.93385 -1.93323 -1.93174 -1.92955 -1.92667 -1.92375 -1.92147 -1.92014 -1.92017 -1.92 -1.91968 -1.91913 -1.91855 -1.91766 -1.91642 -1.91479 -1.91317 -1.91183 -1.91087 -1.91033 -1.9101 -1.91 -1.90992 -1.90984 -1.90988 -1.91007 -1.91041 -1.91077 -1.91104 -1.91117 -1.91123 -1.91133 -1.91147 -1.91163 -1.91175 -1.91183 -1.9119 -1.91194 -1.91197 -1.91201 -1.91205 -1.9121 -1.91213 -1.91208 -1.91203 -1.91201 -1.91205 -1.91219 -1.91241 -1.91264 -1.91281 -1.91285 -1.91283 -1.91278 -1.91273 -1.91274 -1.91283 -1.91302 -1.91332 -1.91367 -1.91398 -1.91431 -1.91474 -1.91523 -1.91565 -1.91587 -1.91635 -1.91706 -1.91807 -1.91977 -1.92152 -1.92351 -1.92578 -1.92792 -1.92982 -1.93094 -1.93139 -1.93071 -1.92882 -1.92635 -1.92339 -1.92074 -1.91927 -1.91683 -1.91369 -1.90984 -1.90606 -1.90245 -1.89961 -1.89681 -1.89476 -1.89311 -1.89202 -1.89131 -1.89116 -1.89113 -1.8912 -1.89157 -1.89208 -1.89266 -1.89333 -1.89407 -1.89474 -1.89538 -1.896 -1.89659 -1.89722 -1.89786 -1.89849 -1.89915 -1.89983 -1.90056 -1.90138 -1.90239 -1.9036 -1.90505 -1.90672 -1.90859 -1.91061 -1.9127 -1.91489 -1.91722 -1.91976 -1.92251 -1.92546 -1.92858 -1.93188 -1.93544 -1.93934 -1.94338 -1.9468 -1.94878 -1.94887 ) ; boundaryField { inlet { type calculated; value nonuniform List<scalar> 60 ( 4238.92 4140.94 4043.08 3945.35 3847.75 3750.26 3652.9 3555.67 3458.56 3361.57 3264.71 3167.97 3071.36 2974.87 2878.51 2782.28 2686.18 2590.2 2494.35 2398.63 2303.04 2207.57 2112.24 2017.04 1921.97 1827.04 1732.23 1637.56 1543.03 1448.63 1354.36 1260.24 1166.25 1072.4 978.697 885.133 791.715 698.443 605.32 512.352 419.552 326.918 234.459 142.514 56.8235 1.51345 -2.94901 -2.80739 -2.68689 -2.5842 -2.4945 -2.41587 -2.347 -2.28565 -2.2305 -2.18033 -2.13395 -2.09056 -2.04928 -1.99921 ) ; } bottom { type calculated; value nonuniform List<scalar> 357 ( 4287.97 4303.91 4316.07 4324.32 4328.6 4328.66 4324.4 4316.07 4303.84 4287.76 4268.08 4245.07 4219.1 4190.48 4159.63 4126.94 4092.82 4057.74 4022.09 3986.27 3950.62 3915.41 3886.61 3853.71 3822.33 3792.58 3764.55 3738.32 3713.94 3691.43 3670.81 3652.04 3635.11 3619.97 3606.58 3594.88 3584.82 3576.34 3569.42 3563.99 3560.03 3557.54 3556.5 3557.1 3559.1 3562.6 3567.61 3574.14 3582.26 3592 3603.4 3616.52 3631.38 3648.01 3666.46 3686.7 3708.74 3732.55 3758.06 3785.18 3813.8 3843.76 3874.88 3906.96 3939.74 3972.92 4006.23 4039.32 4071.86 4103.48 4133.81 4162.52 4189.25 4213.64 4235.39 4254.19 4269.78 4281.92 4290.39 4295.06 4295.76 4292.56 4285.35 4274.24 4259.36 4240.9 4219.11 4194.26 4166.69 4136.75 4104.82 4071.32 4036.66 4001.27 3965.57 3929.96 3894.84 3860.6 3827.51 3795.89 3765.97 3737.94 3711.95 3688.08 3666.36 3646.81 3629.4 3614.06 3600.73 3589.32 3579.74 3571.92 3565.76 3561.19 3558.13 3556.51 3556.31 3557.49 3559.98 3563.77 3568.85 3575.21 3582.84 3591.76 3601.96 3613.46 3626.28 3640.45 3655.99 3672.94 3691.33 3711.19 3732.53 3755.37 3779.7 3805.49 3832.68 3861.18 3890.88 3921.59 3953.08 3985.11 4017.39 4049.6 4081.35 4112.27 4141.94 4169.93 4195.82 4219.19 4239.67 4256.88 4270.51 4280.31 4286.08 4287.61 4284.98 4278.1 4267.07 4252.05 4233.28 4211.05 4185.72 4157.71 4127.46 4095.45 4062.17 4028.11 3993.73 3959.48 3925.75 3892.98 3861.34 3831.15 3802.58 3775.79 3750.85 3727.81 3706.68 3687.43 3670.04 3654.45 3640.6 3628.43 3617.88 3608.89 3601.39 3595.32 3590.62 3587.24 3585.13 3584.22 3584.52 3586.01 3588.63 3592.41 3597.36 3603.48 3610.81 3619.37 3629.22 3640.4 3652.95 3666.92 3682.36 3699.29 3717.76 3737.77 3759.34 3782.44 3807.04 3833.09 3860.49 3889.13 3918.85 3949.48 3980.78 4012.46 4044.24 4075.79 4106.73 4136.68 4165.23 4191.96 4216.43 4238.23 4256.97 4272.29 4283.87 4291.47 4294.9 4294.05 4288.92 4279.61 4266.21 4248.95 4228.15 4204.16 4177.38 4148.26 4117.29 4084.94 4051.69 4018.03 3984.38 3951.14 3918.69 3887.32 3857.28 3828.78 3801.97 3776.96 3753.79 3732.49 3713.07 3695.48 3679.67 3665.57 3653.11 3642.22 3632.82 3624.85 3618.25 3612.96 3608.94 3606.16 3604.56 3604.12 3604.87 3606.81 3609.87 3614.08 3619.44 3625.97 3633.66 3642.54 3652.63 3663.95 3676.56 3690.46 3705.72 3722.38 3740.46 3759.99 3780.99 3803.49 3827.49 3852.96 3879.82 3907.97 3937.13 3966.55 3997.2 4028.45 4059.85 4091.03 4121.51 4150.8 4178.45 4203.96 4226.9 4246.86 4263.45 4276.39 4285.46 4290.49 4291.32 4287.84 4280.22 4268.65 4253.38 4234.75 4213.1 4188.81 4162.33 4134.11 4104.6 4074.22 4043.38 4012.48 3981.85 3951.76 3922.64 3895.45 3868.51 3842.66 3818.06 3794.76 3772.79 3752.16 3732.86 3714.88 3698.21 3682.83 3668.75 3655.95 3644.46 3634.29 3625.47 3618.01 3611.97 3607.38 3604.26 3602.66 3602.64 3604.45 3607.92 3613.08 3619.93 3628.45 3638.65 3650.52 3664.06 3679.21 3695.94 3714.24 3734.06 ) ; } outlet { type calculated; value nonuniform List<scalar> 60 ( 3685.01 3586.84 3488.61 3390.32 3291.96 3193.54 3095.05 2996.5 2897.88 2799.19 2700.44 2601.63 2502.74 2403.79 2304.78 2205.69 2106.54 2007.32 1908.03 1808.67 1709.24 1609.74 1510.17 1410.53 1310.81 1211.02 1111.15 1011.21 911.192 811.093 710.914 610.652 510.306 409.874 309.353 208.746 108.516 28.1962 -1.46799 -1.46553 -1.46791 -1.47413 -1.48388 -1.49683 -1.51266 -1.53113 -1.55197 -1.57495 -1.59987 -1.62652 -1.65472 -1.68429 -1.71507 -1.74688 -1.77958 -1.81301 -1.84702 -1.88146 -1.91622 -1.94887 ) ; } atmosphere { type calculated; value nonuniform List<scalar> 357 ( -1.96708 -1.96642 -1.96533 -1.96417 -1.96312 -1.96229 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.96202 -1.96206 -1.96214 -1.96225 -1.9624 -1.96259 -1.96284 -1.96317 -1.9636 -1.96412 -1.96474 -1.96551 -1.96639 -1.96744 -1.96862 -1.96991 -1.97136 -1.97286 -1.97449 -1.97603 -1.97755 -1.97896 -1.98008 -1.981 -1.98147 -1.98153 -1.98111 -1.9802 -1.97852 -1.97628 -1.9737 -1.97087 -1.96804 -1.96537 -1.96342 -1.9622 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.96201 -1.96204 -1.9621 -1.96217 -1.96227 -1.9624 -1.96255 -1.96273 -1.96294 -1.96318 -1.96346 -1.96378 -1.96415 -1.9646 -1.96513 -1.96574 -1.96647 -1.9673 -1.96828 -1.96936 -1.97063 -1.97199 -1.97354 -1.97518 -1.97696 -1.97863 -1.98033 -1.98166 -1.98294 -1.98357 -1.98385 -1.98323 -1.98179 -1.97943 -1.97638 -1.97301 -1.9695 -1.96655 -1.96405 -1.96244 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.96203 -1.96206 -1.96209 -1.96211 -1.96208 -1.96207 -1.96206 -1.96209 -1.96217 -1.96232 -1.96254 -1.96283 -1.96324 -1.96377 -1.96444 -1.96522 -1.96617 -1.96724 -1.96844 -1.96976 -1.97128 -1.97277 -1.97421 -1.97551 -1.97678 -1.97801 -1.97916 -1.98021 -1.98094 -1.98161 -1.98219 -1.98211 -1.98175 -1.98028 -1.97831 -1.97539 -1.97198 -1.96844 -1.96522 -1.96303 -1.96201 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.96202 -1.96209 -1.96222 -1.96238 -1.96251 -1.96259 -1.96261 -1.96262 -1.96265 -1.96272 -1.96284 -1.96302 -1.96324 -1.96352 -1.96383 -1.96413 -1.96453 -1.96501 -1.96551 -1.96585 -1.96595 -1.96623 -1.96666 -1.96735 -1.9684 -1.96926 -1.97019 -1.97125 -1.97201 -1.97246 -1.97222 -1.97145 -1.96983 -1.96756 -1.96537 -1.96348 -1.96235 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.962 -1.96201 -1.96205 -1.96211 -1.96219 -1.96228 -1.96239 -1.96251 -1.96265 -1.96281 -1.96298 -1.96311 -1.96316 -1.9631 ) ; } frontBack { type empty; } } // ************************************************************************* //
1565feb1556b59822634ce78b82f684518c8dc71
4e83bd0ab8225427c1d3b6f1bebd3128416b842d
/Source/Renderer/NuklearGUIRenderer.h
fb3c1a6a85dc6e0286f0b75d532cb37c520572d9
[ "MIT" ]
permissive
DavidTheFighter/KalosEngine
2d7c33d1fae27dc1a70f73caf52d8a69303d40bb
4c550114066bee1c41d08f38f5b692e567e96c27
refs/heads/master
2022-05-01T03:52:04.209638
2022-03-13T16:33:14
2022-03-13T16:33:14
161,925,778
1
0
null
null
null
null
UTF-8
C++
false
false
1,264
h
NuklearGUIRenderer.h
#ifndef RENDERER_GUIRENDERER_H_ #define RENDERER_GUIRENDERER_H_ #include <common.h> #include <RendererCore/RendererEnums.h> #include <RendererCore/RendererObjects.h> class Renderer; typedef struct { svec2 vertex; svec2 uv; svec4 color; } nk_vertex; typedef struct { Texture fontTexture; TextureView fontTextureView; DescriptorSet fontTextureDescriptorSet; struct nk_font *nkFont; } NkFontData; class NuklearGUIRenderer { public: NuklearGUIRenderer(Renderer *rendererPtr, RenderPass renderPass, DescriptorSet whiteTexturePtr, uint64_t streamingBufferSizeKb = 512); virtual ~NuklearGUIRenderer(); void renderNuklearGUI(CommandBuffer cmdBuffer, struct nk_context &ctx, uint32_t renderWidth, uint32_t renderHeight); private: Renderer *renderer; Buffer guiVertexIndexStreamBuffer; uint8_t *guiStreamBufferData; uint64_t guiStreamBufferIndex; uint64_t guiStreamBufferSize; Pipeline guiGfxPipeline; DescriptorSet whiteTextureDescriptorSet; std::unique_ptr<struct nk_buffer> nkCmdsBuffer; std::unique_ptr<struct nk_buffer> nkVerticesBuffer; std::unique_ptr<struct nk_buffer> nkIndicesBuffer; void createGraphicsPipeline(RenderPass renderPass); }; #endif /* RENDERER_GUIRENDERER_H_ */
9003c21e159c1b7571399513adb53d20f6314f43
50ea9e4aee22b625d8fff2ca3358facbfa2a3b59
/servo-with-encoder/servo_with_controller/servo_with_controller.ino
1baf271b0f9ebf24a8118bb1fc4103de55b2ebab
[]
no_license
Reales666/arduino-scripts
87de1979fbed0ff4a16352bb744c1a1cd98a1aa6
7d959fc5cd1c1a9ba47fc6866fa9e22452f8abb4
refs/heads/master
2023-07-20T03:13:54.649008
2023-07-14T12:16:08
2023-07-14T12:16:08
244,210,027
0
0
null
null
null
null
UTF-8
C++
false
false
1,813
ino
servo_with_controller.ino
/* This sketch shows how to control a 180º servo with a encoder. */ #include <Servo.h> // Servo configuration int SERVO_PIN = 9; Servo myServo; int servo_angle = 0; int prev_servo_angle = 0; // Encoder configuration #define encoder_output_a 2 #define encoder_output_b 3 #define encoder_switch 4 int state_a; int prev_state_a; void setup() { // Initialize serial comm Serial.begin(115200); Serial.setTimeout(1); // Initialize servo myServo.attach(SERVO_PIN); // Shows the servo movement range and leave it on the initial position myServo.write(0); delay(500); myServo.write(179); delay(1200); myServo.write(0); delay(1200); // Initialize encoder pinMode (encoder_output_a, INPUT); pinMode (encoder_output_b, INPUT); // The switch must be polarized with value HIGH pinMode (encoder_switch, INPUT_PULLUP); // Read the initial stastus of the encoder state_a = digitalRead(encoder_output_a); } void loop() { // Read the encoder position // Read the state of the encoder output A state_a = digitalRead(encoder_output_a); // If the state has changed, it means that we have movement if (state_a != prev_state_a) { // Check the output B. If A and B are different, the encoder is turning rightwards if (digitalRead(encoder_output_b) != state_a && servo_angle < 178) { servo_angle = servo_angle + 2; } else { if(servo_angle > 1) { servo_angle = servo_angle - 2; } } Serial.print("Current angle: "); Serial.println(servo_angle); } // Update encoder output A state prev_state_a = state_a; // If angle has been updated, move the servo if(servo_angle != prev_servo_angle) { prev_servo_angle = servo_angle; myServo.write(servo_angle); delay(5); // Wait the servo to be there } }
7f986005067caa6045c1e6b1adc6c7f2b94182d3
fd273c92bc61788fcd4c4cfb11d36cdc2ed4a816
/src/Rendering/Utils/render_utils.h
22c7d2afbf901fc0df68ea197676b2d336588913
[]
no_license
halpersim/seeds
e1278c8c211f10db3745c3b272b8534b326d1a65
de9a37acf42927e4fa7fd7d6e270e8ad745b5450
refs/heads/master
2023-07-14T14:11:20.252151
2021-05-23T09:50:48
2021-08-26T18:09:53
340,577,360
2
0
null
null
null
null
UTF-8
C++
false
false
1,638
h
render_utils.h
#pragma once #include "uniform_naming.h" #define STB_IMAGE_IMPLEMENTATION #include <stb\stb_image.h> namespace my_math { int int_log(int base, int x){ int ret; for(ret = 0; x != 0; x /= base, ret++); return ret; } int int_pow(int exp, int x){ int ret; for(ret = 1; x != 0; ret *= exp, x--); return ret; } } namespace my_utils { glm::ivec2 get_viewport(){ int viewport[4]; glGetIntegerv(GL_VIEWPORT, viewport); return glm::ivec2(viewport[2], viewport[3]); } void set_flip_vertically_on_load(bool flip){ stbi_set_flip_vertically_on_load(flip); } unsigned char* load_img(const char* filename, int& x, int& y, int& channels, int required_channels){ return stbi_load(filename, &x, &y, &channels, required_channels); } unsigned char* loadHUD_array_texture(const std::string& folderpath, const std::string* filenames, const glm::ivec3& size, int channels = 4){ unsigned char* tex_data = new unsigned char[channels * size.x * size.y * size.z]; unsigned char* icon_data = NULL; int x, y, chan; my_utils::set_flip_vertically_on_load(true); for(int i = 0; i<size.z; i++){ icon_data = my_utils::load_img((folderpath + filenames[i]).c_str(), x, y, chan, channels); memcpy(tex_data + channels * size.x * size.y * i, icon_data, sizeof(unsigned char) * channels * size.x * size.y); delete[] icon_data; } return tex_data; } template<int N> unsigned char* loadHUD_array_texture(const std::string& folderpath, const std::array<std::string, N>& filenames, const glm::ivec3& size, int channels = 4){ return loadHUD_array_texture(folderpath, filenames.data(), size, channels); } }
a2c386769d11921125734ce4a8753b570622ea17
3ae80dbc18ed3e89bedf846d098b2a98d8e4b776
/header/Media/APE/APEFile.h
7d824db1de2603bcfdeef1639608061f697892a9
[]
no_license
sswroom/SClass
deee467349ca249a7401f5d3c177cdf763a253ca
9a403ec67c6c4dfd2402f19d44c6573e25d4b347
refs/heads/main
2023-09-01T07:24:58.907606
2023-08-31T11:24:34
2023-08-31T11:24:34
329,970,172
10
7
null
null
null
null
UTF-8
C++
false
false
291
h
APEFile.h
#ifndef _SM_MEDIA_APE_APEFILE #define _SM_MEDIA_APE_APEFILE #include "IO/StreamData.h" #include "Media/MediaFile.h" namespace Media { namespace APE { class APEFile { public: static Media::MediaFile *ParseData(NotNullPtr<IO::StreamData> data); }; }; }; #endif
ef6b0f8553d437fd242a0ae2502a38ab27bbb73c
bd9de700605da2278a92020a2814b699daedec57
/codility/lesson14_1_MinMaxDivision/lesson14_1.hpp
6ab33353de31f9ff1a73cc31355520ab378cfc69
[]
no_license
WuHang108/petit-a-petit
8b177771e004341a166feb1a156153098f5d5d89
e173df8333f9a4070aee5ee65603fed92d2abf6b
refs/heads/master
2021-11-18T15:36:40.059510
2021-10-16T17:10:02
2021-10-16T17:10:02
230,759,303
1
0
null
null
null
null
UTF-8
C++
false
false
1,015
hpp
lesson14_1.hpp
#include "../basic_io.hpp" using namespace std; bool block_size_is_valid(vector<int>& A, int max_block_cnt, int max_block_size) { int block_sum = 0, block_cnt = 0; for(int n:A) { if(block_sum + n > max_block_size) { // 超出最大大小限制时建立新块 block_sum = n; block_cnt ++; } else { block_sum += n; } if(block_cnt >= max_block_cnt) return false; } return true; } int solution(int K, int M, vector<int> &A) { int max_value = 0, sum_A = 0; for(int n : A) { max_value = max(max_value, n); sum_A += n; } if(K == 1) return sum_A; if(K >= A.size()) return max_value; int low_bound = max_value, high_bound = sum_A; while(low_bound <= high_bound) { int mid = low_bound + (high_bound - low_bound) / 2; if(block_size_is_valid(A, K, mid)) { high_bound = mid - 1; } else { low_bound = mid + 1; } } return low_bound; }
4016a6180ebda372f2d79552bcd13c07fce6aca2
079323affaab612276ae508e042892051178a0a7
/字符串操作/字符串操作/main.cpp
a77e83d81a341d67f9f22afc229c613067e31c4a
[]
no_license
Kyle-fang/CPP-Learning-Notes
a4416d4309646c517a62dde5a2c3caea6dcad162
9139559fcb63dc4f0cda7e731f3d85bd0b531c00
refs/heads/master
2020-07-06T09:32:34.699075
2019-09-21T07:50:19
2019-09-21T07:50:19
202,972,492
1
0
null
null
null
null
GB18030
C++
false
false
2,021
cpp
main.cpp
//length和size函数 /* #include<iostream> #include<string> using namespace std; int main() { string firstName; string fullName; firstName = "Alexandra"; cout << firstName.length() << endl; cout << firstName.size() << endl; fullName = firstName + "kyle"; cout << fullName.length() << endl; cout << fullName.size() << endl; system("pause"); return 0; } */ /* #include<iostream> #include<string> using namespace std; int main() { //find函数 string str = "I am a goood men"; cout << str.find("a") << endl; */ //substr函数 /* string myString, first; myString = "programming and problem Solving"; first = myString.substr(24, 40); cout << first << endl; */ //at函数:访问字符串中的字符,从零开始 /* string myString1, letter; myString1 = "programming and problem Solving"; letter = myString1.at(2); cout << letter << endl; system("pause"); return 0; } */ //转换大小写,需要引入头文件<cctype> /* #include<iostream> #include<string> #include<cctype> using namespace std; int main() { string myString2; char ch1, ch2; myString2 = "programming and problem Solving"; ch1 = toupper(myString2.at(0)); ch2 = towlower(myString2.at(24)); cout << myString2 << "\n"<< ch1 <<"\n"<< ch2 << endl; system("pause"); return 0; } */ //抵押贷款计算器 #include<iostream> #include<string> #include<cmath> //包含大量数学函数的头文件 using namespace std; int main() { float Debt, Interest_rate; int time; cout << "欠款:" << endl; cin >> Debt; cout << "还款时间:" << endl; cin >> time; cout << "最新利率:" << endl; cin >> Interest_rate; float month_Interest = Interest_rate / 12; int number_of_payments = time*12; float payment; payment = Debt * pow(1 + month_Interest, number_of_payments) * month_Interest / (pow(1+month_Interest,number_of_payments) - 1); cout << "月供金额: " << payment << endl; system("pause"); return 0; }
d5bb4afa47fac580858358e0aa0f6b87a03e9c38
9424d10937ccea19d08860379294b4dbeb4e2ad4
/testing/wheel_ir_sensors/wheel_ir_sensors.ino
a926284ab68c77161db7ffe08f5004e0707f713e
[]
no_license
ProtoProtonas/TDP4_rover
15a8f0941b7d402c7da30ee71d2cea2c9f809753
4a4441d54a47b351f099c5a549ad107c383c8cae
refs/heads/master
2023-04-25T11:05:43.833697
2020-02-29T20:03:23
2020-02-29T20:03:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,602
ino
wheel_ir_sensors.ino
// main loop timing #define high 14 #define main_loop_frequency 100 // in Hertz long int now = 0; long int next_time = 0; long int started = 0; int period = 1000/main_loop_frequency; // in milliseconds unsigned int up_counter = 0; // motor angle (IR ON/OFF pairs) #define motor_ir_led1 12 // motor speed variables - infrared ON/OFF switches bool last_pos1 = false; // last position of the switch int last_change_cycle1 = 0; // cycle number when the last position change was short int motor_speed1 = 0; // speed in milliradians/s int cycles = 0; void setup() { Serial.begin(115200); // ############# SETUP MOTOR SPEED DETECTION ############# pinMode(motor_ir_led1, INPUT); pinMode(high, OUTPUT); } void loop() { digitalWrite(high, HIGH); // put your main code here, to run repeatedly: started = millis(); next_time = started + period; // wheel 1 cycles = 0; if(digitalRead(motor_ir_led1) == 1) { if(last_pos1 == 0) { cycles = up_counter - last_change_cycle1; Serial.print("Motor speed: "); Serial.print(6283 / cycles / period); Serial.println(" mrad/s"); last_pos1 = 1; last_change_cycle1 = up_counter; } // Serial.println("1"); } else { if(last_pos1 == 1) { cycles = up_counter - last_change_cycle1; Serial.print("Motor speed: "); Serial.print(6283 / cycles / period); Serial.println(" mrad/s"); last_pos1 = 0; last_change_cycle1 = up_counter; } // Serial.println("0"); } now = millis(); while(now < next_time) { now = millis(); } up_counter++; }
9594e42b2c96f315be888395b39002e90f68cac1
83acc2dfef8b5ca2c81b859418be18b63144f20b
/libsrc/grabber/amlogic/AmlogicGrabber.cpp
90d76a856902f1f4010b37fb348b50ef28ecf7bb
[ "MIT" ]
permissive
zlokomatic/hyperion.ng
c57e248111484b8a4f6314ad8ad4c2ffbb251441
4dfe1e87f14c24ee02b51f7aef0ec58ecaf71430
refs/heads/master
2020-03-23T15:28:13.968519
2018-07-20T19:28:49
2018-07-20T19:33:26
141,750,318
1
0
MIT
2018-07-20T19:29:27
2018-07-20T19:29:27
null
UTF-8
C++
false
false
7,913
cpp
AmlogicGrabber.cpp
// STL includes #include <algorithm> #include <cassert> #include <iostream> #include <QFile> // Linux includes #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/types.h> // Local includes #include <utils/Logger.h> #include <grabber/AmlogicGrabber.h> #include "Amvideocap.h" #define VIDEO_DEVICE "/dev/amvideo" #define CAPTURE_DEVICE "/dev/amvideocap0" #define GE2D_DEVICE "/dev/ge2d" AmlogicGrabber::AmlogicGrabber(const unsigned width, const unsigned height) : Grabber("AMLOGICGRABBER", qMax(160u, width), qMax(160u, height)) // Minimum required width or height is 160 , _captureDev(-1) , _videoDev(-1) , _ge2dDev(-1) , _lastError(0) , _fbGrabber("/dev/fb0",width,height) , _grabbingModeNotification(0) , _ge2dAvailable(true) , _ge2dVideoBufferPtr(nullptr) , _ge2dIonBuffer(nullptr) { Debug(_log, "constructed(%d x %d)",_width,_height); } AmlogicGrabber::~AmlogicGrabber() { closeDev(_captureDev); closeDev(_videoDev); closeDev(_ge2dDev); } bool AmlogicGrabber::openDev(int &fd, const char* dev) { if (fd<0) { fd = open(dev, O_RDWR); } return fd >= 0; } void AmlogicGrabber::closeDev(int &fd) { if (fd >= 0) { close(fd); fd = -1; } } bool AmlogicGrabber::isVideoPlaying() { if(!QFile::exists(VIDEO_DEVICE)) return false; int videoDisabled = 1; if (!openDev(_videoDev, VIDEO_DEVICE)) { Error(_log, "Failed to open video device(%s): %d - %s", VIDEO_DEVICE, errno, strerror(errno)); return false; } else { // Check the video disabled flag if(ioctl(_videoDev, AMSTREAM_IOC_GET_VIDEO_DISABLE, &videoDisabled) < 0) { Error(_log, "Failed to retrieve video state from device: %d - %s", errno, strerror(errno)); closeDev(_videoDev); return false; } } return videoDisabled == 0; } int AmlogicGrabber::grabFrame(Image<ColorRgb> & image) { if (!_enabled) return 0; image.resize(_width,_height); // Make sure video is playing, else there is nothing to grab if (isVideoPlaying()) { if (_grabbingModeNotification!=1) { Info(_log, "VPU mode"); _grabbingModeNotification = 1; _lastError = 0; } if (_ge2dAvailable) { try { _ge2dAvailable = (QFile::exists(GE2D_DEVICE) && grabFrame_ge2d(image) == 0); } catch (...) { _ge2dAvailable = false; } if (!_ge2dAvailable) { closeDev(_videoDev); closeDev(_ge2dDev); Warning(_log, "GE2D capture interface not available! try Amvideocap instead"); } } else if (QFile::exists(CAPTURE_DEVICE)) { grabFrame_amvideocap(image); } } else { if (_grabbingModeNotification!=2) { Info( _log, "FB mode"); _grabbingModeNotification = 2; _lastError = 0; } _fbGrabber.grabFrame(image); } closeDev(_videoDev); return 0; } int AmlogicGrabber::grabFrame_amvideocap(Image<ColorRgb> & image) { // If the device is not open, attempt to open it if (! openDev(_captureDev, CAPTURE_DEVICE)) { ErrorIf( _lastError != 1, _log,"Failed to open the AMLOGIC device (%d - %s):", errno, strerror(errno)); _lastError = 1; return -1; } long r1 = ioctl(_captureDev, AMVIDEOCAP_IOW_SET_WANTFRAME_WIDTH, _width); long r2 = ioctl(_captureDev, AMVIDEOCAP_IOW_SET_WANTFRAME_HEIGHT, _height); if (r1<0 || r2<0 || _height==0 || _width==0) { ErrorIf(_lastError != 2,_log,"Failed to configure capture size (%d - %s)", errno, strerror(errno)); closeDev(_captureDev); _lastError = 2; return -1; } // Read the snapshot into the memory image.resize(_width, _height); _image_bgr.resize(_width, _height); const ssize_t bytesToRead = _image_bgr.size(); void * image_ptr = _image_bgr.memptr(); const ssize_t bytesRead = pread(_captureDev, image_ptr, bytesToRead, 0); if (bytesRead < 0) { ErrorIf(_lastError != 3, _log,"Read of device failed: %d - %s", errno, strerror(errno)); closeDev(_captureDev); _lastError = 3; return -1; } else if (bytesToRead != bytesRead) { // Read of snapshot failed ErrorIf(_lastError != 4, _log,"Capture failed to grab entire image [bytesToRead(%d) != bytesRead(%d)]", bytesToRead, bytesRead); closeDev(_captureDev); return -1; } closeDev(_captureDev); _useImageResampler = true; _imageResampler.processImage((const uint8_t*)image_ptr, _width, _height, _width*3, PIXELFORMAT_BGR24, image); _lastError = 0; return 0; } int AmlogicGrabber::grabFrame_ge2d(Image<ColorRgb> & image) { if ( ! openDev(_ge2dDev, GE2D_DEVICE) || ! openDev(_videoDev, VIDEO_DEVICE)) { Error(_log, "cannot open devices"); return -1; } // Ion if (_ge2dIonBuffer == nullptr) { _ge2dIonBuffer = new IonBuffer(_width * _height * 3); // BGR _ge2dVideoBufferPtr = _ge2dIonBuffer->Map(); memset(_ge2dVideoBufferPtr, 0, _ge2dIonBuffer->BufferSize()); } int canvas_index; if (ioctl(_videoDev, AMVIDEO_EXT_GET_CURRENT_VIDEOFRAME, &canvas_index) < 0) { Error(_log, "AMSTREAM_EXT_GET_CURRENT_VIDEOFRAME failed."); return -1; } uint32_t canvas0addr; if (ioctl(_videoDev, AMVIDEO_EXT_CURRENT_VIDEOFRAME_GET_CANVAS0ADDR, &canvas0addr) < 0) { Error(_log, "AMSTREAM_EXT_CURRENT_VIDEOFRAME_GET_CANVAS0ADDR failed."); return -1; } uint32_t ge2dformat; if (ioctl(_videoDev, AMVIDEO_EXT_CURRENT_VIDEOFRAME_GET_GE2D_FORMAT, &ge2dformat) <0) { Error(_log, "AMSTREAM_EXT_CURRENT_VIDEOFRAME_GET_GE2D_FORMAT failed."); return -1; } uint64_t size; if (ioctl(_videoDev, AMVIDEO_EXT_CURRENT_VIDEOFRAME_GET_SIZE, &size) < 0) { Error(_log, "AMSTREAM_EXT_CURRENT_VIDEOFRAME_GET_SIZE failed."); return -1; } unsigned cropLeft = _cropLeft; unsigned cropRight = _cropRight; unsigned cropTop = _cropTop; unsigned cropBottom = _cropBottom; int videoWidth = (size >> 32) - cropLeft - cropRight; int videoHeight = (size & 0xffffff) - cropTop - cropBottom; // calculate final image dimensions and adjust top/left cropping in 3D modes switch (_videoMode) { case VIDEO_3DSBS: videoWidth /= 2; cropLeft /= 2; break; case VIDEO_3DTAB: videoHeight /= 2; cropTop /= 2; break; case VIDEO_2D: default: break; } struct config_para_ex_s configex = { 0 }; configex.src_para.mem_type = CANVAS_TYPE_INVALID; configex.src_para.canvas_index = canvas0addr; configex.src_para.left = cropLeft; configex.src_para.top = cropTop; configex.src_para.width = videoWidth; configex.src_para.height = videoHeight / 2; configex.src_para.format = ge2dformat; configex.dst_para.mem_type = CANVAS_ALLOC; configex.dst_para.format = GE2D_FORMAT_S24_RGB; configex.dst_para.left = 0; configex.dst_para.top = 0; configex.dst_para.width = _width; configex.dst_para.height = _height; configex.dst_planes[0].addr = (long unsigned int)_ge2dIonBuffer->PhysicalAddress(); configex.dst_planes[0].w = configex.dst_para.width; configex.dst_planes[0].h = configex.dst_para.height; if (ioctl(_ge2dDev, GE2D_CONFIG_EX, &configex) < 0) { Error(_log, "video GE2D_CONFIG_EX failed."); return -1; } ge2d_para_s blitRect = { 0 }; blitRect.src1_rect.x = 0; blitRect.src1_rect.y = 0; blitRect.src1_rect.w = configex.src_para.width; blitRect.src1_rect.h = configex.src_para.height; blitRect.dst_rect.x = 0; blitRect.dst_rect.y = 0; blitRect.dst_rect.w = configex.dst_para.width ; blitRect.dst_rect.h = configex.dst_para.height; // Blit to videoBuffer if (ioctl(_ge2dDev, GE2D_STRETCHBLIT_NOALPHA, &blitRect) < 0) { Error(_log,"GE2D_STRETCHBLIT_NOALPHA failed."); return -1; } // Return video frame if (ioctl(_videoDev, AMVIDEO_EXT_PUT_CURRENT_VIDEOFRAME) < 0) { Error(_log, "AMSTREAM_EXT_PUT_CURRENT_VIDEOFRAME failed."); return -1; } _ge2dIonBuffer->Sync(); // Read the snapshot into the memory _useImageResampler = false; _imageResampler.processImage((const uint8_t*)_ge2dVideoBufferPtr, _width, _height, _width*3, PIXELFORMAT_BGR24, image); closeDev(_videoDev); closeDev(_ge2dDev); return 0; }
d0a2e6aa88d1b0a0a86acfa85081d55f37b29933
a754da405bc3d2d2d1d8940d7d277c63bf2b7768
/graphics/text_element.cpp
e3069737d2559ea78219f2edff0976d3a5b1ed32
[ "Apache-2.0" ]
permissive
icyleaf/omim
3a5a4f07890e6ad0155447ed39563a710178ec35
a1a299eb341603337bf4a22b92518d9575498c97
refs/heads/master
2020-12-28T22:53:52.624975
2015-10-09T16:30:46
2015-10-09T16:30:46
43,995,093
0
0
Apache-2.0
2019-12-12T03:19:59
2015-10-10T05:08:38
C++
UTF-8
C++
false
false
3,565
cpp
text_element.cpp
#include "graphics/text_element.hpp" #include "graphics/overlay_renderer.hpp" #include "graphics/glyph.hpp" #include "graphics/glyph_layout.hpp" #include "base/logging.hpp" namespace graphics { TextElement::TextElement(Params const & p) : OverlayElement(p), m_fontDesc(p.m_fontDesc), m_auxFontDesc(p.m_auxFontDesc) { } pair<bool, bool> TextElement::Params::GetVisibleTexts( strings::UniString & visText, strings::UniString & auxVisText) const { if (m_log2vis) { visText = m_glyphCache->log2vis(m_logText); if (!m_auxLogText.empty()) auxVisText = m_glyphCache->log2vis(m_auxLogText); return make_pair(visText != m_logText, auxVisText != m_auxLogText); } else { visText = m_logText; auxVisText = m_auxLogText; return make_pair(false, false); } } FontDesc const & TextElement::fontDesc() const { return m_fontDesc; } FontDesc const & TextElement::auxFontDesc() const { return m_auxFontDesc; } void TextElement::drawTextImpl(GlyphLayout const & layout, OverlayRenderer * screen, math::Matrix<double, 3, 3> const & m, bool doTransformPivotOnly, bool doAlignPivot, FontDesc const & fontDesc, double depth) const { if (!fontDesc.IsValid()) return; m2::PointD pv = layout.pivot(); m2::PointD offs = layout.offset(); double deltaA = 0; if (doTransformPivotOnly) pv *= m; else { double k = (sqrt((m(0, 0) * m(0, 0) + m(0, 1) * m(0, 1) + m(1, 0) * m(1, 0) + m(1, 1) * m(1, 1)) / 2)); if ((k > 1.1) || (k < 1 / 1.1)) return; deltaA = (ang::AngleD(0) * m).val(); } size_t const cnt = layout.entries().size(); buffer_vector<Glyph::Info, 32> glyphInfos(cnt); buffer_vector<Resource::Info const *, 32> resInfos(cnt); buffer_vector<uint32_t, 32> glyphIDs(cnt); size_t const firstVis = layout.firstVisible(); size_t const lastVis = layout.lastVisible(); /// collecting all glyph infos in one array and packing them as a whole. for (size_t i = firstVis; i < lastVis; ++i) { GlyphKey glyphKey(layout.entries()[i].m_sym, fontDesc.m_size, fontDesc.m_isMasked, fontDesc.m_isMasked ? fontDesc.m_maskColor : fontDesc.m_color); glyphInfos[i] = Glyph::Info(glyphKey, screen->glyphCache()); resInfos[i] = &glyphInfos[i]; } if (firstVis != lastVis && !screen->mapInfo(&resInfos[firstVis], &glyphIDs[firstVis], lastVis - firstVis)) { LOG(LDEBUG, ("cannot render string", lastVis - firstVis, "characters long")); return; } for (size_t i = firstVis; i < lastVis; ++i) { GlyphLayoutElem const & elem = layout.entries()[i]; Glyph const * glyph = static_cast<Glyph const *>(screen->fromID(glyphIDs[i])); m2::PointD glyphPt; ang::AngleD glyphAngle; if (doTransformPivotOnly) { m2::PointD offsPt = offs + elem.m_pt; screen->drawStraightGlyph(pv, offsPt, glyph, depth); } else { glyphPt = (pv + offs + elem.m_pt) * m; glyphAngle = ang::AngleD(elem.m_angle.val() + deltaA); screen->drawGlyph(glyphPt, m2::PointD(0.0, 0.0), glyphAngle, 0, glyph, depth); } } } }
72b8988459b3d903f6571cc38651371ca7887bed
2a2e65c2212b5b973cf412d314a2108eeb390dd7
/src/gpu/convolution_gpu.cpp
b7922f38b7372ae8435328eb9c5dd1f0f3473690
[ "BSL-1.0", "Apache-2.0" ]
permissive
lws-team/clDNN
b6c567f0bda9415fa5486a49a175f1638cbde96e
6f5c9f231ae720c106670a153ab60469d5a6ff2f
refs/heads/master
2020-12-02T18:11:48.656930
2017-06-14T11:46:38
2017-06-14T11:46:38
96,490,804
0
0
null
2017-07-07T02:27:31
2017-07-07T02:27:31
null
UTF-8
C++
false
false
33,921
cpp
convolution_gpu.cpp
/* // Copyright (c) 2016 Intel Corporation // // 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 "convolution_inst.h" #include "kernel.h" #include "network_impl.h" #include "kd_selector.h" #include "implementation_map.h" #include <initializer_list> using namespace cldnn; namespace neural { static const std::string kernel_name_yxfb_oiyx = "convolution_gpu_yxfb_oiyx"; static const std::string kernel_name_yxfb_yxio = "convolution_gpu_yxfb_yxio"; static const std::string kernel_name_yxfb_yxio_b1_block = "convolution_gpu_yxfb_yxio_b1_block"; static const std::string kernel_name_yxfb_yxio_b1_block_multiple_x = "convolution_gpu_yxfb_yxio_b1_block_multiple_x"; static const std::string kernel_name_yxfb_yxio_b8 = "convolution_gpu_yxfb_yxio_b8"; static const std::string kernel_name_yxfb_yxio_b16 = "convolution_gpu_yxfb_yxio_b16"; static const std::string kernel_name_yxfb_yxio_b16_fp16 = "convolution_gpu_yxfb_yxio_b16_fp16"; static const std::string kernel_name_yxfb_yxio_fp16 = "convolution_gpu_yxfb_yxio_fp16"; static const std::string kernel_name_bfyx_os_iyx_osv16 = "convolution_gpu_bfyx_os_iyx_osv16"; template <> struct kd_default_value_selector<neural::gpu::engine_info_internal::architectures> { static constexpr neural::gpu::engine_info_internal::architectures value = neural::gpu::engine_info_internal::architectures::GEN_UNKNOWN; }; template <> struct kd_default_value_selector<gpu::engine_info_internal::configurations> { static constexpr gpu::engine_info_internal::configurations value = gpu::engine_info_internal::configurations::GT_UNKNOWN; }; struct convolution_gpu : typed_primitive_impl<convolution> { const convolution_node& outer; const layout input_layout; const layout weights_layout; const layout output_layout; gpu::engine_info_internal _engine_info; struct kernel_data { size_t gws0, gws1, gws2; size_t lws0, lws1, lws2; size_t ofm_per_work_item; // how many output feature maps a single work item compute size_t batches_per_work_item; // how many batches will a single work item compute size_t block_width, block_height; // used for kernels processing blocks size_t prefetch; size_t input_block_array_size; ///< Number of elements in array of UNIT_TYPE that must be specified in kernel to store/cache input block. size_t input_block_width; ///< Number of elements in X dimension stored/cached in input block. std::string kernel_name; ///< Name of a kernel/algorithm to execute. bool fp16_unit_used; ///< Value indicating that FP16 half precision floating point type will be used (instead of single precision). size_t leftovers; } _kernel_data; gpu::kernel _kernel; static kernel_data set_default(const convolution_node& arg) { const auto& input_layout = arg.input().get_output_layout(); // input const auto& output_layout = arg.get_output_layout(); // output const auto& output_buffer_size = output_layout.get_buffer_size(); auto split = arg.get_primitive()->split(); auto batch_size = output_layout.size.batch[0]; kernel_data kd; kd.fp16_unit_used = input_layout.data_type == cldnn::data_types::f16; kd.gws0 = (output_buffer_size.feature[0] * batch_size) / split; kd.lws0 = std::min(kd.gws0, static_cast<size_t>(32)); while (kd.gws0 % kd.lws0) { kd.lws0--; } kd.gws1 = output_buffer_size.spatial[0]; kd.gws2 = output_buffer_size.spatial[1]; kd.lws1 = 1; kd.lws2 = 1; kd.ofm_per_work_item = 1; kd.batches_per_work_item = 1; kd.block_width = 1; kd.block_height = 1; kd.prefetch = 0; kd.input_block_array_size = 0; kd.input_block_width = 0; kd.leftovers = 0; return kd; } static bool is_kernel_valid(kernel_data& kd) { if ((kd.gws0 == 0) || (kd.gws1 == 0) || (kd.gws2 == 0) || (kd.lws0 == 0) || (kd.lws1 == 0) || (kd.lws2 == 0)) { return false; } if ((kd.gws0 % kd.lws0) || (kd.gws1 % kd.lws1) || (kd.gws2 % kd.lws2)) { return false; } return true; } typedef kd_selector_t<kernel_data, convolution_node, data_types, format::type, data_types, format::type, kd_optional_selector_t, int, neural::gpu::engine_info_internal::architectures, gpu::engine_info_internal::configurations> ks_type; static ks_type ks; convolution_gpu(const convolution_node &arg) : outer(arg) , input_layout(arg.input().get_output_layout()) , weights_layout(arg.weights(0).get_output_layout()) , output_layout(arg.get_output_layout()) , _engine_info(arg.get_program().get_engine()->get_context()->get_engine_info()) , _kernel_data(ks.get_kernel(arg, input_layout.data_type, input_layout.format, weights_layout.data_type, weights_layout.format, input_layout.size.batch[0], _engine_info.architecture, _engine_info.configuration)) , _kernel(arg.get_program().get_engine()->get_context(), _kernel_data.kernel_name, get_jit_constants(), outer.id()) { } gpu::jit_constants get_jit_constants() const { auto input_offset = outer.get_primitive()->input_offset; auto output_padding = outer.get_output_layout().data_padding; auto split = outer.get_primitive()->split(); const int batch_size = output_layout.size.batch[0]; auto input_size = input_layout.size; tensor stride( 1, 1, std::min(outer.get_primitive()->stride.spatial[0], input_size.spatial[0]), std::min(outer.get_primitive()->stride.spatial[1], input_size.spatial[1]) ); padding input_padding = outer.input().get_output_layout().data_padding; gpu::jit_constants mem_consts{ gpu::make_jit_constant("INPUT", input_size), gpu::make_jit_constant("OUTPUT", output_layout.size), gpu::make_jit_constant("STRIDE", stride), gpu::make_jit_constant("INPUT_OFFSET", input_offset), // TODO: Output limit is incorrect for following cases (1. primitive used as input for two different convolutions with different padding, 2. asymmetric padding). Need to be checked and corrected. gpu::make_jit_constant("OUTPUT_LIMIT", output_layout.size.add(output_padding.lower_size()).add(output_padding.upper_size())), gpu::make_jit_constant("INPUT_PADDING", input_padding), gpu::make_jit_constant("OUTPUT_PADDING", output_padding), gpu::make_jit_constant("FILTER", weights_layout.size), gpu::make_jit_constant("FILTER_ARRAY_NUM", split), gpu::make_jit_constant("FILTER_OUTPUT_FEATURE_NUM", "FILTER_BATCH_NUM"), gpu::make_jit_constant("FILTER_INPUT_FEATURE_NUM", "FILTER_FEATURE_NUM"), gpu::make_jit_constant("FP16_SUPPORTED", static_cast<int>(_engine_info.supports_fp16)), gpu::make_jit_constant("FP16_UNIT_USED", static_cast<int>(_kernel_data.fp16_unit_used)), gpu::make_jit_constant("UNIT_TYPE", _kernel_data.fp16_unit_used ? "half" : "float"), gpu::make_jit_constant("UNIT_VAL_ZERO", _kernel_data.fp16_unit_used ? "0.0h" : "0.0f"), gpu::make_jit_constant("RELU", static_cast<int>(outer.get_primitive()->with_activation)), gpu::make_jit_constant("NEGATIVE_SLOPE", outer.get_primitive()->activation_negative_slope), gpu::make_jit_constant("BIAS_TERM", static_cast<int>(outer.bias_term())), gpu::make_jit_constant("DILATION", outer.get_primitive()->dilation), }; if (weights_layout.format == format::yxfb) { const auto local_work_group_size = _kernel_data.lws0; mem_consts.add_constant(gpu::make_jit_constant("LOCAL_WORK_GROUP_SIZE", local_work_group_size)); mem_consts.add_constant(gpu::make_jit_constant("OFM_PER_WORK_ITEM", _kernel_data.ofm_per_work_item)); // how many output feature maps for a single batch will a single work item produce mem_consts.add_constant(gpu::make_jit_constant("BATCHES_PER_WORK_ITEM", _kernel_data.batches_per_work_item)); // how many batches will a single work item compute mem_consts.add_constant(gpu::make_jit_constant("LOCAL_WORK_GROUPS_PER_SINGLE_BATCHES_ELEMENTS", std::max(batch_size / _kernel_data.batches_per_work_item / local_work_group_size, static_cast<size_t>(1)))); // how many local work groups we need to compute single element for each batch mem_consts.add_constant(gpu::make_jit_constant("WORK_ITEMS_PER_SINGLE_BATCHES_ELEMENTS", batch_size / _kernel_data.batches_per_work_item)); // how many work items we need to compute single element for each batch if (_kernel_data.kernel_name == kernel_name_yxfb_yxio_b16_fp16) { if (batch_size >= 64) mem_consts.add_constant(gpu::make_jit_constant("USE_BLOCK_READ_2", "")); else if (batch_size >= 32) mem_consts.add_constant(gpu::make_jit_constant("USE_BLOCK_READ_1", "")); } // A LITTLE HACK, for convolutions with low number of input features don't use block reads, and it will speed up by 25% // TODO - investigate why is this happening else if (input_layout.size.feature[0] > 4) { mem_consts.add_constant(gpu::make_jit_constant("USE_BLOCK_READ_2", "")); } } if (_kernel_data.kernel_name == kernel_name_yxfb_yxio_b1_block_multiple_x) { mem_consts.add_constant(gpu::make_jit_constant("USE_VECTOR", _kernel_data.ofm_per_work_item)); if (_kernel_data.ofm_per_work_item == 8) mem_consts.add_constant(gpu::make_jit_constant("X_PER_WORK_ITEM", 2)); else if (_kernel_data.ofm_per_work_item == 4) mem_consts.add_constant(gpu::make_jit_constant("X_PER_WORK_ITEM", 4)); else mem_consts.add_constant(gpu::make_jit_constant("X_PER_WORK_ITEM", 8)); } if (input_layout.format == format::bfyx) { mem_consts.add_constant(gpu::make_jit_constant("SUB_GROUP_SIZE", _kernel_data.lws2)); mem_consts.add_constant(gpu::make_jit_constant("OUT_BLOCK_WIDTH", _kernel_data.block_width)); mem_consts.add_constant(gpu::make_jit_constant("OUT_BLOCK_HEIGHT", _kernel_data.block_height)); mem_consts.add_constant(gpu::make_jit_constant("IN_BLOCK_ARRAY_SIZE", _kernel_data.input_block_array_size)); mem_consts.add_constant(gpu::make_jit_constant("IN_BLOCK_WIDTH", _kernel_data.input_block_width)); mem_consts.add_constant(gpu::make_jit_constant("PREFETCH", _kernel_data.prefetch)); if (_kernel_data.leftovers) mem_consts.add_constant(gpu::make_jit_constant("LEFTOVERS", _kernel_data.leftovers)); } return mem_consts; } event_impl::ptr execute_impl(const std::vector<cldnn::refcounted_obj_ptr<cldnn::event_impl>>& events, convolution_inst& instance) override { auto split = outer.get_primitive()->split(); auto& input_mem = instance.input_memory(); auto& output_mem = instance.output_memory(); auto& filter_mem = instance.weights_memory(0); if (outer.get_output_layout().data_padding.filling_value() != 0.0f) throw std::invalid_argument("Unknown padding mode in convolution."); // Check whether all memory elements use the same unit type (FP16 or FP32). if (input_mem.get_layout().data_type != output_mem.get_layout().data_type) throw std::invalid_argument("Memory format of input is incompatible with memory format of output."); if (input_mem.get_layout().data_type != filter_mem.get_layout().data_type) throw std::invalid_argument("Memory format of input is incompatible with memory format of filter."); auto& kd = _kernel_data; std::vector<event_impl::ptr> tmp_events(events); // execute kernels if (outer.bias_term()) { for (decltype(split) i = 0; i < split; i++) { assert(kd.gws0 % kd.lws0 == 0); auto event = _kernel.run<gpu::input_mem, gpu::output_mem, gpu::input_mem, gpu::input_mem, uint32_t> ({ { kd.gws0, kd.gws1, kd.gws2 },{ kd.lws0, kd.lws1, kd.lws2 } }, tmp_events, input_mem, output_mem, instance.weights_memory(i), //filters instance.bias_memory(i), //biases i); tmp_events.clear(); tmp_events.emplace_back(event); } } else { for (decltype(split) i = 0; i < split; i++) { assert(kd.gws0 % kd.lws0 == 0); auto event = _kernel.run<gpu::input_mem, gpu::output_mem, gpu::input_mem, uint32_t> ({ { kd.gws0, kd.gws1, kd.gws2 },{ kd.lws0, kd.lws1, kd.lws2 } }, tmp_events, input_mem, output_mem, instance.weights_memory(i), //filters i); tmp_events.clear(); tmp_events.emplace_back(event); } } //if (outer.bias_term()) return tmp_events.at(0); } static primitive_impl* create(const convolution_node &arg) { auto filter_layout = arg.weights(0).get_output_layout(); //convolution filter assert(arg.get_output_layout().size.feature[0] / arg.get_primitive()->split() == filter_layout.size.batch[0]); // memory::format oixy switch (filter_layout.format) { case format::bfyx: case format::yxfb: case format::os_iyx_osv16: break; default: throw std::runtime_error("Convolution weights format unsupported"); } return new convolution_gpu(arg); } }; convolution_gpu::kernel_data default_oiyx_f32(const convolution_node& arg) { convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.kernel_name = kernel_name_yxfb_oiyx; return kd; } convolution_gpu::kernel_data default_yxio_f32(const convolution_node& arg) { convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.kernel_name = kernel_name_yxfb_yxio; return kd; } convolution_gpu::kernel_data default_yxio_f32_b1(const convolution_node& arg) { auto filter_layout = arg.weights(0).get_output_layout(); auto const& filter_buffer_size = filter_layout.get_buffer_size(); auto output_layout = arg.get_output_layout(); auto const& output_buffer_size = output_layout.get_buffer_size(); auto split = arg.get_primitive()->split(); auto batch_size = output_buffer_size.batch[0]; convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.lws0 = 16; if (filter_buffer_size.batch[0] * batch_size % kd.lws0 != 0 || output_layout.data_padding) { kd = default_yxio_f32(arg); } else { int output_feature_count = filter_buffer_size.batch[0]; // We cannot return 8 because we are processing 4 spatial coordinates for batch1, // and if we use more than 4 ofm_per_work_item we downgrade simd16 to simd8 which would break this algorithm. // NOTE: We could return 8 but then we must process only 2 coordinates, which is slower than processing 4 coordinates using blockread4 // TODO: experiment with SIMD8 version of algorithm and check if it could be faster /*if (output_feature_count % (lws * 8) == 0) { kd.ofm_per_work_item = 8; kd.gws1 = static_cast<size_t>(std::ceil(static_cast<float>(kd.gws1) / 2.0f)); } else*/ if (output_feature_count % (kd.lws0 * 4) == 0) { kd.ofm_per_work_item = 4; // We compute multiple spatial coordinates "x" in a single workitem that's why we must divide kd.gws1 = static_cast<size_t>(std::ceil(static_cast<float>(kd.gws1) / 4.0f)); } else if (output_feature_count % (kd.lws0 * 2) == 0) { kd.ofm_per_work_item = 2; kd.gws1 = static_cast<size_t>(std::ceil(static_cast<float>(kd.gws1) / 8.0f)); } else { kd.ofm_per_work_item = 1; kd.gws1 = static_cast<size_t>(std::ceil(static_cast<float>(kd.gws1) / 8.0f)); } kd.kernel_name = kernel_name_yxfb_yxio_b1_block_multiple_x; kd.gws0 = (output_feature_count * batch_size / (kd.ofm_per_work_item * kd.batches_per_work_item)) / split; if (!convolution_gpu::is_kernel_valid(kd)) { kd = default_yxio_f32(arg); } } return kd; } convolution_gpu::kernel_data default_yxio_f32_b8(const convolution_node& arg) { auto filter_layout = arg.weights(0).get_output_layout(); auto const& filter_buffer_size = filter_layout.get_buffer_size(); auto output_layout = arg.get_output_layout(); auto const& output_buffer_size = output_layout.get_buffer_size(); auto split = arg.get_primitive()->split(); auto batch_size = output_buffer_size.batch[0]; convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.lws0 = batch_size == 8 ? 8 : 16; if ((filter_buffer_size.batch[0] * batch_size % kd.lws0 != 0) || output_layout.data_padding) { kd = default_yxio_f32(arg); } else { if (((filter_buffer_size.batch[0] * batch_size) / 16) % kd.lws0) { kd.ofm_per_work_item = 8; } else { kd.ofm_per_work_item = 16; } kd.kernel_name = kernel_name_yxfb_yxio_b8; kd.gws0 = (output_buffer_size.feature[0] * batch_size / (kd.ofm_per_work_item * kd.batches_per_work_item)) / split; if (!convolution_gpu::is_kernel_valid(kd)) { kd = default_yxio_f32(arg); } } return kd; } convolution_gpu::kernel_data default_yxio_f32_b32(const convolution_node& arg) { auto filter_buffer_size = arg.weights(0).get_output_layout().get_buffer_size(); auto output_layout = arg.get_output_layout(); auto const& output_buffer_size = output_layout.get_buffer_size(); auto split = arg.get_primitive()->split(); auto batch_size = output_layout.size.batch[0]; convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.lws0 = 16; if ((filter_buffer_size.batch[0] * batch_size % kd.lws0 != 0) || output_layout.data_padding) { kd = default_yxio_f32(arg); } else { kd.ofm_per_work_item = 8; kd.batches_per_work_item = 2; kd.kernel_name = kernel_name_yxfb_yxio_b16; kd.gws0 = (output_buffer_size.feature[0] * batch_size / (kd.ofm_per_work_item * kd.batches_per_work_item)) / split; if (!convolution_gpu::is_kernel_valid(kd)) { kd = default_yxio_f32(arg); } } return kd; } convolution_gpu::kernel_data default_yxio_f16(const convolution_node& arg) { convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.kernel_name = kernel_name_yxfb_yxio_fp16; return kd; } convolution_gpu::kernel_data default_yxio_f16_b16(const convolution_node& arg) { auto filter_layout = arg.weights(0).get_output_layout(); auto const& filter_buffer_size = filter_layout.get_buffer_size(); auto output_layout = arg.get_output_layout(); auto const& output_buffer_size = output_layout.get_buffer_size(); auto batch_size = output_buffer_size.batch[0]; const uint32_t min_ofm_per_wi = 16; const uint32_t min_batches_per_wi = 1; const uint32_t min_lws = 16; const auto filter_ofm_num = filter_buffer_size.batch[0]; convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); // Number of output features is positive and dividable by minimum number of output features processed inside work item. if (filter_ofm_num > 0 && filter_ofm_num % min_ofm_per_wi == 0 && // Batch size is positive and dividable by minimum number of batches processed when smallest local work size is used. batch_size > 0 && batch_size % (min_batches_per_wi * min_lws) == 0 && !output_layout.data_padding) { kd.ofm_per_work_item = min_ofm_per_wi; if (batch_size % (4 * min_batches_per_wi * min_lws) == 0) { kd.batches_per_work_item = 4 * min_batches_per_wi; // USE_BLOCK_READ_2 + as_half4 } else if (batch_size % (2 * min_batches_per_wi * min_lws) == 0) { kd.batches_per_work_item = 2 * min_batches_per_wi; // USE_BLOCK_READ_1 + as_half2 } else { kd.batches_per_work_item = min_batches_per_wi; } // Assume that number of features in output correctly based on split and on number of output features in filter. assert(output_buffer_size.feature[0] == filter_ofm_num * arg.get_primitive()->split()); kd.gws0 = filter_ofm_num * batch_size / (kd.ofm_per_work_item * kd.batches_per_work_item); kd.lws0 = min_lws; kd.kernel_name = kernel_name_yxfb_yxio_b16_fp16; if (!convolution_gpu::is_kernel_valid(kd)) { kd = default_yxio_f16(arg); } } else { kd = default_yxio_f16(arg); } return kd; } /// Computes dimensions of input block required for "kernel_name_bfyx_os_iyx_osv16" algorithm. /// /// @param output_block_width Width of output block used in algorithm. /// @param output_block_height Height of output block used in algorithm. /// @param filter_size Tensor with spatial (X, Y) data containing filter size used in algorithm. /// @param stride Tensor with spatial (X, Y) data containing stride used in algorithm. /// @param dilation Tensor with spatial (X, Y) data containing dilation used in algorithm. /// @param sub_group_size Number of work items grouped in single sub-group (enforced SIMD size). /// @param read_chunk_size Size of smallest chunk of data that can be read by sub-group in algorithm /// (in number of elements). /// @param min_read_size Minimal number of elements of input read by sub-group when reading single /// row od data. /// (Number of elements read by sub-group for single row will meet the formula: /// max(@p min_read_size, n * @p read_chunk_size), where n is a positive integer value.) /// /// @return Pair containing: /// - [first] Number of sub-group-sized vectors of unit type needed to store/cache input block. /// The number is equivalent to size of array of UNIT_TYPE in work item needed to store/cache /// input block. It can be declared in kernel in form similar to: /// UNIT_TYPE in_block[ret.first]; /// - [second] Number of elements in X dimension needed to be read from input to compute output block /// without re-reading input. static std::pair<size_t, size_t> get_bfyx_req_input_block_dims( size_t output_block_width, size_t output_block_height, const cldnn::tensor& filter_size, const cldnn::tensor& stride, const cldnn::tensor& dilation, size_t sub_group_size = 16, size_t read_chunk_size = 8, size_t min_read_size = 16) { assert(output_block_width > 0 && output_block_height > 0); assert(stride.spatial[0] > 0 && stride.spatial[1] > 0); assert(filter_size.spatial[0] > 0 && filter_size.spatial[1] > 0); // Number of elements in X dimension needed from input to compute output block without re-reading input. std::size_t input_block_req_width = (output_block_width - 1) * stride.spatial[0] + (filter_size.spatial[0] - 1) * dilation.spatial[0] + 1; // Number of elements in Y dimension needed from input to compute output block without re-reading input. std::size_t input_block_req_height = (output_block_height - 1) * stride.spatial[1] + (filter_size.spatial[1] - 1) * dilation.spatial[1] + 1; // Required number of elements in X dimension rounded to nearest >= read chunk size. std::size_t input_block_read_width = std::max(cldnn::round_up_to(input_block_req_width, read_chunk_size), min_read_size); // Number of sub-group-sized vectors of unit type needed to store input block. std::size_t input_block_array_size = cldnn::ceil_div(input_block_req_height * input_block_read_width, sub_group_size); return std::make_pair(input_block_array_size, input_block_read_width); } convolution_gpu::kernel_data default_bfyx_os_iyx_osv16(const convolution_node& arg) { auto filter_layout = arg.weights(0).get_output_layout(); auto const& filter_buffer_size = filter_layout.get_buffer_size(); auto output_size = arg.get_output_layout().size; auto stride = arg.get_primitive()->stride; auto dilation = arg.get_primitive()->dilation; convolution_gpu::kernel_data kd = convolution_gpu::set_default(arg); kd.kernel_name = kernel_name_bfyx_os_iyx_osv16; // Maximum supported size (in any dimension) of filter by "kernel_name_bfyx_os_iyx_osv16" kernel. constexpr int max_supported_filter_size = 11; // Sub-group size used by "kernel_name_bfyx_os_iyx_osv16" kernel. constexpr int sub_group_size = 16; const uint32_t of_threads_per_batch = round_up_to(filter_buffer_size.batch[0], sub_group_size); kd.leftovers = of_threads_per_batch - filter_buffer_size.batch[0]; if (filter_buffer_size.spatial[0] > max_supported_filter_size || filter_buffer_size.spatial[1] > max_supported_filter_size) { // TODO: Implement and use naive bfyx algorithm here. // TODO: Implement naive bfyx algorithm here and add fall-back condition if abs(input_offset) >= filter_size. throw std::runtime_error("Unsupported filter size (> 11) in bfyx convolution"); } if (stride.spatial[0] == 1 && stride.spatial[1] == 1) { if (filter_buffer_size.spatial[0] == 1 && filter_buffer_size.spatial[1] == 1) { kd.block_width = 16; kd.block_height = 1; kd.prefetch = 4; } //if less than 16 values is required to compute one single row of output //then each WI shall compute one single row to maximize reuse within SIMD subgroup (this gives very nice performance results) else if (output_size.spatial[0] + (filter_buffer_size.spatial[0] - 1) * dilation.spatial[0] < sub_group_size) { kd.block_width = output_size.spatial[0]; kd.block_height = 1; kd.prefetch = 4; } else if (filter_buffer_size.spatial[0] < 5 && filter_buffer_size.spatial[1] < 5) { kd.block_width = sub_group_size - filter_buffer_size.spatial[0] + 1; kd.block_height = 2; kd.prefetch = 4; } else { kd.block_width = 4; kd.block_height = 3; kd.prefetch = 4; } } else if (stride.spatial[0] == 2 && stride.spatial[1] == 2) { kd.block_width = 5; kd.block_height = 4; kd.prefetch = 4; } else { kd.block_width = 4; kd.block_height = 3; kd.prefetch = 5; } // Non-naive algorithm is used. if (kd.kernel_name == kernel_name_bfyx_os_iyx_osv16) { auto input_block_dims = get_bfyx_req_input_block_dims(kd.block_width, kd.block_height, filter_buffer_size, stride, dilation, sub_group_size, kd.fp16_unit_used ? sub_group_size : sub_group_size / 2, sub_group_size); kd.input_block_array_size = input_block_dims.first; kd.input_block_width = input_block_dims.second; } kd.gws0 = cldnn::ceil_div(output_size.spatial[0], kd.block_width); kd.gws1 = cldnn::ceil_div(output_size.spatial[1], kd.block_height); kd.gws2 = of_threads_per_batch * output_size.batch[0]; kd.lws0 = 1; kd.lws1 = 1; kd.lws2 = sub_group_size; return kd; } convolution_gpu::ks_type convolution_gpu::ks = { { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::bfyx, 0, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_oiyx_f32 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 0, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 1, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b1 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 8, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b8 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 16, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b8 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 32, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b32 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 64, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b32 }, { std::make_tuple(data_types::f32, format::yxfb, data_types::f32, format::yxfb, 128, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f32_b32 }, { std::make_tuple(data_types::f16, format::yxfb, data_types::f16, format::yxfb, 0, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f16 }, { std::make_tuple(data_types::f16, format::yxfb, data_types::f16, format::yxfb, 16, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f16_b16 }, { std::make_tuple(data_types::f16, format::yxfb, data_types::f16, format::yxfb, 32, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f16_b16 }, { std::make_tuple(data_types::f16, format::yxfb, data_types::f16, format::yxfb, 64, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f16_b16 }, { std::make_tuple(data_types::f16, format::yxfb, data_types::f16, format::yxfb, 128, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_yxio_f16_b16 }, { std::make_tuple(data_types::f32, format::bfyx, data_types::f32, format::os_iyx_osv16, 0, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_bfyx_os_iyx_osv16 }, { std::make_tuple(data_types::f16, format::bfyx, data_types::f16, format::os_iyx_osv16, 0, gpu::engine_info_internal::architectures::GEN_UNKNOWN, gpu::engine_info_internal::configurations::GT_UNKNOWN), default_bfyx_os_iyx_osv16 }, }; namespace{ struct attach { attach() { implementation_map<convolution>::add(std::make_tuple(cldnn::engine_types::ocl, data_types::f32, format::yxfb), convolution_gpu::create); implementation_map<convolution>::add(std::make_tuple(cldnn::engine_types::ocl, data_types::f16, format::yxfb), convolution_gpu::create); implementation_map<convolution>::add(std::make_tuple(cldnn::engine_types::ocl, data_types::f32, format::bfyx), convolution_gpu::create); implementation_map<convolution>::add(std::make_tuple(cldnn::engine_types::ocl, data_types::f16, format::bfyx), convolution_gpu::create); } ~attach() {} }; attach attach_impl; } }
8877ed66ceefcb07c0ee207617c1264876e31043
87a600d36a5757969ead7e235c93e3530d72b43a
/abm_product/bak/app_guard/login_f.cpp
19c9107c467da6f4c90a2f9f78fcdd0cb40eabef
[]
no_license
xkmld419/learning
3c3cad407d03bf693bcd863794cca7fb8a5df99a
128ffa1496c43c36b83f266522bd49b28184499f
refs/heads/master
2023-07-12T16:54:50.647834
2021-08-21T15:41:42
2021-08-21T15:41:42
45,075,836
1
0
null
null
null
null
GB18030
C++
false
false
5,541
cpp
login_f.cpp
/*VER: 2*/ /* Copyright (c) 2001-<2003> Wholewise, All rights Reserved */ /* #ident "@(#)login_f.c 1.0 2002/03/18 <AutoCreate>" */ #ifndef _LOGIN_F_Q_H_ #define _LOGIN_F_Q_H_ #endif #include "login.h" #include "ProcessInfo.h" #include "mainmenu.h" #include "password.h" #include <unistd.h> Control *login_handle; THeadInfo *pInfoHead = NULL; TProcessInfo *pProcInfoHead = NULL; //过滤用的全局流程号数组(num,fid1,fid2,fid3...) int g_iflowid[16]; //过滤用的全局App_ID数组(num,fid1,fid2,fid3...) int g_iappid[16]; //通过字符串填充流程号数组(返回>0成功) int gStr2Arr(char *strfid) { char stmp[64] = {0}; char *p = stmp; int itmp = 0; //个数 int n = 0; int slen = strlen(strfid); // printf("\n\n\n\n\n\n\n strfid=%s;\n",strfid); //sleep(2); if( slen == 0 ) { g_iflowid[0] = 0; return 1; } for(int i=0;i<=slen;i++) { if(strfid[i] == ','||i == slen) { itmp = atoi( stmp ); // printf("stmp=%s,itmp=%d\n",stmp,itmp); *(++p) = '\0'; if(itmp) g_iflowid[++n] = itmp; p = stmp; memset(stmp,0,sizeof(stmp)); } else *(p++) = strfid[i]; // printf("stmp=%s;*++p\n",stmp); } g_iflowid[0] = n; // printf("n=%d\n",g_iflowid[0]); return 1; } //通过流程号数组数组生成字符串(返回>0成功) int gArr2Str(char *strfid) { for( int i=0;i<g_iflowid[0];i++ ) { if(i == 0) sprintf( strfid,"%d\0",g_iflowid[i + 1] ); else sprintf( strfid,"%s,%d\0",strfid,g_iflowid[i + 1] ); } return 1; } //flowid是否在流程号数组中(返回>0成功) int IsInArr(int ifid) { for(int i=1;i<=g_iflowid[0];i++) { if(ifid == g_iflowid[i]) return 1; } return 0; } ///////////////////////////////////////// //通过字符串填充App_ID数组(返回>0成功) int gStr2Appid(char *strfid) { char stmp[64] = {0}; char *p = stmp; int itmp = 0; //个数 int n = 0; int slen = strlen(strfid); // printf("\n\n\n\n\n\n\n strfid=%s;\n",strfid); //sleep(2); if( slen == 0 ) { g_iappid[0] = 0; return 1; } for(int i=0;i<=slen;i++) { if(strfid[i] == ','||i == slen) { itmp = atoi( stmp ); // printf("stmp=%s,itmp=%d\n",stmp,itmp); *(++p) = '\0'; if(itmp) g_iappid[++n] = itmp; p = stmp; memset(stmp,0,sizeof(stmp)); } else *(p++) = strfid[i]; // printf("stmp=%s;*++p\n",stmp); } g_iappid[0] = n; // printf("n=%d\n",g_iflowid[0]); return 1; } //通过App_ID数组数组生成字符串(返回>0成功) int gAppid2Str(char *strfid) { for( int i=0;i<g_iappid[0];i++ ) { if(i == 0) sprintf( strfid,"%d\0",g_iappid[i + 1] ); else sprintf( strfid,"%s,%d\0",strfid,g_iappid[i + 1] ); } return 1; } //flowid是否在AppID数组中(返回>0成功) int IsInAppid(int ifid) { for(int i=1;i<=g_iappid[0];i++) { if(ifid == g_iappid[i]) return 1; } return 0; } ///////////////////////////////////////// int GetOriPassword (unsigned char sStr[]); int SetPassword (unsigned char sStr[]); int login_SysHotKeyPress(Control *pCtl, int ch, long lParam) { /* Add your self code here: */ if (ch == 27) { /* KEY_ESC */ return FORM_KILL; } return ch; } void login_entry(Control *pHandle) /* login 创建时触发调用 */ { login_handle = pHandle; /* Add your self code here: */ } int loginCtl7Press(Control *pCtl,int ch,long lParam) { /* 密码输入框的按键消息处理 */ /* Add your self code here: */ return ch; } int loginCtl8Press(Control *pCtl,int ch,long lParam) { /* 确认按钮的按键消息处理 */ /* Add your self code here: */ unsigned char sCurPassword[50], sOldPassword[50]; if (ch != '\r') return ch; GetOriPassword (sOldPassword); strcpy ((char *)sCurPassword, (char *) GetCtlByID (login_handle, 7)->sData); if (!strcmp ((char *)sOldPassword, (char *)sCurPassword)) { DetachShm (); if (AttachShm (0, (void **)&pInfoHead) >= 0) { pProcInfoHead = &pInfoHead->ProcInfo; } else { prtmsg (pCtl, 19, 21, "连接共享内存错误!"); return 0; } mainmenu mm; return mm.run(); } else { prtmsg (pCtl, 19, 21, "Wrong Password!"); } return ch; } int loginCtl9Press(Control *pCtl,int ch,long lParam) { /* 退出按钮的按键消息处理 */ /* Add your self code here: */ if (ch == '\r') { return FORM_KILL; } return ch; } int loginCtl10Press(Control *pCtl,int ch,long lParam) { /* 改密码按钮的按键消息处理 */ /* Add your self code here: */ if (ch == '\r') { password pw; pw.run(); FormShow (login_handle); return ID (7); } return ch; } int GetOriPassword (unsigned char sStr[]) { FILE *fp; unsigned char sBuff[256]; int i, iNum; fp = fopen ("xqdata", "rb"); if (fp == NULL) { sStr[0] = 0; return 0; } memset (sBuff, 0, 256); fread (sBuff, 256, 1, fp); iNum = strlen ((char *)sBuff); for (i=0; i<iNum; i++) { sStr[i] = ~sBuff[i]; } sStr[i] = 0; fclose (fp); return 0; } int SetPassword (unsigned char sStr[]) { FILE *fp; int i, iLen; char sBuff[256]; iLen = strlen ((char *)sStr); fp = fopen ("xqdata", "wb"); if (fp == NULL) { perror ("SetPassword"); return -1; } for (i=0; i<iLen; i++) { sBuff[i] = ~sStr[i]; } sBuff[i] = 0; fwrite (sBuff, strlen ((char *)sBuff), 1, fp); fclose (fp); return 0; }
6a828a40fb539a9cad40e85ede7d35ccb67b4bb8
f0b1a191fdd5868839afca66361f1612ef9e57c7
/GS/src/Fileutils.h
f1843cb5e905c29f2a6beb420f9ec35a2f72a6ba
[ "BSD-2-Clause", "Zlib" ]
permissive
vsrz/CS699
cfdf30a65c6903f0a0cabe024808ba2329fdf8bf
d10db61d263eaedb2447c5c1972f62fb10db0480
refs/heads/master
2020-06-08T22:04:26.615033
2014-11-16T06:49:41
2014-11-16T06:49:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
503
h
Fileutils.h
#ifndef FILEUTILS_H #define FILEUTILS_H #include <fstream> #include <string> #include <iostream> #include <stdlib.h> #pragma once class Fileutils { public: static bool writeFileToDisk(std::string data, std::string filename, std::ios::openmode openmode = std::ios::app); static std::string getFileExtension(std::string filename); static std::string stringToUpper(std::string s); static bool fileExists(std::string filename); static void readFile(std::string &s, std::string filename); }; #endif
faf5b2650b5f90e45eac6f0ec5cccb83518af7a2
d19b9a486e215ad1a43714b59ea1c87839690ae9
/D3DX9 basic/cScene.h
cdad574e44549f0514d44faf7f8310c6309b93e3
[]
no_license
wakeup5/Learning-3D-Lesson
f1d0647a2760e3c3e99ced1d2b4cd6d274b3c913
4b0a77411987284428ad56b52e90e574ed2d56d5
refs/heads/master
2020-04-23T19:07:35.004510
2015-10-14T05:19:19
2015-10-14T05:19:19
171,392,128
0
0
null
null
null
null
UHC
C++
false
false
283
h
cScene.h
#pragma once class cScene { private: public: cScene(void); ~cScene(void); //4총사함수를 추상함수로...... virtual void Init() = 0; virtual void Release() = 0; virtual void Update( float timeDelta ) = 0; virtual void Render() = 0; private: };
b441238bb2c62950f438a8cc9ea9adfee3b0087c
3eef0c9a03e78678b5392b42687840e24e43e03c
/Proyecto1/Temperatura/ejercicio4.cpp
78b5d537351838884827a8d043905d1dde9ee330
[ "MIT" ]
permissive
CallmeTorre/Sistemas_Distribuidos
b42e328fd20ce9c792dccbbd6a20d2486830ff00
32e444f37f459dc6a43c0de427f5b78d32f06ee2
refs/heads/master
2020-04-19T01:28:36.322563
2019-05-31T16:08:35
2019-05-31T16:08:35
167,873,115
1
0
MIT
2019-05-31T02:55:10
2019-01-28T00:01:51
C++
UTF-8
C++
false
false
474
cpp
ejercicio4.cpp
#include "Temperatura.h" #include <stdlib.h> #include <iostream> using namespace std; int main(){ Temperatura temp(32); temp.printTempKelvin(); temp.printTempCelsius(); temp.printTempFarenheit(); temp.setTempFarenheit(32); temp.printTempKelvin(); temp.printTempCelsius(); temp.printTempFarenheit(); temp.setTempCelsius(32); temp.printTempKelvin(); temp.printTempCelsius(); temp.printTempFarenheit(); return 0; }
66e9eb673b85549c342a58a5cf6ffedfe84c749b
539afdb26abc5364ea24b1df5101163cfb0f75fe
/Backend/Sources/Discovery/Networks.inl
de6bd4a543d8eaa8472c78c8590ba9d69b4ad96f
[]
no_license
SophistSolutions/WhyTheFuckIsMyNetworkSoSlow
78cb14e0426a52159e7953454a79ba94821aed8c
ef8a168d84c18e8ea57c0638cd182081be98a9ce
refs/heads/v1-Release
2023-08-18T17:02:57.113091
2022-09-10T15:27:24
2022-09-10T15:27:24
82,410,140
12
1
null
2023-01-09T14:21:04
2017-02-18T19:15:50
C++
UTF-8
C++
false
false
616
inl
Networks.inl
/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #ifndef _WhyTheFuckIsMyNetworkSoSlow_BackendApp_Discovery_Networks_inl_ #define _WhyTheFuckIsMyNetworkSoSlow_BackendApp_Discovery_Networks_inl_ 1 /* ******************************************************************************** ***************************** Implementation Details *************************** ******************************************************************************** */ namespace WhyTheFuckIsMyNetworkSoSlow::BackendApp::Discovery { } #endif /*_WhyTheFuckIsMyNetworkSoSlow_BackendApp_Discovery_Networks_inl_*/
6cd418448f23b0c8f67856b8092e05f534b0f571
e7b9f885fe533f0108f519b4fa61c62833197e7c
/TemplateLang/10-11_recursion.h
b489e18451444de0b5ed9fdecec1c188cabc396e
[]
no_license
nanlan2017/lang-cpp
64770ad0c4d08e28d08b79439681f18f238646fa
bcbb90e20bcf86cceb99fe2e9644e8bb2ce11b0e
refs/heads/master
2022-05-27T15:01:11.351121
2019-03-01T16:59:04
2019-03-01T16:59:04
null
0
0
null
null
null
null
GB18030
C++
false
false
6,474
h
10-11_recursion.h
#ifndef h_recursion #define h_recursion #include "10-10_cons_list.h" //! 把递归都搞成尾递归 //! ▇▇▇▇▇▇▇▇方式:把循环更新的状态栈也放在递归参数中 //! ▇▇静态代码不存在对同一数据的多次求值: Fib<3>::Ret 无论出现多少次,只会求值一次 (不同于动态代码中的 fib(3) 调用) //x========================================================================================================== inline int fib(int n) { // 0 1 ... int i = 1; int x = 1, y = 0; while (i < n) { ++i; x += y; // x + y y = x - y; // 上一步的x } return x; } namespace wjhtest { template<bool cond, int n ,int i, int x ,int y> struct Fib_ { enum { val = Fib_<(i+1<n), n, i+1, x+y, x>::val }; }; template<int n ,int i, int x ,int y> struct Fib_<false,n,i,x,y> { enum {val = x}; }; template<int n> struct FibMain { enum { val = Fib_<(n>1),n,1, 1,0>::val }; }; inline void test_fibonacci() { // 0 1 2 3 4 5 6 7 8 9 10 11 // 0 1 1 2 3 5 8 13 21 34 55 89 auto r1 = FibMain<5>::val; auto r2 = FibMain<10>::val; } } //x========================================================================================================== /* template<int n, int i ,int x ,int y> struct Fib_Env { enum { result = x }; }; template<typename Fib_Env> struct Fib_Predict; //! 原型声明 template<int n, int i ,int x ,int y> struct Fib_Predict<Fib_Env<n,i,x,y>> { static const bool val = i < n; //x bool 值 和 int 值可能互相转化, 我还是 bool 显示保持类型吧! }; template<typename Fib_Env> struct Fib_Update; //! 原型声明 template<int n, int i ,int x ,int y> struct Fib_Update<Fib_Env<n,i,x,y>> { using Ret = Fib_Env<n, i + 1, x + y, x>; }; template<template<int,int,int,int> class Predict // 模板的 template 参数必须把 参数类型都 标齐嘛! , template<int,int,int,int> class Update , template<int,int,int,int> class InitEnv> struct Fib_While { using InitEnv = Fib_Env<5, 1, 1, 0>; using Result = typename IF<Fib_Predict<InitEnv>::val, InitEnv, typename Fib_Update<InitEnv>::Ret>::Ret; //using Ret = typename IF<Predict<InitEnv>::val, typename Update<InitEnv>::Ret, InitEnv>::Ret; }; inline void test_Fib_00() { //auto r = } */ //x ========================================================================================================== //! Haskell中的typeclass如何在C++TMP中表达?? //! struct 既可以表达数据、又可以表达函数 (事实上,是模板元的唯一construct) //如何抽象呢?? /* 如何在 lisp 中实现while: //todo 先判断当前状态是否要iterate, 如果需要,则iterate ----> 继续回开头 //todo 在haskell中实现 while while f_cond_judge f_update state = if (f_cond_judge state) then state else while f_cond_judge f_update (f_update state) data Env a = Env a while :: (Env a -> bool) -> (Env a -> Env a) -> Env a -> Env a while fpred fupdate state = if (fpred state) then state else while fpred fupdate (fupdate state) */ //! 不存在 Env<T> State 这种模板参数 --------> 要不就是 typename / template / int template<bool _flag ,template<typename> class Predict ,template<typename> class Update ,typename Env> struct WhileS //! 内部调用自身的,必须在参数上体现递归边界点! { using Ret = typename WhileS<true, Predict, Update, typename Update<Env>::Ret>::Ret; }; template<template<typename> class Predict ,template<typename> class Update ,typename Env> struct WhileS<false,Predict,Update,Env> { using Ret = Env; }; //x ========================================================================================================== /* template<typename Env , template<Env> class Predict , template<Env> class Update> //! 类型依赖 struct Whilexx; //template<typename Env // , template<Env> class Predict // , template<Env> class Update> //! 类型依赖 //struct While<Predict,Update,Env> //! 参数顺序————无需与类型依赖顺序一致! //{ // using Ret = typename IF<Predict<Env>::val, typename Update<Env>::Ret, Env>::Ret; //}; template<typename Env , template<Env> class Predict , template<Env> class Update> struct Whilexx<Env,Predict,Update> { using Ret = typename IF<Predict<Env>::val, typename Update<Env>::Ret, Env>::Ret; }; template<int n> struct Fibs { using InitEnv = Fib_Env<5, 1, 1, 0>; using Ret = typename Whilexx<InitEnv, Fib_Predict, Fib_Update>::Ret; //using Ret = typename While<Fib_Predict, Fib_Update, InitEnv>::Ret; //Env = Fib_Env }; */ //x ========================================================================================================== namespace book { template<int n, int i, int x ,int y> //! 这就是模板元中的 数据结构 (相当于动态中的 struct) struct FibEnv { enum { n = n, i = i, x = x, y = y }; }; //! 函数template 和 数据typename要分清楚——————————Env显然是个typename template<typename Env> struct FibIter { using Ret = FibEnv<Env::n, Env::i + 1, Env::x + Env::y, Env::x>; }; template<typename Env> struct FibCond { static const bool val = Env::i < Env::n; }; //x=========================================================================== template<bool flag , template<typename> class Predict , template<typename> class Update //! 只会有关键字,不需要命名!!!——————只需要指定类型是 typename/ int 就可以了。 , typename Env> struct __While { private: using NewEnv = typename Update<Env>::Ret; public: using Ret = typename __While<Predict<NewEnv>::val, Predict, Update, NewEnv>::Ret; }; template<template<typename> class Predict , template<typename> class Update , typename Env> struct __While<false,Predict,Update,Env> { using Ret = Env; }; //! while template<template<typename> class Predict , template<typename> class Update , typename InitEnv> struct While { using Ret = typename __While<Predict<InitEnv>::Ret, Predict, Update, InitEnv>::Ret; }; //x=========================================================================== template<int n> struct Fib { enum { val = While<FibCond, FibIter, FibEnv<n, 1, 1, 0>>::Ret::x, //v2 = 3 vals = WhileS<true, FibCond,FibIter,FibEnv<n,1,1,0>>::Ret::x }; }; inline void test_book_fib() { auto r = book::Fib<0>::val; auto r2 = Fib<10>::val; } } #endif
d9d56f02c526d65c09de01ea98b528d39a720a42
279cbc736b4ba079a2d97a26dc907639c0870ac8
/Source/ProjectAlpha/Public/Items/PItem.h
b5e51491557f61e6a8eb80d60fc05f202e361904
[]
no_license
DavidePonzini/ProjectAlpha
8321e99babcbe99402ddb949c71bbefe70c7e4f7
a4a8e42a7fe8cc9dbfb17ab53c42d9ccab090803
refs/heads/master
2021-01-17T01:00:31.350776
2017-02-03T16:47:12
2017-02-03T16:47:12
44,094,896
0
0
null
null
null
null
UTF-8
C++
false
false
972
h
PItem.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "ProjectAlpha.h" #include "PItemSlot.h" #include "PInventoryComponent.h" #include "PItem.generated.h" UCLASS(Blueprintable, BlueprintType) class PROJECTALPHA_API UPItem : public UObject { GENERATED_BODY() public: UPItem(); public: UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Item") TSubclassOf<AActor> EquipItem; UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Item") TSubclassOf<AActor> PickupItem; UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Data") int Price; UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Data") FString Name; UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Data") bool bCanBeEquipped; public: virtual void Equip(UPInventoryComponent* CharacterInventory, EPItemSlot Slot); virtual void UnEquip(UPInventoryComponent* CharacterInventory, EPItemSlot Slot); };
0a3d60cc9b28f6915a6173e871f9485b576e2c3f
2419ea588db0968952eb9cc8da28ef74d4ae695c
/C++/Q1 - Two Sum.cpp
9e2218eca8acdab643c20af11529fd62e2907d5c
[]
no_license
kyeung7/LeetCode-Work
6ac718b7c2b101544fd0276d1a066050d197bdad
c0464e520423b7ba2a56fffb52db03afc75bd5f2
refs/heads/main
2023-02-10T10:56:01.590797
2021-01-11T14:30:38
2021-01-11T14:30:38
314,261,722
1
0
null
null
null
null
UTF-8
C++
false
false
994
cpp
Q1 - Two Sum.cpp
/* Given an array of integers 'nums' and integer 'target', return (in any order) the indices of the two numbers such that they add up to the target. Each input has one solution, so no duplicate returns. */ class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { // Create empty array vector<int> returnArr; // Iterate with 2D array, adding each index i and j for (int i = 0; i < nums.size(); i++) { for (int j = 0; j < nums.size(); j++) { // If conditions met, add elements to return array if ((nums[i] + nums[j] == target) && (i != j)){ returnArr.push_back(i); returnArr.push_back(j); } } } // Remove last half of return array, as those are duplicates resulting from above loops returnArr.erase(returnArr.begin() + returnArr.size()/2, returnArr.end()); return returnArr; } };
90dae86510f5cedcd48faf7e01b4ef0958b16667
26cb8292150fbda8221abba4577f130985918e51
/Zadanie3/Wektor.cpp
9342a1cc9f66a7d8bb7f57cf41b76f6a9a50a7b3
[]
no_license
Yumenoshi/Mathematics-in-Graphics
5f10e03341747a9c36700848ff67b2c60ae353c7
cd6e78ace95b7edc37eb494282e3511cca3e4cfe
refs/heads/master
2020-05-04T21:02:42.148704
2019-06-06T08:54:57
2019-06-06T08:54:57
179,462,031
0
0
null
null
null
null
UTF-8
C++
false
false
2,977
cpp
Wektor.cpp
#include <iostream> #include <math.h> class Wektor { private: float x, y, z, w; public: //zadanie Wektor(float x, float y, float z) { this->x = x; this->y = y; this->z = z; this->w = 0.0; } Wektor() { this->x = 0.0; this->y = 0.0; this->z = 0.0; this->w = 0.0; } Wektor(float value) { this->x = value; this->y = value; this->z = value; this->w = value; } Wektor(float x, float y, float z, float w) { this->x = x; this->y = y; this->z = z; this->w = w; } Wektor(float table[]) { this->x = table[0]; this->y = table[1]; this->z = table[2]; this->w = table[3]; } Wektor operator=(const Wektor other) { if (this != &other) { this->x = other.x; this->y = other.y; this->z = other.z; this->w = other.w; } return *this; } Wektor operator+(const Wektor other) { Wektor nowy = Wektor(this->x + other.x, this->y + other.y, this->z + other.z, this->w + other.w); return nowy; } Wektor operator+=(const Wektor other) { this->x += other.x; this->y += other.y; this->z += other.z; this->w += other.w; return *this; } Wektor operator-(const Wektor other) { Wektor nowy = Wektor(this->x - other.x, this->y - other.y, this->z - other.z, this->w - other.w); return nowy; } Wektor operator-=(const Wektor other) { this->x -= other.x; this->y -= other.y; this->z -= other.z; this->w -= other.w; return *this; } Wektor operator*(const int other) { Wektor nowy = Wektor(this->x * other, this->y * other, this->z * other, this->w * other); return nowy; } Wektor operator*=(const int other) { this->x * other; this->y * other; this->z * other; this->w * other; return *this; } friend std::ostream& operator<<(std::ostream& os, const Wektor& dt) { os << "x:" << dt.x << " " << "y:" << dt.y << " " << "z:" << dt.z << " " << "w:" << dt.w; return os; } float getX() { return this->x; } float getY() { return this->y; } float getZ() { return this->z; } float getW() { return this->w; } void setX(float value) { this->x = value; } void setY(float value) { this->y = value; } void setZ(float value) { this->z = value; } void setW(float value) { this->w = value; } Wektor normalize() { float length = getLength(); Wektor nowy(x / length, y / length, z / length); return nowy; } Wektor crossProduct(const Wektor other) {//Iloczny wektorowy Wektor nowy = Wektor(y*other.z-z*other.y,z*other.x-x*other.z,x*other.y -y*other.x); return nowy; } float dotProduct(const Wektor other) {//Iloczyn skalarny float wynik = x * other.x + y * other.y + z * other.z; return wynik; } float checkAngle(Wektor other) { float iloczyn = this->dotProduct(other); float dlugoscThis = this->getLength(); float dlugoscOther = other.getLength(); float cosA = iloczyn / (dlugoscThis*dlugoscOther); return acos(cosA); } float getLength() { return sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2)); } };
2609ad9e3115ac6bb1e1bfae7de1162b7d01d73b
4fce4b0725e32dc383ee0e553eedbbdbc37bc647
/arduino-esp8266/readable_4arduino/readable_4arduino.ino
854dd60aee05bcb3e9030c02d683ed8806635459
[]
no_license
thanh-coder/smartHome
091b3bee4d87aef4b4e225893a30db3497cf2acd
f47ebc0406a592e7c556fdcf52d18195e88e41d5
refs/heads/master
2020-04-15T22:39:52.374057
2019-01-10T15:45:31
2019-01-10T15:45:31
165,081,605
0
0
null
null
null
null
UTF-8
C++
false
false
4,688
ino
readable_4arduino.ino
#include <ArduinoJson.h> #include "dht.h" #include <SoftwareSerial.h> #include <SerialCommand.h> // speaker define int speaker = 9; //motor define int motorWind = 8; //MQ2 gas define int mq2Sensor = 6; //PIR define int pirSensor = 7; //dht initialization dht DHT; #define DHT11_PIN A0 int temp = 0, humi = 0, gas = 0, pir = 0, servo = 0; const byte RX = 3; // Chân 3 được dùng làm chân RX const byte TX = 2; // Chân 2 được dùng làm chân TX SoftwareSerial mySerial = SoftwareSerial(RX, TX); SerialCommand sCmd(mySerial); // Khai báo biến sử dụng thư viện Serial Command int red = 4; // led đỏ đối vô digital 4 void setup() { //Khởi tạo Serial ở baudrate 57600 để debug ở serial monitor Serial.begin(57600); //Khởi tạo Serial ở baudrate 57600 cho cổng Serial thứ hai, dùng cho việc kết nối với ESP8266 mySerial.begin(57600); //pin mode speaker pinMode(speaker,OUTPUT); //pinMode 2 đèn LED là OUTPUT pinMode(red,OUTPUT); //pinMode motor pinMode(motorWind,OUTPUT); //pinMode Mq2 pinMode(mq2Sensor,INPUT); //pir pin mode pinMode(pirSensor,INPUT); sCmd.addCommand("LED", led); //Khi có lệnh LED thì sẽ thực thi hàm led sCmd.addCommand("MOTOR", motor); //Khi có lệnh LED thì sẽ thực thi hàm led } unsigned long chuky1 = 0; void loop() { //2s check 1 lan if (millis() - chuky1 > 2000) { chuky1 = millis(); DHT.read11(DHT11_PIN); humi = DHT.humidity; temp = DHT.temperature; gas = digitalRead(mq2Sensor); pir = digitalRead(pirSensor); if(pir){ digitalWrite(speaker,pir); } StaticJsonBuffer<200> jsonBuffer; JsonObject& root = jsonBuffer.createObject(); //đọc giá trị cảm biến rồi in ra root root["humidity"] = humi; root["temperature"] = temp; //in ra cổng software serial để ESP8266 nhận DHT mySerial.print("DHT"); //gửi tên lệnh mySerial.print('\r'); // gửi \r root.printTo(mySerial); //gửi chuỗi JSON mySerial.print('\r'); //for gas sensor JsonObject& rootGas = jsonBuffer.createObject(); rootGas["gas"] = gas; mySerial.print("GAS"); //gửi tên lệnh mySerial.print('\r'); // gửi \r rootGas.printTo(mySerial); //gửi chuỗi JSON mySerial.print('\r'); //for PIR JsonObject& rootPir = jsonBuffer.createObject(); rootPir["pir"] = pir; mySerial.print("PIR"); //gửi tên lệnh mySerial.print('\r'); // gửi \r rootPir.printTo(mySerial); //gửi chuỗi JSON mySerial.print('\r'); } sCmd.readSerial(); //bắt các chuỗi đang được gửi đến qua serial } void led() { char *json = sCmd.next(); //gán biến con trỏ vào địa chỉ của chuỗi đang đến thông qua giao thức serial Serial.println(json); StaticJsonBuffer<200> jsonBuffer; //tạo Buffer json có khả năng chứa tối đa 200 ký tự JsonObject& root = jsonBuffer.parseObjectg (json);//đặt một biến root mang kiểu json int redStatus = root["led"][0];//json -> tham số root --> phần tử thứ 0. StaticJsonBuffer<200> jsonBuffer2; JsonObject& root2 = jsonBuffer2.createObject(); //tao root2 json gom ten, led status root2["redS"] = redStatus; //in ra cổng software serial để ESP8266 gửi lên trên webserver mySerial.print("LED_STATUS"); //gửi tên lệnh mySerial.print('\r'); // gửi \r root2.printTo(mySerial); //gửi root 2 json len esp thong qua mySerial--serialsoftware mySerial.print('\r'); // gửi \r //xuất ra chân led digitalWrite(red, redStatus); } void motor(){ Serial.println("MOTOR"); char *json = sCmd.next(); //Chỉ cần một dòng này để đọc tham số nhận đươc Serial.println(json); StaticJsonBuffer<200> jsonBuffer; //tạo Buffer json có khả năng chứa tối đa 200 ký tự JsonObject& root = jsonBuffer.parseObject(json);//đặt một biến root mang kiểu json int motorStatus = root["fan"];//json -> tham số root --> phần tử thứ 0! StaticJsonBuffer<200> jsonBuffer2; JsonObject& root2 = jsonBuffer2.createObject(); //tao root2 json gom ten, led status root2["motorStatus"] = motorStatus; //Tạo một mảng trong JSON //in ra cổng software serial để ESP8266 nhận mySerial.print("MOTOR_STATUS"); //gửi tên lệnh mySerial.print('\r'); // gửi \r root2.printTo(mySerial); //gửi root 2 json len esp thong qua mySerial--serialsoftware mySerial.print('\r'); // gửi \r //xuất ra pin điều khiển digitalWrite(motorWind, motorStatus); }
bd606525b89365b75c33ef420c7477c426841edc
d14b5d78b72711e4614808051c0364b7bd5d6d98
/third_party/llvm-16.0/llvm/include/llvm/ExecutionEngine/Orc/EPCIndirectionUtils.h
354984b540a9fc65d898f9e92912edafea487ae9
[ "Apache-2.0" ]
permissive
google/swiftshader
76659addb1c12eb1477050fded1e7d067f2ed25b
5be49d4aef266ae6dcc95085e1e3011dad0e7eb7
refs/heads/master
2023-07-21T23:19:29.415159
2023-07-21T19:58:29
2023-07-21T20:50:19
62,297,898
1,981
306
Apache-2.0
2023-07-05T21:29:34
2016-06-30T09:25:24
C++
UTF-8
C++
false
false
8,637
h
EPCIndirectionUtils.h
//===--- EPCIndirectionUtils.h - EPC based indirection utils ----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Indirection utilities (stubs, trampolines, lazy call-throughs) that use the // ExecutorProcessControl API to interact with the executor process. // //===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_EPCINDIRECTIONUTILS_H #define LLVM_EXECUTIONENGINE_ORC_EPCINDIRECTIONUTILS_H #include "llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h" #include "llvm/ExecutionEngine/Orc/IndirectionUtils.h" #include "llvm/ExecutionEngine/Orc/LazyReexports.h" #include <mutex> namespace llvm { namespace orc { class ExecutorProcessControl; /// Provides ExecutorProcessControl based indirect stubs, trampoline pool and /// lazy call through manager. class EPCIndirectionUtils { friend class EPCIndirectionUtilsAccess; public: /// ABI support base class. Used to write resolver, stub, and trampoline /// blocks. class ABISupport { protected: ABISupport(unsigned PointerSize, unsigned TrampolineSize, unsigned StubSize, unsigned StubToPointerMaxDisplacement, unsigned ResolverCodeSize) : PointerSize(PointerSize), TrampolineSize(TrampolineSize), StubSize(StubSize), StubToPointerMaxDisplacement(StubToPointerMaxDisplacement), ResolverCodeSize(ResolverCodeSize) {} public: virtual ~ABISupport(); unsigned getPointerSize() const { return PointerSize; } unsigned getTrampolineSize() const { return TrampolineSize; } unsigned getStubSize() const { return StubSize; } unsigned getStubToPointerMaxDisplacement() const { return StubToPointerMaxDisplacement; } unsigned getResolverCodeSize() const { return ResolverCodeSize; } virtual void writeResolverCode(char *ResolverWorkingMem, JITTargetAddress ResolverTargetAddr, JITTargetAddress ReentryFnAddr, JITTargetAddress ReentryCtxAddr) const = 0; virtual void writeTrampolines(char *TrampolineBlockWorkingMem, JITTargetAddress TrampolineBlockTragetAddr, JITTargetAddress ResolverAddr, unsigned NumTrampolines) const = 0; virtual void writeIndirectStubsBlock(char *StubsBlockWorkingMem, JITTargetAddress StubsBlockTargetAddress, JITTargetAddress PointersBlockTargetAddress, unsigned NumStubs) const = 0; private: unsigned PointerSize = 0; unsigned TrampolineSize = 0; unsigned StubSize = 0; unsigned StubToPointerMaxDisplacement = 0; unsigned ResolverCodeSize = 0; }; /// Create using the given ABI class. template <typename ORCABI> static std::unique_ptr<EPCIndirectionUtils> CreateWithABI(ExecutorProcessControl &EPC); /// Create based on the ExecutorProcessControl triple. static Expected<std::unique_ptr<EPCIndirectionUtils>> Create(ExecutorProcessControl &EPC); /// Return a reference to the ExecutorProcessControl object. ExecutorProcessControl &getExecutorProcessControl() const { return EPC; } /// Return a reference to the ABISupport object for this instance. ABISupport &getABISupport() const { return *ABI; } /// Release memory for resources held by this instance. This *must* be called /// prior to destruction of the class. Error cleanup(); /// Write resolver code to the executor process and return its address. /// This must be called before any call to createTrampolinePool or /// createLazyCallThroughManager. Expected<JITTargetAddress> writeResolverBlock(JITTargetAddress ReentryFnAddr, JITTargetAddress ReentryCtxAddr); /// Returns the address of the Resolver block. Returns zero if the /// writeResolverBlock method has not previously been called. JITTargetAddress getResolverBlockAddress() const { return ResolverBlockAddr; } /// Create an IndirectStubsManager for the executor process. std::unique_ptr<IndirectStubsManager> createIndirectStubsManager(); /// Create a TrampolinePool for the executor process. TrampolinePool &getTrampolinePool(); /// Create a LazyCallThroughManager. /// This function should only be called once. LazyCallThroughManager & createLazyCallThroughManager(ExecutionSession &ES, JITTargetAddress ErrorHandlerAddr); /// Create a LazyCallThroughManager for the executor process. LazyCallThroughManager &getLazyCallThroughManager() { assert(LCTM && "createLazyCallThroughManager must be called first"); return *LCTM; } private: using FinalizedAlloc = jitlink::JITLinkMemoryManager::FinalizedAlloc; struct IndirectStubInfo { IndirectStubInfo() = default; IndirectStubInfo(JITTargetAddress StubAddress, JITTargetAddress PointerAddress) : StubAddress(StubAddress), PointerAddress(PointerAddress) {} JITTargetAddress StubAddress = 0; JITTargetAddress PointerAddress = 0; }; using IndirectStubInfoVector = std::vector<IndirectStubInfo>; /// Create an EPCIndirectionUtils instance. EPCIndirectionUtils(ExecutorProcessControl &EPC, std::unique_ptr<ABISupport> ABI); Expected<IndirectStubInfoVector> getIndirectStubs(unsigned NumStubs); std::mutex EPCUIMutex; ExecutorProcessControl &EPC; std::unique_ptr<ABISupport> ABI; JITTargetAddress ResolverBlockAddr = 0; FinalizedAlloc ResolverBlock; std::unique_ptr<TrampolinePool> TP; std::unique_ptr<LazyCallThroughManager> LCTM; std::vector<IndirectStubInfo> AvailableIndirectStubs; std::vector<FinalizedAlloc> IndirectStubAllocs; }; /// This will call writeResolver on the given EPCIndirectionUtils instance /// to set up re-entry via a function that will directly return the trampoline /// landing address. /// /// The EPCIndirectionUtils' LazyCallThroughManager must have been previously /// created via EPCIndirectionUtils::createLazyCallThroughManager. /// /// The EPCIndirectionUtils' writeResolver method must not have been previously /// called. /// /// This function is experimental and likely subject to revision. Error setUpInProcessLCTMReentryViaEPCIU(EPCIndirectionUtils &EPCIU); namespace detail { template <typename ORCABI> class ABISupportImpl : public EPCIndirectionUtils::ABISupport { public: ABISupportImpl() : ABISupport(ORCABI::PointerSize, ORCABI::TrampolineSize, ORCABI::StubSize, ORCABI::StubToPointerMaxDisplacement, ORCABI::ResolverCodeSize) {} void writeResolverCode(char *ResolverWorkingMem, JITTargetAddress ResolverTargetAddr, JITTargetAddress ReentryFnAddr, JITTargetAddress ReentryCtxAddr) const override { ORCABI::writeResolverCode(ResolverWorkingMem, ResolverTargetAddr, ReentryFnAddr, ReentryCtxAddr); } void writeTrampolines(char *TrampolineBlockWorkingMem, JITTargetAddress TrampolineBlockTargetAddr, JITTargetAddress ResolverAddr, unsigned NumTrampolines) const override { ORCABI::writeTrampolines(TrampolineBlockWorkingMem, TrampolineBlockTargetAddr, ResolverAddr, NumTrampolines); } void writeIndirectStubsBlock(char *StubsBlockWorkingMem, JITTargetAddress StubsBlockTargetAddress, JITTargetAddress PointersBlockTargetAddress, unsigned NumStubs) const override { ORCABI::writeIndirectStubsBlock(StubsBlockWorkingMem, StubsBlockTargetAddress, PointersBlockTargetAddress, NumStubs); } }; } // end namespace detail template <typename ORCABI> std::unique_ptr<EPCIndirectionUtils> EPCIndirectionUtils::CreateWithABI(ExecutorProcessControl &EPC) { return std::unique_ptr<EPCIndirectionUtils>(new EPCIndirectionUtils( EPC, std::make_unique<detail::ABISupportImpl<ORCABI>>())); } } // end namespace orc } // end namespace llvm #endif // LLVM_EXECUTIONENGINE_ORC_EPCINDIRECTIONUTILS_H
7a5aaff83018af8fb069e66e21b941ceacf1ea81
083e6cb5db50cf4ef4760bf3dc9ce2900332b9f6
/Codeforces_dp/A-apple.cpp
f38b013b56b8773ffaeb2acd93bd7e90c26e7480
[]
no_license
Mostafiz2000/Dynamic-Programming
6b90aa82cc5e510b5913edd408c317de578cc7a3
6f81a93ab8cfb0eb48004012f044fabdfcd0d222
refs/heads/main
2023-03-08T11:23:53.842563
2021-02-23T13:44:11
2021-02-23T13:44:11
341,560,739
1
0
null
null
null
null
UTF-8
C++
false
false
542
cpp
A-apple.cpp
#include <bits/stdc++.h> #define mcm(a,b) (a*b/__gcd(a,b)) typedef long long ll; using namespace std; ll L=10000000000000ll,N,M=1,S,V[100005],a,b; vector<ll> E[100005]; void f(int n, int p, ll d) { M=mcm(M,d); if(d>S||d<0){cout<<S; exit(0);} if(E[n].size()==1&&n>1)L=min(L,d*V[n]); for(int v:E[n])if(v!=p)f(v,n,d*(E[n].size()-(n==1?0:1))); } int main() { cin>>N; for(int i=1;i<=N;i++) cin>>V[i], S+=V[i]; for(int i=1;i<N;i++) cin>>a>>b, E[a].push_back(b), E[b].push_back(a); f(1,0,1); cout<<S-L/M*M; }
073b4eb4e9ce58f7282ff640559779d4b8672159
fd02283e58d39c4e4068b98c02720ca4c5c176f2
/windows/wrapper/impl_org_webRtc_RTCRtpTransceiverInit.cpp
6f1e58beb4b4c7fbf23810469c5a39d61ffc91ee
[ "BSD-3-Clause" ]
permissive
fibann/webrtc-apis
4dbfd3c3fc962250718be0e82a850e784dad6740
0d303d62f7e6483cf4b57c24ef295c487b0c28dd
refs/heads/master
2021-08-18T05:56:40.132259
2019-05-07T15:55:13
2019-05-07T15:55:13
214,481,189
0
0
BSD-3-Clause
2019-10-11T16:21:52
2019-10-11T16:21:52
null
UTF-8
C++
false
false
3,995
cpp
impl_org_webRtc_RTCRtpTransceiverInit.cpp
#include "impl_org_webRtc_RTCRtpTransceiverInit.h" #include "impl_org_webRtc_enums.h" #include "impl_org_webRtc_RTCRtpEncodingParameters.h" #include "impl_org_webRtc_pre_include.h" #include "api/rtptransceiverinterface.h" #include "impl_org_webRtc_post_include.h" using ::zsLib::String; using ::zsLib::Optional; using ::zsLib::Any; using ::zsLib::AnyPtr; using ::zsLib::AnyHolder; using ::zsLib::Promise; using ::zsLib::PromisePtr; using ::zsLib::PromiseWithHolder; using ::zsLib::PromiseWithHolderPtr; using ::zsLib::eventing::SecureByteBlock; using ::zsLib::eventing::SecureByteBlockPtr; using ::std::shared_ptr; using ::std::weak_ptr; using ::std::make_shared; using ::std::list; using ::std::set; using ::std::map; // borrow definitions from class ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpTransceiverInit::WrapperImplType, WrapperImplType); ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::NativeType, NativeType); ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::IEnum, UseEnum); ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpEncodingParameters, UseRtpEncodingParameters); //------------------------------------------------------------------------------ wrapper::impl::org::webRtc::RTCRtpTransceiverInit::RTCRtpTransceiverInit() noexcept { } //------------------------------------------------------------------------------ wrapper::org::webRtc::RTCRtpTransceiverInitPtr wrapper::org::webRtc::RTCRtpTransceiverInit::wrapper_create() noexcept { auto pThis = make_shared<wrapper::impl::org::webRtc::RTCRtpTransceiverInit>(); pThis->thisWeak_ = pThis; return pThis; } //------------------------------------------------------------------------------ wrapper::impl::org::webRtc::RTCRtpTransceiverInit::~RTCRtpTransceiverInit() noexcept { thisWeak_.reset(); } //------------------------------------------------------------------------------ void wrapper::impl::org::webRtc::RTCRtpTransceiverInit::wrapper_init_org_webRtc_RTCRtpTransceiverInit() noexcept { } //------------------------------------------------------------------------------ static void apply(const NativeType &from, WrapperImplType &to) { to.direction = UseEnum::toWrapper(from.direction); to.sendEncodings = make_shared< decltype(to.sendEncodings)::element_type >(); for (auto iter = from.send_encodings.begin(); iter != from.send_encodings.end(); ++iter) { auto wrapper = UseRtpEncodingParameters::toWrapper(*iter); if (!wrapper) continue; to.sendEncodings->push_back(wrapper); } } //------------------------------------------------------------------------------ static void apply(const WrapperImplType &from, NativeType &to) { to.direction = UseEnum::toNative(from.direction); to.send_encodings.clear(); if (from.sendEncodings) { for (auto iter = from.sendEncodings->begin(); iter != from.sendEncodings->end(); ++iter) { auto native = UseRtpEncodingParameters::toNative(*iter); if (!native) continue; to.send_encodings.push_back(*native); } } } //------------------------------------------------------------------------------ WrapperImplTypePtr WrapperImplType::toWrapper(const NativeType &native) noexcept { auto result = make_shared<WrapperImplType>(); result->thisWeak_ = result; apply(native, *result); return result; } //------------------------------------------------------------------------------ WrapperImplTypePtr WrapperImplType::toWrapper(NativeTypePtr native) noexcept { if (!native) return WrapperImplTypePtr(); return toWrapper(*native); } //------------------------------------------------------------------------------ NativeTypePtr WrapperImplType::toNative(WrapperTypePtr wrapper) noexcept { if (!wrapper) return NativeTypePtr(); auto converted = ZS_DYNAMIC_PTR_CAST(WrapperImplType, wrapper); if (!converted) return NativeTypePtr(); auto cloned = make_shared<NativeType>(); apply(*converted, *cloned); return cloned; }
906db57b2a6680d233b883141c1d795c141f59ab
a2d278126e6af978afbdbd60ccae47ca4ef51191
/10. Backtracking/0. Basics/3. Fibonacci/fibo.cpp
a58481dc304a63c55218afd6a46f19a97a2b33d3
[]
no_license
rohinarora/InterviewBit
4514599717426b16a3c7e6a657b215d16859ea16
35d46a3ec86be7e276eb7402588818a2b4788122
refs/heads/master
2020-12-09T10:54:06.895255
2020-01-18T21:28:00
2020-01-18T21:28:00
233,282,644
0
0
null
null
null
null
UTF-8
C++
false
false
2,140
cpp
fibo.cpp
#include <iostream> #include <string> #include <stdio.h> #include <ctype.h> #include <vector> using namespace std; using namespace std::chrono; int interative_fibo(int n){ // idea of simulation if (n<=1){ return n; } int res; int p1=0; int p2=1; for (int i=2;i<=n;i++){ res=p1+p2; p1=p2; p2=res; } return res; } int count1=0; int count2=0; int count3=0; int naive_recursion(int n,int i){ count2=count2+1; if (n==i) { count1=count1+1; } if (n<=1){ return n; } return naive_recursion(n-1,i)+naive_recursion(n-2,i); } int F[1000000000]; // assuming 51 is the highest fibo number to be calculated int memorized_recursion(int n){ count3=count3+1; if (n<=1){ return n; } if (F[n]!=-1){ return F[n]; } F[n]= memorized_recursion(n-1)+memorized_recursion(n-2); return F[n]; } int main(int argc, const char * argv[]) { for (int i=0;i<1000000000;i++){ F[i]=-1; } int input=1000; auto start = high_resolution_clock::now(); int output=interative_fibo(input); auto stop = high_resolution_clock::now(); auto duration = duration_cast<microseconds>(stop - start); cout << "fibo of "<< input<<" is "<<output; cout <<"\niterative recursion time " << duration.count()<< " microseconds"; start = high_resolution_clock::now(); int i=2; //output=naive_recursion(input,i); stop = high_resolution_clock::now(); cout << "\nfibo of "<< input<<" is "<<output; duration = duration_cast<microseconds>(stop - start); cout <<"\nnaive recursion time " << duration.count()<< " microseconds"; cout <<"\nrecursive calls to "<<i<<" in fibo of "<<"n is "<<count1; cout <<"\nTotal recursive call in fibo of "<<input<<" is "<<count2<< " in naive recursion"; start = high_resolution_clock::now(); output=memorized_recursion(input); stop = high_resolution_clock::now(); duration = duration_cast<microseconds>(stop - start); cout << "\nfibo of "<< input<<" is "<<output; cout <<"\nmemoized recursion time " << duration.count()<< " microseconds"; cout <<"\nTotal recursive calls in fibo of "<<input<<" is "<<count3 << " in memorized recursion"; return 0; }
12a30151b99cc4791bd1eb2606a83e16a0152c2c
25aa3563f57ef8d32c2989d0ed239edbbb841228
/BZOJ/bzoj1877.cpp
72d5a2f4eb31da2177f8a51487615cd9a11b2566
[]
no_license
tonglin0/Algorithm-Problems
491e809b1d874cb6339cebde6f87ca7382af9b5a
22d6ee385d67ac54dcf070f891f1e6053401e83f
refs/heads/master
2020-04-08T19:24:24.304575
2018-11-24T17:00:15
2018-11-24T17:00:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,809
cpp
bzoj1877.cpp
#include<cstdio> #include<iostream> #include<cstdlib> #include<cstring> #include<cmath> #include<ctime> #include<vector> #include<queue> #include<string> #include<map> #include<cctype> #include<algorithm> #define INF (int)1e9 #define lint long long #define llu unsigned long long #define eps 1e-8 #define MN 408 using namespace std; struct edge{ int from,to,c,f,cost; }; vector<edge> es; vector<int> g[MN]; int dis[MN],a[MN],p[MN]; bool ins[MN]; int n; int S,T; int cost=0,flow=0; void addedge(int from,int to,int c,int cost) { edge x; x.from=from;x.to=to;x.c=c;x.f=0;x.cost=cost; es.push_back(x); x.from=to;x.to=from;x.c=0;x.cost=-cost; es.push_back(x); int m=es.size(); g[from].push_back(m-2); g[to].push_back(m-1); } bool spfa() { for (int i=0;i<=n+n;i++) dis[i]=INF; memset(ins,0,sizeof(ins)); queue<int> q; q.push(S); p[S]=0; dis[S]=0; a[S]=INF; while(!q.empty()) { int u=q.front();q.pop(); ins[u]=false; for (int i=0;i<g[u].size();i++) { edge e=es[g[u][i]]; if (e.c>e.f&&dis[u]+e.cost<dis[e.to]) { dis[e.to]=dis[u]+e.cost; p[e.to]=g[u][i]; a[e.to]=min(a[u],e.c-e.f); if (!ins[e.to]) { q.push(e.to); ins[e.to]=true; } } } } if (dis[T]==INF) return false; int u=T; flow+=a[T]; cost+=dis[T]*a[T]; while(u!=S) { es[p[u]].f+=a[T]; es[p[u]^1].f-=a[T]; u=es[p[u]].from; } return true; } int main() { freopen("1877.in","r",stdin); freopen("1877.out","w",stdout); int i,j,k,m,ii=0,ca; scanf("%d%d",&n,&m); S=n+1;T=n; for (i=1;i<=m;i++) { int u,v,w; scanf("%d%d%d",&u,&v,&w); addedge(u+n,v,1,w); } for (i=2;i<=n-1;i++) addedge(i,i+n,1,0); while(spfa()); printf("%d %d\n",flow,cost); return 0; }
85935d14c2e0bdd127068916fc644821164eb874
ee23947a5d11a41cdaf1fe8b51fc8b50a21985cf
/Project/src/graphwindow.cpp
9115b1c9e23daed387594f6646621279936766e4
[]
no_license
hanley91/OO-Design-Project
7540d87bdeadcdfede74c0e8c81396a35f2319a7
1309ae51a3a827f3df2d933dbe294a539ec233c2
refs/heads/master
2021-03-12T22:41:28.196329
2015-05-17T23:06:54
2015-05-17T23:06:54
35,785,995
0
0
null
null
null
null
UTF-8
C++
false
false
18,326
cpp
graphwindow.cpp
#include "graphwindow.h" #include "ui_graphwindow.h" #include <iostream> #include <QErrorMessage> #include <ctime> GraphWindow::GraphWindow(QWidget *parent) : QDialog(parent), ui(new Ui::GraphWindow) { ui->setupUi(this); QObject::connect(ui->visible, SIGNAL(pressed()), this, SLOT(visibleMean())); QObject::connect(ui->complete, SIGNAL(pressed()), this, SLOT(completeMean())); QObject::connect(ui->barGraph, SIGNAL(pressed()), this, SLOT(toggleBarGraph())); QObject::connect(ui->lineGraph, SIGNAL(pressed()), this, SLOT(toggleLineGraph())); QObject::connect(ui->exporter, SIGNAL(pressed()), this, SLOT(exportToImage())); } GraphWindow::~GraphWindow() { delete ui; } void GraphWindow::setGraph(OMBIDatabase *data, vector<int> y, QStringList c) { dataAccess = data; yearValues = y; cityNames = c; ui->graphView->clearPlottables(); //Initialize the QCustomPlot widget, prepare for display ui->graphView->addGraph(); //Set the label of the x-axis to "Cities" ui->graphView->xAxis->setLabel("Cities"); //Turn off QCustomPlot's auto tick feature (will customize to needs) ui->graphView->xAxis->setAutoTicks(false); //Turn off QCustomPlot's auto label feature (will customize to needs) ui->graphView->xAxis->setAutoTickLabels(false); //Set the range of the x-axis to fit all the data in the best way possible ui->graphView->xAxis->setRange(0, 55); ui->graphView->yAxis->setRange(data->getMinForCurrent(c,y), data->getMaxForCurrent(c,y)); //Set the number precision to 9 digits so that we don't have scientific notation ui->graphView->yAxis->setNumberPrecision(9); //Set the spacing between tick marks on the x-axis ui->graphView->xAxis->setTickLength(0, 1); //Set the city name labels to be rotated 60 degrees for readability ui->graphView->xAxis->setTickLabelRotation(30); //Set the amount of non-major ticks to be displayed to zero ui->graphView->xAxis->setSubTickCount(5); //Set the label for the y-axis to be equal to the current measure ui->graphView->yAxis->setLabel(data->currentMeasure()); QVector<double> xPos; for (int i=0;i<=c.size();i++){ xPos.append((5*i)+(2.5)); //xPos.append(i); } //Set the tick marks for the x-axis to be the contents of the QVector containing the values //for the pre-calculated tick spacing ui->graphView->xAxis->setTickVector(xPos); //Set the labels for the x-axis to be the contents of the QVector containing all the names of all cities ui->graphView->xAxis->setTickVectorLabels(c.toVector()); QCPBars *set1 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set2 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set3 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set4 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set5 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QVector<double> set1positions; QVector<double> set2positions; QVector<double> set3positions; QVector<double> set4positions; QVector<double> set5positions; QVector<double> set1Data; QVector<double> set2Data; QVector<double> set3Data; QVector<double> set4Data; QVector<double> set5Data; for (int i=0;i<y.size();i++){ if (i==0){ ui->graphView->addPlottable(set1); for (int j=0; j<c.size();j++){ set1Data.append(data->getDataPoint(c.at(j),y.at(i))); set1positions.append((5*j)+1); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(255, 131, 0)); set1->setPen(pen); set1->setBrush(QColor(255, 131, 0, 50)); set1->setName(QString::number(y.at(i))); set1->setData(set1positions, set1Data); } } if (i==1){ ui->graphView->addPlottable(set2); for (int j=0; j<c.size();j++){ set2Data.append(data->getDataPoint(c.at(j),y.at(i))); set2positions.append((5*j)+2); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(1, 92, 191)); set2->setPen(pen); set2->setBrush(QColor(1, 92, 191, 50)); set2->setName(QString::number(y.at(i))); set2->setData(set2positions, set2Data); } } if (i==2){ ui->graphView->addPlottable(set3); for (int j=0; j<c.size();j++){ set3Data.append(data->getDataPoint(c.at(j),y.at(i))); set3positions.append((5*j)+3); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(150, 222, 0)); set3->setPen(pen); set3->setBrush(QColor(150, 222, 0, 70)); set3->setName(QString::number(y.at(i))); set3->setData(set3positions, set3Data); } } if (i==3){ ui->graphView->addPlottable(set4); for (int j=0; j<c.size();j++){ set4Data.append(data->getDataPoint(c.at(j),y.at(i))); set4positions.append((5*j)+4); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(60, 222, 0)); set4->setPen(pen); set4->setBrush(QColor(60, 222, 0, 70)); set4->setName(QString::number(y.at(i))); set4->setData(set4positions, set4Data); } } if (i==4){ ui->graphView->addPlottable(set5); for (int j=0; j<c.size();j++){ set5Data.append(data->getDataPoint(c.at(j),y.at(i))); set5positions.append((5*j)+5); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(200, 40, 5)); set5->setPen(pen); set5->setBrush(QColor(200, 40, 5, 70)); set5->setName(QString::number(y.at(i))); set5->setData(set5positions, set5Data); } } } ui->graphView->legend->setVisible(true); ui->graphView->replot(); if (dataAccess->meanCurrent(cityNames,yearValues) == dataAccess->meanAll()) { ui->complete->setEnabled(false); ui->complete->setStyleSheet(QString::fromUtf8("QPushButton:disabled""{ color: gray }")); } } void GraphWindow::visibleMean() { double meanValue; meanValue = dataAccess->meanCurrent(cityNames,yearValues); ui->graphView->addGraph(); QVector<double> xRange; QVector<double> yRange; for (int i=0;i<=ui->graphView->xAxis->tickVector().at((ui->graphView->xAxis->tickVector().size())-1);i++){ xRange.append(i); yRange.append(meanValue); } int n = ui->graphView->graphCount(); ui->graphView->graph(n-1)->setData(xRange,yRange); ui->graphView->replot(); } void GraphWindow::completeMean() { double meanValue; meanValue = dataAccess->meanAll(); ui->graphView->addGraph(); QVector<double> xRange; QVector<double> yRange; for (int i=0;i<=ui->graphView->xAxis->tickVector().at((ui->graphView->xAxis->tickVector().size())-1);i++){ xRange.append(i); yRange.append(meanValue); } ui->graphView->graph(1)->setData(xRange,yRange); ui->graphView->replot(); } void GraphWindow::toggleBarGraph() { ui->graphView->clearPlottables(); //Initialize the QCustomPlot widget, prepare for display ui->graphView->addGraph(); //Set the label of the x-axis to "Cities" ui->graphView->xAxis->setLabel("Cities"); //Turn off QCustomPlot's auto tick feature (will customize to needs) ui->graphView->xAxis->setAutoTicks(false); //Turn off QCustomPlot's auto label feature (will customize to needs) ui->graphView->xAxis->setAutoTickLabels(false); //Set the range of the x-axis to fit all the data in the best way possible ui->graphView->xAxis->setRange(0, 55); ui->graphView->yAxis->setRange(dataAccess->getMinForCurrent(cityNames,yearValues), dataAccess->getMaxForCurrent(cityNames,yearValues)); //Set the number precision to 9 digits so that we don't have scientific notation ui->graphView->yAxis->setNumberPrecision(9); //Set the spacing between tick marks on the x-axis ui->graphView->xAxis->setTickLength(0, 1); //Set the city name labels to be rotated 60 degrees for readability ui->graphView->xAxis->setTickLabelRotation(30); //Set the amount of non-major ticks to be displayed to zero ui->graphView->xAxis->setSubTickCount(5); //Set the label for the y-axis to be equal to the current measure ui->graphView->yAxis->setLabel(dataAccess->currentMeasure()); QVector<double> xPos; for (int i=0;i<=cityNames.size();i++){ xPos.append((5*i)+(2.5)); //xPos.append(i); } //Set the tick marks for the x-axis to be the contents of the QVector containing the values //for the pre-calculated tick spacing ui->graphView->xAxis->setTickVector(xPos); //Set the labels for the x-axis to be the contents of the QVector containing all the names of all cities ui->graphView->xAxis->setTickVectorLabels(cityNames.toVector()); QCPBars *set1 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set2 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set3 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set4 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QCPBars *set5 = new QCPBars(ui->graphView->xAxis, ui->graphView->yAxis); QVector<double> set1positions; QVector<double> set2positions; QVector<double> set3positions; QVector<double> set4positions; QVector<double> set5positions; QVector<double> set1Data; QVector<double> set2Data; QVector<double> set3Data; QVector<double> set4Data; QVector<double> set5Data; for (int i=0;i<yearValues.size();i++){ if (i==0){ ui->graphView->addPlottable(set1); for (int j=0; j<cityNames.size();j++){ set1Data.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(i))); set1positions.append((5*j)+1); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(255, 131, 0)); set1->setPen(pen); set1->setBrush(QColor(255, 131, 0, 50)); set1->setName(QString::number(yearValues.at(i))); set1->setData(set1positions, set1Data); } } if (i==1){ ui->graphView->addPlottable(set2); for (int j=0; j<cityNames.size();j++){ set2Data.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(i))); set2positions.append((5*j)+2); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(1, 92, 191)); set2->setPen(pen); set2->setBrush(QColor(1, 92, 191, 50)); set2->setName(QString::number(yearValues.at(i))); set2->setData(set2positions, set2Data); } } if (i==2){ ui->graphView->addPlottable(set3); for (int j=0; j<cityNames.size();j++){ set3Data.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(i))); set3positions.append((5*j)+3); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(150, 222, 0)); set3->setPen(pen); set3->setBrush(QColor(150, 222, 0, 70)); set3->setName(QString::number(yearValues.at(i))); set3->setData(set3positions, set3Data); } } if (i==3){ ui->graphView->addPlottable(set4); for (int j=0; j<cityNames.size();j++){ set4Data.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(i))); set4positions.append((5*j)+4); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(60, 222, 0)); set4->setPen(pen); set4->setBrush(QColor(60, 222, 0, 70)); set4->setName(QString::number(yearValues.at(i))); set4->setData(set4positions, set4Data); } } if (i==4){ ui->graphView->addPlottable(set5); for (int j=0; j<cityNames.size();j++){ set5Data.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(i))); set5positions.append((5*j)+5); QPen pen; pen.setWidthF(1.2); pen.setColor(QColor(200, 40, 5)); set5->setPen(pen); set5->setBrush(QColor(200, 40, 5, 70)); set5->setName(QString::number(yearValues.at(i))); set5->setData(set5positions, set5Data); } } } ui->graphView->legend->setVisible(true); ui->graphView->replot(); if (dataAccess->meanCurrent(cityNames,yearValues) == dataAccess->meanAll()) { ui->complete->setEnabled(false); ui->complete->setStyleSheet(QString::fromUtf8("QPushButton:disabled""{ color: gray }")); } } void GraphWindow::toggleLineGraph() { ui->graphView->clearPlottables(); //Set the label of the x-axis to "Cities" ui->graphView->xAxis->setLabel("Years"); //Turn off QCustomPlot's auto tick feature (will customize to needs) ui->graphView->xAxis->setAutoTicks(false); //Turn off QCustomPlot's auto label feature (will customize to needs) ui->graphView->xAxis->setAutoTickLabels(false); //Set the range of the x-axis to fit all the data in the best way possible ui->graphView->xAxis->setRange(0, 7); ui->graphView->yAxis->setRange(dataAccess->getMinForCurrent(cityNames,yearValues), dataAccess->getMaxForCurrent(cityNames,yearValues)); //Set the number precision to 9 digits so that we don't have scientific notation ui->graphView->yAxis->setNumberPrecision(9); //Set the spacing between tick marks on the x-axis ui->graphView->xAxis->setTickLength(0, 2.5); //Set the city name labels to be rotated 60 degrees for readability ui->graphView->xAxis->setTickLabelRotation(30); //Set the amount of non-major ticks to be displayed to zero ui->graphView->xAxis->setSubTickCount(5); //Set the label for the y-axis to be equal to the current measure ui->graphView->yAxis->setLabel(dataAccess->currentMeasure()); QVector<double> xPos; for (int i=0;i<yearValues.size();i++){ xPos.append(i); } //Set the tick marks for the x-axis to be the contents of the QVector containing the values //for the pre-calculated tick spacing ui->graphView->xAxis->setTickVector(xPos); QVector<QString> xLabels; for (int a=0;a<yearValues.size();a++){ xLabels.append(QString::number(yearValues.at(a))); } //Set the labels for the x-axis to be the contents of the QVector containing all the names of all cities ui->graphView->xAxis->setTickVectorLabels(xLabels); bool notDone = false; do{ QVector<double> xRange; QVector<double> yRange; for (int i=0;i<cityNames.size();i++){ ui->graphView->addGraph(); } for (int j=0;j<cityNames.size();j++){ for (int k=0;k<yearValues.size();k++){ xRange.append(k); yRange.append(dataAccess->getDataPoint(cityNames.at(j),yearValues.at(k))); } ui->graphView->graph(j)->setData(xRange,yRange); ui->graphView->graph(j)->setName(cityNames.at(j)); xRange.clear(); yRange.clear(); } notDone = true; }while(notDone==false); if (ui->graphView->graph(0)){ ui->graphView->graph(0)->setPen(QPen(QColor(255, 131, 0))); } if (ui->graphView->graph(1)){ ui->graphView->graph(1)->setPen(QPen(QColor(1, 92, 191))); } if (ui->graphView->graph(2)){ ui->graphView->graph(2)->setPen(QPen(QColor(150, 222, 0))); } if (ui->graphView->graph(3)){ ui->graphView->graph(3)->setPen(QPen(QColor(60, 222, 0))); } if (ui->graphView->graph(4)){ ui->graphView->graph(4)->setPen(QPen(QColor(200, 40, 5))); } if (ui->graphView->graph(5)){ ui->graphView->graph(5)->setPen(QPen(QColor(80, 90, 73))); } if (ui->graphView->graph(6)){ ui->graphView->graph(6)->setPen(QPen(QColor(32, 40, 80))); } if (ui->graphView->graph(7)){ ui->graphView->graph(7)->setPen(QPen(QColor(20, 37, 20))); } if (ui->graphView->graph(8)){ ui->graphView->graph(8)->setPen(QPen(QColor(160, 10, 2))); } if (ui->graphView->graph(9)){ ui->graphView->graph(9)->setPen(QPen(QColor(5, 40, 59))); } ui->graphView->legend->setVisible(true); ui->graphView->replot(); } void GraphWindow::exportToImage() { //file browser to save image QString filename = QFileDialog::getSaveFileName(this, tr("Save Image As"), "/home/student/untitled.jpg", tr("Images (*.bmp *.png *.jpg)")); //set buttons to invisible so they wont show in the image ui->visible->setVisible(false); ui->complete->setVisible(false); ui->barGraph->setVisible(false); ui->lineGraph->setVisible(false); ui->exporter->setVisible(false); //take a picture of GraphWindow QPixmap pixmap(this->size()); this->render(&pixmap); pixmap.save(filename); //make buttons visible again ui->visible->setVisible(true); ui->complete->setVisible(true); ui->barGraph->setVisible(true); ui->lineGraph->setVisible(true); ui->exporter->setVisible(true); //User feedback QFile f(filename); if(f.exists()) { std::cout << filename.toStdString() + " has been saved to file" << std::endl; QErrorMessage *confirmationMsg = new QErrorMessage(this); confirmationMsg->showMessage("Graph Successfully Exported To" + filename + "!"); confirmationMsg->show(); } else { std::cout << "There was an error when saving the file." << std::endl; QErrorMessage *errorMsg = new QErrorMessage(this); errorMsg->showMessage("Error! File did not save."); errorMsg->show(); } }
a5c55836afd42c0066ca53648bf6637e5c3ce666
a4c22ce405514188e87c7258bcab33d4cd7f123a
/Mutex.cpp
a83ef5d4f0a861e8886c85730cc069b7d7424cdc
[]
no_license
odashi/DGS
30f0b20724d6239a29209309b9ca43502f79a84b
8d25e888db32f7f83f9447e4f2a434945bb48be1
refs/heads/master
2016-09-05T21:47:24.878232
2012-12-23T05:22:41
2012-12-23T05:22:41
null
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
878
cpp
Mutex.cpp
// Mutex.cpp #include "Mutex.h" #include "Game.h" // 共通の初期化処理 void DGS::Mutex::open() { // ミューテックス生成 mutex_ = ::CreateMutexA(NULL, TRUE, name_.c_str()); Win32ErrorCode err; if (!mutex_) throw Win32Exception(err); // 既に取得されているかどうか duplicated_ = (err == ERROR_ALREADY_EXISTS); } // c-tor // ゲーム識別子でミューテックスを生成 DGS::Mutex::Mutex() : name_(Game::getCurrentObject().identifier()) { open(); } // c-tor // 名前を指定してミューテックスを生成 DGS::Mutex::Mutex(const std::string& name) : name_(name) { // ゲーム識別子を使用しない場合でも Game の初期化が必要なようにする。 Game::getCurrentObject(); open(); } // d-tor DGS::Mutex::~Mutex() { if (mutex_) ::ReleaseMutex(mutex_); }
905b2c2e711d2d50c71c333dc20705cbf6971c52
0860e9e03bd624e518a41fd1e27008818907b78d
/src/ui/vartext.h
daa2bdcf520f1512a0da09f16d4c3b7700ed9f36
[]
no_license
phi-fell/GRAEngine
bd2b734200542c2059a7608345395118ed904a01
64698335d182aeb4ccacec3ae2e956a39dba99aa
refs/heads/master
2021-10-27T15:21:23.320691
2018-10-31T19:27:23
2018-10-31T19:27:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,039
h
vartext.h
#ifndef GRAE_ENGINE_VARTEXT_H #define GRAE_ENGINE_VARTEXT_H #include "text.h" #include "system/environment.h" namespace GRAE { class VarText : Text { private: std::string raw; public: VarText(Resources *res, Gen *gen) : Text(res, gen) { raw = string; refresh(); } virtual ~VarText() { } virtual void setString(std::string s) { raw = s; refresh(); } virtual void refresh() { std::string formatted = raw; int pos; while ((pos = formatted.find("$[")) != std::string::npos) { int posEnd = formatted.find("]", pos); Environment::get()->registerListener(formatted.substr(pos + 2, posEnd - pos - 2), [&]() { this->refresh(); }); formatted.replace(pos, (posEnd - pos) + 1, Environment::get()->getString(formatted.substr(pos + 2, posEnd - pos - 2))); } Text::setString(formatted); } }; } #endif //GRAE_ENGINE_VARTEXT_H
c3190899f89b7feb0f942ce1dad47d22ee77dbd8
fb594e45f79a3c137cac55b29375d216899bb513
/RoboTV/src/thanatos.cpp
c22b5fb0b01c68c53244f09fdefa5d5f5f9f417d
[]
no_license
pancreasio/Thanatos_Arrives
21338e53f1179a219e8a7ffabd1721e60fba368f
9a1daed93724f453d750d80ff2ed59c39b9da561
refs/heads/master
2020-12-04T06:09:33.424770
2020-02-27T12:24:30
2020-02-27T12:24:30
231,647,458
0
0
null
null
null
null
UTF-8
C++
false
false
7,094
cpp
thanatos.cpp
#include "thanatos.h" namespace gamespace { thanatos::thanatos() { } thanatos::thanatos(float xPosition, float yPosition, cursor* gameCursor) :animatedSprite(xPosition, yPosition, 24.f, 24.f, "../res/assets/thanatos_spritesheet.png", 2, 3, 8, 8) { cursorInstance = gameCursor; AABB.x = actualRectangle.x + AABBxOffset; AABB.y = actualRectangle.y + AABByOffset; AABB.width = actualRectangle.width + AABBWidthOffset; AABB.height = actualRectangle.height + AABBHeightOffset; moveDirection.x = 0.f; moveDirection.y = 0.f; idleAnim.animationTime = 1.f; idleAnim.addFrame({ 0,0 }); idleAnim.addFrame({ 1,0 }); walkAnim.animationTime = 0.6f; walkAnim.addFrame({ 0,1 }); walkAnim.addFrame({ 1,1 }); attackAnim.animationTime = 0.3f; attackAnim.addFrame({ 0,2 }); attackAnim.addFrame({ 0,0 }); attackAnim.addFrame({ 0,2 }); attackAnim.addFrame({ 0,0 }); dashAnim.animationTime = 0.2f; dashAnim.addFrame({ 0,2 }); dashAnim.addFrame({ 0,0 }); damageAnim.animationTime = 0.5f; damageAnim.addFrame({ 1,2 }); NewAnimation(idleAnim); state = idle; stateTimer = 0.f; dashCooldown = 0.f; currentHP = maxHP; droneInstance = new drone({ AABB.x, AABB.y }); } thanatos::~thanatos() { delete droneInstance; } void thanatos::Draw() { //DrawRectangleRec(AABB, RED); //see hitbox compared to the character if(cursorInstance->actualRectangle.x > AABB.x) animatedSprite::Draw(); else DrawTexturePro(spriteTexture, {sourceRec.x,sourceRec.y, -sourceRec.width, sourceRec.height}, actualRectangle, origin, rotation, WHITE); droneInstance->Draw(); } void thanatos::Update(float frameTime) { if (state != dashing && state != damaged) { moveDirection.x = 0.f; moveDirection.y = 0.f; if (IsKeyDown(KEY_D)) moveDirection.x += 1; if (IsKeyDown(KEY_A)) moveDirection.x -= 1; if (IsKeyDown(KEY_W)) moveDirection.y -= 1; if (IsKeyDown(KEY_S)) moveDirection.y += 1; } switch (state) { case idle: if (IsKeyPressed(KEY_SPACE)) ChangeState(dashing); else if (IsMouseButtonPressed(0)) ChangeState(attacking); else if (moveDirection.x != 0.f || moveDirection.y != 0.f) ChangeState(walking); break; case walking: if (moveDirection.x != 0.f) { moveDirection.x = moveDirection.x / sqrtf(moveDirection.x * moveDirection.x + moveDirection.y * moveDirection.y); AABB.x += moveDirection.x * moveSpeed * frameTime; } if (moveDirection.y != 0.f) { moveDirection.y = moveDirection.y / sqrtf(moveDirection.x * moveDirection.x + moveDirection.y * moveDirection.y); AABB.y += moveDirection.y * moveSpeed * frameTime; } if (IsKeyPressed(KEY_SPACE)) ChangeState(dashing); else if (IsMouseButtonPressed(0)) ChangeState(attacking); else if (moveDirection.x == 0 && moveDirection.y == 0) ChangeState(idle); break; break; case dashing: AABB.x += moveDirection.x * dashSpeed * frameTime; AABB.y += moveDirection.y * dashSpeed * frameTime; if (stateTimer >= dashTime) { dashCooldown = dashCooldownTime; ChangeState(idle); } break; case attacking: if (stateTimer >= attackTime) ChangeState(idle); else if (IsKeyPressed(KEY_SPACE)) ChangeState(dashing); break; case damaged: AABB.x += moveDirection.x * damageSpeed * frameTime; AABB.y += moveDirection.y * damageSpeed * frameTime; if (stateTimer >= damageTime) { damageCooldown = invulnerabilityTime; ChangeState(idle); } break; } animatedSprite::Update(frameTime); stateTimer += frameTime; if (state != dashing) dashCooldown -= frameTime; if (state != damaged) damageCooldown -= frameTime; actualRectangle.x = AABB.x - AABBxOffset; actualRectangle.y = AABB.y - AABByOffset; if (currentHP <= 0.f) { active = false; visible = false; } droneInstance->Update(frameTime, { actualRectangle.x , actualRectangle.y }, cursorInstance); resourceCooldown -= frameTime; } void thanatos::UpdateSafePosition() { safePosition = { AABB.x, AABB.y }; } bool thanatos::CoolideWithWall(const rectangle* wall) { droneInstance->CollideVelosWithWall(*wall); if (CheckCollisionRecs(AABB, wall->actualRectangle)) { if (safePosition.x + AABB.width <= wall->actualRectangle.x) { actualRectangle.x = wall->actualRectangle.x - AABB.width / 2; } if (safePosition.x >= wall->actualRectangle.x + wall->actualRectangle.width) { actualRectangle.x = wall->actualRectangle.x + wall->actualRectangle.width + AABB.width / 2; } if (safePosition.y + AABB.height <= wall->actualRectangle.y) { actualRectangle.y = wall->actualRectangle.y - AABB.height + wallCollisionOffset; } if (safePosition.y >= wall->actualRectangle.y + wall->actualRectangle.height) { actualRectangle.y = wall->actualRectangle.y + wall->actualRectangle.height + wallCollisionOffset; } AABB.x = actualRectangle.x + AABBxOffset; AABB.y = actualRectangle.y + AABByOffset; if (state == dashing || state == damaged) ChangeState(idle); return true; } else { return false; } } void thanatos::RecieveDamage(Vector2 damageSource, float damageTaken) { if (state == dashing) { if (resourceCooldown <= 0.f) { droneInstance->GainResource(); resourceCooldown = resourceCooldownTime; } } else { if (state != damaged && damageCooldown <= 0.f) { ChangeState(damaged); currentHP -= damageTaken; moveDirection.x = AABB.x - damageSource.x; moveDirection.y = AABB.y - damageSource.y; float distanceToSource = sqrtf(moveDirection.x * moveDirection.x + moveDirection.y * moveDirection.y); moveDirection.x = moveDirection.x / distanceToSource; moveDirection.y = moveDirection.y / distanceToSource; } } } int thanatos::GetCurrentHealth() { return static_cast<int>(currentHP); } int thanatos::GetCurrentResource() { return droneInstance->GetCurrentResource(); } attack* thanatos::CheckIfAttackingEnemy(Rectangle enemyHitbox) { return droneInstance->GetCollidingAttack(enemyHitbox); } void thanatos::ChangeState(thanatosStates newState) { thanatosStates previousState = state; if (state != newState) { state = newState; stateTimer = 0.f; switch (state) { case idle: NewAnimation(idleAnim); break; case walking: NewAnimation(walkAnim); break; case attacking: NewAnimation(attackAnim); break; case dashing: if ((moveDirection.x != 0.f || moveDirection.y != 0.f) && dashCooldown <= 0.f) { if (moveDirection.x != 0.f) moveDirection.x = moveDirection.x / sqrtf(moveDirection.x * moveDirection.x + moveDirection.y * moveDirection.y); if (moveDirection.y != 0.f) moveDirection.y = moveDirection.y / sqrtf(moveDirection.x * moveDirection.x + moveDirection.y * moveDirection.y); NewAnimation(dashAnim); } else state = previousState; break; case damaged: NewAnimation(damageAnim); break; } } } }
f5a82f36a26674ac01ad700d1268098220b2ab78
8d2b0740e3f9f4ac079634d05829ecf7b114cf2b
/static_analyzer/quirrel_parser.h
4fb73481d6ffb755b1e509cdc4ec20eaa081113f
[ "MIT" ]
permissive
GaijinEntertainment/quirrel
aeb7d029ebc3bbe952bcf7452d3c046da0b0aa74
480f6b34b37766ef9cf2ffe3fe64fad9eea950a0
refs/heads/master
2023-08-24T09:31:55.594394
2023-08-22T13:27:55
2023-08-22T13:43:50
196,634,891
84
25
MIT
2023-09-13T10:38:45
2019-07-12T19:30:47
C++
UTF-8
C++
false
false
4,882
h
quirrel_parser.h
#pragma once #include "quirrel_lexer.h" #include <new> #define ALLOW_FUNCTION_PARAMS_WITHOUT_COMMA 1 #define ALLOW_ASSIGNMENT_IN_LAMBDA 1 extern FILE * out_stream; #define NODE_TYPES \ NODE_TYPE(PNT_UNKNOWN, "unknown-op") \ NODE_TYPE(PNT_NULL, "null") \ NODE_TYPE(PNT_INTEGER, "int-number") \ NODE_TYPE(PNT_BOOL, "boolean") \ NODE_TYPE(PNT_FLOAT, "float-number") \ NODE_TYPE(PNT_STRING, "string-literal") \ NODE_TYPE(PNT_IDENTIFIER, "identifier") \ NODE_TYPE(PNT_VAR_PARAMS, "var-params") \ NODE_TYPE(PNT_KEY_VALUE, "key-value") \ NODE_TYPE(PNT_MAKE_KEY, "make-key") \ NODE_TYPE(PNT_LIST_OF_KEYS_ARRAY, "list-of-keys-array") \ NODE_TYPE(PNT_LIST_OF_KEYS_TABLE, "list-of-keys-table") \ NODE_TYPE(PNT_READER_MACRO, "reader-macro") \ NODE_TYPE(PNT_UNARY_PRE_OP, "unary-pre-op") \ NODE_TYPE(PNT_UNARY_POST_OP, "unary-post-op") \ NODE_TYPE(PNT_BINARY_OP, "binary-op") \ NODE_TYPE(PNT_TERNARY_OP, "ternary-op") \ NODE_TYPE(PNT_EXPRESSION_PAREN, "expression-paren") \ NODE_TYPE(PNT_ROOT, "root") \ NODE_TYPE(PNT_THIS, "this") \ NODE_TYPE(PNT_BASE, "base") \ NODE_TYPE(PNT_ACCESS_MEMBER, "access-member") \ NODE_TYPE(PNT_ACCESS_MEMBER_IF_NOT_NULL, "access-member-if-not-null") \ NODE_TYPE(PNT_FUNCTION_CALL, "function-call") \ NODE_TYPE(PNT_FUNCTION_CALL_IF_NOT_NULL, "function-call-if-not-null") \ NODE_TYPE(PNT_ARRAY_CREATION, "array-creation") \ NODE_TYPE(PNT_TABLE_CREATION, "table-creation") \ NODE_TYPE(PNT_CONST_DECLARATION, "const-declaration") \ NODE_TYPE(PNT_GLOBAL_CONST_DECLARATION, "global-const-declaration") \ NODE_TYPE(PNT_LOCAL_VAR_DECLARATION, "local-var-declaration") \ NODE_TYPE(PNT_VAR_DECLARATOR, "var-declarator") \ NODE_TYPE(PNT_INEXPR_VAR_DECLARATOR, "inexpr-var-declarator") \ NODE_TYPE(PNT_EMPTY_STATEMENT, "empty-statement") \ NODE_TYPE(PNT_STATEMENT_LIST, "statement-list") \ NODE_TYPE(PNT_IF_ELSE, "if-else") \ NODE_TYPE(PNT_WHILE_LOOP, "while-loop") \ NODE_TYPE(PNT_DO_WHILE_LOOP, "do-while-loop") \ NODE_TYPE(PNT_FOR_LOOP, "for-loop") \ NODE_TYPE(PNT_FOR_EACH_LOOP, "for-each-loop") \ NODE_TYPE(PNT_LOCAL_FUNCTION, "local-function") \ NODE_TYPE(PNT_FUNCTION, "function") \ NODE_TYPE(PNT_LAMBDA, "lambda") \ NODE_TYPE(PNT_FUNCTION_PARAMETERS_LIST, "function-parameters-list") \ NODE_TYPE(PNT_FUNCTION_PARAMETER, "function-parameter") \ NODE_TYPE(PNT_RETURN, "return") \ NODE_TYPE(PNT_YIELD, "yield") \ NODE_TYPE(PNT_BREAK, "break") \ NODE_TYPE(PNT_CONTINUE, "continue") \ NODE_TYPE(PNT_THROW, "throw") \ NODE_TYPE(PNT_TRY_CATCH, "try-catch") \ NODE_TYPE(PNT_SWITCH_STATEMENT, "switch-statement") \ NODE_TYPE(PNT_SWITCH_CASE, "switch-case") \ NODE_TYPE(PNT_CLASS, "class") \ NODE_TYPE(PNT_LOCAL_CLASS, "local-class") \ NODE_TYPE(PNT_ATTRIBUTES_LIST, "attributes-list") \ NODE_TYPE(PNT_ATTRIBUTE, "attribute") \ NODE_TYPE(PNT_CLASS_METHOD, "class-method") \ NODE_TYPE(PNT_CLASS_CONSTRUCTOR, "class-constructor") \ NODE_TYPE(PNT_ACCESS_CONSTRUCTOR, "access-constructor") \ NODE_TYPE(PNT_CLASS_MEMBER, "class-member") \ NODE_TYPE(PNT_STATIC_CLASS_MEMBER, "static-class-member") \ NODE_TYPE(PNT_ENUM, "enum") \ NODE_TYPE(PNT_GLOBAL_ENUM, "global-enum") \ NODE_TYPE(PNT_ENUM_MEMBER, "enum-member") \ NODE_TYPE(PNT_IMPORT_VAR_DECLARATION, "import-var-declaration") \ #define NODE_TYPE(x, y) x, enum NodeType { NODE_TYPES PNT_COUNT }; #undef NODE_TYPE extern const char * node_type_names[]; extern Token emptyToken; struct Node { Token & tok; NodeType nodeType; std::vector<Node *> children; Node(Token & token) : tok(token), nodeType(PNT_UNKNOWN) {} Node() : tok(emptyToken), nodeType(PNT_UNKNOWN) {} void print(int indent = 0) { char buf[64]; if (tok.type == TK_INTEGER) snprintf(buf, 64, "%llu", (long long unsigned int)tok.u.i); if (tok.type == TK_FLOAT) snprintf(buf, 64, "%g", tok.u.d); fprintf(out_stream, "%s%s '%s'\n", std::string(indent, ' ').c_str(), node_type_names[nodeType], tok.type == TK_INTEGER || tok.type == TK_FLOAT ? buf : tok.u.s); for (size_t i = 0; i < children.size(); i++) if (children[i]) children[i]->print(indent + 2); else fprintf(out_stream, "%s*empty*\n", std::string(indent + 2, ' ').c_str()); } }; struct NodeList { std::vector< std::vector<Node> > nodes; int pos; NodeList() { pos = 0; std::vector<Node> v; v.resize(16); nodes.emplace_back(v); } Node * newNode(Token & token) { Node * res = &(nodes.back()[pos]); pos++; if (pos >= nodes.back().size()) { int newSize = int(nodes.back().size() * 2); if (newSize > 256) newSize = 256; std::vector<Node> v; v.resize(newSize); nodes.emplace_back(v); pos = 0; } res = new (res) Node(token); return res; } }; Node * sq3_parse(Lexer & lex);
b48342e0bf9038cc7462cfe85fcf6b2cb157bbc8
f7acf859c264f115af38103142c7ed0304177d0a
/src/vehicle.cpp
711e8ab563491af75f3bf42211d7e23e96be6d1b
[ "BSD-3-Clause" ]
permissive
patnolan33/ENPM808_Final
90a7e334f5de3fe671c9df13ec38623efcd81504
6a7c9c7f561521805d625b5acc5021c79635e50f
refs/heads/master
2021-01-20T00:39:43.030920
2017-05-09T20:51:12
2017-05-09T20:51:12
89,165,820
0
1
null
2017-04-25T14:01:57
2017-04-23T19:11:48
C++
UTF-8
C++
false
false
3,787
cpp
vehicle.cpp
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2017, patnolan33 * 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 Willow Garage, 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. *********************************************************************/ /** * @file vehicle.cpp * @brief Vehicle class implementation * @details Implementation of the ROS Vehicle support methods. * @author Patrick Nolan (patnolan33) * @copyright BSD */ #include <stdlib.h> #include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <vehicle.hpp> #include <enpm808_final/takeImageService.h> /** * @brief Vehicle constructor */ Vehicle::Vehicle() : publishedMessagesCount(0) { motionController = new MotionController(0.25); camera = new Camera(); // Set up subscribers cameraSub = nh.subscribe < sensor_msgs::Image > ("/camera/rgb/image_raw", 500, &Camera::cameraCallback, camera); laserSub = nh.subscribe < sensor_msgs::LaserScan > ("/scan", 500, &MotionController::determineAction, motionController); // Register services with the master takeImageServer = nh.advertiseService("takeImageService", &Camera::takeImage, camera); changeThresholdServer = nh.advertiseService( "changeThresholdService", &MotionController::changeThreshold, motionController); changeSpeedServer = nh.advertiseService("changeSpeedService", &MotionController::changeSpeed, motionController); togglePauseServer = nh.advertiseService("togglePauseMotionService", &MotionController::togglePause, motionController); // Set up publisher: drivePub = nh.advertise < geometry_msgs::Twist > ("/mobile_base/commands/velocity", 1000); } /** * @brief drive the vehicle autonomously using laser scan data as sensor feedback */ void Vehicle::drive() { // Grab current vehicle action: geometry_msgs::Twist vehicleCommand = motionController->getVehicleAction(); // Publish command: drivePub.publish(vehicleCommand); // Increment published message counter: publishedMessagesCount++; }
662b4824e12d6aaaff3913a9505f6fc3dd40f5aa
72e77a6bb54f1ef043cc4a9208b65a115fe3fee4
/source/include/vm_interpreter_opcode_funcs.hpp
433b6725b0d9b69b0751d7ce99842cfaa25e1e3c
[]
no_license
0xABADCAFE/exvm
f69b20be6cd2c506d354e8c8ea319fd919f4b386
7b73989f0241d408e50a085d53a67de1c135560d
refs/heads/master
2021-06-03T02:30:28.032960
2020-05-07T16:43:34
2020-05-07T16:43:34
93,942,045
5
0
null
2018-04-10T13:53:12
2017-06-10T13:50:30
C++
UTF-8
C++
false
false
2,007
hpp
vm_interpreter_opcode_funcs.hpp
//****************************************************************************// //** **// //** File: vm.hpp **// //** Description: Virtual Machine definitions **// //** Comment(s): Internal developer version only **// //** Library: **// //** Created: 2001-08-14 **// //** Author(s): Karl Churchill **// //** Note(s): **// //** Copyright: (C)1996 - , eXtropia Studios **// //** All Rights Reserved. **// //** **// //****************************************************************************// // Opcode handlers that require sufficient code to be realised as discrete // functions static void doBCALL8(CLASS* vm, uint16 op); static void doBCALL16(CLASS* vm, uint16 op); static void doCALL(CLASS* vm, uint16 op); static void doCALLN(CLASS* vm, uint16 op); static void doICALL(CLASS* vm, uint16 op); static void doICALLN(CLASS* vm, uint16 op); static void doSV(CLASS* vn, uint16 op); static void doRS(CLASS* vn, uint16 op); static void doPUSH_8(CLASS* vm, uint16 op); static void doPUSH_16(CLASS* vm, uint16 op); static void doPUSH_32(CLASS* vm, uint16 op); static void doPUSH_64(CLASS* vm, uint16 op); static void doPOP_8(CLASS* vm, uint16 op); static void doPOP_16(CLASS* vm, uint16 op); static void doPOP_32(CLASS* vm, uint16 op); static void doPOP_64(CLASS* vm, uint16 op); static void doSALLOC(CLASS* vm, uint16 op); static void doSFREE(CLASS* vm, uint16 op); static void doVEC1(CLASS* vm, uint16 op); static void doADV(CLASS* vm, uint16 op);
9c719fdbc32817f526041d5b4d9e233a524d73b1
ec9efe0040e2fad8c552dcd81796fe4263576a2b
/src/rabbits_and_foxes/raf_gui/visual_world.cpp
96f19225a83917092c48cb05495b4636982e9297
[]
no_license
menuet/experiments
5a9be1c40b2ac123c99e71136e311ddd5b48bf0e
ac34c3d4f940e94eb8ed0527830fb3f7135e286b
refs/heads/master
2020-12-12T05:37:18.527925
2020-05-09T22:51:20
2020-05-09T22:51:20
34,752,991
0
0
null
null
null
null
UTF-8
C++
false
false
10,077
cpp
visual_world.cpp
#include "visual_world.hpp" #include "board.hpp" #include "pieces_ranges.hpp" #include "visual_app.hpp" #include "visual_config.hpp" #include <sdlxx/assets.hpp> namespace raf { namespace raf_v1 { namespace visual { World::World(sdlxx::Repository<sdlxx::Texture>&& textures) : m_textures{std::move(textures)}, m_board_texture{ m_textures.find_asset("board")} { } void World::play_board(const Config& config, const std::string& board_name) { m_playing_board = PlayingBoard{}; const auto iter_board = config.boards.find("27"); if (iter_board == config.boards.end()) return; const auto& board = iter_board->second; auto current_board_size = board.landscape().size(); if (current_board_size.w == 0 || current_board_size.h == 0) return; const auto& state = board.state(); std::vector<Piece> pieces; { const auto texture = m_textures.find_asset("mushroom"); for (const auto& mushroom : board.landscape().mushrooms()) pieces.push_back({texture, mushroom}); } for (const auto& rabbit : state.rabbits()) { const auto texture = [&] { std::string texture_key; switch (rabbit.color()) { case RabbitColor::Grey: texture_key = "grey-rabbit"; break; case RabbitColor::Brown: texture_key = "brown-rabbit"; break; case RabbitColor::White: default: texture_key = "white-rabbit"; break; } return m_textures.find_asset(texture_key); }(); pieces.push_back({texture, rabbit}); } for (const auto& fox : state.foxes()) { const auto texture = [&] { std::string texture_key; switch (fox.orientation()) { case FoxOrientation::Horizontal: texture_key = fox.direction() == FoxDirection::Forward ? "hor-right-fox" : "hor-left-fox"; break; case FoxOrientation::Vertical: default: texture_key = fox.direction() == FoxDirection::Forward ? "ver-down-fox" : "ver-up-fox"; break; } return m_textures.find_asset(texture_key); }(); pieces.push_back({texture, fox}); } m_playing_board = PlayingBoard{&board, state, std::move(pieces), nullptr, false}; } void World::update(const Config& config, sdlxx::Renderer& renderer) {} void World::render(const Config& config, sdlxx::Renderer& renderer) const { sdlxx::render_texture(renderer, *m_board_texture); if (!m_playing_board.board) return; for (const auto& piece : m_playing_board.pieces) { const auto screen_location = logical_to_screen<sdlxx::Point>(piece, config); sdlxx::render_texture(renderer, *piece.texture, screen_location); } if (m_playing_board.win) { for (const auto& rabbit : m_playing_board.state.rabbits()) { const auto screen_rectangle = logical_to_screen<sdlxx::Rectangle>(rabbit, config); sdlxx::draw_rectangle(renderer, screen_rectangle, sdlxx::ColorAlpha{0, 255, 0, 0}); } } else if (m_playing_board.selected_piece) { const auto screen_rectangle = logical_to_screen<sdlxx::Rectangle>( *m_playing_board.selected_piece, config); sdlxx::draw_rectangle(renderer, screen_rectangle, sdlxx::ColorAlpha{255, 0, 0, 0}); } } void World::on_click(const Config& config, const sdlxx::Renderer& renderer, Uint8 button, sdlxx::Point mouse_location) { if (!m_playing_board.board) return; if (m_playing_board.win) return; const auto mouse_cell = screen_to_logical(mouse_location, config); const auto iter_piece = std::find_if( m_playing_board.pieces.begin(), m_playing_board.pieces.end(), [&](const auto& piece) { return piece.location() == mouse_cell; }); if (iter_piece != m_playing_board.pieces.end()) { auto& piece = *iter_piece; if (piece.is_selectable() && &piece != m_playing_board.selected_piece) m_playing_board.selected_piece = &piece; else m_playing_board.selected_piece = nullptr; return; } if (!m_playing_board.selected_piece) return; const auto can_move = m_playing_board.selected_piece->can_move_to( mouse_cell, m_playing_board.board->landscape(), m_playing_board.state); if (!can_move) return; const auto iter_rabbit = std::find_if( m_playing_board.state.rabbits().begin(), m_playing_board.state.rabbits().end(), [&](const auto& rabbit) { return rabbit.location() == m_playing_board.selected_piece->location(); }); if (iter_rabbit != m_playing_board.state.rabbits().end()) { const auto index = iter_rabbit - m_playing_board.state.rabbits().begin(); m_playing_board.state = m_playing_board.state.move_to<Rabbit>(index, mouse_cell); m_playing_board.selected_piece->var_piece = m_playing_board.state.rabbits()[index]; } else { const auto iter_fox = std::find_if( m_playing_board.state.foxes().begin(), m_playing_board.state.foxes().end(), [&](const auto& fox) { return fox.location() == m_playing_board.selected_piece->location(); }); if (iter_fox != m_playing_board.state.foxes().end()) { const auto index = iter_fox - m_playing_board.state.foxes().begin(); m_playing_board.state = m_playing_board.state.move_to<Fox>(index, mouse_cell); m_playing_board.selected_piece->var_piece = m_playing_board.state.foxes()[index]; } } m_playing_board.win = m_playing_board.state.all_rabbits_in_hole( m_playing_board.board->landscape()); } sdlxx::result<World> load_world(const Config& config, const sdlxx::Renderer& renderer) { try { sdlxx::Repository<sdlxx::Texture> textures; const auto& assets_path = sdlxx::get_assets_path(); for (const auto& entry : stdnext::filesystem::directory_iterator(assets_path)) { const auto& entry_path = entry.path(); if (stdnext::filesystem::is_regular_file(entry_path) && entry_path.extension() == ".png") { BOOST_OUTCOME_TRY( texture, sdlxx::load_texture(renderer, entry_path)); textures.insert_asset(entry_path.stem().string(), std::move(texture)); } } return World(std::move(textures)); } catch (...) { return stdnext::make_error_code(stdnext::errc::bad_file_descriptor); } } }}} // namespace raf::raf_v1::visual namespace raf { namespace raf_v2 { namespace visual { World::World(const Config& config, const sdlxx::Renderer& renderer, std::unique_ptr<Assets>&& assets) : m_assets{std::move(assets)}, m_view{views::create_initial_view( config, renderer, *m_assets)} { } void World::update(const Config& config, const sdlxx::Renderer& renderer) { std::visit( [&](auto& view) { view.update(config, renderer, *m_assets); }, m_view); } void World::render(const Config& config, const sdlxx::Renderer& renderer) const { std::visit( [&](const auto& view) { view.render(config, renderer, *m_assets); }, m_view); } void World::on_click(const Config& config, const sdlxx::Renderer& renderer, Uint8 button, sdlxx::Point mouse_location) { auto transition = std::visit( [&](auto& view) { return view.on_click(config, renderer, *m_assets, button, mouse_location); }, m_view); if (transition) m_view = transition(); } void World::on_key(const Config& config, const sdlxx::Renderer& renderer, const SDL_Keysym& keysym) { auto transition = std::visit( [&](auto& view) { return view.on_key(config, renderer, *m_assets, keysym); }, m_view); if (transition) m_view = transition(); } sdlxx::result<World> load_world(const Config& config, const sdlxx::Renderer& renderer) { BOOST_OUTCOME_TRY(assets, load_assets(renderer, sdlxx::get_assets_path())); return World(config, renderer, std::move(assets)); } }}} // namespace raf::raf_v2::visual
65748d226a4025192a93de41b46eae7fa87bb934
367e8612cb116ac46d08856127a05d78d1fc03f1
/Engine/OGF-Core/Core/Types.h
53a2cfb6349f4ac805bc8ae2e7406799fba5647b
[ "MIT" ]
permissive
simon-bourque/OpenGameFramework
a1c848ec9b203d23831a07dbca978b93495fb41d
e0fed3895000a5ae244fc1ef696f4256af29865b
refs/heads/master
2023-02-08T17:44:21.387079
2020-12-22T20:52:48
2020-12-22T20:52:48
83,928,624
5
0
MIT
2020-12-22T20:52:50
2017-03-04T22:24:01
C++
UTF-8
C++
false
false
273
h
Types.h
#pragma once #include <cstdint> typedef int8_t int8; typedef uint8_t uint8; typedef int16_t int16; typedef uint16_t uint16; typedef int32_t int32; typedef uint32_t uint32; typedef int64_t int64; typedef uint64_t uint64; typedef float float32; typedef double float64;
4db58950c85b2c4ae615f73d20d56fe27b78ec41
8cc7062f4355ddb8f905724a9f2a2ef3e8eb8acb
/main.cpp
b17a089ab7fb7fed0787bbe8a42106173ac322f3
[]
no_license
Magda98/cpp-lab
553198174d2c5211cc8504f88c42a0a8b42393e1
b9049e4ff655a2e9ff06959be7ef5b3dd7f14815
refs/heads/master
2021-11-30T07:36:39.933338
2019-01-21T22:47:05
2019-01-21T22:47:05
161,403,872
0
0
null
null
null
null
UTF-8
C++
false
false
2,301
cpp
main.cpp
#include <iostream> #include <fstream> #include "Data.h" #include "Napis.h" #include "Pracownik.h" #include "ListaPracownikow.h" #include "Kierownik.h" //L03 Kochman Magdalena int main() { int war = 1; char x; Napis imie, naziwsko, napis; int lp; bool kier = false; Data data(1,1,1); ListaPracownikow lista; std::ifstream oplik; while (war) { std::cin.clear(); std::cout << "d - dodaj pracownika\nk - dodaj kierownika\ns - szukaj \nu - usun\nw - wypisz pracownikow\nq - wyjdz\no - odczytaj z pliku\nz - zapisz do pliku" << std::endl; std::cin >> x; switch (x) { case 'd': { Pracownik *p = new Pracownik(); p->Wpisz(); lista.Dodaj(*p); break; } case 'k': { Kierownik *k = new Kierownik("", "" , 1 , 1, 1, "dzial", 0); std::cin >> *k; lista.Dodaj((Pracownik&)*k); break; } case 's': std::cout << "podaj imie: "; std::cin >> imie; std::cout << "podaj nazwisko: "; naziwsko.Wpisz(); std::cout << *lista.Szukaj(naziwsko.Zwroc(), imie.Zwroc()); break; case 'u': std::cout << "podaj imie: "; std::cin >> imie; std::cout << "podaj nazwisko: "; std::cin >> naziwsko; lista.Usun(*lista.Szukaj(naziwsko.Zwroc(), imie.Zwroc())); break; case 'w': lista.WypiszPracownikow(); break; case 'o': { oplik.open("lista.txt"); while (!(oplik.eof())) { x = oplik.peek(); if (x == '\n') oplik.get(x); x = oplik.peek(); if ((('A' <= x) && (x <= 'Z')) || (('a' <= x) && (x <= 'z'))) { oplik >> imie; oplik >> naziwsko; oplik >> data; if (oplik.peek() == '\t') { oplik >> napis; oplik >> lp; kier = true; } if (strlen(imie.Zwroc()) != 0 && !kier) { Pracownik *p = new Pracownik(imie.Zwroc(), naziwsko.Zwroc(), data.Dzien(), data.Miesiac(), data.Rok()); lista.Dodaj(*p); } else if(kier == true) { Kierownik *k = new Kierownik(imie.Zwroc(), naziwsko.Zwroc(), data.Dzien(), data.Miesiac(), data.Rok(), napis.Zwroc(), lp); lista.Dodaj((Pracownik&)*k); kier = false; } } else { break; } } oplik.close(); } break; case 'z': lista.Zapisz(); break; case 'q': war = 0; break; default: break; } std::cout << std::endl; } return 0; }
9004bfef7f08412ead14f0081db7b9f5aa21cb8e
ec2d2b50d7128bd5a4a5d64deb72c94999846dc4
/Hexapod/SteeringControl.h
09095224c76b138416a7ad868de305098ff9df76
[]
no_license
etienne-p/ArduinoHexapod
7c174d8c3608afd1627c10b3d835375cea61f3a4
b6c980792ffb74dbdc3a6f97c22f57d10aba7119
refs/heads/master
2021-01-11T17:54:33.464516
2017-03-09T01:52:10
2017-03-09T01:52:10
80,072,781
8
0
null
null
null
null
UTF-8
C++
false
false
310
h
SteeringControl.h
#ifndef STEERING_CONTROL_H #define STEERING_CONTROL_H #include <RCSwitch.h> #include "Vec2.h" #include "Util.h" #include "Consts.h" class SteeringControl { public: void setup(); void update(); float getLeft(); float getRight(); private: RCSwitch mySwitch; float left; float right; }; #endif
1b598a0755a44713c0fcfcea9866c33c03dfca39
52b45e7f578edaca886a367ab311b05c580b7f14
/memory_mapped_file.h
a5d5b8710e6d5cc30dd644c00af597c6f684927e
[ "MIT" ]
permissive
ebudai/sprylog
070474594b9250c343f079e8ad4f1d8af3c212f5
4315fe2abda9494f4b6e7e2606ec8c97dea78e0d
refs/heads/master
2021-01-19T11:05:59.546555
2017-04-23T15:59:10
2017-04-23T15:59:10
87,929,991
0
0
null
null
null
null
UTF-8
C++
false
false
2,902
h
memory_mapped_file.h
#pragma once #define NOMINMAX #include "argument.h" #include <algorithm> #include <Windows.h> namespace spry { struct memory_mapped_file { memory_mapped_file(const char* filename, uint64_t page) : base(nullptr) , offset(0) , file_handle(INVALID_HANDLE_VALUE) , mapping_object(INVALID_HANDLE_VALUE) { static constexpr auto access = GENERIC_READ | GENERIC_WRITE; static constexpr auto share = FILE_SHARE_READ | FILE_SHARE_WRITE; static constexpr auto create = CREATE_ALWAYS; static constexpr auto attributes = FILE_ATTRIBUTE_NORMAL; file_handle = CreateFileA(filename, access, share, nullptr, create, attributes, nullptr); if (file_handle == INVALID_HANDLE_VALUE) throw std::exception("CreateFile", GetLastError()); open_mapping(); flip_to_page(page); } ~memory_mapped_file() { UnmapViewOfFile(base); CloseHandle(mapping_object); CloseHandle(file_handle); } void flip_to_page(uint64_t page) { static constexpr auto access = FILE_MAP_ALL_ACCESS; UnmapViewOfFile(base); auto wide_file_offset = page * page_granularity; auto file_offset_high = static_cast<uint32_t>(wide_file_offset >> 32); auto file_offset_low = static_cast<uint32_t>(wide_file_offset); auto mapped_memory = MapViewOfFile(mapping_object, access, file_offset_high, file_offset_low, page_granularity); if (!mapped_memory) { CloseHandle(mapping_object); file_size += file_granularity; open_mapping(); mapped_memory = MapViewOfFile(mapping_object, access, file_offset_high, file_offset_low, page_granularity); if (!mapped_memory) throw std::exception("MapViewOfFile", GetLastError()); } base = static_cast<decltype(base)>(mapped_memory); offset = 0; } uint64_t free_space() const { return page_granularity - offset; } uint8_t* write(const uint8_t* buffer, size_t buffer_size_in_bytes) { auto start = base + offset; offset += buffer_size_in_bytes; std::memcpy(start, buffer, buffer_size_in_bytes); return start; } void write(std::initializer_list<arg> args) { auto start = reinterpret_cast<const uint8_t*>(args.begin()); write(start, args.size() * sizeof(arg)); } private: void open_mapping() { static constexpr auto protect = PAGE_READWRITE; const auto file_size_high = static_cast<uint32_t>(file_size >> 32); const auto file_size_low = static_cast<uint32_t>(file_size); mapping_object = CreateFileMappingA(file_handle, nullptr, protect, file_size_high, file_size_low, nullptr); if (mapping_object == nullptr) { throw std::exception("CreateFileMapping", GetLastError()); } } static constexpr auto page_granularity = 1 << 16; static constexpr auto file_granularity = std::numeric_limits<DWORD>::max(); uint8_t* base; uint64_t offset; HANDLE mapping_object; HANDLE file_handle; uint64_t file_size = file_granularity; }; }
aa0be8d4f5c1d2da448d63d17bb8bf1ba5bd3e10
1cebd4251cd4cc093427501e3f71cb2d0cdaad41
/SistemaAlzeimer/Arquivo.h
255e4b7f935ff7d48d2250bb33eb36b11e4487c8
[]
no_license
IgorBertuol/TrabalhoAlzeimer
f863b5e71799d5b5cd4580d7f0036e5c5e996de2
c37a1b422f4e6df97a4b090694a85d8632be9664
refs/heads/master
2021-01-02T09:32:45.289269
2014-10-30T01:16:52
2014-10-30T01:16:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
270
h
Arquivo.h
#include <fstream> #include "Paciente.h" #include "Lista.h" //#include "Tratamento.h" #include <cstdlib> #ifndef ARQUIVO_H #define ARQUIVO_H class Arquivo{ public: fstream arquivo; void escreverArquivo(Lista*); Lista *lerArquivo(); }; #endif // ARQUIVO_H
7e08c57df154c5805bf2591c6af166b78cbe90c5
39e908318696a9f43d4de8e05be1c4676d95def6
/Grade/Source.cpp
93ab1f92fd67f0269cad00fffb6d0e98a3026bde
[]
no_license
Napassawan/Grade
8a4fa9984503ad40139933555d387e09672ce1f0
c4d4ad6d4b8e9d952598437dd4592ff0cc4ed2d7
refs/heads/master
2022-12-29T06:38:36.943442
2020-10-23T17:27:09
2020-10-23T17:27:09
306,703,302
0
0
null
null
null
null
UTF-8
C++
false
false
567
cpp
Source.cpp
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> char n; void grade(char); int main() { printf("Enter grade: "); scanf("%c", &n); grade(n); } void grade(char n) { if (n == 'A' || n == 'a') { printf("The score is [80,100]"); } else if (n == 'B' || n == 'b') { printf("The score is [70,80)"); } else if (n == 'C' || n == 'c') { printf("The score is [60,70)"); } else if (n == 'D' || n == 'd') { printf("The score is [50,60)"); } else if (n == 'F' || n == 'f') { printf("The score is [0,50)"); } else { printf("It isn't grade."); } }
8ffd37291d3242c551cfe56c93b174e313b30cd1
ffb19ac43e565a82bec3512829892b63faca2cc4
/InputOutput/SteadyReader.h
ce562de719422a2e39319934c5ab0242aeab88d7
[]
no_license
arashkarshenass/Harmonic2D
82dd6fefbeed791fab140659c796c54ea92a7c03
9664c60dd4ca33c354f699b3a4577b8110e44780
refs/heads/master
2020-03-25T09:09:02.901437
2018-08-09T03:38:24
2018-08-09T03:38:24
143,650,254
1
0
null
null
null
null
UTF-8
C++
false
false
460
h
SteadyReader.h
/*=================================== Steady Solution Class Header ====================================*/ #ifndef INPUTOUTPUT_STEADYREADER_H_ #define INPUTOUTPUT_STEADYREADER_H_ class Mesh; class SteadyReader { public: SteadyReader(char pubname[],Mesh*); double** GetPrimitiveDomain() const; double** GetUnDom() const; double** GetUtDom() const; private: double** qsDom=nullptr; double** UnMatDom=nullptr; double** UtMatDom=nullptr; }; #endif
e0877143e3d09b083852a2c5b8d192bcfba30247
e140c1c7087d6a4e130ebde2ce7962c40ee7fd0c
/codeforces/1288/D.cpp
5313a922d06b5d8302c4df5d4ee1b308903c0a8c
[]
no_license
diptayan2k/CP-Submissions
543ccf94b4d43b6f040f975ccce834e883a5efc7
dc32f1dd474cf250f71795f991132f3d52cc1771
refs/heads/master
2023-02-05T15:26:51.480986
2018-07-03T14:25:00
2020-12-21T10:20:15
323,290,119
0
0
null
null
null
null
UTF-8
C++
false
false
1,545
cpp
D.cpp
#include <iostream> #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define f(i,a,b) for(ll i=a;i<=b;i++) #define g(i,a,b) for(ll i=a;i>=b;i--) #define F first #define S second #define mp make_pair #define pb push_back #define mh make_heap #define ph push_heap #define pq priority_queue #define set set <ll, greater<ll> > using namespace std; using namespace __gnu_pbds; typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> pbds; ll a[300000][8]; ll n,m; ll q=-1,r=-1; bool pod(ll x) { ll msk[1<<m]; f(i,0,(1<<m)-1) msk[i]=-1; f(i,0,n-1) { ll an=0; f(j,0,m-1) { if(a[i][j]>=x) { an+=(1<<j); } } msk[an]=i; // cout<<an<<" "<<msk[an]<<endl; } f(i,0,(1<<m)-1) { f(j,0,(1<<m)-1) { if(msk[i]!=-1&&msk[j]!=-1&&((i|j)==((1<<m)-1))) { q=msk[i]; r=msk[j]; //cout<<b<<" "<<c return true; } } } return false; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>n>>m; f(i,0,n-1) f(j,0,m-1) cin>>a[i][j]; //cout<<" "<<q<<" "<<r<<" "<<pod(2); ll h=(ll)1e9; ll l=0; ll mid; while(h>=l) { mid=(h+l)/2; if(pod(mid)) { l=mid+1; } else{ h=mid-1; } //cout<<mid<<endl; } cout<<q+1<<" "<<r+1; }
2685dc668c99dd0e46915f40529b3b49fa9db258
95a43c10c75b16595c30bdf6db4a1c2af2e4765d
/codecrawler/_code/hdu4930/16214979.cpp
130e133fbaa7cd705bbb00f4523c723071eedf3f
[]
no_license
kunhuicho/crawl-tools
945e8c40261dfa51fb13088163f0a7bece85fc9d
8eb8c4192d39919c64b84e0a817c65da0effad2d
refs/heads/master
2021-01-21T01:05:54.638395
2016-08-28T17:01:37
2016-08-28T17:01:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,549
cpp
16214979.cpp
#include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <queue> #include <vector> #include <iostream> #include <algorithm> using namespace std; #define RD(x) scanf("%d",&x) #define RD2(x,y) scanf("%d%d",&x,&y) #define clr0(x) memset(x,0,sizeof(x)) typedef long long LL; int u[19], v[19], w[19]; int t,s,n,m; int id(char temp) { if (temp=='Y') return 17; if (temp=='X') return 16; if (temp=='2') return 15; if (temp=='A') return 14; if (temp=='K') return 13; if (temp=='Q') return 12; if (temp=='J') return 11; if (temp=='T') return 10; return temp-'0'; } bool check() { int i,j,k; if (v[16]>=1 && v[17]>=1) { return 1; } if (m==2) { if (w[16]>=1 && w[17]>=1) return 0; } if (m==4) { for (i=3; i<=15; ++i) if (w[i]>=4){ //炸弹 for (j=i+1; j<=15; ++j) if (v[j]>=4) return 1; return 0; } } for (j=3; j<=15; ++j) if (v[j]>=4) return 1; if (n<m) return 0; if (m==1) { for (i=3; i<=17; ++i) if (w[i]>=1){ for (j=i+1; j<=17; ++j) if (v[j]>=1) return 1; return 0; } } if (m==2) { for (i=3; i<=15; ++i) if (w[i]>=2) { for (j=i+1; j<=15; ++j) if (v[j]>=2) return 1; return 0; } } if (m==3) { for (i=3; i<=15; ++i) if (w[i]>=3) { for (j=i+1; j<=15; ++j) if (v[j]>=3) return 1; return 0; } } if (m==4) { for (i=3; i<=15; ++i) if (w[i]>=3){ //三带一 for (j=i+1; j<=15; ++j) if (v[j]>=3) return 1; return 0; } } if (m==5) { for (i=3; i<=15; ++i) if (w[i]>=3){ //三带对 for (j=i+1; j<=15; ++j) if (v[j]>=3) { break; } if (j>=16) return 0; for (k=3; k<=15; ++k) { if (k!=j && v[k]>=2) return 1; } return 0; } } return 0; } bool solve() { int i,j,k; if (u[16]>=1 && u[17]>=1) { return 1; } if (s==4 || s==6) { for (i=3; i<=15; ++i) if (u[i]>=4) return 1; } if (s==1) { return 1; } if (s==2) { for (i=3; i<=15; ++i) if (u[i]>=2) return 1; } if (s==3) { for (i=3; i<=15; ++i) if (u[i]>=3) return 1; } if (s==4) { for (i=3; i<=15; ++i) if (u[i]>=3) return 1; } if (s==5) { for (i=3; i<=15; ++i) if (u[i]>=3){ for (k=3; k<=15; ++k) if (k!=i && u[k]>=2) return 1; } } for (i=3; i<=17; ++i){ if (u[i]>=4) { clr0(w); w[i]=u[i]; m = u[i]; if (!check()) return 1; } else if (u[i]>=3) { for (j=3;j<=17;++j) if (j!=i && u[j]>=2){ clr0(w); w[i]=u[i]; w[j]=2; m = u[i] + 2; if (!check()) return 1; } clr0(w); w[i]=u[i]; m = u[i]; if (!check()) return 1; if (s>3){ for (j=3;j<=17;++j) if (j!=i) break; w[j]=1; m = u[i] + 1; if (!check()) return 1; } } else if (u[i]>=2){ clr0(w); w[i]=u[i]; m = u[i]; if (!check()) return 1; } else if (u[i]>=1){ clr0(w); w[i]=u[i]; m = u[i]; if (!check()) return 1; } } return 0; } int main() { char a[19], b[19]; int i; RD(t); while (t--) { clr0(u),clr0(v); scanf("%s", a); s = strlen(a); for (i = 0; i < s; ++i) ++u[id(a[i])]; scanf("%s", b); n = strlen(b); for (i = 0; i < n; ++i) ++v[id(b[i])]; if(solve()) puts("Yes"); else puts("No"); } return 0; }
822076e4c45cd00d2782ebb225ec0553ca53e6c1
b35d9ba06f808245bd14b2d9e6b798e66d6b110f
/TerrainRenderer/TerrainRenderer/FPS.h
8de482c8c55ca8daf4bedd3714cdfe98bc2e1047
[]
no_license
kbliss94/TerrainRenderer
afcb2352d4def6c4c1f72d8b58cd9fb795f3ae60
70ae692f5c818e354d2dbf7aa8fa348ae4ba4fbe
refs/heads/master
2021-01-22T02:04:36.854951
2017-07-28T05:05:37
2017-07-28T05:05:37
92,331,522
2
0
null
null
null
null
UTF-8
C++
false
false
469
h
FPS.h
#ifndef _FPS_ #define _FPS_ #pragma once //linking #pragma comment(lib, "winmm.lib") #include <windows.h> #include <mmsystem.h> namespace TerrainRenderer { class FPS { public: //!Constructor FPS(); //!Copy constructor FPS(const FPS& rhs); //!Assignment operator FPS& operator=(const FPS& rhs); //!Destructor ~FPS(); void Initialize(); void Frame(); int GetFPS(); private: int mFPS, mCount; unsigned long mStartTime; }; } #endif
dd063ff6f9c6bfd98eb708a2446ac5e8a52fe655
4d0a3d58bd66e588a50b834a8b8a65a5dac81170
/Graphics/42run/sources/parsing.cpp
fd1674fadcca98245ff54708f07b622d8049fb4f
[]
no_license
fredatgithub/42
0384b35529a42cf09bbe6dc9362b6ad5c5b3e044
7c1352ab9c8dda4a381ce5a11cd3bbbfad078841
refs/heads/master
2023-03-17T09:47:48.850239
2019-12-15T18:13:13
2019-12-15T18:13:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,035
cpp
parsing.cpp
#include <fcntl.h> #include <unistd.h> #include "gnl.h" #include "parsing.h" static void read_float(char const *s, float *values, int nb_values) { char **tmp; int i; i = 0; tmp = ft_strsplit(s, ' '); if (tmp && ft_strlen_tab(tmp) >= nb_values) { while (i < nb_values) { values[i] = atof(tmp[i]); i++; } } if (tmp) free_split(tmp); } static void split_indices(char const *s, int *indice_vertex, int *indice_texture, int *indice_normal) { char **tmp; tmp = ft_strsplit(s, '/'); *indice_vertex = 1; *indice_texture = 1; *indice_normal = 1; if (tmp) { if (ft_strlen_tab(tmp) > 2) *indice_normal = atoi(tmp[2]); if (ft_strlen_tab(tmp) > 1) *indice_texture = atoi(tmp[1]); if (ft_strlen_tab(tmp) > 0) *indice_vertex = atoi(tmp[0]); } if (tmp) free_split(tmp); } static int read_face(t_face_list **begin, char const *s) { char **tmp; int count; int indice_vertex[3]; int indice_texture[3]; int indice_normal[3]; tmp = ft_strsplit(s, ' '); count = ft_strlen_tab(tmp); if (tmp && count >= 3) { split_indices(tmp[0], &indice_vertex[0], &indice_texture[0], &indice_normal[0]); split_indices(tmp[1], &indice_vertex[1], &indice_texture[1], &indice_normal[1]); split_indices(tmp[2], &indice_vertex[2], &indice_texture[2], &indice_normal[2]); push_face(begin, indice_vertex, indice_texture, indice_normal); if (count > 3) { //split_indices(tmp[0], &indice_vertex[0], &indice_texture[0], &indice_normal[0]); split_indices(tmp[2], &indice_vertex[1], &indice_texture[1], &indice_normal[1]); split_indices(tmp[3], &indice_vertex[2], &indice_texture[2], &indice_normal[2]); push_face(begin, indice_vertex, indice_texture, indice_normal); } } if (tmp) free_split(tmp); return (count == 3 ? 1 : 2); } static int read_mesh(t_obj_data *obj_data, int fd) { float values[3]; char *line; t_vertex_list *vertex_list; t_uv_list *uv_list; t_face_list *face_list; line = NULL; vertex_list = NULL; uv_list = NULL; face_list = NULL; while (get_next_line(fd, &line)) { if (line) { if (line[0] == 'v') { if (line[1] == ' ' || line[1] == '\t') { read_float(&line[1], values, 3); push_vertex(&vertex_list, values); obj_data->vertex_count++; } else if (line[1] == 't') { read_float(&line[2], values, 2); push_uv(&uv_list, values); obj_data->uv_count++; } } else if (line[0] == 'f') { obj_data->face_count += read_face(&face_list, &line[1]); } free(line); } } setup_mesh_vertex(obj_data, vertex_list); setup_mesh_uv(obj_data, uv_list); setup_mesh_faces(obj_data, face_list); setup_mesh_origin(obj_data); return (1); } int load_mesh(t_obj_data *obj_data, char const *filename) { int fd; if ((fd = open(filename, O_RDONLY)) == -1) return (0); //set to null obj_data->vertex_count = 0; obj_data->face_count = 0; obj_data->uv_count = 0; if (!read_mesh(obj_data, fd)) { close(fd); return (0); } //close(fd); return (1); }
a87e100314aa8edfc7ebf1120767e31a0a319261
316ae195b731b05b2f5a08d6e666efa08c48d5d9
/lib/program.cpp
af59c395ae0eaee00a10914d3ca1770b1e5af5a3
[ "MIT" ]
permissive
Mogby/Processor
7110a6bf997f8e8f4e6f3b93ed10c779b94acd73
6a2c0ea9ebddebb218377cf15b59ba02c7019758
refs/heads/master
2020-07-22T01:02:43.334328
2019-09-07T20:51:44
2019-09-07T20:51:44
207,024,674
2
0
null
null
null
null
UTF-8
C++
false
false
3,005
cpp
program.cpp
#include "program.hpp" #include "instruction.hpp" #include "util.hpp" #include <fstream> #include <regex> namespace NCPU { void TProgram::ReadFromAsmFile(const TString &filename) { Wipe(); TString asm_line; std::vector<TString> asm_lines; std::ifstream input(filename); while (std::getline(input, asm_line)) { RemoveComment(asm_line); asm_line = StripString(asm_line); if (asm_line.empty()) { continue; } if (asm_line.back() == ':') { asm_line = asm_line.substr(0, asm_line.size() - 1); // removing trailing ':' label_offsets_[asm_line] = asm_lines.size(); } else { asm_lines.push_back(asm_line); } } for (auto& line : asm_lines) { ReplaceLabels(line); instructions_.push_back(TUniversalDecoder::DecodeAssemblyLine(line)); } } void TProgram::WriteToAsmFile(const TString &filename) const { std::ofstream output(filename); for (auto instruction : instructions_) { output << instruction->ToAssembly() << std::endl; } } void TProgram::ReadFromBinaryFile(const TString &filename) { Wipe(); std::ifstream input(filename, std::ios::binary); std::vector<char> opcodes; std::copy( std::istreambuf_iterator<char>(input), std::istreambuf_iterator<char>(), std::back_inserter(opcodes) ); if (opcodes.size() % sizeof(TOpcode) != 0) { throw TException{"Invalid opcode length"}; } for (int i = 0; i < opcodes.size(); i += sizeof(TOpcode)) { TOpcode cur_opcode = 0; for (int j = 0; j < sizeof(TOpcode); ++j) { cur_opcode = ((cur_opcode << 8) | (TByte)opcodes[i + j]); } instructions_.push_back(TUniversalDecoder::DecodeOpcode(cur_opcode)); } } void TProgram::WriteToBinaryFile(const NCPU::TString &filename) const { std::ofstream output(filename, std::ios::binary); for (auto instruction : instructions_) { // print opcode byte by byte for (int i = sizeof(TOpcode) - 1; i >= 0; --i) { output << static_cast<char>((instruction->ToOpcode() >> (8 * i)) & 0xFF); } } } void TProgram::Run() { TCPUState state; do { instructions_[state.pc_++]->Execute(state); } while (state.pc_ < instructions_.size()); } void TProgram::Wipe() { label_offsets_.clear(); instructions_.clear(); } void TProgram::RemoveComment(TString &assembly_line) const { static const std::regex COMMENT_REGEX(";.*"); assembly_line = std::regex_replace(assembly_line, COMMENT_REGEX, ""); } void TProgram::ReplaceLabels(TString &assembly_line) const { auto words = SplitString(assembly_line); assembly_line = words[0]; for (int i = 1; i < words.size(); ++i) { auto& word = words[i]; if (label_offsets_.count(word)) { word = ToString(label_offsets_.at(word)); } assembly_line += " " + word; } } } // namespace NCPU
a2d065e8ef56323a91a56f14cffa490cd6cf966e
44ffe14c37baf3b16932c00677d8b35575f32755
/src/xtopcom/xdata/xdata_defines.h
9ca8364bd2efb9847f3de1ec678bcb6f755c6686
[]
no_license
telosprotocol/TOP-chain
199fca0a71c439a8c18ba31f16641c639575ea29
1f168664d1eb4175df8f1596e81acd127112414a
refs/heads/master
2023-07-25T01:24:34.437043
2023-06-05T01:28:24
2023-06-05T01:28:24
312,178,439
13
46
null
2023-07-18T01:09:29
2020-11-12T05:38:44
C++
UTF-8
C++
false
false
515
h
xdata_defines.h
// Copyright (c) 2017-2018 Telos Foundation & contributors // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <string> #include <vector> #include "xdata/xdata_common.h" #include "xdata/xblock.h" #include "xbase/xobject_ptr.h" namespace top { namespace data { constexpr size_t MAX_TRANSACTION_MEMO_SIZE = 128; constexpr size_t MAX_CONTRACT_CODE_SIZE = 32768; } // namespace data } // namespace top
251a5b20758e85f20013c35eda99a0f99d7cab68
1aaaf8af0d720b00c03454cc105e3e99ebdd993b
/2336 [HNOI2011]任务调度((模拟退火或)二分答案+贪心).cpp
ede7915f1ec486f18b1ab8e0c77969d91cc0df05
[ "Apache-2.0" ]
permissive
wwt17/BZOJ
2b6858fb68c3654a9c18861f1e3775c825e539fd
b8b41adf84cd91f68616149dcfdf374b9721b11c
refs/heads/master
2021-01-20T17:26:29.071661
2018-10-02T17:02:35
2018-10-02T17:02:35
63,025,417
12
6
null
null
null
null
GB18030
C++
false
false
2,691
cpp
2336 [HNOI2011]任务调度((模拟退火或)二分答案+贪心).cpp
/* 可以模拟退火,2^n枚举第3类的方案,先按某个值排序,随机交换两个位置 原创确定性算法:同样2^n枚举第3类的方案,有如下性质:1.A机器的安排一定是所有第1类在前、第2类在后,B机器同样;2.第1类的在两机器中的相对位置相同,第2类同样。这样就可以二分答案,对于每一类,前面的挤在最前面,后面的挤在最后面,记录当前放完的位置的两个指针的差dis。合法方案必须满足a<=dis(不重叠)。然后贪心地放使得dis减小最大的合法方案。 */ #include <cstdio> #include <algorithm> #include <queue> using namespace std; const int N=22; int n,lim; bool ok; struct task{ int t,a,b; } tas[N]; bool cmpt(const task &a,const task &b){ return a.t<b.t; } bool cmpa(const task &a,const task &b){ return a.a<b.a; } bool cmpb(const task &a,const task &b){ return a.b<b.b; } int sum[3][3]; #define calc1(i) (tas[i].b-tas[i].a) #define calc2(i) (tas[i].a-tas[i].b) struct cmp{ bool operator () (const int i,const int j){ return tas[i].b-tas[i].a<tas[j].b-tas[j].a; } }; bool flag[N]; bool work(){ for(int i=0;i<n;i++) flag[i]=false; if(sum[1][1]+sum[1][2]>lim){ int dis=lim-sum[1][2]; int Cnt=0; for(int i=0;i<n;i++) if(tas[i].t==1) Cnt++; while(Cnt--){ int k=-1; for(int i=0;i<n;i++) if(tas[i].t==1&&!flag[i]&&tas[i].a<=dis) if(k==-1||calc1(i)>calc1(k)) k=i; if(k==-1) return false; flag[k]=true; dis+=calc1(k); } return true; } else{ int dis=lim-sum[2][1]; int Cnt=0; for(int i=0;i<n;i++) if(tas[i].t==2) Cnt++; while(Cnt--){ int k=-1; for(int i=0;i<n;i++) if(tas[i].t==2&&!flag[i]&&tas[i].b<=dis) if(k==-1||calc2(i)>calc2(k)) k=i; if(k==-1) return false; flag[k]=true; dis+=calc2(k); } return true; } } void dfs(int i){ if(i==n){ ok=work(); return; } if(tas[i].t!=3){ sum[tas[i].t][1]+=tas[i].a; sum[tas[i].t][2]+=tas[i].b; dfs(i+1); sum[tas[i].t][1]-=tas[i].a; sum[tas[i].t][2]-=tas[i].b; return; } tas[i].t=1; sum[tas[i].t][1]+=tas[i].a; sum[tas[i].t][2]+=tas[i].b; dfs(i+1); sum[tas[i].t][1]-=tas[i].a; sum[tas[i].t][2]-=tas[i].b; if(ok){ tas[i].t=3; return; } tas[i].t=2; sum[tas[i].t][1]+=tas[i].a; sum[tas[i].t][2]+=tas[i].b; dfs(i+1); sum[tas[i].t][1]-=tas[i].a; sum[tas[i].t][2]-=tas[i].b; tas[i].t=3; } int main(){ scanf("%d",&n); int sa=0,sb=0; for(int i=0;i<n;i++){ scanf("%d%d%d",&tas[i].t,&tas[i].a,&tas[i].b); sa+=tas[i].a; sb+=tas[i].b; } sort(tas,tas+n,cmpt); int l=max(sa,sb)-1,r=sa+sb; while(r-l>1){ lim=(l+r)/2; ok=false; dfs(0); if(ok) r=lim; else l=lim; } printf("%d\n",r); }
86717f163eb9fddf984cbd5c04f2bd67cfbb39c1
cd790fb7e8ef78b1989531f5864f67649dcb1557
/uva12897(DecodingBabyBoos).cpp
079ad91e5eb93bef5cd64a0f02a0d76f95ca39d1
[]
no_license
FatimaTasnim/uva-solution
59387c26816c271b17e9604255934b7c8c7faf11
c7d75f0a5384229b243504dfbef4686052b9dea8
refs/heads/master
2020-03-27T22:23:18.611201
2018-10-23T05:53:46
2018-10-23T05:53:46
147,226,519
0
0
null
null
null
null
UTF-8
C++
false
false
684
cpp
uva12897(DecodingBabyBoos).cpp
#include<bits/stdc++.h> using namespace std; int main() { string str,st; char ch1,ch2; int t,p; scanf("%d",&t); while(t--) { cin>> str; st="ABCDEFGHIDKLMNOPQRSTUVWXYZ"; scanf("%d",&p); getchar(); for(int i=0;i<p;i++) { scanf("%c %c",&ch1,&ch2); getchar(); for(int j=0;st[j];j++) { if(st[j]==ch2) st[j]=ch1; } } for(int i=0;str[i];i++) { if(str[i]!='_') printf("%c",st[str[i]-'A']); else printf("_"); } printf("\n"); } }
0c64814e322c405e92a92a6246b87b3909f46747
ec23361e00e5ceb661205689a3b902d16eb62a90
/KeyBot.cpp
46b4b10769bd3bdcc48f9e8e084f7d5125699a6c
[]
no_license
kleborgn/KeyBot
90b2325148ae6ccf8843424c1388a08c9b72b087
50068e5b1735f951742bd6373e272ad399ebd23a
refs/heads/master
2022-11-06T20:21:26.992702
2020-07-08T15:57:11
2020-07-08T15:57:11
278,133,197
0
0
null
null
null
null
UTF-8
C++
false
false
1,079
cpp
KeyBot.cpp
#include <iostream> #include <Windows.h> #include <vector> void ecrireTexte(std::wstring texte) { std::wstring msg = texte; std::vector<INPUT> vec; for (auto ch : msg) { INPUT input = { 0 }; input.type = INPUT_KEYBOARD; input.ki.dwFlags = KEYEVENTF_UNICODE; input.ki.wScan = ch; vec.push_back(input); input.ki.dwFlags |= KEYEVENTF_KEYUP; vec.push_back(input); } // Cherche la fenetre notepad HWND hwnd = FindWindow(L"Notepad", 0); if (hwnd) SetForegroundWindow(hwnd); else std::cout << "Pas de bloc-note !\n"; SendInput(vec.size(), vec.data(), sizeof(INPUT)); } int main() { //system("notepad.exe"); // ouvre un notepad printf("Ouvrez un bloc-note...\n"); Sleep(5000); // 5s printf("C'est parti !\n Appuyez sur S pour m'arreter.\n"); while (true) { if (GetAsyncKeyState(0x53) & 0x1) { // touche s return 0; } ecrireTexte(L"Je possede un labrador de couleur pruneau.\n"); Sleep(1000); } }
fe6f36689c85fd320b70ef6c703b16e838cc5905
7abbb21f2734f7bb72d125eef2bc6114abb28043
/src/link/TimedPacket.h
8acb105693c8b2679c44ee66d58946cbb8d8f6f5
[ "MIT" ]
permissive
dneuge/cvr
4fbe7246d20185941d85b769d2801e6eb097a11b
516547dca0672c92aa4f4a37712e6135e7f6b011
refs/heads/master
2021-01-17T17:24:51.884891
2016-07-24T21:19:56
2016-07-24T21:19:56
64,080,149
0
0
null
null
null
null
UTF-8
C++
false
false
343
h
TimedPacket.h
#ifndef TIMEDPACKET_H #define TIMEDPACKET_H class TimedPacket { public: TimedPacket(unsigned long long, unsigned long long, char*, unsigned long long); unsigned long long index; unsigned long long timestampMillis; char* data; unsigned long long dataLength; }; #endif /* TIMEDPACKET_H */
b15bd7bbf5dc77aa1877b58d700f6bc31da315a6
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/b6/6a182702c72414/main.cpp
5c45e212dd4f20b68d9297a939c45c900e1cfeef
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
169
cpp
main.cpp
#include <cstddef> int main() { const std::size_t N = 100; int* a = new int[N]; for (std::size_t n = 0; n < N; ++n) a[n] = n; delete[] a; }
043366512fd2aac4389a469a5342e0642f4cbcfb
775b2a3073cd6f95dc0ba0b1e59152ed81c2eca5
/Hack and Slash/Hack and Slash/src/Window.cpp
250ecaa4e475e075c3915db6d255b4bbd990b4a9
[ "MIT" ]
permissive
JoanStinson/HackAndSlash
bb21400d60318d6300b8eade79eb6ab8fd5c00ad
db4881a6830e2358939708533ef15494aba9adbf
refs/heads/master
2022-09-29T14:02:37.880932
2022-09-16T17:28:26
2022-09-16T17:28:26
205,892,711
4
0
null
null
null
null
UTF-8
C++
false
false
778
cpp
Window.cpp
#include "Window.h" #include <iostream> Window::Window(const string &name, const int screenWidth, const int screenHeight, const int screenScale) : NAME(name), SCREEN_WIDTH(screenWidth), SCREEN_HEIGHT(screenHeight), SCREEN_SCALE(screenScale) { // Setup SDL if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { SDL_Quit(); cout << "error initialising SDL" << endl; } // Setup window window = SDL_CreateWindow("Hack and Slash", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH*SCREEN_SCALE, SCREEN_HEIGHT*SCREEN_SCALE, SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI); //SDL_WINDOW_SHOWN | SDL_WINDOW_FULLSCREEN if (window == nullptr) { SDL_Quit(); cout << "window error" << endl; } } Window::~Window() { SDL_DestroyWindow(window), window = nullptr; SDL_Quit(); }
24de51870e2d8f2a77eaab4602c9417e0eafeea2
fec94f8104b82de6b8a68aeb9d5b5626fc270f81
/MPAGSCipher/processCommandLine.cpp
aacf5bc9da90754b8e302e5031099e4fbbe7ed24
[ "MIT" ]
permissive
artemis-beta/mpags-cipher
955f8152bb7822aad68ac13429880f3183aae3bb
2f868e3a0c1c98f15a8d4682971e9e1cd31743ee
refs/heads/master
2021-01-21T07:30:13.563330
2015-11-27T15:48:05
2015-11-27T15:48:05
44,805,046
0
0
null
2015-10-23T10:02:42
2015-10-23T10:02:42
null
UTF-8
C++
false
false
3,374
cpp
processCommandLine.cpp
//************************************************************************************** // // Command Line Input Checking Function // // Kristian Zarebski, October 30th 2015 // // Checks user input and also returns help if requested // //************************************************************************************** // Header files #include <string> #include <iostream> #include <stdlib.h> #include "processCommandLine.hpp" bool processCommandLine(char* argv[],CommandLineInfo &info_args){ std::string input{""}, input2{""}; //Strings for arguments //Check that an option has been stated when program is initiated if(info_args.num_args == 1){std::cout << "ERROR: Program option required, type 'mpags-cipher -h'"\ " for details \n"; return false;} input = argv[1]; // Set input to be the value of argument 1 //Ensure that the first argument is either Code/Decode/Help option if(input != "-c" && input != "-d" && input != "-h"){std::cout << "ERROR: Program" \ " option required, type 'mpags-cipher -h' for details \n"; return false;} // Print instructions if 'help' selected as program option if(input == "-h" || input == "--help"){ std::cout << "*****************************"\ "************************************* \n" \ "\t \t \t CaesarCipher v0.1.7 \t \t \t \n" \ "****************************************************************** \n \n" \ " -c \t \t \t Code a Message \n -d \t \t \t Decode a Message \n -h \t \t \t"\ " Display this help message \n -i \t [filename] \t Use input file for" \ " message, must be followed by a valid file name \n" \ " -o \t [filename] \t Specify an output file to print translated text to,"\ " must be followed by a valid file name \n \n Program requires either '-c',"\ " '-d' or '-h' flags to work. \n \n"\ "E.g. 'mpags-cipher -d -i inputfile.txt -o outputfile.txt' \n \n"; exit(0);} if(input == "-c"){info_args.ciphermode = CipherMode::Encrypt;} else{info_args.ciphermode = CipherMode::Decrypt;} // Check if file options selected by user and ensure that where an input/output file // has been requested, the user specifies a valid file name (cycles through arguments) for(int i{2}; i<info_args.num_args; ++i){ input = argv[i]; if(i != info_args.num_args-1){input2 = argv[i+1];} if(input.front() == '-'){if(input != "-o" && input != "-i"){ std::cout << "ERROR: Invalid argument '" << input << "' \n"; return false;}} if(input == "--Cipher"){if(i==info_args.num_args-1){ std::cout << "ERROR: Cipher Type Not Specified! \n"; return false;} else if(input2 == "caesar"){info_args.ciphertype = CipherType::Caesar;} else if(input2 == "playfair"){info_args.ciphertype = CipherType::PlayFair;} else{std::cout << "ERROR: Invalid Cipher Type! \n"; return false;} } if(input == "-o"){if(i ==info_args.num_args-1){ std::cout << "ERROR: No Output File Defined! \n"; return false;} else if(input2.front() == '-'){ std::cout << "ERROR: Invalid File Name \n"; return false;} info_args.outfile = argv[i+1]; } if(input == "-i"){ if(i == info_args.num_args-1){ std::cout << "ERROR: No Input File Defined! \n"; info_args.infile = input; return false;} else if(input2.front() == '-'){ std::cout << "ERROR: Invalid File Name \n"; return false;} info_args.infile = argv[i+1]; } } return true; }
c59f19c7e63656da1dcd1bd041cea79342540da6
8a4aa8a32a25557c64e5d8d2d280c97156de0d34
/OpenTESArena/src/World/Province.cpp
2c382c4fb4606071bdffbb18539681a37b311125
[ "MIT" ]
permissive
basecq/OpenTESArena
c7cb83a52cf0f9c74677fa1974389c90d2684979
5e9b76de631c3bd8a9cbeead12eef04bd3c9767a
refs/heads/master
2021-01-22T19:32:09.232031
2016-04-11T21:54:09
2016-04-11T21:54:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
11,463
cpp
Province.cpp
#include <cassert> #include <map> #include "Province.h" #include "LocationName.h" // City-state/Town/Village map location names. Doesn't include dungeons. const auto ProvinceCivilizations = std::map<ProvinceName, std::vector<LocationName>> { // Black Marsh. { ProvinceName::BlackMarsh, { LocationName::AltenCorimont, LocationName::AltenMarkmont, LocationName::AltenMeirhall, LocationName::Archon, LocationName::Blackrose, LocationName::Branchgrove, LocationName::Branchmont, LocationName::Chasecreek, LocationName::Chasepoint, LocationName::Gideon, LocationName::Glenbridge, LocationName::Greenglade, LocationName::Greenspring, LocationName::Helstrom, LocationName::Lilmoth, LocationName::Longmont, LocationName::Moonmarch, LocationName::PortdunMont, LocationName::Riverbridge, LocationName::Riverwalk, LocationName::Rockgrove, LocationName::Rockguard, LocationName::Rockpark, LocationName::Rockpoint, LocationName::Rockspring, LocationName::Seafalls, LocationName::Seaspring, LocationName::Soulrest, LocationName::Stonewastes, LocationName::Stormhold, LocationName::TenmarWall, LocationName::Thorn } }, // Elsweyr. { ProvinceName::Elsweyr, { LocationName::Alabaster, LocationName::BlackHeights, LocationName::BrukreichBridge, LocationName::Chasegrove, LocationName::Chasemoor, LocationName::CoriDarglade, LocationName::Corinthe, LocationName::DarkarnPlace, LocationName::DarvulkHaven, LocationName::DuncoriWalk, LocationName::Dune, LocationName::EinMeirvale, LocationName::Greenhall, LocationName::HeimthorMount, LocationName::HelkarnLand, LocationName::KingsWalk, LocationName::MarkgranBrook, LocationName::MeirLynmount, LocationName::NeumarWalk, LocationName::Orcrest, LocationName::PortneuView, LocationName::Rimmen, LocationName::Riverhold, LocationName::RiverKeep, LocationName::Seaplace, LocationName::Senchal, LocationName::SouthGuard, LocationName::TardornWood, LocationName::TenmarForest, LocationName::Torval, LocationName::ValleyGuard, LocationName::VerkarthHills } }, // Hammerfell. { ProvinceName::Hammerfell, { LocationName::Chaseguard, LocationName::Chasetown, LocationName::CliffKeep, LocationName::CortenMont, LocationName::DragonGate, LocationName::DragonGrove, LocationName::Dragonstar, LocationName::Elinhir, LocationName::Gilane, LocationName::Hegathe, LocationName::HeldornMount, LocationName::KarnverFalls, LocationName::LainebonPlace, LocationName::Lainlyn, LocationName::NimbelMoor, LocationName::NorthHall, LocationName::Rihad, LocationName::Riverpoint, LocationName::Riverview, LocationName::Roseguard, LocationName::Sentinel, LocationName::Shadymarch, LocationName::Skaven, LocationName::Stonedale, LocationName::Stonemoor, LocationName::Sunkeep, LocationName::Taneth, LocationName::ThorstadPlace, LocationName::VerkarthCity, LocationName::VulkneuTown, LocationName::VulnimGate } }, // High Rock. { ProvinceName::HighRock, { LocationName::BlackWastes, LocationName::Camlorn, LocationName::CloudSpring, LocationName::Daggerfall, LocationName::DunkarnHaven, LocationName::DunlainFalls, LocationName::EagleBrook, LocationName::EbonWastes, LocationName::Evermore, LocationName::Farrun, LocationName::Glenpoint, LocationName::IlessenHills, LocationName::Jehanna, LocationName::KarthgranVale, LocationName::KingsGuard, LocationName::MarkwastenMoor, LocationName::MeirDarguard, LocationName::MeirThorvale, LocationName::Moonguard, LocationName::NormarHeights, LocationName::NorthPoint, LocationName::NorvulkHills, LocationName::OldGate, LocationName::PortdunCreek, LocationName::RavenSpring, LocationName::ReichGradkeep, LocationName::Shornhelm, LocationName::ThorkanPark, LocationName::VermeirWastes, LocationName::Wayrest, LocationName::WhiteHaven, LocationName::WindKeep } }, // Imperial Province. { ProvinceName::ImperialProvince, { LocationName::ImperialCity } }, // Morrowind. { ProvinceName::Morrowind, { LocationName::AmberForest, LocationName::Blacklight, LocationName::CorkarthRun, LocationName::CormarView, LocationName::DarnimWatch, LocationName::DragonGlade, LocationName::EagleMoor, LocationName::Ebonheart, LocationName::Firewatch, LocationName::GlenHaven, LocationName::Greenheights, LocationName::HeimlynKeep, LocationName::HelnimWall, LocationName::KarththorDale, LocationName::KarththorHeights, LocationName::Kragenmoor, LocationName::MarkgranForest, LocationName::Mournhold, LocationName::Narsis, LocationName::Necrom, LocationName::Oaktown, LocationName::OldKeep, LocationName::OldRun, LocationName::ReichParkeep, LocationName::Riverbridge2, LocationName::SailenVulgate, LocationName::SilgradTower, LocationName::SilnimDale, LocationName::Stonefalls, LocationName::Stoneforest, LocationName::Tear, LocationName::VerarchenHall } }, // Skyrim. { ProvinceName::Skyrim, { LocationName::AmberGuard, LocationName::Amol, LocationName::BlackMoor, LocationName::Dawnstar, LocationName::DragonBridge, LocationName::DragonWood, LocationName::DunparWall, LocationName::DunstadGrove, LocationName::Falcrenth, LocationName::Granitehall, LocationName::Greenwall, LocationName::HelarchenCreek, LocationName::KarthwastenHall, LocationName::Lainalten, LocationName::LaintarDale, LocationName::MarkarthSide, LocationName::NeugradWatch, LocationName::NimaltenCity, LocationName::NorthKeep, LocationName::Oakwood, LocationName::PargranVillage, LocationName::ReichCorigate, LocationName::Riften, LocationName::Riverwood, LocationName::Snowhawk, LocationName::Solitude, LocationName::Stonehills, LocationName::Sunguard, LocationName::VernimWood, LocationName::Whiterun, LocationName::Windhelm, LocationName::Winterhold } }, // Summerset Isle. { ProvinceName::SummersetIsle, { LocationName::Alinor, LocationName::ArchenGrangrove, LocationName::BelportRun, LocationName::Cloudrest, LocationName::CorgradWastes, LocationName::Dusk, LocationName::EbonStadmont, LocationName::FirstHold, LocationName::Glenview, LocationName::GraddunSpring, LocationName::HollyFalls, LocationName::KarndarWatch, LocationName::KarnwastenMoor, LocationName::KingsHaven, LocationName::Lillandril, LocationName::MarbrukBrook, LocationName::MarnorKeep, LocationName::OldFalls, LocationName::Riverfield, LocationName::Riverwatch, LocationName::Rosefield, LocationName::SeaKeep, LocationName::Shimmerene, LocationName::SilsailenPoint, LocationName::SilverWood, LocationName::Skywatch, LocationName::Sunhold, LocationName::ThorheimGuard, LocationName::VulkhelGuard, LocationName::WastenCoridale, LocationName::WestGuard, LocationName::WhiteGuard } }, // Valenwood. { ProvinceName::Valenwood, { LocationName::ArchenCormount, LocationName::Arenthia, LocationName::BlackPark, LocationName::CoriSilmoor, LocationName::CormeirSpring, LocationName::EagleVale, LocationName::EbonRo, LocationName::Eldenroot, LocationName::EmperorsRun, LocationName::Falinesti, LocationName::Glenpoint2, LocationName::GreenHall, LocationName::Greenheart, LocationName::Haven, LocationName::HeimdarCity, LocationName::KarthdarSquare, LocationName::Longhaven, LocationName::Longvale, LocationName::LynpanMarch, LocationName::MarbrukField, LocationName::MeadowRun, LocationName::Moonmont, LocationName::Silvenar, LocationName::Southpoint, LocationName::StoneFell, LocationName::Stonesquare, LocationName::TarlainHeights, LocationName::ThormarKeep, LocationName::VulkwastenWood, LocationName::VullainHaven, LocationName::WastenBrukbrook, LocationName::Woodhearth } } }; const auto ProvinceMainQuestDungeons = std::map<ProvinceName, std::vector<LocationName>> { // Black Marsh. { ProvinceName::BlackMarsh, { LocationName::VaultsOfGemin, LocationName::Murkwood } }, // Elsweyr. { ProvinceName::Elsweyr, { LocationName::TempleOfAgamanus, LocationName::HallsOfColossus } }, // Hammerfell. { ProvinceName::Hammerfell, { LocationName::Stonekeep, LocationName::FangLair } }, // High Rock. { ProvinceName::HighRock, { LocationName::MinesOfKhuras, LocationName::CryptOfHearts } }, // Imperial Province. The dungeons are the starting area, and the palace is the end game. { ProvinceName::ImperialProvince, { LocationName::ImperialDungeons, LocationName::ImperialPalace } }, // Morrowind. { ProvinceName::Morrowind, { LocationName::BlackGate, LocationName::DagothUr } }, // Skyrim. { ProvinceName::Skyrim, { LocationName::FortressOfIce, LocationName::Labyrinthian } }, // Summerset Isle. { ProvinceName::SummersetIsle, { LocationName::TempleOfMadGod, LocationName::CrystalTower } }, // Valenwood. { ProvinceName::Valenwood, { LocationName::SelenesWeb, LocationName::EldenGrove } } }; const auto ProvinceDisplayNames = std::map<ProvinceName, std::string> { { ProvinceName::BlackMarsh, "Black Marsh" }, { ProvinceName::Elsweyr, "Elsweyr" }, { ProvinceName::Hammerfell, "Hammerfell" }, { ProvinceName::HighRock, "High Rock" }, { ProvinceName::ImperialProvince, "Imperial Province" }, { ProvinceName::Morrowind, "Morrowind" }, { ProvinceName::Skyrim, "Skyrim" }, { ProvinceName::SummersetIsle, "Summerset Isle" }, { ProvinceName::Valenwood, "Valenwood" } }; const auto ProvinceSingularRaceNames = std::map<ProvinceName, std::string> { { ProvinceName::BlackMarsh, "Argonian" }, { ProvinceName::Elsweyr, "Khajiit" }, { ProvinceName::Hammerfell, "Redguard" }, { ProvinceName::HighRock, "Breton" }, { ProvinceName::ImperialProvince, "Imperial" }, { ProvinceName::Morrowind, "Dark Elf" }, { ProvinceName::Skyrim, "Nord" }, { ProvinceName::SummersetIsle, "High Elf" }, { ProvinceName::Valenwood, "Wood Elf" } }; const auto ProvincePluralRaceNames = std::map<ProvinceName, std::string> { { ProvinceName::BlackMarsh, "Argonians" }, { ProvinceName::Elsweyr, "Khajiit" }, { ProvinceName::Hammerfell, "Redguards" }, { ProvinceName::HighRock, "Bretons" }, { ProvinceName::ImperialProvince, "Imperials" }, { ProvinceName::Morrowind, "Dark Elves" }, { ProvinceName::Skyrim, "Nords" }, { ProvinceName::SummersetIsle, "High Elves" }, { ProvinceName::Valenwood, "Wood Elves" } }; Province::Province(ProvinceName provinceName) { this->provinceName = provinceName; } Province::~Province() { } std::vector<ProvinceName> Province::getAllProvinceNames() { auto provinces = std::vector<ProvinceName>(); for (auto &item : ProvinceCivilizations) { provinces.push_back(item.first); } assert(provinces.size() > 0); return provinces; } const ProvinceName &Province::getProvinceName() const { return this->provinceName; } std::string Province::toString() const { auto displayName = ProvinceDisplayNames.at(this->getProvinceName()); assert(displayName.size() > 0); return displayName; } std::string Province::getRaceName(bool plural) const { auto raceName = plural ? ProvincePluralRaceNames.at(this->getProvinceName()) : ProvinceSingularRaceNames.at(this->getProvinceName()); assert(raceName.size() > 0); return raceName; } std::vector<LocationName> Province::getCivilizations() const { auto civilizations = ProvinceCivilizations.at(this->getProvinceName()); assert(civilizations.size() > 0); return civilizations; } std::vector<LocationName> Province::getMainQuestDungeons() const { auto dungeons = ProvinceMainQuestDungeons.at(this->getProvinceName()); assert(dungeons.size() > 0); return dungeons; }
aaf92c58bb3fbfc999c16b73ee0b1c42d505b019
785df77400157c058a934069298568e47950e40b
/include/TModel_Surface.hxx
e3411b6975e7db4c41bdf55bc5e5da399df411f1
[]
no_license
amir5200fx/Tonb
cb108de09bf59c5c7e139435e0be008a888d99d5
ed679923dc4b2e69b12ffe621fc5a6c8e3652465
refs/heads/master
2023-08-31T08:59:00.366903
2023-08-31T07:42:24
2023-08-31T07:42:24
230,028,961
9
3
null
2023-07-20T16:53:31
2019-12-25T02:29:32
C++
UTF-8
C++
false
false
2,815
hxx
TModel_Surface.hxx
#pragma once #ifndef _TModel_Surface_Header #define _TModel_Surface_Header #include <Entity2d_Box.hxx> #include <Entity3d_Box.hxx> #include <TModel_Entity.hxx> #include <GModel_SurfaceGeometry.hxx> #include <TModel_FaceOrientation.hxx> #include <vector> #include <memory> namespace tnbLib { // Forward Declarations class TModel_Wire; class TModel_Edge; class Entity2d_Metric1; class TModel_Surface : public TModel_Entity , public GModel_SurfaceGeometry { typedef std::shared_ptr<TModel_Wire> outer; typedef std::shared_ptr<std::vector<std::shared_ptr<TModel_Wire>>> inner; /*Private Data*/ outer theOuter_; inner theInner_; Entity2d_Box theParaBoundingBox_; TModel_FaceOrientation theOrientation_; //- Private functions and operators TnbCad_EXPORT Entity2d_Box CalcParametricBoundingBox() const; //TnbCad_EXPORT Entity3d_Box CalcBoundingBox() const; TNB_SERIALIZATION(TnbCad_EXPORT); protected: //- default constructor TModel_Surface() {} public: // constructors TnbCad_EXPORT TModel_Surface ( const std::shared_ptr<Cad_GeomSurface>& theGeometry, const outer& theOuter, const inner& theInner = nullptr ); TnbCad_EXPORT TModel_Surface ( std::shared_ptr<Cad_GeomSurface>&& theGeometry, outer&& theOuter, inner&& theInner ); TnbCad_EXPORT TModel_Surface ( const Standard_Integer theIndex, const std::shared_ptr<Cad_GeomSurface>& theGeometry, const outer& theOuter, const inner& theInner = nullptr ); TnbCad_EXPORT TModel_Surface ( const Standard_Integer theIndex, const word& theName, const std::shared_ptr<Cad_GeomSurface>& theGeometry, const outer& theOuter, const inner& theInner = nullptr ); //- public functions and operators TnbCad_EXPORT Standard_Integer NbHoles() const; TnbCad_EXPORT Standard_Boolean HasHole() const; TnbCad_EXPORT Standard_Boolean IsClamped() const; const auto& Outer() const { return theOuter_; } const auto& Inner() const { return theInner_; } const auto& ParaBoundingBox() const { return theParaBoundingBox_; } TnbCad_EXPORT std::vector<std::shared_ptr<TModel_Edge>> RetrieveEdges() const; TnbCad_EXPORT Entity2d_Metric1 MetricAt ( const Pnt2d& theCoord ) const; TnbCad_EXPORT Pnt3d Value ( const Pnt2d& theCoord ) const; TnbCad_EXPORT void ExportPlaneCurvesToPlt(OFstream& File) const; //- static functions and operators static Standard_Boolean IsLess ( const std::shared_ptr<TModel_Surface>& theS0, const std::shared_ptr<TModel_Surface>& theS1 ) { Debug_Null_Pointer(theS0); Debug_Null_Pointer(theS1); return theS0->Index() < theS1->Index(); } }; } BOOST_CLASS_EXPORT_KEY(tnbLib::TModel_Surface); #endif // !_TModel_Surface_Header
9dfaf7a493ff8bbe8f13f7ed5c6f676550cf81bf
29ea99fef222cd816098044917037d5e221c3c6e
/common/Matrix4.cpp
ae27739c35d86150c3b9cf2b16f4be794416483f
[]
no_license
msavva/stanford-scene-database
6178bade67a2aff4b8766b28b3fa4bad2fb05719
a077ae379b8e5de63f78f58c4a9d7f06f8152f67
refs/heads/master
2016-09-05T11:11:28.901823
2015-03-26T05:25:01
2015-03-26T05:25:01
32,908,918
17
9
null
null
null
null
UTF-8
C++
false
false
5,767
cpp
Matrix4.cpp
// // Matrix4.cpp // #include "Matrix4.h" Matrix4 Matrix4::Transpose() const { Matrix4 Result; for(unsigned int i = 0; i < 4; i++) { for(unsigned int i2 = 0; i2 < 4; i2++) { Result[i2][i] = _entries[i][i2]; } } return Result; } Matrix4 Matrix4::Identity() { Matrix4 Result; for(unsigned int i = 0; i < 4; i++) { for(unsigned int i2 = 0; i2 < 4; i2++) { if(i == i2) { Result[i][i2] = 1.0f; } else { Result[i][i2] = 0.0f; } } } return Result; } Matrix4 Matrix4::Camera(const Vec3f &Eye, const Vec3f &_Look, const Vec3f &_Up, const Vec3f &_Right) { Vec3f Look = Vec3f::Normalize(_Look); Vec3f Up = Vec3f::Normalize(_Up); Vec3f Right = Vec3f::Normalize(_Right); Matrix4 Result; Result[0][0] = Right.x; Result[1][0] = Right.y; Result[2][0] = Right.z; Result[3][0] = -Vec3f::Dot(Right, Eye); Result[0][1] = Up.x; Result[1][1] = Up.y; Result[2][1] = Up.z; Result[3][1] = -Vec3f::Dot(Up, Eye); Result[0][2] = Look.x; Result[1][2] = Look.y; Result[2][2] = Look.z; Result[3][2] = -Vec3f::Dot(Look, Eye); Result[0][3] = 0.0f; Result[1][3] = 0.0f; Result[2][3] = 0.0f; Result[3][3] = 1.0f; return Result; } Matrix4 Matrix4::PerspectiveFov(float FOV, float Aspect, float ZNear, float ZFar) { float Width = 1.0f / tanf(FOV/2.0f), Height = Aspect / tanf(FOV/2.0f); Matrix4 Result; Result[0][0] = Width; Result[1][0] = 0.0f; Result[2][0] = 0.0f; Result[3][0] = 0.0f; Result[0][1] = 0.0f; Result[1][1] = Height; Result[2][1] = 0.0f; Result[3][1] = 0.0f; Result[0][2] = 0.0f; Result[1][2] = 0.0f; Result[2][2] = ZFar / (ZNear - ZFar); Result[3][2] = ZFar * ZNear / (ZNear - ZFar); Result[0][3] = 0.0f; Result[1][3] = 0.0f; Result[2][3] = -1.0f; Result[3][3] = 0.0f; return Result; } Matrix4 Matrix4::Rotation(const Vec3f &Axis, float Angle) { float c = cosf(Angle); float s = sinf(Angle); float t = 1.0f - c; Vec3f NormalizedAxis = Vec3f::Normalize(Axis); float x = NormalizedAxis.x; float y = NormalizedAxis.y; float z = NormalizedAxis.z; Matrix4 Result; Result[0][0] = 1 + t*(x*x-1); Result[0][1] = z*s+t*x*y; Result[0][2] = -y*s+t*x*z; Result[0][3] = 0.0f; Result[1][0] = -z*s+t*x*y; Result[1][1] = 1+t*(y*y-1); Result[1][2] = x*s+t*y*z; Result[1][3] = 0.0f; Result[2][0] = y*s+t*x*z; Result[2][1] = -x*s+t*y*z; Result[2][2] = 1+t*(z*z-1); Result[2][3] = 0.0f; Result[3][0] = 0.0f; Result[3][1] = 0.0f; Result[3][2] = 0.0f; Result[3][3] = 1.0f; return Result; } Matrix4 Matrix4::Rotation(const Vec3f &Axis, float Angle, const Vec3f &Center) { return Translation(-Center) * Rotation(Axis, Angle) * Translation(Center); } Matrix4 Matrix4::RotationX(float Theta) { float CosT = cosf(Theta); float SinT = sinf(Theta); Matrix4 Result = Identity(); Result[1][1] = CosT; Result[1][2] = SinT; Result[2][1] = -SinT; Result[2][2] = CosT; return Result; } Matrix4 Matrix4::RotationY(float Theta) { float CosT = cosf(Theta); float SinT = sinf(Theta); Matrix4 Result = Identity(); Result[0][0] = CosT; Result[0][2] = SinT; Result[2][0] = -SinT; Result[2][2] = CosT; return Result; } Matrix4 Matrix4::RotationZ(float Theta) { float CosT = cosf(Theta); float SinT = sinf(Theta); Matrix4 Result = Identity(); Result[0][0] = CosT; Result[0][1] = SinT; Result[1][0] = -SinT; Result[1][1] = CosT; return Result; } Matrix4 Matrix4::Scaling(const Vec3f &ScaleFactors) { Matrix4 Result; Result[0][0] = ScaleFactors.x; Result[1][0] = 0.0f; Result[2][0] = 0.0f; Result[3][0] = 0.0f; Result[0][1] = 0.0f; Result[1][1] = ScaleFactors.y; Result[2][1] = 0.0f; Result[3][1] = 0.0f; Result[0][2] = 0.0f; Result[1][2] = 0.0f; Result[2][2] = ScaleFactors.z; Result[3][2] = 0.0f; Result[0][3] = 0.0f; Result[1][3] = 0.0f; Result[2][3] = 0.0f; Result[3][3] = 1.0f; return Result; } Matrix4 Matrix4::Translation(const Vec3f &Pos) { Matrix4 Result; Result[0][0] = 1.0f; Result[1][0] = 0.0f; Result[2][0] = 0.0f; Result[3][0] = Pos.x; Result[0][1] = 0.0f; Result[1][1] = 1.0f; Result[2][1] = 0.0f; Result[3][1] = Pos.y; Result[0][2] = 0.0f; Result[1][2] = 0.0f; Result[2][2] = 1.0f; Result[3][2] = Pos.z; Result[0][3] = 0.0f; Result[1][3] = 0.0f; Result[2][3] = 0.0f; Result[3][3] = 1.0f; return Result; } Matrix4 operator * (const Matrix4 &Left, const Matrix4 &Right) { Matrix4 Result; for(unsigned int i = 0; i < 4; i++) { for(unsigned int i2 = 0; i2 < 4; i2++) { float Total = 0.0f; for(unsigned int i3 = 0; i3 < 4; i3++) { Total += Left[i][i3] * Right[i3][i2]; } Result[i][i2] = Total; } } return Result; } Matrix4 Matrix4::BoundingBoxToUnitSphere(const Vec3f &boundingBoxMin, const Vec3f &boundingBoxMax) { Vec3f center = (boundingBoxMin + boundingBoxMax) * 0.5f; Vec3f variance = boundingBoxMax - center; return Matrix4::Translation(-center) * Matrix4::Scaling(1.0f / variance.Length()); }
7417abc49c9c50f1f7953011e8ea00b9bdeb5879
e29c1365c01a693c5fff034eb17c6080372fdb31
/scripts/scripthelperbb_stub.cpp
f2ae323104f9e56861e46cb6f7dea4fa5160a522
[]
no_license
ClaudiuHNS/OGLeague2
574968399bf1141bb03c978ceadbb0c1d8f6b580
e974de5a2e15d6b403fbf2aa739de25dedad36df
refs/heads/master
2020-05-24T17:54:23.468796
2017-06-08T01:32:59
2017-06-08T01:32:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
18,253
cpp
scripthelperbb_stub.cpp
#include "scripthelperbb.h" void ScriptHelperBB::BBSetCameraPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIsPathable(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBTeleportToKeyLocation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBTeleportToPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetNearestPassablePosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForEachUnitInTargetAreaAddBuff(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForEachUnitInTargetArea(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBForEachUnitInTargetAreaRandom(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBForNClosestUnitsInTargetArea(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBForEachChampion(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBForEachUnitInTargetRectangle(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBGetRandomPointInAreaUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetRandomPointInAreaPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetUnitPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetSkinID(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPointByUnitFacingOffset(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetMissilePosFromID(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBModifyPosition(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncFlatPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncFlatPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPercentPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPercentPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPermanentFlatPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPermanentFlatPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPermanentPercentPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPermanentPercentPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetFlatPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetFlatPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPercentPARPoolMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPercentPARRegenMod(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyDamage(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyStun(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyPacified(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyNet(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyDisarm(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplySuppression(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplySilence(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyRoot(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyTaunt(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyCharm(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyFear(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplySleep(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyNearSight(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyNoRender(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyForceRenderParticles(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyStealth(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyRevealSpecificUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplySuppressCallForHelp(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyCallForHelpSuppresser(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyIgnoreCallForHelp(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncPAR(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncGold(sol::stack_object passThrough, sol::stack_object perBlockParams) { } float ScriptHelperBB::BBLuaGetGold(sol::stack_object passThrough, sol::stack_object perBlockParams) { return 0; } void ScriptHelperBB::BBIncHealth(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBDrawDefaultHitEffects(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetCastSpellTargetPos(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBAdjustCastInfoCenterAOE(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpawnPet(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpawnMinion(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBCloneUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBCloneUnitPet(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncExp(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForEachPetInTarget(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBSetDodgePiercing(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetStateDisableAmbientGold(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetStunned(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetPacified(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetNetted(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetDisarmed(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetRooted(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetSuppressCallForHelp(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetCallForHelpSuppresser(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBRedirectGold(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetTargetingType(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetSpell(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetBuffCasterUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetTriggerUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBInvalidateUnit(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForceDead(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetIgnoreCallForHelp(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellBuffAdd(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBTimeChannelTickExecute(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBBreak(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBSpellBuffRemoveType(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellBuffRemove(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellBuffRemoveCurrent(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellBuffClear(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetBuffRemainingDuration(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellEffectCreate(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellEffectRemove(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBStopChanneling(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBStopMove(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBMove(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBMoveAway(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBDestroyMissile(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBDestroyMissileForTarget(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSpellCast(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBCancelAutoAttack(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBOverrideAutoAttack(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBRemoveOverrideAutoAttack(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetAutoAttackTargetingFlags(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetPetReturnRadius(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBCreateItem(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSealSpellSlot(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetBuffToolTipVar(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetSpellToolTipVar(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBLinkVisibility(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIsInBrush(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetHeightDifference(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBRemoveLinkVisibility(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetNearSight(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetNearSight(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPetOwner(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBStartTrackingCollisions(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBStopMoveBlock(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBStopCurrentOverrideAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPreloadCharacter(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPreloadParticle(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPreloadSpell(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBDispellPositiveBuffs(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBDispellNegativeBuffs(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBRemovePerceptionBubble(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBAddUnitPerceptionBubble(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBAddPosPerceptionBubble(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPlayAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBUnlockAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetNumberOfHeroesOnTeam(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBCanSeeTarget(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPushCharacterData(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetSlotSpellCooldownTimeVer2(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPopCharacterData(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPopAllCharacterData(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPushCharacterFade(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPopCharacterFade(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForEachPointAroundCircle(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBSetCharacterDebugRadius(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBForEachPointOnLine(sol::stack_object passThrough, sol::stack_object perBlockParams, sol::stack_object subBlocks) { } void ScriptHelperBB::BBFaceDirection(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetGameTime(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetChampionBySkinName(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBPauseAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBEnableWallOfGrassTracking(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBShowHealthBar(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBClearOverrideAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBOverrideAnimation(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncSpellLevel(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetPARCostInc(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPARCostInc(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetPARMultiplicativeCostInc(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetPARMultiplicativeCostInc(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSetInCastTable(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBOverrideCastRange(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetCastRange(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBAddDebugCircle(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBRemoveDebugCircle(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBModifyDebugCircleRadius(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBModifyDebugCircleColor(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBApplyAssistMarker(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBSkipNextAutoAttack(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBIncMaxHealth(sol::stack_object passThrough, sol::stack_object perBlockParams) { } void ScriptHelperBB::BBGetIsZombie(sol::stack_object passThrough, sol::stack_object perBlockParams) { } float ScriptHelperBB::GetCFParam(sol::stack_object passThrough, sol::stack_object perBlockParams, std::string parramName) { return 0; }
b7a69817695ce3916bc1010b9bc8691cda72d42c
091afb7001e86146209397ea362da70ffd63a916
/inst/include/nt2/include/functions/negs.hpp
2ef68c2814605c4ece541826c3f2e0ffed8c9b9e
[]
no_license
RcppCore/RcppNT2
f156b58c08863243f259d1e609c9a7a8cf669990
cd7e548daa2d679b6ccebe19744b9a36f1e9139c
refs/heads/master
2021-01-10T16:15:16.861239
2016-02-02T22:18:25
2016-02-02T22:18:25
50,460,545
15
1
null
2019-11-15T22:08:50
2016-01-26T21:29:34
C++
UTF-8
C++
false
false
158
hpp
negs.hpp
#ifndef NT2_INCLUDE_FUNCTIONS_NEGS_HPP_INCLUDED #define NT2_INCLUDE_FUNCTIONS_NEGS_HPP_INCLUDED #include <nt2/arithmetic/include/functions/negs.hpp> #endif
52bdf2149ccf3bc3b0d1623f68b7d46461055b0c
a20685c0761987c4c1b4d75402f782d560d9e39b
/src/DAQ.hh
6e5f14cb46f6515499fe24a910a32c63de9c87a7
[ "MIT" ]
permissive
satriabismiansyah/quadcopter_controller
74a872b0e6821a479ad3bdc6cfafb524d583c1c5
bf0246f5bd6523a74f9e8dbf3522d6a525170166
refs/heads/master
2020-12-30T11:40:10.953606
2016-06-19T06:35:55
2016-06-19T06:35:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
59
hh
DAQ.hh
// place holder for DAQ module. Currently not part of build
1264a62d2b4fa5d4da6f3810b6cc5006f6817a34
40582adf8e069725d919874ff119b565478aec9c
/twil/ui/window.hpp
8c448efc6dcab7c037d61ee19c10bf2e0af113d4
[]
no_license
det/Twil
010de64e5fc33b2acae3c2a2bdc1b024ff91a91c
75bc2c2a120e32c28a72ee15dec6388434723644
refs/heads/master
2021-01-10T20:05:14.347599
2014-12-30T22:03:00
2014-12-30T22:03:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,199
hpp
window.hpp
#pragma once #include "window.hxx" #include "application.hxx" #include "container.hpp" #include "keyboard_handler.hpp" #include "mouse_handler.hpp" #include "unit.hpp" #include "window_base.hpp" #include "window_handler.hpp" #include "data/event.hpp" namespace twil { namespace ui { using namespace udl; /// \brief A resizable window that holds a single child widget. /// \param T The type of the child widget. template <typename T> class Window : public Container, public KeyboardHandler, public MouseHandler, public WindowHandler, public WindowBase { Window(Window const &) = delete; Window & operator =(Window const &) = delete; private: T child_; bool CheckChildContains(Dip x, Dip y) { return x >= 0 && x <= child_.GetRight() && y >= 0 && y <= child_.GetTop(); } public: // Window data::Event<> Deleted; Window(platform::Application & application) : WindowBase{application, 320_dip, 240_dip} {} void Init() { SetKeyboardHandler(*this); SetMouseHandler(*this); SetWindowHandler(*this); child_.Init(*this, *this); } /// \returns The width. Dip GetWidth() const { return child_.GetRight(); } /// \returns The height. Dip GetHeight() const { return child_.GetTop(); } /// \returns A reference to the child. T & GetChild() { return child_; } /// \returns A const reference to the child. T const & GetChild() const { return child_; } // WindowHandler void HandleWindowExposed() final { GetThemeManager().MarkNeedsRedraw(); } void HandleWindowDeleted() final { Deleted(); } void HandleWindowResizeWidth(Dip width) final { child_.ResizeWidth(width - GetWidth()); } void HandleWindowResizeHeight(Dip height) final { child_.ResizeHeight(height - GetHeight()); } // Container void ReleaseMouse(Dip, Dip) final { SetMouseHandler(*this); } void HandleChildBaseWidthChanged(void *) final {} void HandleChildBaseHeightChanged(void *) final {} // MouseHandler void HandleMouseMotion(Dip x, Dip y) final { if (CheckChildContains(x, y)) child_.DelegateMouse(x, y); } }; } }
05a47beeadd2c791172baf1217fcbad2fdd1d483
da7558c9ca8756d9482f462b27613d1054117468
/Atividade 04 algoritmo (Lista 05).cpp
25673584c6a6c55f003149d471ab174fb863cf2a
[ "Apache-2.0" ]
permissive
CaioL-ops/studious1
95f73c1f84780302f929c51b77af53323e0cf232
91a018b55b87edae65e703e09ba79f67c4d6b0c0
refs/heads/main
2023-06-02T00:19:49.514951
2021-06-15T20:00:29
2021-06-15T20:00:29
377,279,512
0
0
null
null
null
null
MacCentralEurope
C++
false
false
998
cpp
Atividade 04 algoritmo (Lista 05).cpp
#include<stdio.h> #include<stdlib.h> #include<locale.h> int main(){ setlocale(LC_ALL, "Portuguese"); printf("==============================\n"); printf("A empresa da cidade de můveis:\n"); printf("==============================\n"); int můveis; do{ printf("Os můveis disponibilizados por essa empresa s„o:\n"); scanf("%d", &můveis); fflush(stdin); if((můveis == 1) && (můveis == 1)) printf("Cadeira\n"); else if((můveis == 2) && (můveis == 2)) printf("Mesa de computador\n"); else if((můveis == 3) && (můveis == 3)) printf("Estante de livros\n"); else if((můveis == 4) && (můveis == 4)) printf("Mesa de impressora\n"); else if((můveis == 5) && (můveis == 5)) printf("Estante de CD\n"); }while((můveis > 1) && (můveis < 5)); if(strlen(můveis) < 1){ printf("O můvel ainda n„o estŠ disponŪvel!\n"); } else{ printf("Sucesso!\n"); } system("PAUSE"); system("cls"); return 0; }
36e659e93aa2a79abc24f1050d4a7c137df1ff0d
636394fc4967123179dd2dc935f437e735c6d38a
/export/windows/obj/src/flixel/system/ui/FlxSystemButton.cpp
8ceee43fd98ab4a9f6edc7b221baa98559c46afe
[ "MIT" ]
permissive
arturspon/zombie-killer
865e6ef3bdb47408f9bfea9016f61bf19b2559c7
07848c5006916e9079537a3d703ffe3740afaa5a
refs/heads/master
2021-07-18T16:44:26.556092
2019-05-04T13:56:08
2019-05-04T13:56:08
181,805,463
0
1
MIT
2021-07-16T23:18:46
2019-04-17T02:50:10
C++
UTF-8
C++
false
true
15,556
cpp
FlxSystemButton.cpp
// Generated by Haxe 4.0.0-rc.2+77068e10c #include <hxcpp.h> #ifndef INCLUDED_flixel_system_debug_DebuggerUtil #include <flixel/system/debug/DebuggerUtil.h> #endif #ifndef INCLUDED_flixel_system_ui_FlxSystemButton #include <flixel/system/ui/FlxSystemButton.h> #endif #ifndef INCLUDED_flixel_util_IFlxDestroyable #include <flixel/util/IFlxDestroyable.h> #endif #ifndef INCLUDED_openfl_display_Bitmap #include <openfl/display/Bitmap.h> #endif #ifndef INCLUDED_openfl_display_BitmapData #include <openfl/display/BitmapData.h> #endif #ifndef INCLUDED_openfl_display_DisplayObject #include <openfl/display/DisplayObject.h> #endif #ifndef INCLUDED_openfl_display_DisplayObjectContainer #include <openfl/display/DisplayObjectContainer.h> #endif #ifndef INCLUDED_openfl_display_IBitmapDrawable #include <openfl/display/IBitmapDrawable.h> #endif #ifndef INCLUDED_openfl_display_InteractiveObject #include <openfl/display/InteractiveObject.h> #endif #ifndef INCLUDED_openfl_display_Sprite #include <openfl/display/Sprite.h> #endif #ifndef INCLUDED_openfl_events_Event #include <openfl/events/Event.h> #endif #ifndef INCLUDED_openfl_events_EventDispatcher #include <openfl/events/EventDispatcher.h> #endif #ifndef INCLUDED_openfl_events_IEventDispatcher #include <openfl/events/IEventDispatcher.h> #endif #ifndef INCLUDED_openfl_events_MouseEvent #include <openfl/events/MouseEvent.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_9eece198099547db_14_new,"flixel.system.ui.FlxSystemButton","new",0x605e3518,"flixel.system.ui.FlxSystemButton.new","flixel/system/ui/FlxSystemButton.hx",14,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_77_changeIcon,"flixel.system.ui.FlxSystemButton","changeIcon",0x06083f51,"flixel.system.ui.FlxSystemButton.changeIcon","flixel/system/ui/FlxSystemButton.hx",77,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_87_destroy,"flixel.system.ui.FlxSystemButton","destroy",0x554d4db2,"flixel.system.ui.FlxSystemButton.destroy","flixel/system/ui/FlxSystemButton.hx",87,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_98_onMouseUp,"flixel.system.ui.FlxSystemButton","onMouseUp",0xe1786b39,"flixel.system.ui.FlxSystemButton.onMouseUp","flixel/system/ui/FlxSystemButton.hx",98,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_110_onMouseDown,"flixel.system.ui.FlxSystemButton","onMouseDown",0x759770c0,"flixel.system.ui.FlxSystemButton.onMouseDown","flixel/system/ui/FlxSystemButton.hx",110,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_115_onMouseOver,"flixel.system.ui.FlxSystemButton","onMouseOver",0x7ce209b2,"flixel.system.ui.FlxSystemButton.onMouseOver","flixel/system/ui/FlxSystemButton.hx",115,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_121_onMouseOut,"flixel.system.ui.FlxSystemButton","onMouseOut",0x67e0ddf0,"flixel.system.ui.FlxSystemButton.onMouseOut","flixel/system/ui/FlxSystemButton.hx",121,0x167fa379) HX_LOCAL_STACK_FRAME(_hx_pos_9eece198099547db_126_set_toggled,"flixel.system.ui.FlxSystemButton","set_toggled",0xc0fd262b,"flixel.system.ui.FlxSystemButton.set_toggled","flixel/system/ui/FlxSystemButton.hx",126,0x167fa379) namespace flixel{ namespace _hx_system{ namespace ui{ void FlxSystemButton_obj::__construct( ::openfl::display::BitmapData Icon, ::Dynamic UpHandler,hx::Null< bool > __o_ToggleMode){ bool ToggleMode = __o_ToggleMode.Default(false); HX_STACKFRAME(&_hx_pos_9eece198099547db_14_new) HXLINE( 42) this->_mouseDown = false; HXLINE( 33) this->toggled = false; HXLINE( 29) this->toggleMode = false; HXLINE( 24) this->enabled = true; HXLINE( 53) super::__construct(); HXLINE( 55) if (hx::IsNotNull( Icon )) { HXLINE( 56) this->changeIcon(Icon); } HXLINE( 62) this->upHandler = UpHandler; HXLINE( 63) this->toggleMode = ToggleMode; HXLINE( 65) this->addEventListener(HX_("mouseUp",e0,f3,72,c0),this->onMouseUp_dyn(),null(),null(),null()); HXLINE( 66) this->addEventListener(HX_("mouseDown",27,b1,c2,ee),this->onMouseDown_dyn(),null(),null(),null()); HXLINE( 67) this->addEventListener(HX_("mouseOut",69,e7,1d,a4),this->onMouseOut_dyn(),null(),null(),null()); HXLINE( 68) this->addEventListener(HX_("mouseOver",19,4a,0d,f6),this->onMouseOver_dyn(),null(),null(),null()); } Dynamic FlxSystemButton_obj::__CreateEmpty() { return new FlxSystemButton_obj; } void *FlxSystemButton_obj::_hx_vtable = 0; Dynamic FlxSystemButton_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< FlxSystemButton_obj > _hx_result = new FlxSystemButton_obj(); _hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]); return _hx_result; } bool FlxSystemButton_obj::_hx_isInstanceOf(int inClassId) { if (inClassId<=(int)0x19c29573) { if (inClassId<=(int)0x17120186) { if (inClassId<=(int)0x0ddfced7) { return inClassId==(int)0x00000001 || inClassId==(int)0x0ddfced7; } else { return inClassId==(int)0x17120186; } } else { return inClassId==(int)0x19c29573; } } else { if (inClassId<=(int)0x2ecd4574) { return inClassId==(int)0x1b123bf8 || inClassId==(int)0x2ecd4574; } else { return inClassId==(int)0x3f2b00af; } } } static ::flixel::util::IFlxDestroyable_obj _hx_flixel_system_ui_FlxSystemButton__hx_flixel_util_IFlxDestroyable= { ( void (hx::Object::*)())&::flixel::_hx_system::ui::FlxSystemButton_obj::destroy, }; void *FlxSystemButton_obj::_hx_getInterface(int inHash) { switch(inHash) { case (int)0xd4fe2fcd: return &_hx_flixel_system_ui_FlxSystemButton__hx_flixel_util_IFlxDestroyable; } return super::_hx_getInterface(inHash); } void FlxSystemButton_obj::changeIcon( ::openfl::display::BitmapData Icon){ HX_GC_STACKFRAME(&_hx_pos_9eece198099547db_77_changeIcon) HXLINE( 78) if (hx::IsNotNull( this->_icon )) { HXLINE( 79) this->removeChild(this->_icon); } HXLINE( 81) ::flixel::_hx_system::debug::DebuggerUtil_obj::fixSize(Icon); HXLINE( 82) this->_icon = ::openfl::display::Bitmap_obj::__alloc( HX_CTX ,Icon,null(),null()); HXLINE( 83) this->addChild(this->_icon); } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,changeIcon,(void)) void FlxSystemButton_obj::destroy(){ HX_STACKFRAME(&_hx_pos_9eece198099547db_87_destroy) HXLINE( 88) this->removeEventListener(HX_("mouseUp",e0,f3,72,c0),this->onMouseUp_dyn(),null()); HXLINE( 89) this->removeEventListener(HX_("mouseDown",27,b1,c2,ee),this->onMouseDown_dyn(),null()); HXLINE( 90) this->removeEventListener(HX_("mouseOut",69,e7,1d,a4),this->onMouseOut_dyn(),null()); HXLINE( 91) this->removeEventListener(HX_("mouseOver",19,4a,0d,f6),this->onMouseOver_dyn(),null()); HXLINE( 92) this->_icon = null(); HXLINE( 93) this->upHandler = null(); } HX_DEFINE_DYNAMIC_FUNC0(FlxSystemButton_obj,destroy,(void)) void FlxSystemButton_obj::onMouseUp( ::openfl::events::MouseEvent _){ HX_STACKFRAME(&_hx_pos_9eece198099547db_98_onMouseUp) HXDLIN( 98) bool _hx_tmp; HXDLIN( 98) if (this->enabled) { HXDLIN( 98) _hx_tmp = this->_mouseDown; } else { HXDLIN( 98) _hx_tmp = false; } HXDLIN( 98) if (_hx_tmp) { HXLINE( 100) this->set_toggled(!(this->toggled)); HXLINE( 101) this->_mouseDown = false; HXLINE( 103) if (hx::IsNotNull( this->upHandler )) { HXLINE( 104) this->upHandler(); } } } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,onMouseUp,(void)) void FlxSystemButton_obj::onMouseDown( ::openfl::events::MouseEvent _){ HX_STACKFRAME(&_hx_pos_9eece198099547db_110_onMouseDown) HXDLIN( 110) this->_mouseDown = true; } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,onMouseDown,(void)) void FlxSystemButton_obj::onMouseOver( ::openfl::events::MouseEvent _){ HX_STACKFRAME(&_hx_pos_9eece198099547db_115_onMouseOver) HXDLIN( 115) if (this->enabled) { HXLINE( 116) ::flixel::_hx_system::ui::FlxSystemButton _g = hx::ObjectPtr<OBJ_>(this); HXDLIN( 116) _g->set_alpha((_g->get_alpha() - ((Float)0.2))); } } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,onMouseOver,(void)) void FlxSystemButton_obj::onMouseOut( ::openfl::events::MouseEvent _){ HX_STACKFRAME(&_hx_pos_9eece198099547db_121_onMouseOut) HXDLIN( 121) if (this->enabled) { HXLINE( 122) ::flixel::_hx_system::ui::FlxSystemButton _g = hx::ObjectPtr<OBJ_>(this); HXDLIN( 122) _g->set_alpha((_g->get_alpha() + ((Float)0.2))); } } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,onMouseOut,(void)) bool FlxSystemButton_obj::set_toggled(bool Value){ HX_STACKFRAME(&_hx_pos_9eece198099547db_126_set_toggled) HXLINE( 127) if (this->toggleMode) { HXLINE( 128) Float _hx_tmp; HXDLIN( 128) if (Value) { HXLINE( 128) _hx_tmp = ((Float)0.3); } else { HXLINE( 128) _hx_tmp = ( (Float)(1) ); } HXDLIN( 128) this->set_alpha(_hx_tmp); } HXLINE( 129) return (this->toggled = Value); } HX_DEFINE_DYNAMIC_FUNC1(FlxSystemButton_obj,set_toggled,return ) hx::ObjectPtr< FlxSystemButton_obj > FlxSystemButton_obj::__new( ::openfl::display::BitmapData Icon, ::Dynamic UpHandler,hx::Null< bool > __o_ToggleMode) { hx::ObjectPtr< FlxSystemButton_obj > __this = new FlxSystemButton_obj(); __this->__construct(Icon,UpHandler,__o_ToggleMode); return __this; } hx::ObjectPtr< FlxSystemButton_obj > FlxSystemButton_obj::__alloc(hx::Ctx *_hx_ctx, ::openfl::display::BitmapData Icon, ::Dynamic UpHandler,hx::Null< bool > __o_ToggleMode) { FlxSystemButton_obj *__this = (FlxSystemButton_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(FlxSystemButton_obj), true, "flixel.system.ui.FlxSystemButton")); *(void **)__this = FlxSystemButton_obj::_hx_vtable; __this->__construct(Icon,UpHandler,__o_ToggleMode); return __this; } FlxSystemButton_obj::FlxSystemButton_obj() { } void FlxSystemButton_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(FlxSystemButton); HX_MARK_MEMBER_NAME(upHandler,"upHandler"); HX_MARK_MEMBER_NAME(enabled,"enabled"); HX_MARK_MEMBER_NAME(toggleMode,"toggleMode"); HX_MARK_MEMBER_NAME(toggled,"toggled"); HX_MARK_MEMBER_NAME(_icon,"_icon"); HX_MARK_MEMBER_NAME(_mouseDown,"_mouseDown"); ::openfl::display::Sprite_obj::__Mark(HX_MARK_ARG); HX_MARK_END_CLASS(); } void FlxSystemButton_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(upHandler,"upHandler"); HX_VISIT_MEMBER_NAME(enabled,"enabled"); HX_VISIT_MEMBER_NAME(toggleMode,"toggleMode"); HX_VISIT_MEMBER_NAME(toggled,"toggled"); HX_VISIT_MEMBER_NAME(_icon,"_icon"); HX_VISIT_MEMBER_NAME(_mouseDown,"_mouseDown"); ::openfl::display::Sprite_obj::__Visit(HX_VISIT_ARG); } hx::Val FlxSystemButton_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp) { switch(inName.length) { case 5: if (HX_FIELD_EQ(inName,"_icon") ) { return hx::Val( _icon ); } break; case 7: if (HX_FIELD_EQ(inName,"enabled") ) { return hx::Val( enabled ); } if (HX_FIELD_EQ(inName,"toggled") ) { return hx::Val( toggled ); } if (HX_FIELD_EQ(inName,"destroy") ) { return hx::Val( destroy_dyn() ); } break; case 9: if (HX_FIELD_EQ(inName,"upHandler") ) { return hx::Val( upHandler ); } if (HX_FIELD_EQ(inName,"onMouseUp") ) { return hx::Val( onMouseUp_dyn() ); } break; case 10: if (HX_FIELD_EQ(inName,"toggleMode") ) { return hx::Val( toggleMode ); } if (HX_FIELD_EQ(inName,"_mouseDown") ) { return hx::Val( _mouseDown ); } if (HX_FIELD_EQ(inName,"changeIcon") ) { return hx::Val( changeIcon_dyn() ); } if (HX_FIELD_EQ(inName,"onMouseOut") ) { return hx::Val( onMouseOut_dyn() ); } break; case 11: if (HX_FIELD_EQ(inName,"onMouseDown") ) { return hx::Val( onMouseDown_dyn() ); } if (HX_FIELD_EQ(inName,"onMouseOver") ) { return hx::Val( onMouseOver_dyn() ); } if (HX_FIELD_EQ(inName,"set_toggled") ) { return hx::Val( set_toggled_dyn() ); } } return super::__Field(inName,inCallProp); } hx::Val FlxSystemButton_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp) { switch(inName.length) { case 5: if (HX_FIELD_EQ(inName,"_icon") ) { _icon=inValue.Cast< ::openfl::display::Bitmap >(); return inValue; } break; case 7: if (HX_FIELD_EQ(inName,"enabled") ) { enabled=inValue.Cast< bool >(); return inValue; } if (HX_FIELD_EQ(inName,"toggled") ) { if (inCallProp == hx::paccAlways) return hx::Val( set_toggled(inValue.Cast< bool >()) );toggled=inValue.Cast< bool >(); return inValue; } break; case 9: if (HX_FIELD_EQ(inName,"upHandler") ) { upHandler=inValue.Cast< ::Dynamic >(); return inValue; } break; case 10: if (HX_FIELD_EQ(inName,"toggleMode") ) { toggleMode=inValue.Cast< bool >(); return inValue; } if (HX_FIELD_EQ(inName,"_mouseDown") ) { _mouseDown=inValue.Cast< bool >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void FlxSystemButton_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_("enabled",81,04,31,7e)); outFields->push(HX_("toggleMode",17,19,17,e0)); outFields->push(HX_("toggled",50,e2,03,cc)); outFields->push(HX_("_icon",58,03,c4,f8)); outFields->push(HX_("_mouseDown",e8,2c,65,4a)); super::__GetFields(outFields); }; #ifdef HXCPP_SCRIPTABLE static hx::StorageInfo FlxSystemButton_obj_sMemberStorageInfo[] = { {hx::fsObject /* ::Dynamic */ ,(int)offsetof(FlxSystemButton_obj,upHandler),HX_("upHandler",af,c2,8d,81)}, {hx::fsBool,(int)offsetof(FlxSystemButton_obj,enabled),HX_("enabled",81,04,31,7e)}, {hx::fsBool,(int)offsetof(FlxSystemButton_obj,toggleMode),HX_("toggleMode",17,19,17,e0)}, {hx::fsBool,(int)offsetof(FlxSystemButton_obj,toggled),HX_("toggled",50,e2,03,cc)}, {hx::fsObject /* ::openfl::display::Bitmap */ ,(int)offsetof(FlxSystemButton_obj,_icon),HX_("_icon",58,03,c4,f8)}, {hx::fsBool,(int)offsetof(FlxSystemButton_obj,_mouseDown),HX_("_mouseDown",e8,2c,65,4a)}, { hx::fsUnknown, 0, null()} }; static hx::StaticInfo *FlxSystemButton_obj_sStaticStorageInfo = 0; #endif static ::String FlxSystemButton_obj_sMemberFields[] = { HX_("upHandler",af,c2,8d,81), HX_("enabled",81,04,31,7e), HX_("toggleMode",17,19,17,e0), HX_("toggled",50,e2,03,cc), HX_("_icon",58,03,c4,f8), HX_("_mouseDown",e8,2c,65,4a), HX_("changeIcon",09,1d,fc,1f), HX_("destroy",fa,2c,86,24), HX_("onMouseUp",81,ac,1d,98), HX_("onMouseDown",08,94,05,11), HX_("onMouseOver",fa,2c,50,18), HX_("onMouseOut",a8,bb,d4,81), HX_("set_toggled",73,49,6b,5c), ::String(null()) }; hx::Class FlxSystemButton_obj::__mClass; void FlxSystemButton_obj::__register() { FlxSystemButton_obj _hx_dummy; FlxSystemButton_obj::_hx_vtable = *(void **)&_hx_dummy; hx::Static(__mClass) = new hx::Class_obj(); __mClass->mName = HX_("flixel.system.ui.FlxSystemButton",26,09,30,6d); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField; __mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = hx::Class_obj::dupFunctions(FlxSystemButton_obj_sMemberFields); __mClass->mCanCast = hx::TCanCast< FlxSystemButton_obj >; #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = FlxSystemButton_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = FlxSystemButton_obj_sStaticStorageInfo; #endif hx::_hx_RegisterClass(__mClass->mName, __mClass); } } // end namespace flixel } // end namespace system } // end namespace ui
5562087837fc5bc625b66b02e12f810c50b76a6e
c4031d170e03b61e81eacedd4e9d21d0718eab7d
/Trabalho_01/Grafo.cpp
acf1971a24525b6b39888c5af7d516a1edaf0dc2
[]
no_license
giselegs/Trabalho_de_Grafos
96889ef53da46f7a38d8af7725606400c80dd263
152570a1de3a33c2078f94774ff2329eae2ef461
refs/heads/master
2021-01-16T21:29:49.939978
2015-03-29T19:52:49
2015-03-29T19:52:49
33,086,051
0
0
null
2015-03-29T19:31:42
2015-03-29T19:31:41
null
UTF-8
C++
false
false
3,507
cpp
Grafo.cpp
#include "Grafo.h" #include <iostream> using namespace std; /* -------------------------------------------- CLASSE GRAFO ------------------------------------------ */ // Encontra um Vertice com a id dada Vertice* Grafo::encontraNo(int id) { Vertice *v = this->primeiroNo(); while (v) { if (v->pegaId()==id) return v; else v = this->proximoNo(); } return 0; } // Adiciona um Vertice com a id dada caso não exista, caso exista retorna ponteiro para o Vertice Vertice* Grafo::adicionaNo(int id) { Vertice *v = this->encontraNo(id); // Tenta encontrar Vertice com essa id if (!v) { // Se não encontrou, cria... v = new Vertice(id); this->adicionaItem(v); } return v; } // Adiciona uma aresta em id_origem, apontando para id_destino void Grafo::adicionaAresta(int id_origem, int id_destino) { // Procura nós destino e origem, se não existirem, cria! Vertice *vd = this->adicionaNo(id_destino); Vertice *vo = this->adicionaNo(id_origem); vo->adicionaAresta(id_destino); vd->adicionaAresta(id_origem); } // Procura o Vertice que possui a id dada, e deleta caso encontre void Grafo::removeNo(int id) { // encontra nó com vertice id, se não encontrar retorna Vertice *v = this->encontraNo(id), *v2; if (!v) return; cout << "REMOVENDO NO " << id << " DE GRAU " << v->pegaGrau() << endl; // Percorre todos os vertices... v2 = this->primeiroNo(); while (v2) { if (v2->removeAresta(id)) { cout << "REMOVI " << id << " em " << v2->pegaId() << endl; v->removeAresta(v2->pegaId()); cout << "REMOVI " << v2->pegaId() << " em " << id << endl; cout << id << " AGORA POSSUI " << v->pegaGrau() << " ARESTAS." << endl; break; } else v2 = this->proximoNo(); } this->deletaItem(v); } // Remove uma aresta entre dois vertices void Grafo::removeAresta(int id_no1, int id_no2) { // Encontra os Vertices com as id's dadas, no grafo Vertice *v1 = this->encontraNo(id_no1); Vertice *v2 = this->encontraNo(id_no2); Aresta *a1, *a2; if (!(v1&&v2)) return; a1 = v1->primeiraAresta(); a2 = v2->primeiraAresta(); // Remove aresta para 2, no nó 1 while (a1) { if (a1->pegaIdDestino()==id_no2) { v1->removeAresta(); break; } else a1 = v1->proximaAresta(); } // Remove aresta para 1, no nó 2 while (a2) { if (a2->pegaIdDestino()==id_no1) { v2->removeAresta(); break; } else a2 = v2->proximaAresta(); } } // Grau de um nó int Grafo::grauNo(int id) { Vertice *v = this->encontraNo(id); if (v) return v->pegaGrau(); else return 0; } /* ---------------------------------------- CLASSE VERTICE --------------------------------------- */ // Encontra uma Aresta para id no Vertice v Aresta* Vertice::encontraAresta(int id) { Aresta *a = this->primeiraAresta(); while (a) { if (a->pegaIdDestino()==id) return a; else a = this->proximaAresta(); } return 0; } // Remove aresta do Vertice se encontra-la bool Vertice::removeAresta(int id) { Aresta *a = this->encontraAresta(id); if (a) { Lista::deletaItem(a); return true; } else return false; }; /* ---------------------------------------- CLASSE ARESTA ---------------------------------------- */
f22a87d0c7433c2923e13f8cc93cfb8db75926e7
26108c7f4d30c0489d488138abb22e9c3488eee0
/Software/PumaTx/test/i2cTools.cpp
c966dfade34931827032edbd80aaf828f03b1292
[ "MIT" ]
permissive
PumaFPV/PumaTX
dd938a65675f75b70cefcd2c4f7893dc55465bce
e716a49c5652ca587b173e480a373764c4acaa45
refs/heads/master
2023-03-11T23:14:07.547692
2023-03-08T09:29:52
2023-03-08T09:29:52
187,527,135
4
0
null
null
null
null
UTF-8
C++
false
false
1,367
cpp
i2cTools.cpp
void scannerMlx() { debug.println (); Serial.println ("I2C scanner. Scanning ..."); byte count = 0; mlxI2C.begin(); for (byte i = 8; i < 120; i++) { mlxI2C.beginTransmission (i); // Begin I2C transmission Address (i) if (mlxI2C.endTransmission () == 0) // Receive 0 = success (ACK response) { Serial.print ("Found address: "); Serial.print (i, DEC); Serial.print (" (0x"); Serial.print (i, HEX); // PCF8574 7 bit address Serial.println (")"); count++; } } Serial.print ("Found "); Serial.print (count, DEC); // numbers of devices Serial.println (" device(s) on mlxI2C"); } void scannerDisplay() { Serial.println (); Serial.println ("I2C scanner. Scanning ..."); byte count = 0; displayI2C.begin(); for (byte i = 8; i < 120; i++) { displayI2C.beginTransmission (i); // Begin I2C transmission Address (i) if (displayI2C.endTransmission () == 0) // Receive 0 = success (ACK response) { Serial.print ("Found address: "); Serial.print (i, DEC); Serial.print (" (0x"); Serial.print (i, HEX); // PCF8574 7 bit address Serial.println (")"); count++; } } Serial.print ("Found "); Serial.print (count, DEC); // numbers of devices Serial.println (" device(s) on displayI2C"); }
2e5775599ff6775ed974e126935f171bfafdd0a1
7a61a36876492ccf24ae8b79746588fd41807d7a
/DSP/extensions/FunctionLib/tests/TTCircularEaseOutFunction.test.cpp
b32862f98773f600a63c7581f762e6cc78f6d831
[ "BSD-3-Clause" ]
permissive
EQ4/JamomaCore
9b5924e5ef71626338060cd86d79494de85e524a
6599423c33fbdf1ecc8e52592b36499f31338276
refs/heads/master
2021-01-15T14:59:04.391384
2015-11-19T16:23:34
2015-11-19T16:23:34
46,895,884
1
0
null
2015-11-26T00:51:17
2015-11-26T00:51:17
null
UTF-8
C++
false
false
8,860
cpp
TTCircularEaseOutFunction.test.cpp
/** @file * * @ingroup dspFunctionLib * * @brief Unit tests for the Jamoma DSP #TTCircularEaseOutFunction of the #TTFunctionLib * * @details Derived from Sam Hocevar's public domain C/C++ implementation of Robert Penner easing functions * * @authors Trond Lossius * * @copyright Copyright © 2014 by Trond Lossius @n * This code is licensed under the terms of the "New BSD License" @n * http://creativecommons.org/licenses/BSD/ */ #include "TTFunction.h" #include "TTCircularEaseOutFunction.h" /* * coefficients calculated in Octave using: x = linspace(0,1,128); y = sqrt((2 - x) .* x); printf("%.16e,\n", y) plot (x,y) */ TTErr TTCircularEaseOutFunction::test(TTValue& returnedTestInfo) { int errorCount = 0; int testAssertionCount = 0; int badSampleCount = 0; TTAudioSignalPtr input = NULL; TTAudioSignalPtr output = NULL; int N = 128; TTValue v; TTFloat64 inputSignal1[128] = { 0.0000000000000000e+00, 7.8740157480314960e-03, 1.5748031496062992e-02, 2.3622047244094488e-02, 3.1496062992125984e-02, 3.9370078740157480e-02, 4.7244094488188976e-02, 5.5118110236220472e-02, 6.2992125984251968e-02, 7.0866141732283464e-02, 7.8740157480314960e-02, 8.6614173228346455e-02, 9.4488188976377951e-02, 1.0236220472440945e-01, 1.1023622047244094e-01, 1.1811023622047244e-01, 1.2598425196850394e-01, 1.3385826771653542e-01, 1.4173228346456693e-01, 1.4960629921259844e-01, 1.5748031496062992e-01, 1.6535433070866140e-01, 1.7322834645669291e-01, 1.8110236220472442e-01, 1.8897637795275590e-01, 1.9685039370078738e-01, 2.0472440944881889e-01, 2.1259842519685040e-01, 2.2047244094488189e-01, 2.2834645669291337e-01, 2.3622047244094488e-01, 2.4409448818897639e-01, 2.5196850393700787e-01, 2.5984251968503935e-01, 2.6771653543307083e-01, 2.7559055118110237e-01, 2.8346456692913385e-01, 2.9133858267716534e-01, 2.9921259842519687e-01, 3.0708661417322836e-01, 3.1496062992125984e-01, 3.2283464566929132e-01, 3.3070866141732280e-01, 3.3858267716535434e-01, 3.4645669291338582e-01, 3.5433070866141730e-01, 3.6220472440944884e-01, 3.7007874015748032e-01, 3.7795275590551181e-01, 3.8582677165354329e-01, 3.9370078740157477e-01, 4.0157480314960631e-01, 4.0944881889763779e-01, 4.1732283464566927e-01, 4.2519685039370081e-01, 4.3307086614173229e-01, 4.4094488188976377e-01, 4.4881889763779526e-01, 4.5669291338582674e-01, 4.6456692913385828e-01, 4.7244094488188976e-01, 4.8031496062992124e-01, 4.8818897637795278e-01, 4.9606299212598426e-01, 5.0393700787401574e-01, 5.1181102362204722e-01, 5.1968503937007871e-01, 5.2755905511811019e-01, 5.3543307086614167e-01, 5.4330708661417326e-01, 5.5118110236220474e-01, 5.5905511811023623e-01, 5.6692913385826771e-01, 5.7480314960629919e-01, 5.8267716535433067e-01, 5.9055118110236215e-01, 5.9842519685039375e-01, 6.0629921259842523e-01, 6.1417322834645671e-01, 6.2204724409448819e-01, 6.2992125984251968e-01, 6.3779527559055116e-01, 6.4566929133858264e-01, 6.5354330708661412e-01, 6.6141732283464560e-01, 6.6929133858267720e-01, 6.7716535433070868e-01, 6.8503937007874016e-01, 6.9291338582677164e-01, 7.0078740157480313e-01, 7.0866141732283461e-01, 7.1653543307086609e-01, 7.2440944881889768e-01, 7.3228346456692917e-01, 7.4015748031496065e-01, 7.4803149606299213e-01, 7.5590551181102361e-01, 7.6377952755905509e-01, 7.7165354330708658e-01, 7.7952755905511806e-01, 7.8740157480314954e-01, 7.9527559055118113e-01, 8.0314960629921262e-01, 8.1102362204724410e-01, 8.1889763779527558e-01, 8.2677165354330706e-01, 8.3464566929133854e-01, 8.4251968503937003e-01, 8.5039370078740162e-01, 8.5826771653543310e-01, 8.6614173228346458e-01, 8.7401574803149606e-01, 8.8188976377952755e-01, 8.8976377952755903e-01, 8.9763779527559051e-01, 9.0551181102362199e-01, 9.1338582677165348e-01, 9.2125984251968507e-01, 9.2913385826771655e-01, 9.3700787401574803e-01, 9.4488188976377951e-01, 9.5275590551181100e-01, 9.6062992125984248e-01, 9.6850393700787396e-01, 9.7637795275590555e-01, 9.8425196850393704e-01, 9.9212598425196852e-01, 1.0000000000000000e+00 }; TTFloat64 expectedSignal1[128] = { 0.0000000000000000e+00, 1.2524388756367610e-01, 1.7677121512317834e-01, 2.1606964935452352e-01, 2.4899824095814010e-01, 2.7783116164373783e-01, 3.0373703184229778e-01, 3.2741138403609121e-01, 3.4930823642234382e-01, 3.6974352383854792e-01, 3.8894768614892816e-01, 4.0709499069954530e-01, 4.2432105780495999e-01, 4.4073392028839459e-01, 4.5642131484061221e-01, 4.7145566550937645e-01, 4.8589759434776419e-01, 4.9979845897821573e-01, 5.1320222793071890e-01, 5.2614689361537370e-01, 5.3866555516494707e-01, 5.5078726086685548e-01, 5.6253767242493713e-01, 5.7393959509108416e-01, 5.8501340538603808e-01, 5.9577739962289589e-01, 6.0624808046992618e-01, 6.1644039452125454e-01, 6.2636793075122332e-01, 6.3604308745683114e-01, 6.4547721360375421e-01, 6.5468072922128573e-01, 6.6366322852615678e-01, 6.7243356871426985e-01, 6.8099994678550080e-01, 6.8936996631845004e-01, 6.9755069575905826e-01, 7.0554871950701692e-01, 7.1337018286022835e-01, 7.2102083169772524e-01, 7.2850604763592930e-01, 7.3583087927469160e-01, 7.4300007005262669e-01, 7.5001808315149976e-01, 7.5688912382349072e-01, 7.6361715946037545e-01, 7.7020593767795176e-01, 7.7665900265072108e-01, 7.8297970989959387e-01, 7.8917123970814540e-01, 7.9523660931984863e-01, 8.0117868404905013e-01, 8.0700018742166657e-01, 8.1270371044719725e-01, 8.1829172011128060e-01, 8.2376656716737073e-01, 8.2913049329689337e-01, 8.3438563769925034e-01, 8.3953404316610014e-01, 8.4457766168828619e-01, 8.4951835963849931e-01, 8.5435792256812348e-01, 8.5909805965265240e-01, 8.6374040781648287e-01, 8.6828653556473834e-01, 8.7273794654698422e-01, 8.7709608287523277e-01, 8.8136232821644189e-01, 8.8553801067776683e-01, 8.8962440550108890e-01, 8.9362273758180211e-01, 8.9753418382545314e-01, 9.0135987535459439e-01, 9.0510089957710071e-01, 9.0875830212620523e-01, 9.1233308868161167e-01, 9.1582622668023383e-01, 9.1923864692438817e-01, 9.2257124509460220e-01, 9.2582488317361000e-01, 9.2900039078756702e-01, 9.3209856647002476e-01, 9.3512017885376519e-01, 9.3806596779518647e-01, 9.4093664543556887e-01, 9.4373289720320885e-01, 9.4645538276010821e-01, 9.4910473689662045e-01, 9.5168157037720480e-01, 9.5418647074020169e-01, 9.5662000305432682e-01, 9.5898271063438811e-01, 9.6127511571854196e-01, 9.6349772010924517e-01, 9.6565100577989871e-01, 9.6773543544904150e-01, 9.6975145312382061e-01, 9.7169948461434141e-01, 9.7357993802039255e-01, 9.7539320419193287e-01, 9.7713965716463436e-01, 9.7881965457168485e-01, 9.8043353803296895e-01, 9.8198163352267298e-01, 9.8346425171628327e-01, 9.8488168831788114e-01, 9.8623422436857799e-01, 9.8752212653686955e-01, 9.8874564739163850e-01, 9.8990502565848182e-01, 9.9100048645998573e-01, 9.9203224154053404e-01, 9.9300048947618558e-01, 9.9390541587011760e-01, 9.9474719353409491e-01, 9.9552598265638670e-01, 9.9624193095651714e-01, 9.9689517382720594e-01, 9.9748583446381822e-01, 9.9801402398161920e-01, 9.9847984152109337e-01, 9.9888337434156493e-01, 9.9922469790332624e-01, 9.9950387593845580e-01, 9.9972096051048054e-01, 9.9987599206301525e-01, 9.9996899945748308e-01, 1.0000000000000000e+00 }; // setup Function this->setAttributeValue(TT("function"), TT("easeOutCircular")); // create 1 channel audio signal objects TTObjectBaseInstantiate(kTTSym_audiosignal, &input, 1); TTObjectBaseInstantiate(kTTSym_audiosignal, &output, 1); input->allocWithVectorSize(N); output->allocWithVectorSize(N); // create a signal to be transformed and then process it) input->clear(); for (int i=0; i<N; i++) input->mSampleVectors[0][i] = inputSignal1[i]; this->process(input, output); // now test the output for (int n=0; n<N; n++) { TTBoolean result = !TTTestFloatEquivalence(output->mSampleVectors[0][n], expectedSignal1[n]); badSampleCount += result; if (result) TTTestLog("BAD SAMPLE @ n=%i ( value=%.10f expected=%.10f )", n, output->mSampleVectors[0][n], expectedSignal1[n]); } TTTestAssertion("Produces correct function values", badSampleCount == 0, testAssertionCount, errorCount); if (badSampleCount) TTTestLog("badSampleCount is %i", badSampleCount); TTObjectBaseRelease(&input); TTObjectBaseRelease(&output); // wrap up test results and pass back to whoever called test return TTTestFinish(testAssertionCount, errorCount, returnedTestInfo); }
46401293acec29f3af2d2c01042c88fe46c36def
73625210a42669b35ca0842c97b56ec0f75f7508
/COD4/NinjaPlugin/Globals.h
891dd49d9ce0816b3baf8078b435a7f1e2154890
[]
no_license
CWest07/All-COD-Xbox-360-Cheat
d0dc29bf2337a06acf4f93efb178aabf6c6996d4
1325dd6e7ad291ba65b360f1fe16b2b72bb816c4
refs/heads/main
2023-08-22T13:12:34.732700
2021-09-27T19:44:40
2021-09-27T19:44:40
411,021,084
0
1
null
null
null
null
UTF-8
C++
false
false
9,894
h
Globals.h
#include "stdafx.h" #include "Config.h" #include "Utilities.h" #include "XBLSMsgr.h" #include "MemoryManager.h" #pragma once #pragma warning (disable: 4244) #pragma warning (disable: 4826) #define docryptoBypass(a,b) ((QWORD)((QWORD)( ((QWORD)0x710e7a17d2b42090) * ((QWORD)(b)) ) ^ (~(QWORD)(a)))) #if defined(PATCH_SVR) #define getCryptedCoD(a) ((DWORD)(docryptoBypass(a, (QWORD)((((DWORD*)&a - (DWORD*)&CheatPatches->CoDPatches.NetInfoAddress)))))) #define getCryptedCoDQWORD(a) ((QWORD)(docryptoBypass(a, (QWORD)((((DWORD*)&a - (DWORD*)&CheatPatches->CoDPatches.NetInfoAddress)))))) #else #define getCryptedCoD(a) (a) #define getCryptedCoDQWORD(a) (a) #endif struct CoDPatches_s { //structs DWORD NetInfoAddress; DWORD CG_Pointer; DWORD CGS_Pointer; DWORD CG_S_XY; DWORD EntitiesPointer; DWORD FOVStruct; DWORD LocalClientPointer; DWORD NetSpeedOffset; DWORD NoFlinchOffset; DWORD NoRecoilOffset; DWORD NoSwayOffset1, NoSwayOffset2; DWORD OurXuidOffset; DWORD OverheadNamesFriendlyOffset, OverheadNamesEnemyOffset; DWORD PrestigeOffset; DWORD RankXPOffset; DWORD ScreenPlacement; DWORD ServerIdOffset; DWORD ThirdPersonStruct; DWORD WallhackOffset; DWORD WeaponDefOffset; DWORD ActiveActionOffset; //functions DWORD AimAssist_GetTagPos; DWORD AngleNormalize360; DWORD BG_GetSpreadForWeapon; DWORD BG_GetWeaponDef; DWORD Cbuf_AddText; DWORD CG_BulletHitEvent; DWORD CG_CalcNamePosition; DWORD CG_CompassCalcDimensions; DWORD CG_CompassUpYawVector; DWORD CG_DObjGetWorldTagPos; DWORD CG_DrawGrenadePointer; DWORD CG_DrawRotatedPic; DWORD CG_DrawRotatedPicPhysical; DWORD CG_DrawRotatedPicPhysical2; DWORD CG_EntityEvent; DWORD CG_GetEntityBModelBounds; DWORD CG_GetPlayerViewOrigin; DWORD CG_GetWeaponIndexForName; DWORD CG_LocationalTrace; DWORD CG_WorldPosToCompass; DWORD CL_AllLocalClientsDisconnected; DWORD CL_DrawTextPhysical; DWORD CL_ReadyToSendPacket; DWORD CL_SetStance; DWORD Com_GetClientDObj; DWORD DB_FindXAssetHeader; DWORD DrawEngineRadar; DWORD DrawEnemies; DWORD DrawFriendlies; DWORD DrawVehicles; DWORD DrawPlayer; DWORD Dvar_GetBool; DWORD Dvar_GetString; DWORD DynEntCl_DynEntImpactEvent; DWORD FireBulletPenetrate; DWORD G_GetWeaponHitLocationMultiplier; DWORD Menu_PaintAll; DWORD PlayLocalSoundAliasByName; DWORD RandomBulletDir; DWORD R_AddCmdDrawStretchPic; DWORD R_EndFrame; DWORD R_NormalizedTextScale; DWORD R_TextWidth; DWORD SL_GetString; DWORD XInputGetState; DWORD RB_SetTessTechnique; DWORD LiveStorage_SetStat; DWORD VA; DWORD CG_CompassDrawPlayerMap; DWORD UI_DrawHandlePic; DWORD CL_GetScreenDimensions; }; // Structs for cheats/security offsets namespace Security { class CoDCheats { public: BOOL fHasPatches; CoDPatches_s CoDPatches; HRESULT setAddresses(PVOID data) { #ifndef PATCH_SVR //structs CoDPatches.CG_Pointer = 0x823F28A0; CoDPatches.CGS_Pointer = 0x823F2890; CoDPatches.CG_S_XY = 0x82431240; CoDPatches.EntitiesPointer = 0x823F5054; CoDPatches.FOVStruct = 0x823F5784; CoDPatches.LocalClientPointer = 0x82435AB8; CoDPatches.OverheadNamesFriendlyOffset = 0x8231D498; CoDPatches.OverheadNamesEnemyOffset = 0x8231D1F0; CoDPatches.PrestigeOffset = 0x84C5EF27; CoDPatches.RankXPOffset = 0x84C5EEC0; CoDPatches.NetInfoAddress = 0x8243D700; CoDPatches.NetSpeedOffset = 0x84C252FC; CoDPatches.NoFlinchOffset = 0x8235E284; CoDPatches.NoRecoilOffset = 0x822EDAA0; CoDPatches.NoSwayOffset1 = 0x8233169C; CoDPatches.NoSwayOffset2 = 0x8233048C; CoDPatches.OurXuidOffset = 0x84C24BB8; CoDPatches.ScreenPlacement = 0x8246f308; CoDPatches.ServerIdOffset = 0x84B3DDD4; CoDPatches.ThirdPersonStruct = 0x823F27A0; CoDPatches.WallhackOffset = 0x82303ECC; CoDPatches.WeaponDefOffset = 0x823B9F60; CoDPatches.ActiveActionOffset = 0x8243038C; //functions CoDPatches.CG_BulletHitEvent = 0x822EC2F8; CoDPatches.CG_DObjGetWorldTagPos = 0x82316088; CoDPatches.CG_DrawGrenadePointer = 0x8231EC68; CoDPatches.CG_DrawRotatedPicPhysical = 0x8246F308; CoDPatches.CG_EntityEvent = 0x82312C08; CoDPatches.CL_AllLocalClientsDisconnected = 0x822CF5C0; CoDPatches.CL_ReadyToSendPacket = 0x822D86A0; CoDPatches.DynEntCl_DynEntImpactEvent = 0x8229C6B0; CoDPatches.Menu_PaintAll = 0x821E7558; CoDPatches.PlayLocalSoundAliasByName = 0x82173FA0; CoDPatches.R_EndFrame = 0x8216CAA0; CoDPatches.XInputGetState = 0x821033A0; CoDPatches.RB_SetTessTechnique = 0x821511F8; CoDPatches.LiveStorage_SetStat = 0x821A29D8; CoDPatches.VA = 0x821CD858; CoDPatches.Dvar_GetBool = 0x821D15D8; CoDPatches.Dvar_GetString = 0x821D1478; CoDPatches.CG_LocationalTrace = 0x8235DAA0; CoDPatches.DB_FindXAssetHeader = 0x822A0298; CoDPatches.R_TextWidth = 0x8216EB00; CoDPatches.CL_DrawTextPhysical = 0x8216C0B8; CoDPatches.R_AddCmdDrawStretchPic = 0x8216BAE8; CoDPatches.CG_DrawRotatedPicPhysical2 = 0x82318A88; CoDPatches.BG_GetWeaponDef = 0x8232B5D8; CoDPatches.Cbuf_AddText = 0x82239FD0; CoDPatches.SL_GetString = 0x8221F798; CoDPatches.Com_GetClientDObj = 0x82308E20; CoDPatches.CG_GetWeaponIndexForName = 0x82332FA0; CoDPatches.CG_GetEntityBModelBounds = 0x82161610; CoDPatches.R_NormalizedTextScale = 0x8216E690; CoDPatches.CG_CalcNamePosition = 0x8231B4B0; CoDPatches.CL_SetStance = 0x8225DDA0; CoDPatches.G_GetWeaponHitLocationMultiplier = 0x822C11D8; CoDPatches.AimAssist_GetTagPos = 0x82348D30; CoDPatches.CG_GetPlayerViewOrigin = 0x822EB5E8; CoDPatches.BG_GetSpreadForWeapon = 0x8232C478; CoDPatches.RandomBulletDir = 0x822E9758; /*CoDPatches.DrawEngineRadar = 0x823DAA88; CoDPatches.DrawEnemies = 0x823DD880; CoDPatches.DrawFriendlies = 0x823DCFD8; CoDPatches.DrawVehicles = 0x823DE768; CoDPatches.DrawPlayer = 0x823DF5C8;*/ CoDPatches.CG_WorldPosToCompass = 0x82323740; CoDPatches.CG_CompassCalcDimensions = 0x82323E28; CoDPatches.CG_DrawRotatedPic = 0x821C8030; CoDPatches.CG_CompassUpYawVector = 0x82323B78; CoDPatches.AngleNormalize360 = 0x8248C310; CoDPatches.FireBulletPenetrate = 0x822EC4D0; CoDPatches.CG_CompassDrawPlayerMap = 0x823250B8; CoDPatches.UI_DrawHandlePic = 0x82318C10; CoDPatches.CL_GetScreenDimensions = 0x824303A0; fHasPatches = TRUE; #else if (data) { memcpy(&CoDPatches, data, sizeof(CoDPatches_s)); fHasPatches = TRUE; return ERROR_SUCCESS; } else { fHasPatches = FALSE; return E_FAIL; } #endif return ERROR_SUCCESS; } VOID DissolveAddresses() { if (fHasPatches) { XeCryptRandom((PBYTE)&CoDPatches, sizeof(CoDPatches_s)); fHasPatches = FALSE; } } CoDCheats() { fHasPatches = FALSE; #ifndef PATCH_SVR setAddresses(NULL); fHasPatches = TRUE; #endif } ~CoDCheats() { } #ifdef DUMP_BINS #define getCryptedCoDDump(a) ((DWORD)(docryptoBypass(a, (QWORD)((((DWORD*)&a - (DWORD*)&CoDPatches.NetInfoAddress)))))) BYTE dumpBuf[sizeof(CoDPatches_s)]; VOID dumpPatchBinary(char* file = NULL) { if (!fHasPatches) return; memset(dumpBuf, 0, sizeof(CoDPatches_s)); DWORD *fileBuff = (DWORD*)&dumpBuf[0]; for (BYTE i = 0; i * 4 < sizeof(CoDPatches_s); i += 1) fileBuff[i] = (DWORD)getCryptedCoDDump(*(DWORD*)((DWORD)&CoDPatches + ((DWORD)i * 4))); printf("Writing main patches to binary!\n"); binToFile(file != NULL ? file : "XBLIVE:\\COD4.bin", dumpBuf, sizeof(CoDPatches_s)); } #endif }; } namespace std { class _CritSections{ private: public: _CritSections(){ RtlInitializeCriticalSectionAndSpinCount(&ninjaMsg, MAX_SPINS_DEFAULT); RtlInitializeCriticalSectionAndSpinCount(&xuiNotify, MAX_SPINS_DEFAULT); serverIsLocked = FALSE; } CRITICAL_SECTION ninjaMsg; CRITICAL_SECTION xuiNotify; BOOL serverIsLocked; //Context Locks void getServerAccess(); void releaseServer(); }; // Handles to modules class _Handle{ private: public: HANDLE hME; HANDLE hXam; HANDLE hKernel; HANDLE hXBDM; }; // Useful Booleans class _Flags{ private: public: BOOL isInit; BOOL isPlatinum; BOOL isBypassed; BOOL canConnect; BOOL isAuthed; BOOL ValidCPUKey; BOOL hasHVAccess; BOOL isExpired; BOOL shouldDisconnect; BOOL hasNotified; BOOL hasUpdated; }; } #pragma warning (disable : 4067) #pragma warning (disable : 4005) #if defined(DUMP_BINS) || defined(PATCH_SVR) #define getCryptedGTAV(a) ((DWORD)0xFFFFFFFF&(docryptoBypass(a, (QWORD)((((DWORD*)&a - (DWORD*)&GTAVBypassOffsets_g.GTAVOffsets->mainhook2)))))) #define getCryptedGTAVQWORD(a) ((QWORD)(docryptoBypass(a, (QWORD)((((DWORD*)&a - (DWORD*)&GTAVBypassOffsets_g.GTAVOffsets->mainhook2)))))) #else #define getCryptedGTAV(a) (a) #define getCryptedGTAVQWORD(a) (a) #endif #pragma warning (default : 4067) #pragma warning (default : 4005) //namespace globals { #ifndef GLOBALS_ #define GLOBALS_ extern _Flags Flags; //extern _HVSpoof HVSpoof; extern _Handle Handle; extern _CritSections CritSections; extern Security::CoDCheats *CheatPatches; extern MemoryManager *mManager; extern XBLSMsgr Messenger; extern BOOL isDevkit; extern bool haveLaunchPath; extern std::string launchDevice; extern std::string launchFile; extern std::string launchXEX; extern std::string launchPath; extern DWORD numSharedOnKV; #endif static void initVariables(){ Flags.isPlatinum = FALSE; Flags.isBypassed = FALSE; Flags.canConnect = FALSE; Flags.isAuthed = FALSE; Flags.ValidCPUKey = FALSE; Flags.isExpired = FALSE; Flags.shouldDisconnect = FALSE; Flags.hasNotified = FALSE; Flags.hasUpdated = FALSE; } typedef enum _XBOX_GAMES : DWORD { COD_AW = 0xEF896027, COD_BLACK_OPS_2 = 0xEF8961F0, COD_GHOSTS = 0xEF8961CF, DESTINY = 0xEF8961CB, COD_BLACK_OPS_3 = 0xEF89602E, DASHBOARD = 0x51216EE2, GTAV = 0xFA8B6194 } XBOX_GAMES; static DWORD inline fixDWORD(DWORD input) { input ^= 0xAEDF6933; return input; }
8c81ce865f4b81d32ec6f140ad03521e9accd60c
89ce354ba63c4d8e02415a06cef5d642baff3ccb
/linux/rpmspec/rpmbuild/BUILD/myapp-1.0/main.cpp
5893743b270d4e71e402a3749c138a0f4a9476f7
[]
no_license
hempnall/codeexamples
d71b152c4cf2329b6909f10adf1df9b8986589e4
3374ffc7ecff7f8da3fede4e6e0884e6d73219e6
refs/heads/master
2021-01-10T10:39:38.710619
2017-02-03T20:00:59
2017-02-03T20:00:59
44,268,256
0
0
null
null
null
null
UTF-8
C++
false
false
146
cpp
main.cpp
#include <iostream> #include <exports.h> int main() { std::cout << "Testing this rpm thing...." << std::endl; say_something(); return 0; }
3ade819b07c31cf0292302ff37802ffc8f413556
6ec6dc541ee5f381717af8eaa942d0e89b3e5487
/NTNU/CP3/practice/prince.cpp
62e00280e4b7a5af38bef5329203ba68130a593a
[]
no_license
kizato1018/computer-programming
af001af24d876a6a79c5b5f3954c0e0b2a2a8ff3
96014692c9dd319b8e8cc13988cd5cf3028846d9
refs/heads/master
2023-06-02T04:38:07.292430
2021-06-17T06:10:09
2021-06-17T06:10:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,898
cpp
prince.cpp
#include <iostream> #include <string.h> using namespace std; class Attribute { // TODO: declare operator << as a friend friend ostream & operator << (ostream &os, const Attribute &rhs); public: // TODO: operator += Attribute & operator += (const int num) {value_ += num; return *this;} // TODO: operator == bool operator == (const Attribute & a) {return Value() == a.Value();} int Value() const {return value_;} void SetName(const char name[]) { strcpy(name_, name); } const char *Name() const { return name_; } private: char name_[30] = {}; int value_ = 0; }; ostream & operator << (ostream &os, const Attribute &rhs) { os << rhs.name_ << ' ' << rhs.value_; return os; } class Princess { public: // TODO: operator [] Attribute & operator [] (const char attr_name[]); private: static const std::size_t MaxNumAttr = 10; Attribute attributes_[MaxNumAttr]; std::size_t num_attr_ = 0; }; Attribute & Princess::operator[](const char attr_name[]) { // TODO: // search for attr_name, if found, return the Attribute object by reference; // otherwise, if size enough, add one Attribute object and return it by reference; // now we do not deal with the case in which adding a new Attrubute fails for(std::size_t i = 0; i < num_attr_; ++i) { if(strcmp(attr_name, attributes_[i].Name()) == 0) { return attributes_[i]; } } if(num_attr_ < MaxNumAttr) { attributes_[num_attr_].SetName(attr_name); num_attr_ += 1; return attributes_[num_attr_-1]; } } int main() { Princess princess; princess["Intelligence"] += 10; cout << princess["Intelligence"] << endl; princess["Intelligence"] += 30; princess["Magic"] += 40; if (princess["Intelligence"] == princess["Magic"]) { cout << "Equal" << endl; } }
e56eccd586f66e73657005f55e4e5c262ed4056f
b87270a73f53109845e97aa4b0a18dc71d234f1a
/1796.cpp
c589630c98e67f5592a4ac5a944f98c2ee247e2b
[]
no_license
zhanghaichao520/hdu
850393fa7fc71894c58e2ec61ecef80f9d87ec5f
b7d4f372d86f159c32d3ab9030491d504f7903d1
refs/heads/master
2020-03-15T04:57:15.526625
2018-05-03T10:16:02
2018-05-03T10:16:02
null
0
0
null
null
null
null
UTF-8
C++
false
false
723
cpp
1796.cpp
#include <cstdio> #include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; __int64 n,a[20]; int sum; __int64 flag=0; __int64 gcd(__int64 x,__int64 y) { if(x<y) { int t=x; x=y; y=t; } if(y==0) return x; else return gcd(y,x%y); } void dfs(int i,__int64 lcm,int p ) { lcm=a[i]/gcd(a[i],lcm)*lcm; if (p%2) sum+=n/lcm; else sum-=n/lcm; for (int k=i+1;k<flag;k++) dfs(k,lcm,p+1); } int main() { __int64 i,j,k,m; while (scanf("%I64d%I64d",&n,&m)!=EOF) { flag=0;sum=0; for (i=0;i<m;i++) { scanf("%I64d",&k); if (k) { a[flag]=k; flag++; } } n--; for (i=0;i<flag;i++) dfs(i,a[i],1); printf("%d\n",sum); } return 0; }
5ff680df5463b6e339c631678bd70499eb7d6ec3
9dbd9b0c79d70aa34501dd615c35d64c7dc4fc97
/src/BirdsEyeTranslationReader.cpp
fbd07fe089245923eba7d9804f467802d84e7191
[ "MIT" ]
permissive
Zhao-Shiwen/vision-of-movement
1a55f7e20070fc174bebac28528d460e66e6aafc
c413f956a181253da98da31f8f60fdb3f2ddd51f
refs/heads/master
2022-03-24T11:29:37.475548
2013-08-01T19:31:23
2013-08-01T19:31:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,245
cpp
BirdsEyeTranslationReader.cpp
/** * \file * \date 21.02.2013 * \author Michał Orynicz */ #include "BirdsEyeTranslationReader.hpp" #include "ImageEdgeFilter.hpp" #include <opencv2/imgproc/imgproc.hpp> #include "DrawingFunctions.hpp" #include <iostream> #include <opencv2/highgui/highgui.hpp> bool horizontalPoint2Compare(cv::Point2f p1, cv::Point2f p2) { return p1.x < p2.x; } bool verticalPoint2Compare(cv::Point2f p1, cv::Point2f p2) { return p1.y < p2.y; } BirdsEyeTranslationReader::BirdsEyeTranslationReader( const cv::Mat &homography, const FeatureExtractor &extractor, const FeatureTracker &tracker, const unsigned int& maxFeatures, const std::list<FeatureFilter*>& filters, cv::Point2f rotationCentre, const cv::Size& imageSize, const double &margin, const cv::Size &viewSize, const std::vector<std::list<cv::Point2f> > &trackedFeatures) : TranslationReader(tracker, extractor, filters, maxFeatures, trackedFeatures), _rotationCenter(rotationCentre), _viewSize( viewSize), _homography(homography.clone()) { _filters.push_front( new ImageEdgeFilter(homography, imageSize, margin)); } BirdsEyeTranslationReader::BirdsEyeTranslationReader( const BirdsEyeTranslationReader &toCopy) : TranslationReader(toCopy), _rotationCenter( toCopy._rotationCenter), _viewSize(toCopy._viewSize), _homography( toCopy._homography) { } BirdsEyeTranslationReader::~BirdsEyeTranslationReader() { } TranslationReader *BirdsEyeTranslationReader::constructCopy() const { return new BirdsEyeTranslationReader(*this); } cv::Point3f BirdsEyeTranslationReader::readTranslation( const cv::Mat &newFrame, const double& rotationAngle) { cv::Mat newTransformed; cv::Point3f result(0, 0, rotationAngle); cv::Mat rotationMatrix = cv::getRotationMatrix2D(_rotationCenter, rotationAngle * 180 / CV_PI, 1); int vectorHalf = 0; cv::warpPerspective(newFrame, newTransformed, _homography, _viewSize, cv::INTER_LINEAR | cv::WARP_INVERSE_MAP); if (!_oldFrame.empty()) { _extractor->refillFeatures(_oldFrame, _trackedFeatures, _maxFeatures); _tracker->trackFeatures(_oldFrame, newTransformed, _trackedFeatures); if (!_trackedFeatures.empty()) { for (std::list<FeatureFilter*>::iterator it = _filters.begin(); it != _filters.end(); ++it) { _trackedFeatures = (*it)->filterFeatures( _trackedFeatures); } if (!_trackedFeatures.empty()) { std::vector<cv::Point2f> translations = computeTranslationVectors(rotationMatrix); vectorHalf = translations.size() / 2; std::nth_element(translations.begin(), translations.begin() + vectorHalf, translations.end(), horizontalPoint2Compare); result.x = translations[vectorHalf].x; std::nth_element(translations.begin(), translations.begin() + vectorHalf, translations.end(), verticalPoint2Compare); result.y = translations[vectorHalf].y; } } } _oldFrame = newTransformed.clone(); return result; } std::vector<cv::Point2f> BirdsEyeTranslationReader::computeTranslationVectors( const cv::Mat& rotationMatrix) { std::vector<cv::Point2f> result(_trackedFeatures.size()); std::vector<cv::Point2f> oldFeatures(_trackedFeatures.size()), newFeatures(_trackedFeatures.size()); std::vector<cv::Point2f> newTransformed(newFeatures.size()); std::vector<cv::Point2f> oldTransformed(newFeatures.size()); for (unsigned int i = 0; i < result.size(); ++i) { //Highly susceptible to bugs oldFeatures[i] = _trackedFeatures[i].front(); newFeatures[i] = *(++_trackedFeatures[i].begin()); } cv::transform(oldFeatures, oldTransformed, rotationMatrix); for (unsigned int i = 0; i < result.size(); ++i) { result[i] = newFeatures[i] - oldTransformed[i]; } return result; }
aa2c5afe58c070332f0d46598c890ed93560b969
ab5f396f3164eb4f5fab793c23c5ebe2b7fbef59
/main.cpp
da064f60575f877e33cdb499094721a8441860d7
[]
no_license
intgeek/BillSplitter
55191a24f1c846d94ba916005606ab5293c7841c
17c732d1285fcc0de60ac66949c3a6ea5c85d214
refs/heads/master
2021-01-18T17:41:20.841369
2016-10-26T10:36:19
2016-10-26T10:36:19
71,992,573
2
1
null
null
null
null
UTF-8
C++
false
false
3,708
cpp
main.cpp
// // main.cpp // BillSplitter // // Created by Shwetabh Singh on 18/08/16. // Copyright © 2016 shwetabh. All rights reserved. // #include <vector> #include <map> #include <algorithm> #include <utility> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstdlib> #include <string> #include <array> typedef unsigned int uint; using namespace std; // data structures used uint graph[51][51]; map<string,uint> peopleArr; map<string,uint> peopleIncludedInExpenseArr; // variables used uint len; string group; string personWhoPaid; string personWhoTransfered; uint expense; uint eachPersonExpense; uint transferMoney; // iterator of map map<string,uint> :: iterator it_type; // method to get name associated with graph index string findNameForIndex(uint index) { for(it_type = peopleArr.begin(); it_type != peopleArr.end(); it_type++) { if(it_type->second == index) { return it_type->first; } } return ""; } // method to see present state of expenses in group. void settle(uint size) { for (uint i = 0; i < size; i++) for (uint j = 0; j < size; j++) { if(graph[i][j] > 0) { cout << findNameForIndex(j) << " has to pay " << personWhoPaid << " " << graph[i][j] << "\n"; } } } // method to transfer money in group void transfer() { cout << "Who transfered : "; cin >> personWhoTransfered; cout << "How much transfered : "; cin >> transferMoney; // set values to the graph graph[peopleArr[personWhoPaid]][peopleArr[personWhoTransfered]] = (expense / peopleIncludedInExpenseArr.size()) - transferMoney; } // method to add expense to group void addExpense() { cout << "Enter the expense to group " << group << " : "; cin >> expense; cout << "Who paid : "; cin >> personWhoPaid; uint n; string peop; cout << "Enter the number of people paid for : "; cin >> n; for (uint i = 0; i < n; i++) { cout << "Enter " << i+1 << " person : "; cin >> peop; peopleIncludedInExpenseArr[peop] = 1; } eachPersonExpense = expense / peopleIncludedInExpenseArr.size(); // set values to the graph for(it_type = peopleIncludedInExpenseArr.begin(); it_type != peopleIncludedInExpenseArr.end(); it_type++) { graph[peopleArr[personWhoPaid]][peopleArr[it_type->first]] = eachPersonExpense; } } int main() { cout << "Enter the group name : "; cin >> group; cout << "Enter the number of people in group " << group << " : "; cin >> len; string name; cout << "Enter the names of people in group " << group << " : "; for (uint i = 0; i < len; i++) { cin >> name; peopleArr[name] = i; } //SET graph values to 0; for (uint i = 0; i < len; i++) for (uint j = 0; j < len; j++) graph[i][j] = 0; uint option = 0; do { cout << "******** MAIN MENU ********"; cout << "\n 1. Add expense to " << group; cout << "\n 2. Transfer in " << group; cout << "\n 3. Settle up " << group; cout << "\n 4. Exit."; cout << "\n Enter your option : "; cin >> option; switch (option) { case 1: addExpense(); break; case 2: transfer(); break; case 3: settle(len); break; default: break; } } while (option != 4); return 0; }
1fd0e98b0a113b05d4ca0df29ed732d0f12aba74
d1ac9e5a19a0e720e2f79d24eb4808a3075e3607
/include/hash_table.h
0fcdb71381afa0e1d141cfca5cbfd7aa818849b0
[ "MIT" ]
permissive
Samana/algorithms
db804acdf32e2e9bff2e526792cbbd68b1719dc4
d81d1a693c6fa1d5fb1ce903b05faf9d7267158d
refs/heads/master
2021-01-17T11:24:16.190232
2014-11-27T03:33:21
2014-11-27T03:33:21
10,540,035
3
0
null
null
null
null
UTF-8
C++
false
false
3,888
h
hash_table.h
/******************************************************************************* * DANIEL'S ALGORITHM IMPLEMENTAIONS * * /\ | _ _ ._ o _|_ |_ ._ _ _ * /--\ | (_| (_) | | |_ | | | | | _> * _| * * GENERIC HASH TABLE * * Features: * 1. separate chaining for resolving collisions * * http://en.wikipedia.org/wiki/Hash_table * ******************************************************************************/ #ifndef __HASH_TABLE_H__ #define __HASH_TABLE_H__ #include <stdint.h> #include <string.h> #include <limits.h> #include <stdexcept> #include "double_linked_list.h" #include "hash_code.h" #include "hash_multi.h" namespace alg { /** * definition of a hash table. */ template<typename _Key, typename _Value, typename _HashCode = hash_code<_Key> > class HashTable { typedef _Key key_type; typedef _Value value_type; typedef _HashCode hash_code_fn; private: /** * definiton of Key-Value pair. */ struct HashKV { key_type key; // 32-bit key value_type value; // value struct list_head node; // KV is a list element. }; private: uint32_t m_size; // the size of the hash table. struct list_head * m_slots; // all of the slots, each slot is an linked-list struct MultiHash * m_multi; // the hash function parameter. public: /** * create a hash table with max size . */ HashTable(uint32_t max) { // init multiplication hash function m_multi = multi_hash_init(max); m_size = multi_hash_table_size(m_multi); m_slots = new list_head[m_size]; for (uint32_t i=0; i<m_size; i++) { INIT_LIST_HEAD(&m_slots[i]); } } ~HashTable() { for (uint32_t i=0;i<m_size;i++) { HashKV * kv, *nkv; list_for_each_entry_safe(kv,nkv,&m_slots[i], node){ list_del(&kv->node); delete kv; } } delete m_multi; delete [] m_slots; } private: HashTable(const HashTable &); HashTable& operator=(const HashTable &); public: /** * test if the hash table has the key */ bool contains(key_type key) const { // hash the key using a hash function. uint32_t hash = multi_hash(m_multi, hash_code_fn()(key)); // we iterate through the list. HashKV * kv; list_for_each_entry(kv, &m_slots[hash], node){ if (kv->key == key) { // ok, found in the list. return true; } } return false; } /** * delete by key */ bool delete_key(key_type key) { // hash the key using a hash function. uint32_t hash = multi_hash(m_multi, hash_code_fn()(key)); HashKV * kv, *nkv; list_for_each_entry_safe(kv,nkv,&m_slots[hash], node) { if (kv->key == key) { list_del(&kv->node); delete kv; return true; } } return false; } // const version of operator [] const value_type& operator[] (key_type key) const { // hash the key using a hash function. uint32_t hash = multi_hash(m_multi, hash_code_fn()(key)); // we iterate through the list. HashKV * kv; list_for_each_entry(kv, &m_slots[hash], node){ if (kv->key == key) { // ok, found in the list. return kv->value; } } // reaching here means a new key is given, // create a new HashKV struct for it. kv = new HashKV; kv->key = key; list_add(&kv->node, &m_slots[hash]); return kv->value; } /** * operator [] */ value_type& operator[] (key_type key) { return const_cast<value_type&>(static_cast<const HashTable&>(*this)[key]); } void clear() { HashKV * kv, *nkv; for (uint32_t i=0;i<m_size;i++) { list_for_each_entry_safe(kv,nkv,&m_slots[i], node){ list_del(&kv->node); delete kv; } } } }; } #endif //
69e218c926648c9351f4ca1bb6b1f5a1c41d742b
da529d2dc5a0fe631be3a1c0b5823873037f250f
/Variable_Sized_Arrays.cpp
2b5b908e6ada403c5f85a11c79287dc2532bd3fc
[]
no_license
rupa99/CPP-Core-Skills
850e62c954c0bebf5bf841378aa9d003e56365f5
36f4dd0099da9295f8fce02739353ed13bce7913
refs/heads/master
2020-06-17T23:19:53.841305
2019-07-09T23:34:43
2019-07-09T23:34:43
196,096,227
1
0
null
null
null
null
UTF-8
C++
false
false
996
cpp
Variable_Sized_Arrays.cpp
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ // CREATE: a vector of vectors int x = 0; int y = 0; int numofItt = 0; int sizeodfIndivArr = 0; int val = 0; cin >> x; vector<vector<int>> matrix(x); cin >> numofItt; // int array1[numofItt]; /*vecotr is the problem*/ vector<int> array1; for (int i = 0; i < numofItt; i++) { cin >> sizeodfIndivArr; matrix[i].resize(sizeodfIndivArr); for (int k = 0; k < sizeodfIndivArr; k++) { cin >> val; matrix[i][k] = val; } } // output for (int i = 0; i < numofItt; i++) { cin >> x; cin >> y; array1.push_back(matrix[x][y]); // array1[i]= matrix[x][y]; } for (int i = 0; i < numofItt; i++) { // PRINTING-- same cout << array1[i] << endl; } return 0; }
7a75dffb1f78fbecf05089ab70abe80bad19da9b
61e1f8d80d36218c7e2d93b8dcaec1ad297b4ffa
/framework/include/transport/packet_sender.h
0c609ca040c0058b1934d9e50d0df7f3a8f4b7f4
[]
no_license
dongdong-2009/test
6dcebc2aee2cc24563292edafa0ec2dbc2240040
c824d4a40952a48b12c2142678896027119dacb3
refs/heads/master
2021-05-31T13:21:10.698705
2016-05-16T05:05:00
2016-05-16T05:05:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,908
h
packet_sender.h
#ifndef PACKET_SENDER_H #define PACKET_SENDER_H #include <map> #include <string> #include <thread> #include <boost/signals2.hpp> #include <service/runable.hpp> #include <service/active_queue.hpp> #include <service/passive_queue.hpp> using namespace zhicloud::service; using std::string; namespace zhicloud{ namespace transport{ class PacketSender: public Runable { private: class SenderInfo{ public: SenderInfo(); SenderInfo(const int& socket_fd, const std::string& ip, const uint16_t& port); ~SenderInfo(); SenderInfo(SenderInfo&& other); SenderInfo& operator=(SenderInfo&& other); const std::string& getSourceIP() const; const uint16_t& getSourcePort() const; private: int socket_id; std::string source_ip; uint16_t source_port; }; class PacketData{ public: PacketData(); PacketData(const string& data, const string& s_ip, const uint16_t& s_port, const string& d_ip, const uint16_t& d_port, const int& socket); ~PacketData(); PacketData(PacketData&& other); PacketData& operator=(PacketData&& other); PacketData(const PacketData& other); PacketData& operator=(const PacketData& other); const string& getData() const; const string& getTargetIP() const; const uint16_t& getTargetPort() const; const string& getSourceIP() const; const uint16_t& getSourcePort() const; const int& getSocketID() const; private: std::string data; int socket_id; std::string target_ip; uint16_t target_port; std::string source_ip; uint16_t source_port; }; public: typedef std::string address_type; typedef uint16_t port_type; typedef boost::signals2::signal< void (bool, const int&, const address_type&, const port_type&, const address_type&, const port_type&, const int& ) > event_type; typedef event_type::slot_type event_handler; PacketSender(const uint16_t& send_thread = 1); virtual ~PacketSender(); void addSender(int socket_fd, const address_type& address, const port_type& port); void send(const string& data, const address_type& target_ip, const port_type& target_port, const int& socket = 0); void bindHandler(const event_handler& handler); protected: virtual bool onStart(); virtual void onStopping(); virtual void onWaitFinish(); private: void onPacketAvailable(PacketData& packet, uint64_t& pos, bool end_of_batch); // void monitorProcess(); void activeSocket(int socket_id); private: const static size_t socket_buffer_size = 64; const static size_t packet_buffer_size = 1024; PassiveQueue< int, socket_buffer_size > socket_queue; std::map< int, SenderInfo > sender_map; ActiveQueue< PacketData, packet_buffer_size > packet_queue; std::thread monitor_thread; event_type onPacketProcessed; }; } } #endif // PACKET_RECEIVER_H
15e98e91f82d153fd08355ec99095bdbfe0d8f38
b032b2b9e0153bb6ebaaa0e47bac5f762bbabe05
/Day02-17.04.2020/MoveZeroes/MoveZeroes.cpp
c5a74a05e9b257573518d3500b058111c1014326
[]
no_license
SourabhYelluru131/just-lockdown-problems
408701ef5eebd627075fe5e3e4c0f78d0580acac
557c97e94786fd259bfd2927b401b6e50970c34b
refs/heads/master
2022-12-06T21:07:49.327794
2020-08-01T07:41:07
2020-08-01T07:41:07
256,180,808
0
0
null
2020-08-01T07:41:08
2020-04-16T10:21:22
C++
UTF-8
C++
false
false
446
cpp
MoveZeroes.cpp
// https://leetcode.com/problems/move-zeroes/ class Solution { public: void moveZeroes(vector<int>& nums) { int cnt=0; for(int i=0;cnt<nums.size();i++){ if(nums[i]==0){ nums.erase(nums.begin()+i); nums.push_back(0); if(nums[i]==0){ // Checks for consecutive zeroes. i--; } } cnt++; } } };
e22434f8f187b79a9ec768a908a00723f3b15fd3
9a369ace9dd8fc47c132b32aec4e50d4a606aaf4
/C++/Basic-Features/hello-world.cpp
81fe78db2f748446d699b5fe04622a12c9488b2d
[]
no_license
LokeshBonta/Academic-Projects
602cc59029fb3e243fda789df897a271096483d3
eb6af97b7e225f4e0d6d8b81b142af58a44bdbc9
refs/heads/master
2022-10-03T21:05:13.797498
2022-09-17T17:00:11
2022-09-17T17:00:11
227,907,465
0
0
null
2020-07-28T15:02:23
2019-12-13T19:21:41
Jupyter Notebook
UTF-8
C++
false
false
193
cpp
hello-world.cpp
/* Lokeswara Rao Bonta 15-5-2020 */ using namespace std; #include <iostream> int main() { cout << "Hello World \t" << "C++" << endl; //Return exit code to the operating system return 0; }
cd305f7c564673d02b4ff6380009622d5518955d
115c5ee776f2bbeea89353d887bd27b02c7dd862
/Internet AppWare Source Code/AW16_2/OBJECTS/PAGE/PG_EVENT.CPP
6569aee2b7f40a601a02b86c169d20ab3ef101ce
[]
no_license
benbucksch/AppWare
f9a894140d6bc95d2d27f5ed7d8df51fc57b9709
321ced6e94030c25ba36c781dc92ddb7c2508c09
refs/heads/master
2020-07-12T23:31:34.160706
2014-10-08T17:17:07
2014-10-08T17:17:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,934
cpp
PG_EVENT.CPP
/////////////////////////////////////////////////////////////// // // (c) 1993 Novell, Inc. All rights reserved. // // THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND // TREATIES. NO PART OF THIS WORK MAY BE USED, PRACTICED, PERFORMED, // COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED, // CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, // TRANSFORMED OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF // NOVELL, INC. ANY USE OR EXPLOITATION OF THIS WORK WITHOUT // AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO CRIMINAL AND CIVIL // LIABILITY. // /////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// // // // Object Group: Essentials // Object: Page // // Filename: "pg_event.cpp" // // Description: // Page Event Routine // //////////////////////////////////////////////////////////////////////////// #include <windows.h> #include <stdio.h> #include "a_alm.h" #include "pg_class.h" #include "pg_macro.h" #if (WINVER < 0x030a) typedef int HFILE; long _hread(HFILE, void _huge*, long); long _hwrite(HFILE, const void _huge*, long); #endif // WINVER < 0x030a extern "C" void ALMCALLBACK PageEvent_Startup(pAEvtInfo /*theEvent*/, pAObjMessage theSystem) { OBJECTID pageObject; LONG theKey; LPDATA0 data0; theKey = AOBJ_GETFIRSTKEY; while ( (pageObject = AObjGetNextObject(OTYPE_PAGE, &theKey)) != 0) { data0 = LockPageData0(pageObject); if (data0 == NULL) continue; GetTempFileName(0, "spl", 0, data0->spoolFile); data0->hFile = _lcreat(data0->spoolFile, 0); if (data0->hFile == -1) { data0->spoolFile[0] = 0; AEvtPostStandard(pageObject, AEVT_ATMARK, 0, AEVT_KILLDUPLICATES); AFuncReportResult(theSystem, 1L, "Cannot Open Spool File"); return; } UnlockPageData0(pageObject); } AFuncReportResult(theSystem, 0L, NULL); return; } extern "C" void far pascal _export PageEvent_Shutdown(pAEvtInfo /*theEvent*/, pAObjMessage theSystem) { OBJECTID pageObject; LONG theKey; DATA0* data0; theKey = AOBJ_GETFIRSTKEY; while ( (pageObject = AObjGetNextObject(OTYPE_PAGE, &theKey)) != 0) { data0 = LockPageData0(pageObject); if (data0 == NULL) continue; _lclose(data0->hFile); if (remove(data0->spoolFile) == -1) { data0->spoolFile[0] = 0; data0->hFile = 0; AFuncReportResult(theSystem, 0L, "Page Layout Cannot Remove Temporary File"); return; } data0->spoolFile[0] = 0; data0->hFile = 0; UnlockPageData0(pageObject); } AFuncReportResult(theSystem, 0L, NULL); return; } extern "C" void far pascal _export PageEvent_PrintItem(pAEvtInfo theEvent, pAObjMessage theSystem) { PAGE* page; page = new PAGE(theEvent->targetObject, theEvent, theSystem); page->Pidr(); delete page; }
6a7c365af075d80391c715f1ab88c7286b42e31f
7ae5855273584800a5508659b435c937839ac12d
/BulletTest/BulletTest/RigidOBJDemo.h
fbdb5ad837a18178e20eb773a12c218e07011104
[]
no_license
liuyuwang2016/BulletTest
274fbcef30403824fd61d08ab2d76aa1b36a819b
5838047d1200a2dbff2087251ee6fef26eacabc0
refs/heads/master
2020-03-18T01:43:31.279503
2018-06-20T12:45:46
2018-06-20T12:45:46
134,156,581
0
0
null
null
null
null
GB18030
C++
false
false
551
h
RigidOBJDemo.h
#ifndef RIGIDBODYDEMO_H #define RIGIDBODYDEMO_H #include "BulletOpenGLApplication.h" #pragma managed (push,off) #include <btBulletDynamicsCommon.h> #pragma managed (pop) class RigidOBJDemo : public BulletOpenGLApplication { public: RigidOBJDemo(); ~RigidOBJDemo(); virtual void InitializePhysics() override; virtual void ShutdownPhysics() override; void CreateObjects(); virtual void RenderScene() override; // target model loaded by glm //直接load obj进Bullet的函数 protected: GLMmodel* targetModel; }; #endif //RIGIDBODYDEMO_H
72af6a4b8d5567a776aa2338494d7fc6d1c0e7f3
4e77b2c4abad712465b3ba92590343b583c4af89
/source/Subtractions.cpp
ed5b6e88ab936bf8277c88496c6399d59cdaa2cb
[]
no_license
maxxboehme/subtractions
d057ae96a9527e5f4ee2cd610cd255a751681f71
de809fc1243e79581560f9f1b2facfe4140f2e62
refs/heads/master
2021-01-13T01:54:37.238790
2014-10-30T22:03:31
2014-10-30T22:03:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,516
cpp
Subtractions.cpp
#include <iostream> #include <algorithm> #include <climits> #include <cstring> #include <vector> #include <string> #include "prints.h" /** * Subtract the lesser number from the larger one. If they equal substract one number from the another. * * @param a 1 <= a <= 10^9 * @param b 1 <= b <= 10^9 * @return number of operations till one value reaches 0 */ inline int calc_subtractions_slow(int a, int b){ int numOps = 0; while(a && b){ if(a <= b){ b -= a; } else { a -= b; } ++numOps; } return numOps; } inline int calc_subtractions_div(int a, int b){ int numOps = 0; while(a && b){ if(a < b){ int temp = b / a; numOps += temp; b -= (a * temp); } else { int temp = a / b; numOps += temp; a -= (b * temp); } } return numOps; } inline int calc_subtractions_mod(int a, int b){ int numOps = 0; while(a && b){ if(a < b){ numOps += b / a; b = b % a; } else { numOps += a / b; a = a % b; } } return numOps; } int calc_subtractions(int a, int b){ return calc_subtractions_div(a, b); } void subtractions_solve(std::istream& in, std::ostream& out){ // turn off synchronization with C I/O std::ios_base::sync_with_stdio(false); int numPairs, a, b; in >> numPairs; for(int i = 0; i < numPairs; ++i){ in >> a >> b; int v = calc_subtractions_div(a, b); out << v << "\n"; } }
c9730bba9cf62b69a056c7a262c61a719dce74e8
88b130d5ff52d96248d8b946cfb0faaadb731769
/storage/src/tests/frameworkimpl/status/statustest.cpp
0db5f2cf6b0b67c49a8e5835923417456d3852e9
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vespa-engine/vespa
b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb
1f8213997718c25942c38402202ae9e51572d89f
refs/heads/master
2023-08-16T21:01:12.296208
2023-08-16T17:03:08
2023-08-16T17:03:08
60,377,070
4,889
619
Apache-2.0
2023-09-14T21:02:11
2016-06-03T20:54:20
Java
UTF-8
C++
false
false
9,095
cpp
statustest.cpp
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/storageframework/defaultimplementation/component/componentregisterimpl.h> #include <vespa/storage/frameworkimpl/status/statuswebserver.h> #include <vespa/storageframework/generic/status/htmlstatusreporter.h> #include <vespa/storageframework/generic/status/xmlstatusreporter.h> #include <tests/common/teststorageapp.h> #include <vespa/document/util/stringutil.h> #include <vespa/vespalib/net/crypto_engine.h> #include <vespa/vespalib/net/socket_spec.h> #include <vespa/vespalib/net/sync_crypto_socket.h> #include <vespa/config/subscription/configuri.h> #include <vespa/vespalib/gtest/gtest.h> #include <gmock/gmock.h> #include <string> using namespace ::testing; vespalib::string fetch(int port, const vespalib::string &path) { auto crypto = vespalib::CryptoEngine::get_default(); auto socket = vespalib::SocketSpec::from_port(port).client_address().connect(); assert(socket.valid()); auto conn = vespalib::SyncCryptoSocket::create_client(*crypto, std::move(socket), vespalib::SocketSpec::from_host_port("localhost", port)); vespalib::string http_req = vespalib::make_string("GET %s HTTP/1.1\r\n" "Host: localhost:%d\r\n" "\r\n", path.c_str(), port); assert(conn->write(http_req.data(), http_req.size()) == ssize_t(http_req.size())); char buf[1024]; vespalib::string result; ssize_t res = conn->read(buf, sizeof(buf)); while (res > 0) { result.append(vespalib::stringref(buf, res)); res = conn->read(buf, sizeof(buf)); } assert(res == 0); return result; } namespace storage { struct StatusTest : Test { std::unique_ptr<TestServiceLayerApp> _node; void SetUp() override; }; namespace { struct HtmlStatusReporter : public framework::HtmlStatusReporter { std::string _headerAddition; std::string _content; HtmlStatusReporter(const std::string& id, const std::string& name, const std::string& content, const std::string& headerAddition = "") : framework::HtmlStatusReporter(id, name), _headerAddition(headerAddition), _content(content) {} void reportHtmlHeaderAdditions(std::ostream& out, const framework::HttpUrlPath&) const override { out << _headerAddition; } void reportHtmlStatus(std::ostream& out, const framework::HttpUrlPath&) const override { out << _content; } }; struct XmlStatusReporter : public framework::XmlStatusReporter { XmlStatusReporter(const std::string& id, const std::string& name) : framework::XmlStatusReporter(id, name) {} vespalib::string reportXmlStatus(vespalib::xml::XmlOutputStream& xos, const framework::HttpUrlPath&) const override { xos << vespalib::xml::XmlTag("mytag") << vespalib::xml::XmlAttribute("foo", "bar") << vespalib::xml::XmlContent("content") << vespalib::xml::XmlEndTag(); return ""; } }; struct StatusComponent : public framework::Component { framework::StatusReporter* _reporter; StatusComponent(framework::ComponentRegister& reg, const char* name, framework::StatusReporter* reporter) : framework::Component(reg, name), _reporter(reporter) { registerStatusPage(*_reporter); } ~StatusComponent() override { delete _reporter; } }; } void StatusTest::SetUp() { _node = std::make_unique<TestServiceLayerApp>(); } namespace { std::string additional_fixed_http_response_headers() { return ("X-XSS-Protection: 1; mode=block\r\n" "X-Frame-Options: DENY\r\n" "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n" "X-Content-Type-Options: nosniff\r\n" "Cache-Control: no-store\r\n" "Pragma: no-cache\r\n"); } } TEST_F(StatusTest, index_status_page) { StatusComponent rep1(_node->getComponentRegister(), "foo", new HtmlStatusReporter( "fooid", "Foo impl", "<p>info</p>")); StatusComponent rep2(_node->getComponentRegister(), "bar", new HtmlStatusReporter( "barid", "Bar impl", "<p>info</p>")); StatusWebServer webServer(_node->getComponentRegister(), _node->getComponentRegister(), config::ConfigUri("raw:httpport 0")); auto actual = fetch(webServer.getListenPort(), "/"); std::string expected( "HTTP\\/1.1 200 OK\r\n" "Connection: close\r\n" "Content-Type: text\\/html\r\n" "Content-Length: [0-9]+\r\n" + additional_fixed_http_response_headers() + "\r\n" "<html>\n" "<head>\n" " <title>Index page</title>\n" "<\\/head>\n" "<body>\n" " <h1>Index page</h1>\n" "<p><b>Binary version of Vespa:<\\/b> [0-9.]+<\\/p>\n" "<a href=\"fooid\">Foo impl<\\/a><br>\n" "<a href=\"barid\">Bar impl<\\/a><br>\n" "<\\/body>\n" "<\\/html>\n" ); EXPECT_THAT(actual, MatchesRegex(expected)); } TEST_F(StatusTest, html_status) { StatusComponent rep1(_node->getComponentRegister(), "foo", new HtmlStatusReporter( "fooid", "Foo impl", "<p>info</p>", "<!-- script -->")); StatusWebServer webServer(_node->getComponentRegister(), _node->getComponentRegister(), config::ConfigUri("raw:httpport 0")); auto actual = fetch(webServer.getListenPort(), "/fooid?unusedParam"); std::string expected( "HTTP/1.1 200 OK\r\n" "Connection: close\r\n" "Content-Type: text/html\r\n" "Content-Length: 117\r\n" + additional_fixed_http_response_headers() + "\r\n" "<html>\n" "<head>\n" " <title>Foo impl</title>\n" "<!-- script --></head>\n" "<body>\n" " <h1>Foo impl</h1>\n" "<p>info</p></body>\n" "</html>\n" ); EXPECT_EQ(expected, std::string(actual)); } TEST_F(StatusTest, path_with_v1_prefix_aliases_to_handler_under_root) { StatusComponent rep1(_node->getComponentRegister(), "foo", new HtmlStatusReporter("fooid", "Foo impl", "<p>info</p>", "<!-- script -->")); StatusWebServer webServer(_node->getComponentRegister(), _node->getComponentRegister(), config::ConfigUri("raw:httpport 0")); auto actual = fetch(webServer.getListenPort(), "/contentnode-status/v1/fooid?unusedParam"); std::string expected( "HTTP/1.1 200 OK\r\n" "Connection: close\r\n" "Content-Type: text/html\r\n" "Content-Length: 117\r\n" + additional_fixed_http_response_headers() + "\r\n" "<html>\n" "<head>\n" " <title>Foo impl</title>\n" "<!-- script --></head>\n" "<body>\n" " <h1>Foo impl</h1>\n" "<p>info</p></body>\n" "</html>\n" ); EXPECT_EQ(expected, std::string(actual)); } TEST_F(StatusTest, xml_sStatus) { StatusComponent rep1(_node->getComponentRegister(), "foo", new XmlStatusReporter( "fooid", "Foo impl")); StatusWebServer webServer(_node->getComponentRegister(), _node->getComponentRegister(), config::ConfigUri("raw:httpport 0")); auto actual = fetch(webServer.getListenPort(), "/fooid?unusedParam"); std::string expected( "HTTP/1.1 200 OK\r\n" "Connection: close\r\n" "Content-Type: application/xml\r\n" "Content-Length: 100\r\n" + additional_fixed_http_response_headers() + "\r\n" "<?xml version=\"1.0\"?>\n" "<status id=\"fooid\" name=\"Foo impl\">\n" "<mytag foo=\"bar\">content</mytag>\n" "</status>" ); EXPECT_EQ(expected, std::string(actual)); } TEST_F(StatusTest, test404) { StatusWebServer webServer(_node->getComponentRegister(), _node->getComponentRegister(), config::ConfigUri("raw:httpport 0")); auto actual = fetch(webServer.getListenPort(), "/fooid?unusedParam"); std::string expected( "HTTP/1.1 404 Not Found\r\n" "Connection: close\r\n" "\r\n" ); EXPECT_EQ(expected, std::string(actual)); } } // storage
40458151cad8b1f1d0d33c173aeaceb335abbd2c
ac04f9050cfe2d283fae545c5ef5e17364c25ca4
/src/util/watch_time.h
2e7bd8505cb78666eba466c64c238813ba313675
[]
no_license
cnsuhao/FreeGameEngine
9c0365c0d75c7757c441737ff577186173adaa97
7bdc3daf6aecacb9a851ec635824867cd0b5a2a7
refs/heads/master
2021-07-07T10:39:10.553300
2017-10-05T06:28:52
2017-10-05T06:28:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,968
h
watch_time.h
// // watch_time.h // liborange // // Created by zhoubao on 14-5-9. // Copyright (c) 2014 jjgame. All rights reserved. // #ifndef __liborange__watch_time__ #define __liborange__watch_time__ #ifndef _RELEASE #include "util_config.h" #include "singleton.h" #include <map> namespace ora { class NumberNode { public: NumberNode(); void watchValue(float value); float getAverage() const; float getMinElapse() const { return minElapse_; } float getMaxElapse() const { return maxElapse_; } float getAccumulate() const { return accumulate_; } int getCounter() const { return counter_; } void watchTimeBegin(); void watchTimeEnd(); private: float minElapse_; float maxElapse_; float accumulate_; int counter_; float startTime_; }; class ScopedTimeNode { NumberNode & timeNode_; public: ScopedTimeNode(NumberNode & node); ~ScopedTimeNode(); }; class WatchTime : public Singleton<WatchTime> { public: typedef std::map<std::string, NumberNode> Pool; WatchTime(); ~WatchTime(); NumberNode & get(const std::string & name); void clear(); const Pool & getPool() const { return pool_; } private: Pool pool_; }; }// end namespace ora #define WATCH_TIME(NAME) ::ora::ScopedTimeNode scoped##NAME(::ora::WatchTime::instance()->get(#NAME)) #define WATCH_TIME_START(NAME) ::ora::WatchTime::instance()->get(#NAME).watchTimeBegin() #define WATCH_TIME_STOP(NAME) ::ora::WatchTime::instance()->get(#NAME).watchTimeEnd() #define WATCH_NUMBER(NAME, VALUE) ::ora::WatchTime::instance()->get(#NAME).watchValue(VALUE) #else //_RELEASE #define WATCH_TIME(NAME) #define WATCH_TIME_START(NAME) #define WATCH_TIME_STOP(NAME) #endif //_RELEASE #endif /* defined(__liborange__watch_time__) */
162f4815fe79a995d783c56e05aadc07317c0c33
19cd87c46d877333454bb82f14512f9b13714a0d
/source/gfx3d.h
9d294e9f36364660456efe9d4ebefa042e6de0ba
[]
no_license
TheMrIron2/DeSmuME-PSP
7cd3296d67874865b28f996ed6089ec680621c6e
28cb56ece0e7378e75e78c01e57de7f569672803
refs/heads/master
2022-05-07T12:20:59.981897
2021-03-14T03:15:59
2021-03-14T03:15:59
144,074,778
91
17
null
2020-11-27T23:24:15
2018-08-08T22:38:05
C++
UTF-8
C++
false
false
22,969
h
gfx3d.h
/* Copyright (C) 2006 yopyop Copyright (C) 2008-2015 DeSmuME team This file 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 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 the this software. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _GFX3D_H_ #define _GFX3D_H_ #include <iosfwd> #include <ostream> #include <istream> #include "types.h" #include "PSP/FrontEnd.h" #include "pspvfpu.h" class EMUFILE; // Pixel dimensions of the NDS 3D framebuffer #define GFX3D_FRAMEBUFFER_WIDTH 256 #define GFX3D_FRAMEBUFFER_HEIGHT 192 //geometry engine command numbers #define GFX3D_NOP 0x00 #define GFX3D_MTX_MODE 0x10 #define GFX3D_MTX_PUSH 0x11 #define GFX3D_MTX_POP 0x12 #define GFX3D_MTX_STORE 0x13 #define GFX3D_MTX_RESTORE 0x14 #define GFX3D_MTX_IDENTITY 0x15 #define GFX3D_MTX_LOAD_4x4 0x16 #define GFX3D_MTX_LOAD_4x3 0x17 #define GFX3D_MTX_MULT_4x4 0x18 #define GFX3D_MTX_MULT_4x3 0x19 #define GFX3D_MTX_MULT_3x3 0x1A #define GFX3D_MTX_SCALE 0x1B #define GFX3D_MTX_TRANS 0x1C #define GFX3D_COLOR 0x20 #define GFX3D_NORMAL 0x21 #define GFX3D_TEXCOORD 0x22 #define GFX3D_VTX_16 0x23 #define GFX3D_VTX_10 0x24 #define GFX3D_XY 0x25 #define GFX3D_XZ 0x26 #define GFX3D_YZ 0x27 #define GFX3D_DIFF 0x28 #define GFX3D_POLYGON_ATTR 0x29 #define GFX3D_TEXIMAGE_PARAM 0x2A #define GFX3D_PLTT_BASE 0x2B #define GFX3D_DIF_AMB 0x30 #define GFX3D_SPE_EMI 0x31 #define GFX3D_LIGHT_VECTOR 0x32 #define GFX3D_LIGHT_COLOR 0x33 #define GFX3D_SHININESS 0x34 #define GFX3D_BEGIN_VTXS 0x40 #define GFX3D_END_VTXS 0x41 #define GFX3D_SWAP_BUFFERS 0x50 #define GFX3D_VIEWPORT 0x60 #define GFX3D_BOX_TEST 0x70 #define GFX3D_POS_TEST 0x71 #define GFX3D_VEC_TEST 0x72 #define GFX3D_NOP_NOARG_HACK 0xDD //produce a 32bpp color from a ds RGB15, using a table #define RGB15TO32_NOALPHA(col) ( color_15bit_to_24bit[col&0x7FFF] ) //produce a 32bpp color from a ds RGB15 plus an 8bit alpha, using a table #ifdef WORDS_BIGENDIAN #define RGB15TO32(col,alpha8) ( (alpha8) | color_15bit_to_24bit[(col)&0x7FFF] ) #else #define RGB15TO32(col,alpha8) ( ((alpha8)<<24) | color_15bit_to_24bit[(col)&0x7FFF] ) #endif //produce a 5555 32bit color from a ds RGB15 plus an 5bit alpha #ifdef WORDS_BIGENDIAN #define RGB15TO5555(col,alpha5) ( (alpha5) | ((((col) & 0x7C00)>>10)<<8) | ((((col) & 0x03E0)>>5)<<16) | (((col) & 0x001F)<<24) ) #else #define RGB15TO5555(col,alpha5) ( ((alpha5)<<24) | ((((col) & 0x7C00)>>10)<<16) | ((((col) & 0x03E0)>>5)<<8) | ((col) & 0x001F) ) #endif //produce a 6665 32bit color from a ds RGB15 plus an 5bit alpha inline u32 RGB15TO6665(u16 col, u8 alpha5) { const u16 r = (col&0x001F)>>0; const u16 g = (col&0x03E0)>>5; const u16 b = (col&0x7C00)>>10; #ifdef WORDS_BIGENDIAN const u32 ret = alpha5 | (((b<<1)+1)<<8) | (((g<<1)+1)<<16) | (((r<<1)+1)<<24); #else const u32 ret = (alpha5<<24) | (((b<<1)+1)<<16) | (((g<<1)+1)<<8) | ((r<<1)+1); #endif return ret; } //produce a 24bpp color from a ds RGB15, using a table #define RGB15TO24_REVERSE(col) ( color_15bit_to_24bit_reverse[(col)&0x7FFF] ) //produce a 16bpp color from a ds RGB15, using a table #define RGB15TO16_REVERSE(col) ( color_15bit_to_16bit_reverse[(col)&0x7FFF] ) //produce a 15bpp color from individual 5bit components #define R5G5B5TORGB15(r,g,b) ( (r) | ((g)<<5) | ((b)<<10) ) //produce a 16bpp color from individual 5bit components #define R6G6B6TORGB15(r,g,b) ( ((r)>>1) | (((g)&0x3E)<<4) | (((b)&0x3E)<<9) ) #define GFX3D_5TO6(x) ((x)?(((x)<<1)+1):0) // 15-bit to 24-bit depth formula from http://nocash.emubase.de/gbatek.htm#ds3drearplane #define DS_DEPTH15TO24(depth) ( dsDepthExtend_15bit_to_24bit[(depth) & 0x7FFF] ) enum PolygonMode { POLYGON_MODE_MODULATE = 0, POLYGON_MODE_DECAL = 1, POLYGON_MODE_TOONHIGHLIGHT = 2, POLYGON_MODE_SHADOW = 3 }; // POLYGON PRIMITIVE TYPES enum { GFX3D_TRIANGLES = 0, GFX3D_QUADS = 1, GFX3D_TRIANGLE_STRIP = 2, GFX3D_QUAD_STRIP = 3, GFX3D_LINE = 4 }; // POLYGON ATTRIBUTES - BIT LOCATIONS enum { POLYGON_ATTR_ENABLE_LIGHT0_BIT = 0, POLYGON_ATTR_ENABLE_LIGHT1_BIT = 1, POLYGON_ATTR_ENABLE_LIGHT2_BIT = 2, POLYGON_ATTR_ENABLE_LIGHT3_BIT = 3, POLYGON_ATTR_MODE_BIT = 4, // Bits 4 - 5 POLYGON_ATTR_ENABLE_BACK_SURFACE_BIT = 6, POLYGON_ATTR_ENABLE_FRONT_SURFACE_BIT = 7, // Bits 8 - 10 unused POLYGON_ATTR_ENABLE_ALPHA_DEPTH_WRITE_BIT = 11, POLYGON_ATTR_ENABLE_RENDER_ON_FAR_PLANE_INTERSECT_BIT = 12, POLYGON_ATTR_ENABLE_ONE_DOT_RENDER_BIT = 13, POLYGON_ATTR_ENABLE_DEPTH_TEST_BIT = 14, POLYGON_ATTR_ENABLE_FOG_BIT = 15, POLYGON_ATTR_ALPHA_BIT = 16, // Bits 16 - 20 // Bits 21 - 23 unused POLYGON_ATTR_POLYGON_ID_BIT = 24, // Bits 24 - 29 // Bits 30 - 31 unused }; // POLYGON ATTRIBUTES - BIT MASKS enum { POLYGON_ATTR_ENABLE_LIGHT0_MASK = 0x01 << POLYGON_ATTR_ENABLE_LIGHT0_BIT, POLYGON_ATTR_ENABLE_LIGHT1_MASK = 0x01 << POLYGON_ATTR_ENABLE_LIGHT1_BIT, POLYGON_ATTR_ENABLE_LIGHT2_MASK = 0x01 << POLYGON_ATTR_ENABLE_LIGHT2_BIT, POLYGON_ATTR_ENABLE_LIGHT3_MASK = 0x01 << POLYGON_ATTR_ENABLE_LIGHT3_BIT, POLYGON_ATTR_MODE_MASK = 0x03 << POLYGON_ATTR_MODE_BIT, POLYGON_ATTR_ENABLE_BACK_SURFACE_MASK = 0x01 << POLYGON_ATTR_ENABLE_BACK_SURFACE_BIT, POLYGON_ATTR_ENABLE_FRONT_SURFACE_MASK = 0x01 << POLYGON_ATTR_ENABLE_FRONT_SURFACE_BIT, POLYGON_ATTR_ENABLE_ALPHA_DEPTH_WRITE_MASK = 0x01 << POLYGON_ATTR_ENABLE_ALPHA_DEPTH_WRITE_BIT, POLYGON_ATTR_ENABLE_RENDER_ON_FAR_PLANE_INTERSECT_MASK = 0x01 << POLYGON_ATTR_ENABLE_RENDER_ON_FAR_PLANE_INTERSECT_BIT, POLYGON_ATTR_ENABLE_ONE_DOT_RENDER_MASK = 0x01 << POLYGON_ATTR_ENABLE_ONE_DOT_RENDER_BIT, POLYGON_ATTR_ENABLE_DEPTH_TEST_MASK = 0x01 << POLYGON_ATTR_ENABLE_DEPTH_TEST_BIT, POLYGON_ATTR_ENABLE_FOG_MASK = 0x01 << POLYGON_ATTR_ENABLE_FOG_BIT, POLYGON_ATTR_ALPHA_MASK = 0x1F << POLYGON_ATTR_ALPHA_BIT, POLYGON_ATTR_POLYGON_ID_MASK = 0x3F << POLYGON_ATTR_POLYGON_ID_BIT }; // TEXTURE PARAMETERS - BIT LOCATIONS enum { TEXTURE_PARAM_VRAM_OFFSET_BIT = 0, // Bits 0 - 15 TEXTURE_PARAM_ENABLE_REPEAT_S_BIT = 16, TEXTURE_PARAM_ENABLE_REPEAT_T_BIT = 17, TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_S_BIT = 18, TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_T_BIT = 19, TEXTURE_PARAM_SIZE_S_BIT = 20, // Bits 20 - 22 TEXTURE_PARAM_SIZE_T_BIT = 23, // Bits 23 - 25 TEXTURE_PARAM_FORMAT_BIT = 26, // Bits 26 - 28 TEXTURE_PARAM_ENABLE_TRANSPARENT_COLOR0_BIT = 29, TEXTURE_PARAM_COORD_TRANSFORM_MODE_BIT = 30 // Bits 30 - 31 }; // TEXTURE PARAMETERS - BIT MASKS enum { TEXTURE_PARAM_VRAM_OFFSET_MASK = 0xFFFF << TEXTURE_PARAM_VRAM_OFFSET_BIT, TEXTURE_PARAM_ENABLE_REPEAT_S_MASK = 0x01 << TEXTURE_PARAM_ENABLE_REPEAT_S_BIT, TEXTURE_PARAM_ENABLE_REPEAT_T_MASK = 0x01 << TEXTURE_PARAM_ENABLE_REPEAT_T_BIT, TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_S_MASK = 0x01 << TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_S_BIT, TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_T_MASK = 0x01 << TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_T_BIT, TEXTURE_PARAM_SIZE_S_MASK = 0x07 << TEXTURE_PARAM_SIZE_S_BIT, TEXTURE_PARAM_SIZE_T_MASK = 0x07 << TEXTURE_PARAM_SIZE_T_BIT, TEXTURE_PARAM_FORMAT_MASK = 0x07 << TEXTURE_PARAM_FORMAT_BIT, TEXTURE_PARAM_ENABLE_TRANSPARENT_COLOR0_MASK = 0x01 << TEXTURE_PARAM_ENABLE_TRANSPARENT_COLOR0_BIT, TEXTURE_PARAM_COORD_TRANSFORM_MODE_MASK = 0x03 << TEXTURE_PARAM_COORD_TRANSFORM_MODE_BIT }; // TEXTURE PARAMETERS - FORMAT ID enum { TEXMODE_NONE = 0, TEXMODE_A3I5 = 1, TEXMODE_I2 = 2, TEXMODE_I4 = 3, TEXMODE_I8 = 4, TEXMODE_4X4 = 5, TEXMODE_A5I3 = 6, TEXMODE_16BPP = 7 }; void gfx3d_init(); void gfx3d_reset(); typedef struct { bool enableLight0; bool enableLight1; bool enableLight2; bool enableLight3; bool enableRenderBackSurface; bool enableRenderFrontSurface; bool enableAlphaDepthWrite; bool enableRenderOnFarPlaneIntersect; bool enableRenderOneDot; bool enableDepthTest; bool enableRenderFog; bool isWireframe; bool isOpaque; bool isTranslucent; u8 enableLightFlags; u8 polygonMode; u8 surfaceCullingMode; u8 alpha; u8 polygonID; } PolygonAttributes; typedef struct { bool enableRepeatS; bool enableRepeatT; bool enableMirroredRepeatS; bool enableMirroredRepeatT; bool enableTransparentColor0; u8 sizeS; u8 sizeT; u8 texFormat; u8 coordTransformMode; u16 VRAMOffset; } PolygonTexParams; struct POLY { u8 vtxFormat; u16 vertIndexes[4]; //up to four verts can be referenced by this poly int type; //tri or quad //int typeGU; //tri or quad u32 polyAttr, texParam, texPalette; //the hardware rendering params u32 viewport; float miny, maxy; float minz, maxz; void setVertIndexes(int a, int b, int c, int d=-1) { vertIndexes[0] = a; vertIndexes[1] = b; vertIndexes[2] = c; if(d != -1) { vertIndexes[3] = d; type = 4; } else type = 3; } u8 getAttributeEnableLightFlags() const { return ((polyAttr & (POLYGON_ATTR_ENABLE_LIGHT0_MASK | POLYGON_ATTR_ENABLE_LIGHT1_MASK | POLYGON_ATTR_ENABLE_LIGHT2_MASK | POLYGON_ATTR_ENABLE_LIGHT3_MASK)) >> POLYGON_ATTR_ENABLE_LIGHT0_BIT); } bool getAttributeEnableLight0() const { return ((polyAttr & POLYGON_ATTR_ENABLE_LIGHT0_MASK) > 0); } bool getAttributeEnableLight1() const { return ((polyAttr & POLYGON_ATTR_ENABLE_LIGHT1_MASK) > 0); } bool getAttributeEnableLight2() const { return ((polyAttr & POLYGON_ATTR_ENABLE_LIGHT2_MASK) > 0); } bool getAttributeEnableLight3() const { return ((polyAttr & POLYGON_ATTR_ENABLE_LIGHT3_MASK) > 0); } u8 getAttributePolygonMode() const { return ((polyAttr & POLYGON_ATTR_MODE_MASK) >> POLYGON_ATTR_MODE_BIT); } u8 getAttributeEnableFaceCullingFlags() const { return ((polyAttr & (POLYGON_ATTR_ENABLE_BACK_SURFACE_MASK | POLYGON_ATTR_ENABLE_FRONT_SURFACE_MASK)) >> POLYGON_ATTR_ENABLE_BACK_SURFACE_BIT); } bool getAttributeEnableBackSurface() const { return ((polyAttr & POLYGON_ATTR_ENABLE_BACK_SURFACE_MASK) > 0); } bool getAttributeEnableFrontSurface() const { return ((polyAttr & POLYGON_ATTR_ENABLE_FRONT_SURFACE_MASK) > 0); } bool getAttributeEnableAlphaDepthWrite() const { return ((polyAttr & POLYGON_ATTR_ENABLE_ALPHA_DEPTH_WRITE_MASK) > 0); } bool getAttributeEnableRenderOnFarPlaneIntersect() const { return ((polyAttr & POLYGON_ATTR_ENABLE_RENDER_ON_FAR_PLANE_INTERSECT_MASK) > 0); } bool getAttributeEnableOneDotRender() const { return ((polyAttr & POLYGON_ATTR_ENABLE_ONE_DOT_RENDER_MASK) > 0); } bool getAttributeEnableDepthTest() const { return ((polyAttr & POLYGON_ATTR_ENABLE_DEPTH_TEST_MASK) > 0); } bool getAttributeEnableFog() const { return ((polyAttr & POLYGON_ATTR_ENABLE_FOG_MASK) > 0); } u8 getAttributeAlpha() const { return ((polyAttr & POLYGON_ATTR_ALPHA_MASK) >> POLYGON_ATTR_ALPHA_BIT); } u8 getAttributePolygonID() const { return ((polyAttr & POLYGON_ATTR_POLYGON_ID_MASK) >> POLYGON_ATTR_POLYGON_ID_BIT); } PolygonAttributes getAttributes() const { PolygonAttributes theAttr; theAttr.enableLightFlags = this->getAttributeEnableLightFlags(); theAttr.enableLight0 = this->getAttributeEnableLight0(); theAttr.enableLight1 = this->getAttributeEnableLight1(); theAttr.enableLight2 = this->getAttributeEnableLight2(); theAttr.enableLight3 = this->getAttributeEnableLight3(); theAttr.polygonMode = this->getAttributePolygonMode(); theAttr.surfaceCullingMode = this->getAttributeEnableFaceCullingFlags(); theAttr.enableRenderBackSurface = this->getAttributeEnableBackSurface(); theAttr.enableRenderFrontSurface = this->getAttributeEnableFrontSurface(); theAttr.enableAlphaDepthWrite = this->getAttributeEnableAlphaDepthWrite(); theAttr.enableRenderOnFarPlaneIntersect = this->getAttributeEnableRenderOnFarPlaneIntersect(); theAttr.enableRenderOneDot = this->getAttributeEnableOneDotRender(); theAttr.enableDepthTest = this->getAttributeEnableDepthTest(); theAttr.enableRenderFog = this->getAttributeEnableFog(); theAttr.alpha = this->getAttributeAlpha(); theAttr.isWireframe = this->isWireframe(); theAttr.isOpaque = this->isOpaque(); theAttr.isTranslucent = this->isTranslucent(); theAttr.polygonID = this->getAttributePolygonID(); return theAttr; } u16 getTexParamVRAMOffset() const { return ((texParam & TEXTURE_PARAM_VRAM_OFFSET_MASK) >> TEXTURE_PARAM_VRAM_OFFSET_BIT); } bool getTexParamEnableRepeatS() const { return ((texParam & TEXTURE_PARAM_ENABLE_REPEAT_S_MASK) > 0); } bool getTexParamEnableRepeatT() const { return ((texParam & TEXTURE_PARAM_ENABLE_REPEAT_T_MASK) > 0); } bool getTexParamEnableMirroredRepeatS() const { return ((texParam & TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_S_MASK) > 0); } bool getTexParamEnableMirroredRepeatT() const { return ((texParam & TEXTURE_PARAM_ENABLE_MIRRORED_REPEAT_T_MASK) > 0); } u8 getTexParamSizeS() const { return ((texParam & TEXTURE_PARAM_SIZE_S_MASK) >> TEXTURE_PARAM_SIZE_S_BIT); } u8 getTexParamSizeT() const { return ((texParam & TEXTURE_PARAM_SIZE_T_MASK) >> TEXTURE_PARAM_SIZE_T_BIT); } u8 getTexParamTexFormat() const { return ((texParam & TEXTURE_PARAM_FORMAT_MASK) >> TEXTURE_PARAM_FORMAT_BIT); } bool getTexParamEnableTransparentColor0() const { return ((texParam & TEXTURE_PARAM_ENABLE_TRANSPARENT_COLOR0_MASK) > 0); } u8 getTexParamCoordTransformMode() const { return ((texParam & TEXTURE_PARAM_COORD_TRANSFORM_MODE_MASK) >> TEXTURE_PARAM_COORD_TRANSFORM_MODE_BIT); } PolygonTexParams getTexParams() const { PolygonTexParams theTexParams; theTexParams.VRAMOffset = this->getTexParamVRAMOffset(); theTexParams.enableRepeatS = this->getTexParamEnableRepeatS(); theTexParams.enableRepeatT = this->getTexParamEnableRepeatT(); theTexParams.enableMirroredRepeatS = this->getTexParamEnableMirroredRepeatS(); theTexParams.enableMirroredRepeatT = this->getTexParamEnableMirroredRepeatT(); theTexParams.sizeS = this->getTexParamSizeS(); theTexParams.sizeT = this->getTexParamSizeT(); theTexParams.texFormat = this->getTexParamTexFormat(); theTexParams.enableTransparentColor0 = this->getTexParamEnableTransparentColor0(); theTexParams.coordTransformMode = this->getTexParamCoordTransformMode(); return theTexParams; } bool isWireframe() const { return (this->getAttributeAlpha() == 0); } bool isOpaque() const { return (this->getAttributeAlpha() == 31); } bool isTranslucent() const { // First, check if the polygon is wireframe or opaque. // If neither, then it must be translucent. if (!this->isWireframe() && !this->isOpaque()) { return true; } // Also check for translucent texture format. u8 texFormat = this->getTexParamTexFormat(); //a5i3 or a3i5 -> translucent if(texFormat == TEXMODE_A3I5 || texFormat == TEXMODE_A5I3) return true; return false; } void save(EMUFILE* os); void load(EMUFILE* is); }; //HCF PSP //#define POLYLIST_SIZE 100000 #ifdef LOWRAM #define POLYLIST_SIZE 1500 #else #define POLYLIST_SIZE 9000 #endif // LOWRAM struct POLYLIST { int count; POLY list[POLYLIST_SIZE]; }; //just a vert with a 4 float position struct VERT_POS4f { union { float coord[4]; struct { float x,y,z,w; }; struct { float x,y,z,w; } position; }; void set_coord(float x, float y, float z, float w) { this->x = x; this->y = y; this->z = z; this->w = w; } }; //dont use SSE optimized matrix instructions in here, things might not be aligned //we havent padded this because the sheer bulk of data leaves things running faster without the extra bloat struct VERT { // Align to 16 for SSE instructions to work union { float coord[4]; struct { float x,y,z,w; }; } CACHE_ALIGN; union { float texcoord[2]; struct { float u,v; }; } CACHE_ALIGN; void set_coord(float x, float y, float z, float w) { this->x = x; this->y = y; this->z = z; this->w = w; } void set_coord(float* coords) { x = coords[0]; y = coords[1]; z = coords[2]; w = coords[3]; } float fcolor[3]; u8 color[3]; void color_to_float() { fcolor[0] = color[0]; fcolor[1] = color[1]; fcolor[2] = color[2]; } void save(EMUFILE* os); void load(EMUFILE* is); }; //HCF PSP //#define VERTLIST_SIZE 100000 #ifdef LOWRAM #define VERTLIST_SIZE 3000 #else #define VERTLIST_SIZE 36000 #endif struct VERTLIST { int count; VERT list[VERTLIST_SIZE]; }; struct INDEXLIST { int list[POLYLIST_SIZE]; }; struct VIEWPORT { int x, y, width, height; void decode(u32 v); }; //PSP GU struct Vertex { //u16 color; float u, v; float x, y, z; }; //ok, imagine the plane that cuts diagonally across a cube such that it clips //out to be a hexagon. within that plane, draw a quad such that it cuts off //four corners of the hexagon, and you will observe a decagon #define MAX_CLIPPED_VERTS 10 class GFX3D_Clipper { public: struct TClippedPoly { int type; //otherwise known as "count" of verts POLY* poly; VERT clipVerts[MAX_CLIPPED_VERTS]; }; //the entry point for poly clipping template<bool hirez> void clipPoly(POLY* poly, VERT** verts); int clipPolyGU(POLY* poly, VERT** verts, Vertex* guVerts); //the output of clipping operations goes into here. //be sure you init it before clipping! int clippedPolyCounter; TClippedPoly * clippedPolys; void reset() { clippedPolyCounter=0; } private: TClippedPoly tempClippedPoly; TClippedPoly outClippedPoly; FORCEINLINE void clipSegmentVsPlane(VERT** verts, const int coord, int which); FORCEINLINE void clipPolyVsPlane(const int coord, int which); }; //used to communicate state to the renderer struct GFX3D_State { GFX3D_State() : enableTexturing(true) , enableAlphaTest(true) , enableAlphaBlending(false) , enableAntialiasing(false) , enableEdgeMarking(false) , enableClearImage(false) , enableFog(false) , enableFogAlphaOnly(false) , shading(TOON) , alphaTestRef(0) , activeFlushCommand(0) , pendingFlushCommand(0) , clearDepth(1) , clearColor(0) , fogColor(0) , fogOffset(0) , fogShift(0) , invalidateToon(true) { for(u32 i=0;i<ARRAY_SIZE(shininessTable);i++) shininessTable[i] = 0; for(u32 i=0;i<ARRAY_SIZE(u16ToonTable);i++) u16ToonTable[i] = 0; } BOOL enableTexturing, enableAlphaTest, enableAlphaBlending, enableAntialiasing, enableEdgeMarking, enableClearImage, enableFog, enableFogAlphaOnly; BOOL wbuffer, sortmode; bool invalidateToon; u8 alphaTestRef; u32 activeFlushCommand; u32 pendingFlushCommand; u32 clearDepth; u32 clearColor; static const u32 TOON = 0; static const u32 HIGHLIGHT = 1; u32 shading; #include "PACKED.h" struct { u32 fogColor; u32 pad[3]; //for savestate compatibility as of 26-jul-09 }; #include "PACKED_END.h" u32 fogOffset; u32 fogShift; u16 u16ToonTable[32]; u8 shininessTable[128]; }; struct Viewer3d_State { int frameNumber; GFX3D_State state; VERTLIST vertlist; POLYLIST polylist; INDEXLIST indexlist; }; extern Viewer3d_State* viewer3d_state; struct GFX3D { GFX3D() : polylist(0) , vertlist(0) , frameCtr(0) , frameCtrRaw(0) { } //ticks every time flush() is called int frameCtr; size_t vertListCount; //you can use this to track how many real frames passed, for comparing to frameCtr; int frameCtrRaw; //currently set values GFX3D_State state; //values used for the currently-rendered frame (committed with each flush) GFX3D_State renderState; POLYLIST* polylist; VERTLIST* vertlist; INDEXLIST indexlist; }; extern GFX3D gfx3d; //--------------------- extern CACHE_ALIGN float mtxCurrent[4][16]; extern CACHE_ALIGN u32 color_15bit_to_24bit[32768]; extern CACHE_ALIGN u32 color_15bit_to_24bit_reverse[32768]; extern CACHE_ALIGN u16 color_15bit_to_16bit_reverse[32768]; extern CACHE_ALIGN u32 dsDepthExtend_15bit_to_24bit[32768]; extern CACHE_ALIGN u8 mixTable555[32][32][32]; extern CACHE_ALIGN const int material_5bit_to_31bit[32]; extern CACHE_ALIGN const u8 material_5bit_to_8bit[32]; extern CACHE_ALIGN const u8 material_3bit_to_5bit[8]; extern CACHE_ALIGN const u8 material_3bit_to_6bit[8]; extern CACHE_ALIGN const u8 material_3bit_to_8bit[8]; //these contain the 3d framebuffer converted into the most useful format //they are stored here instead of in the renderers in order to consolidate the buffers extern CACHE_ALIGN u8 gfx3d_convertedAlpha[GFX3D_FRAMEBUFFER_WIDTH*GFX3D_FRAMEBUFFER_HEIGHT*2]; //see cpp for explanation of illogical *2 extern BOOL isSwapBuffers; int _hack_getMatrixStackLevel(int); void gfx3d_glFlush(u32 v); // end GE commands void gfx3d_glFogColor(u32 v); void gfx3d_glFogOffset (u32 v); void gfx3d_glClearDepth(u32 v); void gfx3d_glSwapScreen(u32 screen); int gfx3d_GetNumPolys(); int gfx3d_GetNumVertex(); void gfx3d_UpdateToonTable(u8 offset, u16 val); void gfx3d_UpdateToonTable(u8 offset, u32 val); s32 gfx3d_GetClipMatrix (u32 index); s32 gfx3d_GetDirectionalMatrix (u32 index); void gfx3d_glAlphaFunc(u32 v); u32 gfx3d_glGetPosRes(u32 index); u16 gfx3d_glGetVecRes(u32 index); void gfx3d_VBlankSignal(); void gfx3d_VBlankEndSignal(bool skipFrame); void gfx3d_Control(u32 v); void gfx3d_execute3D(); void gfx3d_sendCommandToFIFO(u32 val); void gfx3d_sendCommand(u32 cmd, u32 param); //other misc stuff void gfx3d_glGetMatrix(u32 mode, int index, float* dest); void gfx3d_glGetLightDirection(u32 index, u32* dest); void gfx3d_glGetLightColor(u32 index, u32* dest); void gfx3d_GetLineData(int line, u8** dst); void gfx3d_GetLineData15bpp(int line, u16** dst); struct SFORMAT; extern SFORMAT SF_GFX3D[]; void gfx3d_savestate(EMUFILE* os); bool gfx3d_loadstate(EMUFILE* is, int size); void gfx3d_ClearStack(); #endif //_GFX3D_H_
2e53739e4efadfee4cbcd68047836f7dd14ff98d
0ab72b7740337ec0bcfec102aa7c740ce3e60ca3
/include/data/geometry/distance-buffer-simple.h
cbdf7aa4fe79614780bfe1ffb8d220eaaed184b5
[]
no_license
junwang-nju/mysimulator
1d1af4ad7ddbe114433ebdadd92de8bb3a45c04f
9c99970173ce87c249d2a2ca6e6df3a29dfc9b86
refs/heads/master
2021-01-10T21:43:01.198526
2012-12-15T23:22:56
2012-12-15T23:22:56
3,367,116
0
0
null
null
null
null
UTF-8
C++
false
false
2,526
h
distance-buffer-simple.h
#ifndef _Distance_Buffer_H_ #define _Distance_Buffer_H_ #include "data/basic/unique-parameter.h" #include "data/name/distance-buffer-property.h" namespace std { template <typename T> struct DistanceBufferSimple : public Vector<UniqueParameter> { typedef DistanceBufferSimple Type; typedef Vector<UniqueParameter> ParentType; Vector<T> DisplaceVec; DistanceBufferSimple() : ParentType(), DisplaceVec() {} DistanceBufferSimple(const Type& B) { Error("Cannot create Simple Distance Buffer"); } Type& operator=(const Type& B) { Error("Cannot copy Simple Distance Buffer"); return *this; } ~DistanceBufferSimple() { release(*this); } unsigned int& NumberOfUnits() { return this->operator[](NumberUnit).u; } const unsigned int& NumberOfUnits() const { return this->operator[](NumberUnit).u; } T& DistanceSquare() { typedef UniqueParameter UT; return static_cast<UT&>(this->operator[](DistanceSQ)).value<T>(); } const T& DistanceSquare() const { typedef UniqueParameter UT; return static_cast<const UT&>(this->operator[](DistanceSQ)).value<T>(); } const unsigned int Dimension() const { return DisplaceVec.size; } void renew() {} }; template <typename T> bool IsAvailable(const DistanceBufferSimple<T>& B) { return IsAvailable(static_cast<const Vector<UniqueParameter>&>(B)); } template <typename T> bool IsDistanceBuffer(const DistanceBufferSimple<T>& B) { return true; } template <typename T> void release(DistanceBufferSimple<T>& B) { release(B.DisplaceVec); release(static_cast<Vector<UniqueParameter>&>(B)); } template <typename T, typename cT> void copy(DistanceBufferSimple<T>& B, const DistanceBufferSimple<cT>& cB) { copy(B.DisplaceVec,cB.DisplaceVec); copy(static_cast<Vector<UniqueParameter>&>(B), static_cast<const Vector<UniqueParameter>&>(cB)); } template <typename T> void allocate(DistanceBufferSimple<T>& B, const unsigned int dim, const unsigned int nunit) { allocate(B.DisplaceVec,dim); allocate(static_cast<Vector<UniqueParameter>&>(B),SimpleBufferSize); copy(B[NumberUnit],nunit); } template <typename T> void refer(DistanceBufferSimple<T>& B, const DistanceBufferSimple<T>& rB) { refer(B.DisplaceVec,rB.DisplaceVec); refer(static_cast<Vector<UniqueParameter>&>(B), static_cast<const Vector<UniqueParameter>&>(rB)); } } #endif
8ab68dfcc08408f377daaf30015421e6e3c6c7e6
f2bfe92bcb233798fc9c49ed22748d8c7571706a
/SkyEngine/Device.cpp
83c74a7f67f9942da3825906aec5092173d3444f
[]
no_license
am17/SkyEngine
d5ed9064daa00151a3dec182cd328b2f369555eb
5882ba9a267fbfb134e1eff44cb026a3ebd30302
refs/heads/master
2021-01-23T02:05:44.370183
2017-06-19T20:27:47
2017-06-19T20:27:47
92,908,018
0
0
null
null
null
null
UTF-8
C++
false
false
3,812
cpp
Device.cpp
#include "stdafx.h" #include "Device.h" #include "D3D11DeviceImp.h" Device::Device() :_pDeviceImpl(nullptr) { } Device::~Device() { if (_pDeviceImpl) { delete _pDeviceImpl; _pDeviceImpl = nullptr; } } bool Device::init(HWND m_hwnd, int screenWidth, int screenHeight, bool fullscreen) { _pDeviceImpl = new D3D11DeviceImpl(); return _pDeviceImpl->init(m_hwnd, screenWidth, screenHeight, fullscreen); } void Device::clearBackBuffer() { _pDeviceImpl->clearBackBuffer(); } void Device::present() { _pDeviceImpl->present(); } VertexBuffer* Device::createVertexBuffer(const void *pData, unsigned int elementsCount, unsigned int stride) { VertexBuffer *vertexBuffer = _pDeviceImpl->createVertexBuffer(pData, elementsCount, stride); return vertexBuffer; } IndexBuffer* Device::createIndexBuffer(const void *pData, size_t elementsCount, unsigned int stride, INDEX_BUFFER_FORMAT format) { IndexBuffer* indexBuffer = _pDeviceImpl->createIndexBuffer(pData, elementsCount, stride, format); return indexBuffer; } Shader* Device::createVertexShader(const void* pByteCode, size_t ByteCodeLength) { Shader* vs = _pDeviceImpl->createVertexShader(pByteCode, ByteCodeLength); return vs; } Shader* Device::createPixelShader(const void* pByteCode, size_t ByteCodeLength) { Shader* ps = _pDeviceImpl->createPixelShader(pByteCode, ByteCodeLength); return ps; } InputLayout* Device::createInputLayout(VertexLayoutDesc *layoutDesc, const unsigned int layoutDescLength, const void* pByteCode, size_t ByteCodeLength) { InputLayout* layout = _pDeviceImpl->createInputLayout(layoutDesc, layoutDescLength, pByteCode, ByteCodeLength); return layout; } ConstantBuffer* Device::createConstantBuffer(unsigned int bufferSize, EConstantBufferType type) { ConstantBuffer* cb = _pDeviceImpl->createConstantBuffer(bufferSize, type); return cb; } Texture* Device::createTextureFromFile(wchar_t* filename) { Texture *texture = _pDeviceImpl->createTextureFromFile(filename); return texture; } Texture * Device::createTexture2D(unsigned int width, unsigned int height, const void * data, bool createRenderTarget, unsigned int multiSampleCount, unsigned int multiSampleQuality) { Texture *texture = _pDeviceImpl->createTexture2D(width, height, data, createRenderTarget, multiSampleCount, multiSampleQuality); return texture; } void Device::setPrimitiveTopology(PRIMITIVE_TOPOLOGY primitiveType) { _pDeviceImpl->setPrimitiveTopology(primitiveType); } void Device::setRepeatMaxAnisoSampler(sky::EShaderType shaderType, unsigned int slot) { _pDeviceImpl->setRepeatMaxAnisoSampler(shaderType, slot); } void Device::setClampLinearSampler(sky::EShaderType shaderType, unsigned int slot) { _pDeviceImpl->setClampLinearSampler(shaderType, slot); } void Device::setBackFaceCulling(bool cullBackFace) { _pDeviceImpl->setBackFaceCulling(cullBackFace); } void Device::setDepthState(sky::EDepthState depthState) { _pDeviceImpl->setDepthState(depthState); } void Device::setBlendState(sky::EBlendState blendState) { _pDeviceImpl->setBlendState(blendState); } void Device::setBackBufferAsRenderTarget() { _pDeviceImpl->setBackBufferAsRenderTarget(); } void Device::draw(unsigned int vertexCount, unsigned int startVertexIndex) { _pDeviceImpl->draw(vertexCount, startVertexIndex); } void Device::drawIndexed(unsigned int IndexCount, unsigned int StartIndexLocation, int BaseVertexLocation) { _pDeviceImpl->drawIndexed(IndexCount, StartIndexLocation, BaseVertexLocation); } void Device::drawIndexedInstanced(unsigned int indexCountPerInstance, unsigned int instanceCount, unsigned int startIndexLocation, int baseVertexLocation, unsigned int startInstanceLocation) { _pDeviceImpl->drawIndexedInstanced(indexCountPerInstance, instanceCount, startIndexLocation, baseVertexLocation, startInstanceLocation); }
5fd0afe19da756a832064ce6b83ade1e225049e0
bb01edaac9e544cf344caf10ecb0e4f757ae922c
/src/SkinUIDemo/ButtonDialog.cpp
df58b6e1e32af18b33ffd19ff862e50ce3810ad5
[]
no_license
weypro/Ice-Project-Manager
fc35efec2ec48e803abf93601aed5a369d463387
cfe3dd1b8bd68630fda803089913a119b18497c6
refs/heads/master
2020-03-30T04:26:23.684754
2018-10-01T11:59:36
2018-10-01T11:59:36
150,742,629
1
0
null
null
null
null
ISO-8859-9
C++
false
false
629
cpp
ButtonDialog.cpp
#include "stdafx.h" #include "ButtonDialog.h" SKINUI_BEGIN_MESSAGE_MAP(CButtonDialog, CSkinDialog) ON_SKINUI_COMMAND(IDC_BUTTON1, OnButtonClicked) ON_SKINUI_COMMAND(IDC_BUTTON2, OnButtonClicked) ON_SKINUI_COMMAND(IDC_BUTTON3, OnButtonClicked) ON_SKINUI_COMMAND(IDC_BUTTON4, OnButtonClicked) SKINUI_END_MESSAGE_MAP() CButtonDialog::CButtonDialog(const tstring& strXml) : CSkinDialog(strXml) { } void CButtonDialog::OnInitDialog() { CSkinDialog::OnInitDialog(); } void CButtonDialog::OnButtonClicked(UINT uNotifyCode, int nID, CSkinView* pView) { MsgBox(SkinUI::StringFormat(_T("OnButtonClicked£¬Id=%d£¡"), nID)); }
44b05a9ff435b8f2154ac1139c2017aa6c1958d7
5f8d31c311e37e1b0af45f1b9705883ade20d077
/ns/src/MemoryAllocator/src/CPlusPlusLevel.cp
c30d2c82eb50adc192c1d3819dacfb82a0db8925
[]
no_license
acolchagoff/mozz
e64325b16ed135bbad4abb99dade0437e8ae5a7c
ff6798c307e3bbdae6dfe0da23cfe3c594908255
refs/heads/master
2023-06-23T14:44:03.842724
2018-03-06T13:10:33
2018-03-06T13:10:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,757
cp
CPlusPlusLevel.cp
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ #include <UException.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "prtypes.h" #include "FlushAllocator.h" //############################################################################## //############################################################################## void* Flush_Allocate( size_t size, Boolean zero ) { void *newBlock = malloc( size ); if ((newBlock != NULL) && zero) memset(newBlock, 0, size); return newBlock; } void Flush_Free( void* item ) { free(item); } void* Flush_Reallocate( void* item, size_t size ) { void* newBlock = NULL; newBlock = realloc( item, size ); return newBlock; } //############################################################################## //############################################################################## void* operator new( size_t size ) { void* mem = Flush_Allocate( size, FALSE ); ThrowIfNil_( mem ); return mem; } void operator delete( void* block ) { Flush_Free( block ); }
b800d0e852931b9770167ae03034e529cfe7667d
b9606c302edeb76b52ab22bdccd596d9f7a94209
/modules/task_1/kukushkina_k_lexicograph/lexicograph.h
e28d7f638f20707f42e73eb547042a26eff4069b
[]
no_license
DrXlor/pp_2019_autumn
31f68a32f2fc334f4ce534161fb32c8cb70baf1c
e01960c714ad1e86d68cbf3be551741106dc908d
refs/heads/master
2020-09-20T11:56:11.773825
2019-11-26T09:00:15
2019-11-26T09:00:15
224,469,332
2
0
null
2019-11-27T16:11:27
2019-11-27T16:11:26
null
UTF-8
C++
false
false
424
h
lexicograph.h
// Copyright 2019 Kukushkina Ksenia #ifndef MODULES_TASK_1_KUKUSHKINA_K_LEXICOGRAPH_LEXICOGRAPH_H_ #define MODULES_TASK_1_KUKUSHKINA_K_LEXICOGRAPH_LEXICOGRAPH_H_ #include <string> std::string generateString(const int length); bool isFragmentOrdered(const std::string source); bool isStringOrdered(const std::string source1, const std::string source2); #endif // MODULES_TASK_1_KUKUSHKINA_K_LEXICOGRAPH_LEXICOGRAPH_H_
f7b0d9db745103a2d7297c2af624cea0175dcc5c
658dd4a71ce689ef6338894628d8cdb59a595ba5
/COJ/KhozmoS-p3542-Accepted-s915877.cpp
83b5c0eb40aa00b086c076df7c3f2f3c00f9874a
[]
no_license
KhozmoS/Competitive-Programming-Solutions
4d8be747efc7feb29a5f70dc6c1ea1bd26c9e78c
9cb7b6e500854ab22fc405c2c5c4f444e06e7056
refs/heads/master
2021-02-04T09:17:18.818228
2020-02-28T01:24:11
2020-02-28T01:24:11
243,648,605
2
0
null
null
null
null
UTF-8
C++
false
false
1,162
cpp
KhozmoS-p3542-Accepted-s915877.cpp
#include<bits/stdc++.h> #define MAXN 105 typedef long long LL; using namespace std; typedef pair <LL , LL> par; int n , t , p; queue <LL> cola; bool mk[MAXN]; int cost[MAXN]; vector <par> adl[MAXN] ; LL dijk() { for(int i = 2 ; i <= n ; i++)cost[i] = 1000000000; cola.push(1); while(!cola.empty()) { LL n = cola.front(); //mk[n] = true; cola.pop(); for(int i = 0 ; i < adl[n].size() ; i++) { par nn = adl[n][i]; if(cost[nn.first] > (nn.second + cost[n])) cost[nn.first] = nn.second + cost[n]; cola.push(nn.first); } } return cost[n]; } int main() { ios_base::sync_with_stdio(0);cin.tie(0); cin>>n>>t; for(int i = 1 ; i < n ; i++) { cin>>p; par pu; pu.first = i + 1; pu.second = p; adl[i].push_back(pu); //adl[i].second.push_back(p); } for(int i = 0 ; i < t ; i++) { LL a , b; cin>>a>>b; par pu; pu.first = b; pu.second = 1; adl[a].push_back(pu); } cout<<dijk()<<"\n"; //for(int i = 0 ; i <= n ; i++) //cout<<cost[i]<<"\n"; return 0; }