blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
55859a40c71716a5123648890492e4103e66f44d
035f63fbf8d9b4625190bc71d56a1a2b20ff5655
/Lab8/main.cpp
c2d8f8a98f384b5193411755d70c5234f22222a9
[]
no_license
ChernovAndrey/Numerical-analysis
3f126c622d77f49c6e0ddba979cdda4159b367c7
2f4f6b8d3420c4a53707f860aec07ec7134b584b
refs/heads/master
2021-05-06T00:20:47.515912
2018-08-15T15:45:05
2018-08-15T15:45:05
102,984,473
1
0
null
null
null
null
UTF-8
C++
false
false
2,991
cpp
#include <iostream> #include "Solve.h" using namespace std; void writingData(vector<vector<double>> U){ const string pathToFile = "/home/andrey/CLionProjects/NumericalMethods/Lab8/files/Ui.txt"; ofstream file(pathToFile, ios_base::out | ios_base::trunc); //F file << "{"; for (int i = 0; i < U.size(); i++) { auto v = U[i]; // file << "{ "; for (int j = 0; j < v.size(); j++) { file << v[j]<<" "; if (j!=v.size()-1){ // file << " "; } } // file << "} "; } // file << "}"<<endl; file.close(); const string pathToConfig = "/home/andrey/CLionProjects/NumericalMethods/Lab8/files/config.txt"; ofstream config(pathToConfig, ios_base::out | ios_base::trunc); config<<U.size()<<endl; config<<U[0].size()<<endl; config.close(); } vector<double> getAccuracy1(double h, double x0, double xf, double tf){ //для первого уравнения auto getSolution = [](double t, double x){ auto pi = M_PI; return sin(pi*x)*cos(pi*t); }; vector<double> UAcc; for (double i = x0; i <= xf ; i+=h) { UAcc.push_back( getSolution(tf,i) ); } return UAcc; } vector<double> getAccuracy2(double h, double x0, double xf, double tf){ //для первого уравнения double eps=1e-8; auto getTerm = [](double t, double x, int n){ auto pi = M_PI; return pow(2*n+1,-3)*sin( (2*n+1)*pi*x)*cos( (2*n+1)*pi*t); }; auto pi = M_PI; vector<double> UAcc; for (double i = x0; i <= xf ; i+=h) { int k = (int)(0.5*( sqrt( 2/(pi*pi*eps) ) -1 ))+1; double term=0.0; for (int j = 0; j <= k; ++j) { term+=getTerm(tf,i,j); } UAcc.push_back( 8*term/(pi*pi*pi) ); } return UAcc; } int main() { double q =1.0; // double h=1/(90.0*q); double h=0.01/q; double tau=0.01/q; double x0=0.0; double xf=1.0; double t0=0.0; double tf=0.5; auto * solve = new Solve(h,tau,x0,xf,t0,tf); auto U = solve->calculate(); delete solve; printMatrix(U); cout<<"size="<<U.size()<<'\t'<<U[0].size()<<endl; writingData(U); cout<<"U0:"<<endl; printVector(U[0]); cout<<"U1:"<<endl; printVector(U[1]); auto flagCompare = true;//cравнивать с точным решением if (flagCompare==true){ cout << "Accuracy" << endl; // auto accur0 = getAccuracy2(h, x0, xf, 0); // cout<<"accur0:"<<endl; // printVector(accur0); // // auto accur1 = getAccuracy2(h, x0, xf, tau); // cout<<"accur1:"<<endl; // printVector(accur1); auto accur = getAccuracy2(h, x0, xf, tf); printVector(accur); cout<<"Residual:"<<endl; cout<<normVectorC( diffVectors(accur,U[U.size()-1]) )<<endl; } cout<<"Res U0 Uf "<<normVectorC( diffVectors(U[0],U[U.size()-1]) )<<endl; return 0; }
[ "chernov.andrey.98@mail.ru" ]
chernov.andrey.98@mail.ru
4ace3f917c5173744bca98d5e96ea397051a10aa
5ed12b0958cdd2b528ebc766424d36f0e2a9630c
/misc/student-vip.cpp
a88e82afd347574fad53f6f83cf39e53fbc543b8
[]
no_license
MisterFishing/cpp
fe5470bb9a74a90ce045c6f5a37b77da7f40ef33
1eb363fc03a1119d67808dfed624fb75bbc337ba
refs/heads/master
2021-10-31T19:22:56.530246
2021-10-21T14:42:21
2021-10-21T14:42:21
208,675,464
45
34
null
null
null
null
UTF-8
C++
false
false
1,191
cpp
#include <iostream> #include <string.h> using namespace std; class student { private: char name[10]; int number; int score; static student * vip; student(char const * name, int number, int score) { if(strlen(name)>=10) { cout << "length of " << name << " >= 10 " << endl; exit(0); } strcpy(this->name,name); this->number=number; this->score=score; } public: void display() { cout << name << " " << number << " " << score << endl; } static student * new_student(char const * name, int number, int score) { if(vip==NULL) vip=new student(name, number, score); else cout << "sorry, only one vip" << endl; return vip; } }; student * student::vip = NULL; int main() { student *zs = student::new_student("zhangsan", 1, 90); zs->display(); student *ls = student::new_student("lisi", 2, 80); ls->display(); student *ww = student::new_student("wangwu ", 3, 70); ww->display(); return 0; }
[ "yushengji@foxmail.com" ]
yushengji@foxmail.com
8908aee70c53ae5ae375c2cba8fd136cb7261693
69005ab4c8cc5d88d7996d47ac8def0b28730b95
/msvc-cluster-realistic-1000/src/dir_7/perf371.cpp
6593daabf9b8d5b1b4fa910fb151cc2b3244d3fd
[]
no_license
sakerbuild/performance-comparisons
ed603c9ffa0d34983a7da74f7b2b731dc3350d7e
78cd8d7896c4b0255ec77304762471e6cab95411
refs/heads/master
2020-12-02T19:14:57.865537
2020-05-11T14:09:40
2020-05-11T14:09:40
231,092,201
0
0
null
null
null
null
UTF-8
C++
false
false
209
cpp
#include <Windows.h> #include <vector> #include <inc_2/header_40.h> static_assert(sizeof(GenClass_40) > 0, "failed"); std::vector<int> perf_func_371() { LoadLibrary("abc.dll"); return {371}; }
[ "10866741+Sipkab@users.noreply.github.com" ]
10866741+Sipkab@users.noreply.github.com
22e606401b8df802f3c3823eef28ea1c208fd1f7
9c66775c4276d770f67a33a99d70b6d8f9f5343f
/Banque.cpp
6e40964fa31a36cb848f161796e9355a342eb93e
[]
no_license
MVeyssiere/LDNR_CplusplusProject
e7535e01dc73720b27903fd4d8934152dc3765a5
fa00c3852d5387b289ed9a6d8efa0cd0807bd618
refs/heads/master
2020-04-21T08:59:35.554719
2019-02-06T16:16:54
2019-02-06T16:16:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,365
cpp
//============================================================================ // Name : Banque.cpp // Author : ChristopheR_JulienMo_MarineV // Version : // Copyright : // Description : Hello World in C++, Ansi-style //============================================================================ #include <iostream> #include <map> #include <vector> #include "Compte.h" #include "Comptecourant.h" #include "Comptebloque.h" #include "Livretepargne.h" #include "Date.h" #include "Client.h" #include<typeinfo> using namespace std; const float Compte_courant::decouvert_autorise = -100; const int Compte_bloque::duree_blocage = 84; // 84 mois egal 7 ans de blocage const float Compte_bloque::taux_interet = 0.02; const int Compte_bloque::montant_min = 100; const int Livret_epargne::montant_min = 20; const float Livret_epargne::taux_interet = 0.0125; const int Livret_epargne::plafond_solde = 7700; typedef map<Date, float> operations; int main() { Date date_actuelle(31, 12, 2019); // simulation d'opérations operations o; o[Date(12, 4, 2018)] = 34.70; o[Date(27, 9, 2018)] = 98.90; o[Date(2, 12, 2017)] = 4.20; operations p; p[Date(4,4,2015)] = 19.90; p[Date(5,3,2016)] = 145.50; p[Date(3,5, 2017)] = 4.20; operations q; q[Date(1,3,1998)] = 34.70; q[Date(1,4,1998)] = 100.0; q[Date(1,5,1998)] = 10.0; operations r; r[Date(3,5,2000)] = 42.0; r[Date(3,6,2000)] = 42.5; r[Date(3,7,2000)] = 42.9; operations s; s[Date(10,4,2001)] = 21.0; s[Date(10,5,2001)] = 22.0; s[Date(10,6,2001)] = 23.0; // Création du tableau de clients (banquier) //Client*client0000 = new Client(0000, "Crédit ","Badoit", "23 avenue de la soif 31100 Gorc"); // Création du tableau de clients Client *client1111 = new Client(1111,"Geralt", "Deriv", "70 rue de la source 31200 Zorc"); Client *client2222 = new Client(2222,"Brigitte", "Foderi", "2 Avenue du puit 31400 Borc"); Client *client3333 = new Client(3333,"Gertrude", "Fouprit", "7 rue minérale 31500 Lorc"); Client *client4444 = new Client(4444,"Bernard", "Loitere", "10 rue meeste 31600 Morc"); Client *client5555 = new Client(5555,"Françis", "Lalane", "3 rue du nem 31700 Forc"); vector<Client*> clients(5); clients[0] = client1111; clients[1] = client2222; clients[2] = client3333; clients[3] = client4444; clients[4] = client5555; //clients[5] = client0000;//banquier // creation des comptes du client 1 Compte_courant *client1_cc1 = new Compte_courant("Compte courant", 1111 , 3000, 0.05, Date(20,6,2010), o); Compte_bloque *client1_cb1 = new Compte_bloque("Compte bloque", 1111 , 2000, Date(20,6,2014), p); Livret_epargne *client1_lep1 = new Livret_epargne("Livret epargne", 1111 , 4500, Date(20,6,2012), q); // creation des comptes du client 2 Compte_courant *client2_cc2 = new Compte_courant("Compte courant", 2222 , -101, 0.05, Date(20,6,2010), r); Compte_bloque *client2_cb2 = new Compte_bloque("Compte bloque", 2222 , 5000, Date(20,6,2013), s); Livret_epargne *client2_lep2 = new Livret_epargne("Livret epargne", 2222 , 5500, Date(20,6,2010), p); // creation des comptes du client 3 Compte_courant *client3_cc3 = new Compte_courant("Compte courant", 3333 , 2500, 0.05, Date(20,6,2010), s); Compte_bloque *client3_cb3 = new Compte_bloque("Compte bloque", 3333 , 4000, Date(20,6,2012), p); Livret_epargne *client3_lep3 = new Livret_epargne("Livret epargne", 3333 , 5500, Date(20,6,2010), q); // creation des comptes du client 4 Compte_courant* client4_cc4 = new Compte_courant("Compte courant", 4444 , 2500, 0.05, Date(20,6,2010), o); Compte_bloque* client4_cb4 = new Compte_bloque("Compte bloque", 4444 , 4000, Date(20,6,2014), r); Livret_epargne* client4_lep4 = new Livret_epargne("Livret epargne", 4444 , 10000, Date(20,6,2012), p); // creation des comptes du client 5 Compte_courant *client5_cc5 = new Compte_courant("Compte courant", 5555 , 2500, 0.05, Date(20,6,2010),q); Compte_bloque *client5_cb5 = new Compte_bloque("Compte bloque", 5555 , 4000, Date(20,6,2014),s); Livret_epargne *client5_lep5 = new Livret_epargne("Livret epargne", 5555 , 5000, Date(20,6,2016),p); Livret_epargne *client5_lep51 = new Livret_epargne("Livret epargne", 5555 , 1500, Date(20,6,2019),o); vector<Compte*> clients_comptes(16); clients_comptes[0] = client1_cc1; clients_comptes[1] = client1_cb1; clients_comptes[2] = client1_lep1; clients_comptes[3] = client2_cc2; clients_comptes[4] = client2_cb2; clients_comptes[5] = client2_lep2; clients_comptes[6] = client3_cc3; clients_comptes[7] = client3_cb3; clients_comptes[8] = client3_lep3; clients_comptes[9] = client4_cc4; clients_comptes[10] = client4_cb4; clients_comptes[11] = client4_lep4; clients_comptes[12] = client5_cc5; clients_comptes[13] = client5_cb5; clients_comptes[14] = client5_lep5; clients_comptes[15] = client5_lep51; // IHM int id_client, choix_compte; cout << "\nSaisissez votre id client: "; cin >> id_client; /*if(id_client==0000) { Compte::MenuBanquier(); }*/ bool client_trouve = false; vector<int> tab_indice_compte_client; // stocke les indices des comptes du client du vector clients_comptes for(int i=0; i<5 && !client_trouve; i++){ if (id_client == clients[i]->Getid()){ // recherche du client par son ID cout << "Bonjour " << clients[i]->GetNom() << " " << clients[i]->GetPrenom() << endl; for(unsigned int j=0; j<clients_comptes.size(); j++){ if( id_client == clients_comptes[j]->GetTitulaire()){ // recherche des comptes du client cout << "Vous êtes titulaire des comptes suivants: " << endl; // Affichage pour le client cout << "Indice du compte: " << j << " | " << *clients_comptes[j]; // affichage de l'indice du compte pour ensuite afficher le menu du compte client_trouve = true; // le client est trouvé donc stop boucle tab_indice_compte_client.push_back(j); // recup des indices des comptes du client dans vector } } } } int exit=0; while(exit ==0) { cout << "\nSélectionnez l'indice du compte que vous souhaitez consulter ou taper -1 pour sortir du programme = "; cin >> choix_compte; if (choix_compte==-1) // Client peut sortir du programme { exit=1; cout << "A bientot "; } else{ //cout << *clients_comptes[choix_compte]; clients_comptes[choix_compte]->Menu(date_actuelle); // Menu du type de compte selectionné } } return 0; }
[ "noreply@github.com" ]
noreply@github.com
a3f6a7dad4653cf531ca94967238147958fe9dbe
eef33c48b4fcce5c4e8ada9b660ce41b5e70659c
/EditableModel/EditableModel/ModelEdgeHandleBase.h
3593ce85ee298b190e02d03d948d78e61301995e
[]
no_license
megatelesync/Editor3D
b82839b41c410db049dffbf56d81fce33dfaf7c6
2d7096be43ea13ffa5dd36c5c9a8e16eeae327e6
refs/heads/master
2021-09-10T00:32:26.699038
2018-03-20T10:26:28
2018-03-20T11:38:06
125,995,461
0
0
null
null
null
null
UTF-8
C++
false
false
1,923
h
#ifndef _ModelEdgeHandleBase_h_ #define _ModelEdgeHandleBase_h_ #include <cstddef> #include "EditableModel_structs.h" #include "ModelEdgeConstHandle_fwd.h" namespace Dv { namespace EditableModel { template<class PolyHandleTypeArg, class EdgeIteratorTypeArg, class VertexHandleTypeArg> class ModelEdgeHandleBase { public: typedef ModelEdgeHandleBase<PolyHandleTypeArg, EdgeIteratorTypeArg, VertexHandleTypeArg> ThisType; typedef PolyHandleTypeArg PolyHandleType; typedef EdgeIteratorTypeArg EdgeIteratorType; typedef VertexHandleTypeArg VertexHandleType; inline ModelEdgeHandleBase() : _hash(0) {} inline ModelEdgeHandleBase(const typename PolyHandleType::PolygonHandleBaseType & polyHandleIn, EdgeIteratorTypeArg startVertexIterIn); inline operator ModelEdgeConstHandle() const { return ModelEdgeConstHandle(_polyHandle, _startVertexIterator); } size_t hash() const { return _hash; } inline typename PolyHandleType::ModelType *GetModel() const { return _polyHandle.GetModel(); } inline const PolyHandleType& GetPolygon() const { return _polyHandle; } inline EdgeIteratorType GetVertexIterator() const { return _startVertexIterator; } inline VertexHandleType GetStartModelVertexHandle() const; inline VertexHandleType GetEndModelVertexHandle() const; inline ThisType GetNextEdge() const; inline ThisType GetPreviousEdge() const; inline const PolygonVertexInfo& GetStartVertexInfo() const; inline const PolygonVertexInfo& GetEndVertexInfo() const; inline bool IsNull() const { return _polyHandle.IsNull(); } protected: PolyHandleTypeArg _polyHandle; EdgeIteratorTypeArg _startVertexIterator; size_t _hash; }; } // EditableModel } // Dv #endif // _ModelEdgeHandleBase_h_
[ "jobogur@gmail.com" ]
jobogur@gmail.com
7a8cf54e2d0d7b5bc7ba95efa7bdc0f7b4f0c0fb
b4aac6acca40c0ad67078e4c61109afdf5c11a33
/LightLib/LightLib/LightLib.h
290d9a9456d67d604cbc915657d008ad753762c8
[]
no_license
palist/partyPro
f8d25c198caaccbb0064e0e8398ac6c0fcb932c5
2b086170420567ed7781f594ba51c93be1157729
refs/heads/master
2020-12-27T04:04:17.700917
2020-02-02T12:29:41
2020-02-02T12:29:41
237,758,674
0
0
null
null
null
null
GB18030
C++
false
false
467
h
// LightLib.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 // CLightLibApp: // 有关此类的实现,请参阅 LightLib.cpp // class CLightLibApp : public CWinApp { public: CLightLibApp(); // 重写 public: virtual BOOL InitInstance(); // 实现 DECLARE_MESSAGE_MAP() }; extern CLightLibApp theApp;
[ "651241209@qq.com" ]
651241209@qq.com
2eb3b515c84b75fcb97eb670a8592d0d54ef4d8e
38616fa53a78f61d866ad4f2d3251ef471366229
/3rdparty/RobustGNSS/gtsam/gtsam/gpstk/FICHeader.cpp
6a4a39769fe8eb5e1dbf95528649787f55478656
[ "MIT", "BSD-3-Clause", "LGPL-2.1-only", "MPL-2.0", "LGPL-2.0-or-later", "BSD-2-Clause" ]
permissive
wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation
3b467fa6d3f34cabbd5ee59596ac1950aabf2522
2f1ff054b7c5059da80bb3b2f80c05861a02cc36
refs/heads/master
2020-06-08T12:42:31.977541
2019-06-10T15:04:33
2019-06-10T15:04:33
193,229,646
1
0
MIT
2019-06-22T12:07:29
2019-06-22T12:07:29
null
UTF-8
C++
false
false
4,297
cpp
#pragma ident "$Id$" /** * @file FICHeader.cpp * gpstk::FICHeader - container for the FIC file header data. */ //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 2.1 of the License, or // any later version. // // The GPSTk is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with GPSTk; if not, write to the Free Software Foundation, // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA // // Copyright 2004, The University of Texas at Austin // //============================================================================ //============================================================================ // //This software developed by Applied Research Laboratories at the University of //Texas at Austin, under contract to an agency or agencies within the U.S. //Department of Defense. The U.S. Government retains all rights to use, //duplicate, distribute, disclose, or release this software. // //Pursuant to DoD Directive 523024 // // DISTRIBUTION STATEMENT A: This software has been approved for public // release, distribution is unlimited. // //============================================================================= #include "StringUtils.hpp" #include "FICHeader.hpp" #include "FICStream.hpp" #include "FICAStream.hpp" using namespace gpstk::StringUtils; const int gpstk::FICHeader::headerSize = 40; namespace gpstk { using namespace std; void FICHeader::reallyPutRecord(FFStream& ffs) const throw(std::exception, gpstk::StringUtils::StringException, gpstk::FFStreamError) { string theHeader(header); if(FICStream* strm = dynamic_cast<FICStream*>(&ffs)) { // This is a binary FIC stream, so // send the 40 character header, truncated or padded // with ' ' as needed. *strm << leftJustify(theHeader, headerSize, ' '); } else if (FICAStream* ficas = dynamic_cast<FICAStream*>(&ffs)) { // If this is a FICA stream, add some extra stuff as well as // send the 40 character header, truncated or padded // with ' ' as needed. *ficas << " " << leftJustify(theHeader, headerSize, ' ') << '\n'; } else { gpstk::FFStreamError e("Attempt to write a FICHeader object" " to a non-FIC(A)Stream FFStream."); GPSTK_THROW(e); } } void FICHeader::dump(ostream& s) const { s << header << endl; }; void FICHeader::reallyGetRecord(FFStream& ffs) throw(std::exception, gpstk::StringUtils::StringException, gpstk::FFStreamError) { FICStreamBase *fsb = dynamic_cast<FICStreamBase *>(&ffs); if(fsb == NULL) { gpstk::FFStreamError e("Attempt to read a FICHeader object" " from a non-FICStreamBase FFStream."); GPSTK_THROW(e); } char c[headerSize + 1]; // if this is a FICA stream, get 4 characters FICAStream* ficas = dynamic_cast<FICAStream*>(&ffs); if (ficas) { const int blankChrs = 4; char whitespaces[blankChrs + 1]; ffs.read(whitespaces, blankChrs); } ffs.read(c, headerSize); if (ffs.gcount() != headerSize) { FFStreamError e("Error reading header"); GPSTK_THROW(e); } c[headerSize]='\0'; header = c; fsb->headerRead=true; fsb->header.header = header; if (ficas) { string line; ficas->formattedGetLine(line); ficas->formattedGetLine(line); } } // end of FICHeader::getRecord() } // namespace gpstk
[ "rwatso12@gmail.com" ]
rwatso12@gmail.com
221d34e9f2a62178cd5162519be61d924420ab5c
51542a7cc298f054dadafa35622425453ec1a4fc
/src/director/dirfile.h
6d603d2d36ccbd769cadd6619b0e4b248a7bb72d
[ "Apache-2.0", "MIT" ]
permissive
59de44955ebd/ProjectorRays
21e0270325f5a548db87254851bd3ec85eded548
32e2a166df23bf5af2bd5d10b45252ce4bbe5d77
refs/heads/master
2023-08-31T12:58:03.327901
2021-10-25T17:11:28
2021-10-25T17:11:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,925
h
#ifndef DIRECTOR_DIRFILE_H #define DIRECTOR_DIRFILE_H #include <cstdint> #include <istream> #include <map> #include <memory> #include <string> #include <vector> namespace Common { class ReadStream; } namespace Director { struct Chunk; struct CastChunk; struct ConfigChunk; struct KeyTableChunk; struct ChunkInfo { int32_t id; uint32_t fourCC; uint32_t len; uint32_t uncompressedLen; int32_t offset; uint32_t compressionType; }; class DirectorFile { private: std::map<int32_t, std::shared_ptr<std::vector<uint8_t>>> _cachedChunkData; size_t _ilsBodyOffset; public: Common::ReadStream *stream; std::shared_ptr<KeyTableChunk> keyTable; std::shared_ptr<ConfigChunk> config; int version; bool capitalX; bool dotSyntax; uint32_t codec; bool afterburned; std::map<uint32_t, std::vector<int32_t>> chunkIDsByFourCC; std::map<int32_t, ChunkInfo> chunkInfo; std::map<int32_t, std::shared_ptr<Chunk>> deserializedChunks; std::vector<std::shared_ptr<CastChunk>> casts; DirectorFile() : _ilsBodyOffset(0), stream(nullptr), version(0), capitalX(false), codec(0), afterburned(false) {} void read(Common::ReadStream *s, bool decompile = true); void readMemoryMap(); bool readAfterburnerMap(); bool readKeyTable(); bool readConfig(); bool readCasts(); const ChunkInfo *getFirstChunkInfo(uint32_t fourCC); bool chunkExists(uint32_t fourCC, int32_t id); std::shared_ptr<Chunk> getChunk(uint32_t fourCC, int32_t id); std::unique_ptr<Common::ReadStream> getChunkData(uint32_t fourCC, int32_t id); std::shared_ptr<Chunk> readChunk(uint32_t fourCC, uint32_t len = UINT32_MAX); std::unique_ptr<Common::ReadStream> readChunkData(uint32_t fourCC, uint32_t len); std::shared_ptr<Chunk> makeChunk(uint32_t fourCC, Common::ReadStream &stream); void dumpScripts(); void dumpChunks(); }; } #endif
[ "dservilla@gmail.com" ]
dservilla@gmail.com
1713b3c289f805b370a7110c4de5a9783c0e0f3f
7f0113be41204d26507671f133753c5caa2ab6e7
/src/app/view/businessform/itemdelegate.h
cdcb1ae33b90bdffb438210d05bcd555246417ae
[]
no_license
qq77457051/template2
019cb1c99f71b44e7b0cd7502fcdf6307c735df5
7067f98efd5f7bb2eaa6eab88ef9a63e95e7824f
refs/heads/master
2023-03-15T15:13:53.054982
2020-12-03T07:46:15
2020-12-03T07:46:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
542
h
#ifndef ITEMDELEGATE_H #define ITEMDELEGATE_H #include <QStyledItemDelegate> #include <QModelIndex> #include <QStandardItemModel> class ItemDelegate : public QStyledItemDelegate { Q_OBJECT signals: public: explicit ItemDelegate(QObject *parent = 0); ~ItemDelegate(); //重写重画函数 void paint(QPainter * painter,const QStyleOptionViewItem & option,const QModelIndex & index) const; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; private: }; #endif // ITEMDELEGATE_H
[ "354436834@qq.com" ]
354436834@qq.com
6f0841fb4cf936dee799f47c07041e3ccc57aa8e
2865bdcbd6f447271c71ee3025c8b7e3bc653b92
/newcoder/65.矩阵中的路径.cpp
d861054d161e41bae415807cae9b71d2b40dd3f3
[]
no_license
hsupu/leetcode-solutions
1ab98b640fe55da1398acc5950428c7d469517ae
afe71787ad200dca89d515e3e3b3a12e636b7213
refs/heads/master
2020-03-27T04:44:31.412626
2019-03-08T04:10:32
2019-03-08T04:10:32
145,964,857
4
1
null
null
null
null
UTF-8
C++
false
false
1,176
cpp
class Solution { public: static int pos(int rows, int cols, int row, int col) { return row * cols + col; } static bool hasPath(char *matrix, int rows, int cols, int y, int x, const char *s) { if (*s == '\0') return true; if (y < 0 || y >= rows || x < 0 || x >= cols) return false; int p = pos(rows, cols, y, x); if (matrix[p] != *s) return false; matrix[p] = '\0'; bool has = hasPath(matrix, rows, cols, y-1, x, s+1) || hasPath(matrix, rows, cols, y+1, x, s+1) || hasPath(matrix, rows, cols, y, x-1, s+1) || hasPath(matrix, rows, cols, y, x+1, s+1); matrix[p] = *s; return has; } bool hasPath(char *matrix, int rows, int cols, const char *s) { if (s == nullptr || *s == '\0') return true; for (int y = 0; y < rows; ++y) { for (int x = 0; x < cols; ++x) { int p = pos(rows, cols, y, x); if (matrix[p] == *s) { if (hasPath(matrix, rows, cols, y, x, s)) return true; } } } return false; } };
[ "xupu17@mails.ucas.ac.cn" ]
xupu17@mails.ucas.ac.cn
85700badc4bcaadb2b2ee4039c8717534dc172c6
769537fa9f9ebbefd576466ee858b0d6bfcb19ed
/bin/media/util/test/priority_queue_of_unique_ptr_test.cc
05834cad645259567cd36a330706b4c4a85b0c11
[ "BSD-3-Clause" ]
permissive
m943040028/garnet
1b7897d589c042afa1d713ddcd4005eda38795d8
e978dd91e58b1a68262d1f5879322a1cb8ea5d5f
refs/heads/master
2021-05-09T09:55:37.446809
2018-01-13T01:11:21
2018-01-26T18:08:30
119,463,428
0
0
null
2018-01-30T01:11:57
2018-01-30T01:11:57
null
UTF-8
C++
false
false
7,747
cc
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "garnet/bin/media/util/priority_queue_of_unique_ptr.h" #include "gtest/gtest.h" namespace media { namespace { struct Element { static size_t destroyed_count_; static size_t last_destroyed_label_; Element(size_t label) : label_(label) {} ~Element() { ++destroyed_count_; last_destroyed_label_ = label_; } bool operator<(const Element& other) { return label_ < other.label_; } size_t label_; }; // static size_t Element::destroyed_count_ = 0; // static size_t Element::last_destroyed_label_ = 0; // Tests whether a newly-initialized queue responds to its methods as expected. TEST(PriorityQueueOfUniqePtrTest, InitialState) { priority_queue_of_unique_ptr<Element> under_test; EXPECT_TRUE(under_test.empty()); EXPECT_EQ(0u, under_test.size()); } // Tests whether a queue destroys its elements when destroyed. TEST(PriorityQueueOfUniqePtrTest, ElementDestruction) { Element::destroyed_count_ = 0; { priority_queue_of_unique_ptr<Element> under_test; under_test.push(std::make_unique<Element>(1)); under_test.push(std::make_unique<Element>(2)); under_test.push(std::make_unique<Element>(3)); } EXPECT_EQ(3u, Element::destroyed_count_); } // Tests assignment. TEST(PriorityQueueOfUniqePtrTest, Assignment) { priority_queue_of_unique_ptr<Element> under_test_1; priority_queue_of_unique_ptr<Element> under_test_2; under_test_1.push(std::make_unique<Element>(1)); under_test_1.push(std::make_unique<Element>(2)); under_test_1.push(std::make_unique<Element>(3)); EXPECT_EQ(3u, under_test_1.size()); EXPECT_EQ(0u, under_test_2.size()); under_test_2 = std::move(under_test_1); EXPECT_EQ(0u, under_test_1.size()); EXPECT_EQ(3u, under_test_2.size()); EXPECT_EQ(3u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(2u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(1u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(0u, under_test_2.size()); } // Tests the empty method. TEST(PriorityQueueOfUniqePtrTest, Empty) { priority_queue_of_unique_ptr<Element> under_test; EXPECT_TRUE(under_test.empty()); under_test.push(std::make_unique<Element>(1)); EXPECT_FALSE(under_test.empty()); under_test.push(std::make_unique<Element>(2)); EXPECT_FALSE(under_test.empty()); under_test.push(std::make_unique<Element>(3)); EXPECT_FALSE(under_test.empty()); under_test.pop(); EXPECT_FALSE(under_test.empty()); under_test.pop(); EXPECT_FALSE(under_test.empty()); under_test.pop(); EXPECT_TRUE(under_test.empty()); } // Tests the size method. TEST(PriorityQueueOfUniqePtrTest, Size) { priority_queue_of_unique_ptr<Element> under_test; EXPECT_EQ(0u, under_test.size()); under_test.push(std::make_unique<Element>(1)); EXPECT_EQ(1u, under_test.size()); under_test.push(std::make_unique<Element>(2)); EXPECT_EQ(2u, under_test.size()); under_test.push(std::make_unique<Element>(3)); EXPECT_EQ(3u, under_test.size()); under_test.pop(); EXPECT_EQ(2u, under_test.size()); under_test.pop(); EXPECT_EQ(1u, under_test.size()); under_test.pop(); EXPECT_EQ(0u, under_test.size()); } // Tests the top method (and push and pop). TEST(PriorityQueueOfUniqePtrTest, Top) { Element::destroyed_count_ = 0; priority_queue_of_unique_ptr<Element> under_test; under_test.push(std::make_unique<Element>(1)); EXPECT_EQ(1u, under_test.top().label_); under_test.push(std::make_unique<Element>(2)); EXPECT_EQ(2u, under_test.top().label_); under_test.push(std::make_unique<Element>(3)); EXPECT_EQ(3u, under_test.top().label_); EXPECT_EQ(0u, Element::destroyed_count_); under_test.pop(); EXPECT_EQ(2u, under_test.top().label_); EXPECT_EQ(1u, Element::destroyed_count_); EXPECT_EQ(3u, Element::last_destroyed_label_); under_test.pop(); EXPECT_EQ(1u, under_test.top().label_); EXPECT_EQ(2u, Element::destroyed_count_); EXPECT_EQ(2u, Element::last_destroyed_label_); under_test.pop(); EXPECT_EQ(3u, Element::destroyed_count_); EXPECT_EQ(1u, Element::last_destroyed_label_); } // Tests the get_top method (and push and pop). TEST(PriorityQueueOfUniqePtrTest, GetTop) { Element::destroyed_count_ = 0; priority_queue_of_unique_ptr<Element> under_test; under_test.push(std::make_unique<Element>(1)); EXPECT_EQ(1u, under_test.get_top()->label_); EXPECT_EQ(1u, under_test.top().label_); under_test.push(std::make_unique<Element>(2)); EXPECT_EQ(2u, under_test.get_top()->label_); under_test.push(std::make_unique<Element>(3)); EXPECT_EQ(3u, under_test.get_top()->label_); EXPECT_EQ(0u, Element::destroyed_count_); under_test.pop(); EXPECT_EQ(2u, under_test.get_top()->label_); EXPECT_EQ(1u, Element::destroyed_count_); EXPECT_EQ(3u, Element::last_destroyed_label_); under_test.pop(); EXPECT_EQ(1u, under_test.get_top()->label_); EXPECT_EQ(2u, Element::destroyed_count_); EXPECT_EQ(2u, Element::last_destroyed_label_); under_test.pop(); EXPECT_EQ(3u, Element::destroyed_count_); EXPECT_EQ(1u, Element::last_destroyed_label_); } // Tests the pop_and_move method. TEST(PriorityQueueOfUniqePtrTest, PopAndMove) { Element::destroyed_count_ = 0; priority_queue_of_unique_ptr<Element> under_test; under_test.push(std::make_unique<Element>(1)); under_test.push(std::make_unique<Element>(3)); under_test.push(std::make_unique<Element>(2)); std::unique_ptr<Element> element = under_test.pop_and_move(); EXPECT_NE(nullptr, element); EXPECT_EQ(3u, element->label_); EXPECT_EQ(0u, Element::destroyed_count_); element.reset(); EXPECT_EQ(1u, Element::destroyed_count_); EXPECT_EQ(3u, Element::last_destroyed_label_); element = under_test.pop_and_move(); EXPECT_NE(nullptr, element); EXPECT_EQ(2u, element->label_); EXPECT_EQ(1u, Element::destroyed_count_); element.reset(); EXPECT_EQ(2u, Element::destroyed_count_); EXPECT_EQ(2u, Element::last_destroyed_label_); element = under_test.pop_and_move(); EXPECT_NE(nullptr, element); EXPECT_EQ(1u, element->label_); EXPECT_EQ(2u, Element::destroyed_count_); element.reset(); EXPECT_EQ(3u, Element::destroyed_count_); EXPECT_EQ(1u, Element::last_destroyed_label_); } // Tests the swap method. TEST(PriorityQueueOfUniqePtrTest, Swap) { Element::destroyed_count_ = 0; priority_queue_of_unique_ptr<Element> under_test_1; priority_queue_of_unique_ptr<Element> under_test_2; under_test_1.push(std::make_unique<Element>(1)); under_test_1.push(std::make_unique<Element>(2)); under_test_1.push(std::make_unique<Element>(3)); under_test_2.push(std::make_unique<Element>(4)); under_test_2.push(std::make_unique<Element>(5)); under_test_2.push(std::make_unique<Element>(6)); under_test_2.push(std::make_unique<Element>(7)); EXPECT_EQ(3u, under_test_1.size()); EXPECT_EQ(4u, under_test_2.size()); under_test_1.swap(under_test_2); EXPECT_EQ(0u, Element::destroyed_count_); EXPECT_EQ(4u, under_test_1.size()); EXPECT_EQ(3u, under_test_2.size()); EXPECT_EQ(3u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(2u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(1u, under_test_2.top().label_); under_test_2.pop(); EXPECT_EQ(0u, under_test_2.size()); EXPECT_EQ(7u, under_test_1.top().label_); under_test_1.pop(); EXPECT_EQ(6u, under_test_1.top().label_); under_test_1.pop(); EXPECT_EQ(5u, under_test_1.top().label_); under_test_1.pop(); EXPECT_EQ(4u, under_test_1.top().label_); under_test_1.pop(); EXPECT_EQ(0u, under_test_1.size()); } } // namespace } // namespace media
[ "abarth@chromium.org" ]
abarth@chromium.org
5ee470a72edcfb8b3ea33463790a3665df141942
02bb99b347db12aefd076088f6e9861a30e5fe00
/src/render/stage3d/Parser.h
bfeb067cc7ee9726898b4fd29a2bfad975c3fd66
[]
no_license
pzhdanovsky/GHL
b9e549721c898d6fd3aa7b54a154a0f0dbaaa2ca
afebd20a75849d78379a3bc4444059db77a0eb06
refs/heads/master
2020-04-01T23:31:09.921778
2018-08-27T14:25:47
2018-09-27T10:21:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,120
h
#if !defined(GHL__AGAL_COCO_PARSER_H__) #define GHL__AGAL_COCO_PARSER_H__ #include <iostream> #include <string> #include <map> #include <ghl_types.h> #include "agal_assembler.h" #include "Scanner.h" namespace GHL { namespace AGAL { class Errors { public: int count; // number of errors detected Errors(); void SynErr(int line, int col, int n); void Error(int line, int col, const char *s); void Warning(int line, int col, const char *s); void Warning(const char *s); void Exception(const char *s); }; // Errors class Parser { private: enum { _EOF=0, _number=1, _floatNumber=2, _newline=3, _identifier=4, _token_vertex=5, _token_fragment=6, _token_attribute=7, _token_var=8, _token_uniform=9, _token_const=10, _token_sampler=11, _k_linear=12, _k_mipdisable=13, _k_repeat=14, _k_2d=15 }; int maxT; Token *dummyToken; int errDist; int minErrDist; void SynErr(int n); void Get(); void Expect(int n); bool StartOf(int s); void ExpectWeak(int n, int follow); bool WeakSeparator(int n, int syFol, int repFol); public: Scanner *scanner; Errors *errors; Token *t; // last recognized token Token *la; // lookahead token AGALCodeGen* m_codegen; AGALData::name_to_register_map m_varying_map; AGALData::name_to_register_map m_uniform_map; AGALData::name_to_register_map m_attributes_map; AGALData::constants_map m_constants; bool m_is_vertex; std::map<RegisterName,RegisterName> m_registers_remap; Parser(Scanner *scanner); ~Parser(); void SemErr(const char* msg); void agal(); void line(); void directive(); void expression(); void vertex(); void fragment(); void attribute(); void var(); void uniform(); void constset(); void sampler_def(); void directive_name(std::string& name); void reg(RegisterName& reg_name); void vec4(AGALData::ConstantData& data); void float_value(float& ret_val); void code(std::string& name); void dst(RegisterName &reg_name,std::string& swizz); void src(RegisterName &reg_name,std::string& swizz); void swizzle(); void Parse(); }; // end Parser } // namespace } // namespace #endif
[ "blackicebox@gmail.com" ]
blackicebox@gmail.com
086125f4a8c035bd0a7884c38c52b5df8ab44960
e74c5b8e89e0cff1f8852ee515e18e5a351792c1
/Source/Voreeal/Classes/VoreealBasicVolumeActor.h
143b0980ebf684982e1ad75a5b39e264a2bbbd1c
[ "MIT" ]
permissive
ADMTec/Voreeal
5b63323ac4a2ab079e874ba09fb076af67adef19
0dda213c5035a75ac6426e3fdcfe50e70dac43ec
refs/heads/master
2021-01-19T12:50:55.427743
2020-03-30T13:40:37
2020-03-30T13:40:37
82,343,369
0
0
MIT
2020-03-30T13:40:38
2017-02-17T22:24:02
C++
UTF-8
C++
false
false
995
h
#pragma once #include "VoreealActor.h" #include "VoreealBasicVolumeComponent.h" #include "VoreealBasicVolumeActor.generated.h" UCLASS(ComponentWrapperClass, meta = (ChildCanTick)) class VOREEAL_API ABasicVolumeActor : public AVoreealActor { GENERATED_BODY() private_subobject: UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Voreeal", meta = (ExposeFunctionCategories = "Voreeal,Mesh,Rendering,Physics,Components|StaticMesh", AllowPrivateAccess = "true")) UBasicVolumeComponent* BasicVolumeComponent; public: ABasicVolumeActor(const class FObjectInitializer& ObjectInitializer); // Begin AActor Interface #if WITH_EDITOR virtual void CheckForErrors() override; virtual bool GetReferencedContentObjects(TArray<UObject*>& Objects) const override; #endif // End AActor Interface protected: // Begin UObject Interface virtual FString GetDetailedInfoInternal() const override; // End UObject Interface public: UBasicVolumeComponent* GetBasicVolumeComponent() const; };
[ "eric.tuvesson@gmail.com" ]
eric.tuvesson@gmail.com
65d33be9ba99d0a2039485a2f9b0a8f8404b7b4a
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/squid/gumtree/squid_repos_function_2236_squid-3.1.23.cpp
55fdf1257edb1a5f1e9557241b6cebabd3fca317
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
843
cpp
static void idnsReadVC(int fd, char *buf, size_t len, comm_err_t flag, int xerrno, void *data) { nsvc * vc = (nsvc *)data; if (flag == COMM_ERR_CLOSING) return; if (flag != COMM_OK || len <= 0) { comm_close(fd); return; } vc->msg->size += len; // XXX should not access -> size directly if (vc->msg->contentSize() < vc->msglen) { comm_read(fd, buf + len, vc->msglen - vc->msg->contentSize(), idnsReadVC, vc); return; } assert(vc->ns < nns); debugs(78, 3, "idnsReadVC: FD " << fd << ": received " << (int) vc->msg->contentSize() << " bytes via tcp from " << nameservers[vc->ns].S << "."); idnsGrokReply(vc->msg->buf, vc->msg->contentSize()); vc->msg->clean(); comm_read(fd, (char *)&vc->msglen, 2 , idnsReadVCHeader, vc); }
[ "993273596@qq.com" ]
993273596@qq.com
8a7b20381c96947f516e6b18c6afa9212485e7d3
f23fea7b41150cc5037ddf86cd7a83a4a225b68b
/SDK/BP_tls_hand_lantern_hwm_01_a_ItemDesc_classes.h
ec9cdf4fc278f1330f653df634d209a0942e1cd3
[]
no_license
zH4x/SoT-SDK-2.2.0.1
36e1cf7f23ece6e6b45e5885f01ec7e9cd50625e
f2464e2e733637b9fa0075cde6adb5ed2be8cdbd
refs/heads/main
2023-06-06T04:21:06.057614
2021-06-27T22:12:34
2021-06-27T22:12:34
380,845,087
0
0
null
null
null
null
UTF-8
C++
false
false
821
h
#pragma once // Name: SoT, Version: 2.2.0b /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass BP_tls_hand_lantern_hwm_01_a_ItemDesc.BP_tls_hand_lantern_hwm_01_a_ItemDesc_C // 0x0000 (FullSize[0x0130] - InheritedSize[0x0130]) class UBP_tls_hand_lantern_hwm_01_a_ItemDesc_C : public UItemDesc { public: static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass BP_tls_hand_lantern_hwm_01_a_ItemDesc.BP_tls_hand_lantern_hwm_01_a_ItemDesc_C"); return ptr; } }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "Massimo.linker@gmail.com" ]
Massimo.linker@gmail.com
626971b3008bbfcc78eada3024c148b15f4b4fba
416471f41efe96c9b1d4b793380bbf4eb0b5922e
/PhysicsTools/Mkntuple/plugins/plugin_recoCastorJet.cc
a2479e1a6bd4ea510dae9345498ca1568c06d4f7
[]
no_license
hbprosper/SusySapien
ed99b3b706191544df80d591db047424225aaa96
e1db14d3ce0875f24ba0bad795ede7dcfa1a1670
refs/heads/master
2021-01-18T14:36:03.074986
2013-09-07T21:42:27
2013-09-07T21:42:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
574
cc
// ------------------------------------------------------------------------- // File:: plugin_recoCastorJet.cc // Created: Tue May 3 03:49:10 2011 by mkplugins.py // $Revision: 1.15 $ // ------------------------------------------------------------------------- #include "PhysicsTools/Mkntuple/interface/Buffer.h" #include "PhysicsTools/Mkntuple/interface/pluginfactory.h" #include "DataFormats/CastorReco/interface/CastorJet.h" typedef Buffer<reco::CastorJet, false> recoCastorJet_t; DEFINE_EDM_PLUGIN(BufferFactory, recoCastorJet_t, "recoCastorJet");
[ "" ]
fa6dbed5152016769b65dcb0a189cacf0ff5e1f6
98b345594e6fa0ad9910bc0c20020827bbb62c53
/re110_1/processor35/70/phi
4146b3c11fe81e55bfd74c2d06007ee772a407a1
[]
no_license
carsumptive/coe-of2
e9027de48e42546ca4df1c104dcc8d04725954f2
fc3e0426696f42fbbbdce7c027df9ee8ced4ccd0
refs/heads/master
2023-04-04T06:09:23.093717
2021-04-06T06:47:14
2021-04-06T06:47:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,577
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class surfaceScalarField; location "70"; object phi; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -1 0 0 0 0]; internalField nonuniform List<scalar> 278 ( 0.00381949 -0.0233678 0.0235674 -0.0263021 0.0263472 0.003802 -0.0231389 -0.0262206 0.00377906 -0.0228821 -0.0260993 0.00375083 -0.0225991 -0.0259352 0.0037175 -0.0222915 -0.0257257 0.00367922 -0.0219613 -0.0254695 0.00363619 -0.02161 -0.025166 0.00358856 -0.0212395 -0.0248157 0.00353649 -0.0208517 -0.0244199 0.00348013 -0.0204484 -0.0239813 0.00341971 -0.0200314 -0.0235033 0.00335549 -0.0196031 -0.0229901 0.00328778 -0.0191655 -0.0224466 0.00321688 -0.0187212 -0.0218786 0.0031432 -0.0182729 -0.0212915 0.00306725 -0.0178233 -0.0206908 0.00298931 -0.0173753 -0.0200814 0.00290832 -0.016932 -0.019469 0.0028229 -0.0164964 -0.0188617 0.0027384 -0.0160707 -0.0182632 0.00267847 -0.0176738 0.0189715 -0.0148845 -0.0161632 0.0178614 -0.0122665 -0.0125415 0.018692 -0.0100728 -0.00867808 0.0185442 -0.00833326 -0.00573638 0.0186525 -0.00669373 -0.00380618 0.0188964 -0.00526549 -0.00263321 0.0191663 -0.0040078 -0.0019241 0.0195119 -0.00300803 -0.00144898 0.0198324 -0.00225115 -0.00111157 0.0200929 -0.00169441 -0.000865131 0.020286 -0.00128552 -0.000683924 0.0204233 -0.000982857 -0.000548436 0.0205202 -0.000756213 -0.000443846 0.02059 -0.000583333 -0.000359803 0.020638 -0.000449285 -0.000290086 0.0206717 -0.000342339 -0.000230017 0.0206913 -0.000255246 -0.000177279 0.0207041 -0.000181483 -0.000129382 0.0207124 -0.000116607 -8.46986e-05 0.020718 -5.67725e-05 -4.17279e-05 0.0207188 0.0173586 0.00893643 -0.0184191 0.0147562 0.0111578 0.0115397 0.0158989 0.00859363 0.0199085 0.00628969 0.021853 0.00456613 0.0223017 0.00328874 0.0221724 0.00234288 0.0219302 0.00165643 0.021709 0.00116465 0.021526 0.000816068 0.0213825 0.000568402 0.0212656 0.000393149 0.0211739 0.000268189 0.0210968 0.000180336 0.0210364 0.000118264 0.0209836 7.53232e-05 0.0209425 4.57886e-05 0.020911 2.5952e-05 0.0208898 1.18725e-05 0.0208734 0.0208629 0.0180814 0.0138219 -0.0229669 0.0121455 0.0170937 0.0072244 0.02082 0.00423158 0.0229013 0.0026533 0.0234313 0.00176606 0.0231889 0.00120068 0.0227377 0.00078794 0.022343 0.000478886 0.0220181 0.000248663 0.0217562 8.47292e-05 0.0215465 -2.55982e-05 0.0213759 -9.3255e-05 0.0212416 -0.000128705 0.0211323 -0.000139595 0.0210472 -0.000133848 -0.000116677 -9.24061e-05 -6.33816e-05 -3.2029e-05 0.00804549 0.0036488 0.00114702 -1.19586e-05 -0.000378144 -0.000458208 -0.000446695 -0.000393633 -0.000331941 -0.000276109 -0.000230131 -0.000194519 -0.000166198 -0.000143287 0.00296381 -0.0191693 -0.0233291 0.00305505 -0.0198674 -0.0236491 0.00313078 -0.0204984 -0.0239415 0.00320428 -0.0210672 -0.0242098 0.00327479 -0.0215783 -0.0244566 0.00334256 -0.0220356 -0.0246835 0.00340732 -0.0224427 -0.0248923 0.00346881 -0.0228023 -0.0250845 0.00352666 -0.0231156 -0.0252617 0.00358053 -0.0233832 -0.0254253 0.00363006 -0.0236058 -0.0255767 0.00367494 -0.0237838 -0.0257167 0.00371487 -0.0239182 -0.0258459 0.00374956 -0.0240097 -0.0259641 0.0037788 -0.0240595 -0.0260708 0.00380237 -0.0240692 -0.0261644 0.0038201 -0.0240401 -0.0262431 0.00383189 -0.0239738 -0.0263041 0.00383767 -0.0238719 -0.0263443 0.00383747 -0.0237359 -0.02636 0.00383137 ) ; boundaryField { inlet { type calculated; value nonuniform 0(); } outlet { type calculated; value nonuniform 0(); } cylinder { type calculated; value nonuniform 0(); } top { type symmetryPlane; value uniform 0; } bottom { type symmetryPlane; value uniform 0; } defaultFaces { type empty; value nonuniform 0(); } procBoundary35to34 { type processor; value nonuniform List<scalar> 85 ( -0.00401903 -0.00403097 -0.00403587 -0.00403384 -0.00402501 -0.00400951 -0.00398746 -0.003959 -0.00392431 -0.0038835 -0.00383663 -0.00378386 -0.00372534 -0.00366117 -0.00359155 -0.00351685 -0.00343726 -0.00335165 -0.00325846 -0.00316414 -0.00309807 -0.0156511 -0.0217608 -0.0204794 -0.0208857 -0.0202837 -0.0202921 -0.0203246 -0.020424 -0.0205117 -0.0205893 -0.0206496 -0.0206949 -0.0207259 -0.0207468 -0.0207628 -0.0207721 -0.0207787 -0.0207784 -0.0207779 -0.0207773 -0.0207778 -0.0207755 -0.00787589 -0.00855541 -0.0126824 -0.0169624 -0.0195491 -0.0205781 -0.020895 -0.0209844 -0.0210226 -0.0210342 -0.021034 -0.0210179 -0.0209986 -0.0209719 -0.0209485 -0.0209215 -0.0208996 -0.0208815 -0.0208699 -0.0208593 -0.020851 -0.00221363 -0.00235697 -0.00249976 -0.00263543 -0.00276372 -0.00288527 -0.00300021 -0.00310922 -0.00321337 -0.00331289 -0.0034075 -0.00349687 -0.00358056 -0.00365806 -0.00372892 -0.00379273 -0.0038492 -0.00389817 -0.00393958 -0.00397346 -0.0039999 ) ; } procBoundary35to36 { type processor; value nonuniform List<scalar> 87 ( 0.00377434 0.00372056 0.00365776 0.00358664 0.00350806 0.00342304 0.00333268 0.00323819 0.00314074 0.00304152 0.00294166 0.00284228 0.00274438 0.0026488 0.00255613 0.00246657 0.0023799 0.00229595 0.00221554 0.00213997 0.002089 0.0199103 0.0152244 0.0142398 0.0148285 0.0156025 0.0167223 0.0177234 0.0184572 0.0190368 0.019495 0.0198465 0.0201048 0.0202878 0.0204156 0.0205059 0.0205683 0.0206116 0.0206386 0.0206562 0.0206677 0.020675 0.020677 0.0209778 0.0209253 0.0208867 0.0208608 0.0208421 0.0208308 0.0189636 -0.0131872 0.0214904 0.0233218 0.0240603 0.0237975 0.023269 0.0227262 0.0222899 0.0219564 0.0217004 0.0215005 0.0213403 0.0212132 0.0211094 -0.000122965 0.0210269 0.003326 0.00337497 0.0034232 0.00347262 0.00352156 0.0035695 0.00361608 0.003661 0.00370385 0.00374419 0.00378144 0.00381497 0.00384403 0.0038678 0.00388542 0.00389604 0.00389878 0.00389291 0.00387784 0.00385314 0.00381863 ) ; } } // ************************************************************************* //
[ "chaseguy15" ]
chaseguy15
455efaaa7ad57015323af0c234b2388f8cd35ad8
f62bc329cc9352f68d0f3a40c5b4670c671899f1
/app/include/ast/ast.hpp
abba541927184d21a0748d52dd2933e9b41f70f9
[]
no_license
Wasiollo/Botvina
580811cbca3ce57a98e5f0e6f20b63464d04eed1
b28c51c54ae263477261b2b2938de9e8421d4b04
refs/heads/master
2020-03-09T08:11:14.860115
2018-06-06T23:25:37
2018-06-06T23:25:37
128,683,178
0
0
null
null
null
null
UTF-8
C++
false
false
275
hpp
#ifndef AST_HPP #define AST_HPP #include "ast/Node.hpp" #include <vector> #include <string> namespace ast { struct Ast : public Node { NodeObject root; Ast(Node* n, NodeObject::Type t): root(n,t){ } std::string toString() const; }; } //ast #endif // AST_HPP
[ "wasiak.mk@gmail.com" ]
wasiak.mk@gmail.com
0f57af3186d18e5fc72a045b95bde995854d35d1
501591e4268ad9a5705012cd93d36bac884847b7
/src/server/pathfinding/detour/DetourNode.h
e18dc92c628e3641a50dde937c0338d085fc0483
[]
no_license
CryNet/MythCore
f550396de5f6e20c79b4aa0eb0a78e5fea9d86ed
ffc5fa1c898d25235cec68c76ac94c3279df6827
refs/heads/master
2020-07-11T10:09:31.244662
2013-06-29T19:06:43
2013-06-29T19:06:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,546
h
/* * Copyright (C) 2008 - 2011 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 Myth Project <http://mythprojectnetwork.blogspot.com/> * * Copyright (C) 2012 SymphonyArt <http://symphonyart.com/> * * Myth Project's source is based on the Trinity Project source, you can find the * link to that easily in Trinity Copyrights. Myth Project is a private community. * To get access, you either have to donate or pass a developer test. * You may not share Myth Project's sources! For personal use only. */ #ifndef DETOURNODE_H #define DETOURNODE_H #include "DetourNavMesh.h" enum dtNodeFlags { DT_NODE_OPEN = 0x01, DT_NODE_CLOSED = 0x02, }; static const unsigned short DT_NULL_IDX = 0xffff; struct dtNode { float pos[3]; // Position of the node. float cost; // Cost from previous node to current node. float total; // Cost up to the node. unsigned int pidx : 30; // Index to parent node. unsigned int flags : 2; // Node flags 0/open/closed. dtPolyRef id; // Polygon ref the node corresponds to. }; class dtNodePool { public: dtNodePool(int maxNodes, int hashSize); ~dtNodePool(); inline void operator=(const dtNodePool&) { } void clear(); dtNode* getNode(dtPolyRef id); dtNode* findNode(dtPolyRef id); inline unsigned int getNodeIdx(const dtNode* node) const { if(!node) return 0; return (unsigned int)(node - m_nodes)+1; } inline dtNode* getNodeAtIdx(unsigned int idx) { if(!idx) return 0; return &m_nodes[idx-1]; } inline const dtNode* getNodeAtIdx(unsigned int idx) const { if(!idx) return 0; return &m_nodes[idx-1]; } inline int getMemUsed() const { return sizeof(*this) + sizeof(dtNode)*m_maxNodes + sizeof(unsigned short)*m_maxNodes + sizeof(unsigned short)*m_hashSize; } inline int getMaxNodes() const { return m_maxNodes; } inline int getHashSize() const { return m_hashSize; } inline unsigned short getFirst(int bucket) const { return m_first[bucket]; } inline unsigned short getNext(int i) const { return m_next[i]; } private: dtNode* m_nodes; unsigned short* m_first; unsigned short* m_next; const int m_maxNodes; const int m_hashSize; int m_nodeCount; }; class dtNodeQueue { public: dtNodeQueue(int n); ~dtNodeQueue(); inline void operator=(dtNodeQueue&) { } inline void clear() { m_size = 0; } inline dtNode* top() { return m_heap[0]; } inline dtNode* pop() { dtNode* result = m_heap[0]; m_size--; trickleDown(0, m_heap[m_size]); return result; } inline void push(dtNode* node) { m_size++; bubbleUp(m_size-1, node); } inline void modify(dtNode* node) { for(int i = 0; i < m_size; ++i) { if(m_heap[i] == node) { bubbleUp(i, node); return; } } } inline bool empty() const { return m_size == 0; } inline int getMemUsed() const { return sizeof(*this) + sizeof(dtNode*)*(m_capacity+1); } inline int getCapacity() const { return m_capacity; } private: void bubbleUp(int i, dtNode* node); void trickleDown(int i, dtNode* node); dtNode** m_heap; const int m_capacity; int m_size; }; #endif // DETOURNODE_H
[ "vitasic-pokataev@yandex.ru" ]
vitasic-pokataev@yandex.ru
07a38a3aadd57d643cbbd232b2c524729ca81a09
024b7dc7ace10a12fdf35f48d998ed0a38c1e14e
/Servak/TranspServer/main.cpp
200b09fb085734ba7ae124628f7050a2d6209129
[]
no_license
kp0hyc915/MIPT-helper
fe1c04f6f7466dd43b4574ede43b4362002c7669
a81361c534821d931189accbc0bc5ebb664534ed
refs/heads/master
2020-06-30T08:13:44.703473
2016-11-23T23:42:36
2016-11-23T23:42:36
74,382,358
0
0
null
null
null
null
UTF-8
C++
false
false
203
cpp
#include <iostream> #include <QCoreApplication> #include "server.h" using namespace std; int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); Server sr(2233); app.exec(); }
[ "kronus915@gmail.com" ]
kronus915@gmail.com
435a27fa98de548cabf5f816cc9fc637b40a57ae
e40eaed1a22d433d9045456811a55e8be0d7fe38
/src/version.cpp
87ed131f916973e93ec740c5725155ff3100d50f
[ "MIT" ]
permissive
fazhanchain/fazhanchain
8604ec5379505d6779409bd9d9611b91664b41b3
4502a28929975d372e999ca11e3410a77cfb84f7
refs/heads/master
2020-04-10T07:47:40.496735
2018-12-08T00:25:01
2018-12-08T00:25:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,595
cpp
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitcoind and bitcoin-qt, to make it harder for attackers to // target servers or GUI users specifically. const std::string CLIENT_NAME("fazhanchain"); // Client version number #define CLIENT_VERSION_SUFFIX "" // The following part of the code determines the CLIENT_BUILD variable. // Several mechanisms are used for this: // * first, if HAVE_BUILD_INFO is defined, include build.h, a file that is // generated by the build environment, possibly containing the output // of git-describe in a macro called BUILD_DESC // * secondly, if this is an exported version of the code, GIT_ARCHIVE will // be defined (automatically using the export-subst git attribute), and // GIT_COMMIT will contain the commit id. // * then, three options exist for determining CLIENT_BUILD: // * if BUILD_DESC is defined, use that literally (output of git-describe) // * if not, but GIT_COMMIT is defined, use v[maj].[min].[rev].[build]-g[commit] // * otherwise, use v[maj].[min].[rev].[build]-unk // finally CLIENT_VERSION_SUFFIX is added // First, include build.h if requested #ifdef HAVE_BUILD_INFO # include "build.h" #endif // git will put "#define GIT_ARCHIVE 1" on the next line inside archives. #define GIT_ARCHIVE 1 #ifdef GIT_ARCHIVE # define GIT_COMMIT_ID "" # define GIT_COMMIT_DATE "$Format:%cD" #endif #define BUILD_DESC_FROM_COMMIT(maj,min,rev,build,commit) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) #define BUILD_DESC_FROM_UNKNOWN(maj,min,rev,build) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" #ifndef BUILD_DESC # ifdef GIT_COMMIT_ID # define BUILD_DESC BUILD_DESC_FROM_COMMIT(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, GIT_COMMIT_ID) # else # define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) # endif #endif #ifndef BUILD_DATE # ifdef GIT_COMMIT_DATE # define BUILD_DATE GIT_COMMIT_DATE # else # define BUILD_DATE __DATE__ ", " __TIME__ # endif #endif const std::string CLIENT_BUILD(BUILD_DESC CLIENT_VERSION_SUFFIX); const std::string CLIENT_DATE(BUILD_DATE);
[ "1632984479@qq.com" ]
1632984479@qq.com
4aa5ae095f6109121874df218b51f6d94f2391d3
953685f0c33b4a6c6a83aad3b77e7f63189adb08
/i_CALCULA_CORRENTE.ino
3bd4f5e5e37a505ddbca68cf05aa4323c79d5625
[]
no_license
vicosendey/MultimetroArduino
bb95bf187a8306cb3d9d13d8bf49f2f865cddd12
33222015914bd2bf32c00382a0c29c39d85de641
refs/heads/master
2021-08-14T19:54:20.316927
2017-11-16T15:55:50
2017-11-16T15:55:50
110,991,026
0
0
null
null
null
null
UTF-8
C++
false
false
355
ino
void calculaCorrente(){ double valorAnalogico = analogRead(portaAmperimetro); double valorConvertido = (valorAnalogico*vref)/1023; double tensaoPortaAnalogica = valorConvertido; corrente = (tensaoPortaAnalogica/10)*1.1; Serial.println("A500" + String(corrente*1000) + "mA"); lcd.setCursor(3,1); lcd.print(String(corrente*1000) + "mA"); }
[ "vicosendey@gmail.com" ]
vicosendey@gmail.com
57071b5d9d4065f7477a0dcc4b2e9373809dc394
ea578633c478e32a6df1980b29bdaa35a2f2c540
/src/asr/asr_req_provider.h
670f446827c50cef7e12f0635eff098bca9f431f
[]
no_license
skycober/rokid-openvoice-sdk
9723dccc5d6c3a0b9a69c426904448647665a532
95c0320468cbc2b3d50ac0000678c9d8391911bd
refs/heads/master
2021-01-19T23:25:16.189272
2017-04-14T13:38:54
2017-04-14T13:47:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
527
h
#pragma once #include <string> #include <memory> #include "pipeline_handler.h" #include "speech.pb.h" #include "pending_queue.h" #include "types.h" namespace rokid { namespace speech { class AsrReqProvider : public PipelineOutHandler<AsrReqInfo> { public: // override from PipelineOutHandler std::shared_ptr<AsrReqInfo> poll(); inline PendingStreamQueue<std::string>* queue() { return &requests_; } bool closed(); private: PendingStreamQueue<std::string> requests_; }; } // namespace speech } // namespace rokid
[ "chen.zhang@rokid.com" ]
chen.zhang@rokid.com
883ef05cb7ab30b687d7b788dc2f3d717641d1a5
554ce010f40330c2dda0ab321f0b6887f88bbfe8
/Mint/FitFraction.h
09620b886699491f507dc72d490eb7bea62dc59a
[]
no_license
jdalseno/Mint2
ea3bc37178df45744425aea75c97b53b34970e42
969b08a05ed396a749c531ff146ce2614bb49891
refs/heads/master
2020-04-16T10:28:57.521658
2020-01-25T16:10:58
2020-01-25T16:10:58
59,487,963
2
3
null
null
null
null
UTF-8
C++
false
false
840
h
#ifndef MINT_DALITZ_FITFRACTION_HH #define MINT_DALITZ_FITFRACTION_HH #include <string> #include <iostream> class FitFraction{ protected: std::string _name; double _frac, _sigmaFit, _sigmaInteg; public: FitFraction(); FitFraction(const std::string& name , double frac=0 , double sigmaFit=-9999.0 , double sigmaInteg=-9999.0); FitFraction(const FitFraction& other); const std::string& name() const{return _name;} double& frac(){return _frac;} const double& frac()const {return _frac;} double& sigmaFit(){return _sigmaFit;} const double& sigmaFit() const{return _sigmaFit;} double& sigmaInteg(){return _sigmaInteg;} double sigmaInteg() const{return _sigmaInteg;} void print(std::ostream& os) const; }; std::ostream& operator<<(std::ostream& os, const FitFraction& ff); #endif //
[ "j.dalseno@bristol.ac.uk" ]
j.dalseno@bristol.ac.uk
c61fb412e30e03d264398e22c06e284a37c24a33
b9f0ed8d89ce8f5a3acb59a1f6fb9a8cc02d438c
/DailyCode/zh.httpvs/zh.httpvs/test.cpp
70cb64f78540e54b6ccaa09b05f8621e32c398f4
[]
no_license
ChihayaCyo/CodeBackup
b16d09c1b1617c07fc29e76da1bc29d7c71a69f0
0a88b5f8246569b827239da5b446b35290a4199d
refs/heads/master
2021-06-10T11:28:20.968486
2017-02-09T04:15:57
2017-02-09T04:15:57
null
0
0
null
null
null
null
GB18030
C++
false
false
7,350
cpp
//#include "stdafx.h" #include <stdio.h> #include <Windows.h> #include <process.h> #include <string.h> #include <tchar.h> #pragma comment(lib,"Ws2_32.lib") #define MAXSIZE 65507 //发送数据报文的最大长度 #define HTTP_PORT 80 //http 服务器端口 //Http 重要头部数据 struct HttpHeader { char method[4]; // POST 或者 GET,注意有些为 CONNECT,本实验暂不考虑 char url[1024]; // 请求的 url char host[1024]; // 目标主机 char cookie[1024 * 10]; //cookie HttpHeader() { ZeroMemory(this, sizeof(HttpHeader)); } }; BOOL InitSocket(); void ParseHttpHead(char *buffer, HttpHeader * httpHeader); BOOL ConnectToServer(SOCKET *serverSocket, char *host); unsigned int __stdcall ProxyThread(LPVOID lpParameter); //代理相关参数 SOCKET ProxyServer; sockaddr_in ProxyServerAddr; const int ProxyPort = 10240; //由于新的连接都使用新线程进行处理,对线程的频繁的创建和销毁特别浪费资源 //可以使用线程池技术提高服务器效率 const int ProxyThreadMaxNum = 60; HANDLE ProxyThreadHandle[ProxyThreadMaxNum] = {0}; DWORD ProxyThreadDW[ProxyThreadMaxNum] = {0}; struct ProxyParam { SOCKET clientSocket; SOCKET serverSocket; }; int _tmain(int argc, _TCHAR* argv[]) { printf("代理服务器正在启动\n"); printf("初始化...\n"); if (!InitSocket()) { printf("socket 初始化失败\n"); return -1; } printf("代理服务器正在运行...\n监听地址:127.0.0.1:%d\n", ProxyPort); SOCKET acceptSocket = INVALID_SOCKET; ProxyParam *lpProxyParam; HANDLE hThread; DWORD dwThreadID; //代理服务器不断监听 while (true) { acceptSocket = accept(ProxyServer, NULL, NULL); lpProxyParam = new ProxyParam; if (lpProxyParam == NULL) { continue; } lpProxyParam->clientSocket = acceptSocket; hThread = (HANDLE)_beginthreadex(NULL, 0, &ProxyThread, (LPVOID)lpProxyParam, 0, 0); CloseHandle(hThread); Sleep(200); } closesocket(ProxyServer); WSACleanup(); return 0; } //************************************ // Method: InitSocket // FullName: InitSocket // Access: public // Returns: BOOL // Qualifier: 初始化套接字 //************************************ BOOL InitSocket() { //加载套接字库(必须) WORD wVersionRequested; WSADATA wsaData; //套接字加载时错误提示 int err; //版本 2.2 wVersionRequested = MAKEWORD(2, 2); //加载 dll 文件 Scoket 库 err = WSAStartup(wVersionRequested, &wsaData); if (err != 0) { //找不到 winsock.dll printf("加载 winsock 失败,错误代码为: %d\n", WSAGetLastError()); return FALSE; } if (LOBYTE(wsaData.wVersion) != 2 || HIBYTE(wsaData.wVersion) != 2) { printf("不能找到正确的 winsock 版本\n"); WSACleanup(); return FALSE; } ProxyServer = socket(AF_INET, SOCK_STREAM, 0); if (INVALID_SOCKET == ProxyServer) { printf("创建套接字失败,错误代码为: %d\n", WSAGetLastError()); return FALSE; } ProxyServerAddr.sin_family = AF_INET; ProxyServerAddr.sin_port = htons(ProxyPort); ProxyServerAddr.sin_addr.S_un.S_addr = INADDR_ANY; if (bind(ProxyServer, (SOCKADDR*)&ProxyServerAddr, sizeof(SOCKADDR)) == SOCKET_ERROR) { printf("绑定套接字失败\n"); return FALSE; } if (listen(ProxyServer, SOMAXCONN) == SOCKET_ERROR) { printf("监听端口%d 失败", ProxyPort); return FALSE; } return TRUE; } //************************************ // Method: ProxyThread // FullName: ProxyThread // Access: public // Returns: unsigned int __stdcall // Qualifier: 线程执行函数 // Parameter: LPVOID lpParameter //************************************ unsigned int __stdcall ProxyThread(LPVOID lpParameter) { char Buffer[MAXSIZE]; char *CacheBuffer; ZeroMemory(Buffer, MAXSIZE); SOCKADDR_IN clientAddr; int length = sizeof(SOCKADDR_IN); int recvSize; int ret; recvSize = recv(((ProxyParam*)lpParameter)->clientSocket, Buffer, MAXSIZE, 0); if (recvSize <= 0) { goto error; } HttpHeader* httpHeader = new HttpHeader(); CacheBuffer = new char[recvSize + 1]; ZeroMemory(CacheBuffer, recvSize + 1); memcpy(CacheBuffer, Buffer, recvSize); ParseHttpHead(CacheBuffer, httpHeader); delete CacheBuffer; if (!ConnectToServer(&((ProxyParam*)lpParameter)->serverSocket, httpHeader->host)) { goto error; } printf("代理连接主机 %s 成功\n", httpHeader->host); //将客户端发送的 HTTP 数据报文直接转发给目标服务器 ret = send(((ProxyParam *)lpParameter)->serverSocket, Buffer, strlen(Buffer)+ 1, 0); //等待目标服务器返回数据 recvSize = recv(((ProxyParam*)lpParameter)->serverSocket, Buffer, MAXSIZE, 0); if (recvSize <= 0) { goto error; } //将目标服务器返回的数据直接转发给客户端 ret = send(((ProxyParam*)lpParameter)->clientSocket, Buffer, sizeof(Buffer), 0); //错误处理 error: printf("关闭套接字\n"); Sleep(200); closesocket(((ProxyParam*)lpParameter)->clientSocket); closesocket(((ProxyParam*)lpParameter)->serverSocket); delete lpParameter; _endthreadex(0); return 0; } //************************************ // Method: ParseHttpHead // FullName: ParseHttpHead // Access: public // Returns: void // Qualifier: 解析 TCP 报文中的 HTTP 头部 // Parameter: char * buffer // Parameter: HttpHeader * httpHeader //************************************ void ParseHttpHead(char *buffer, HttpHeader * httpHeader) { char *p; char *ptr; const char * delim = "\r\n"; p = strtok_s(buffer, delim, &ptr);//提取第一行 printf("%s\n", p); if (p[0] == 'G') //GET 方式 { memcpy(httpHeader->method, "GET", 3); memcpy(httpHeader->url, &p[4], strlen(p) - 13); } else if (p[0] == 'P') //POST 方式 { memcpy(httpHeader->method, "POST", 4); memcpy(httpHeader->url, &p[5], strlen(p) - 14); } printf("!!!%s!!!\n", httpHeader->url); //printf("I AM HERE!"); if (httpHeader->url == "http://www.bilibili.com/") { //httpHeader->url ="http://www.acfun.tv/" ; memcpy(httpHeader->url, "http://www.acfun.tv/", 21); } p = strtok_s(NULL, delim, &ptr);// while (p) { switch (p[0]) { case 'H'://Host memcpy(httpHeader->host, &p[6], strlen(p) - 6); break; case 'C'://Cookie if (strlen(p) > 8) { char header[8]; ZeroMemory(header, sizeof(header)); memcpy(header, p, 6); if (!strcmp(header, "Cookie")) { memcpy(httpHeader->cookie, &p[8], strlen(p) - 8); } } break; default: break; } p = strtok_s(NULL, delim, &ptr);// } } //************************************ // Method: ConnectToServer // FullName: ConnectToServer // Access: public // Returns: BOOL // Qualifier: 根据主机创建目标服务器套接字,并连接 // Parameter: SOCKET * serverSocket // Parameter: char * host //************************************ BOOL ConnectToServer(SOCKET *serverSocket, char *host) { sockaddr_in serverAddr; serverAddr.sin_family = AF_INET; serverAddr.sin_port = htons(HTTP_PORT); HOSTENT *hostent = gethostbyname(host); if (!hostent) { return FALSE; } in_addr Inaddr = *((in_addr*)*hostent->h_addr_list); serverAddr.sin_addr.s_addr = inet_addr(inet_ntoa(Inaddr)); *serverSocket = socket(AF_INET, SOCK_STREAM, 0); if (*serverSocket == INVALID_SOCKET) { return FALSE; } if (connect(*serverSocket, (SOCKADDR *)&serverAddr, sizeof(serverAddr))== SOCKET_ERROR) { closesocket(*serverSocket); return FALSE; } return TRUE; }
[ "249044706@qq.com" ]
249044706@qq.com
7b2ec75fbc91eeb5c2b2a67d105625664c3630ea
4c23be1a0ca76f68e7146f7d098e26c2bbfb2650
/ic8h18/0.001/CH2OCHO
92dad1358a179c90d7dc07f83828a93340a9b008
[]
no_license
labsandy/OpenFOAM_workspace
a74b473903ddbd34b31dc93917e3719bc051e379
6e0193ad9dabd613acf40d6b3ec4c0536c90aed4
refs/heads/master
2022-02-25T02:36:04.164324
2019-08-23T02:27:16
2019-08-23T02:27:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
839
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.001"; object CH2OCHO; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 5.93799e-21; boundaryField { boundary { type empty; } } // ************************************************************************* //
[ "jfeatherstone123@gmail.com" ]
jfeatherstone123@gmail.com
9b8acabfb0c918997543f4e6ff7c07a04201d773
786de89be635eb21295070a6a3452f3a7fe6712c
/PSXtcInput/tags/V00-00-13/src/XtcEventId.cpp
7645cf69d9d7f54fb59fb6cf4020fa07da081900
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,941
cpp
//-------------------------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Class XtcEventId... // // Author List: // Andrei Salnikov // //------------------------------------------------------------------------ //----------------------- // This Class's Header -- //----------------------- #include "PSXtcInput/XtcEventId.h" //----------------- // C/C++ Headers -- //----------------- //------------------------------- // Collaborating Class Headers -- //------------------------------- //----------------------------------------------------------------------- // Local Macros, Typedefs, Structures, Unions and Forward Declarations -- //----------------------------------------------------------------------- // ---------------------------------------- // -- Public Function Member Definitions -- // ---------------------------------------- namespace PSXtcInput { //---------------- // Constructors -- //---------------- XtcEventId::XtcEventId (int run, const PSTime::Time& time) : PSEvt::EventId() , m_run(run) , m_time(time) { } //-------------- // Destructor -- //-------------- XtcEventId::~XtcEventId () { } /** * @brief Return the time for event. */ PSTime::Time XtcEventId::time() const { return m_time; } /** * @brief Return the run number for event. * * If run number is not known -1 will be returned. */ int XtcEventId::run() const { return m_run; } /// check if two event IDs refer to the same event bool XtcEventId::operator==(const EventId& other) const { return m_time == other.time(); } /// Compare two event IDs for ordering purpose bool XtcEventId::operator<(const EventId& other) const { return m_time < other.time(); } /// Dump object in human-readable format void XtcEventId::print(std::ostream& os) const { os << "XtcEventId(run=" << m_run << ", time=" << m_time << ')'; } } // namespace PSXtcInput
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
53bc9da2f0d5b41a860ee396bc57141964d1f292
42f6e94e2f3f17cb2c846e1d08a46c98be878eb3
/BuildingEscape/Source/BuildingEscape/Private/PawnWithCamera.cpp
7a05527a8ab2eb62b9a80678fe029a881399f5c1
[]
no_license
abbaker324/Cplusplus-UE4-Sections
c03a15a91b681b1f2cf3be291940c2068f4823e0
baadeb5743d81f996fa8a4a23f3f202650d0c360
refs/heads/master
2021-05-31T07:21:21.296116
2016-04-20T03:28:21
2016-04-20T03:28:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,681
cpp
// Copyright Andrew Baker 2016 #include "BuildingEscape.h" #include "PawnWithCamera.h" // Sets default values APawnWithCamera::APawnWithCamera() { // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("RootComponent")); ArrowComponent = CreateDefaultSubobject<UArrowComponent>(TEXT("ArrowComponent")); ArrowComponent->AttachTo(RootComponent); CameraSpringArm = CreateDefaultSubobject<USpringArmComponent>(TEXT("CameraSpringArm")); CameraSpringArm->SetRelativeLocationAndRotation(FVector(0.f, 0.f, 50.f), FRotator(-60.f, 0.f, 0.f)); CameraSpringArm->TargetArmLength = 400.f; CameraSpringArm->bEnableCameraLag = true; CameraSpringArm->CameraLagSpeed = 3.f; CameraSpringArm->AttachTo(RootComponent); Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera")); Camera->AttachTo(CameraSpringArm, USpringArmComponent::SocketName); Mesh = CreateDefaultSubobject<UStaticMeshComponent>("StaticMesh"); Mesh->AttachTo(RootComponent); } // Called when the game starts or when spawned void APawnWithCamera::BeginPlay() { Super::BeginPlay(); } // Called every frame void APawnWithCamera::Tick( float DeltaTime ) { Super::Tick( DeltaTime ); if (bZoomingIn) { ZoomFactor += DeltaTime * 0.5f; } else { ZoomFactor -= DeltaTime * 0.25f; } ZoomFactor = FMath::Clamp<float>(ZoomFactor, 0.f, 1.f); Camera->FieldOfView = FMath::Lerp<float>(90.f, 60.f, ZoomFactor); CameraSpringArm->TargetArmLength = FMath::Lerp<float>(400.f, 300.f, ZoomFactor); //We rotate the root component when we yaw. This will spin the camera around. { FRotator NewRotation = GetActorRotation(); NewRotation.Yaw += CameraInput.X; SetActorRotation(NewRotation); } //We do not pitch the camera. Instead we pitch the spring arm to bring the camera closer or further from the ground. { FRotator NewRotation = CameraSpringArm->GetComponentRotation(); NewRotation.Pitch = FMath::Clamp<float>(NewRotation.Pitch + CameraInput.Y, -80.f, -15.f); CameraSpringArm->SetWorldRotation(NewRotation); } //Now we move the pawn. { if (!MovementInput.IsZero()) { MovementInput = MovementInput.SafeNormal() * Speed; FVector Location = GetActorLocation(); Location += GetActorForwardVector() * MovementInput.X * DeltaTime; Location += GetActorRightVector() * MovementInput.Y * DeltaTime; SetActorLocation(Location); } } } // Called to bind functionality to input void APawnWithCamera::SetupPlayerInputComponent(class UInputComponent* InputComponent) { Super::SetupPlayerInputComponent(InputComponent); InputComponent->BindAxis("MoveX", this, &APawnWithCamera::MoveForward); InputComponent->BindAxis("MoveY", this, &APawnWithCamera::MoveRight); InputComponent->BindAxis("CameraPitch", this, &APawnWithCamera::PitchCamera); InputComponent->BindAxis("CameraYaw", this, &APawnWithCamera::YawCamera); InputComponent->BindAction("MouseZoom", IE_Pressed, this, &APawnWithCamera::ZoomIn); InputComponent->BindAction("MouseZoom", IE_Released, this, &APawnWithCamera::ZoomOut); } void APawnWithCamera::MoveForward(float AxisValue) { MovementInput.X = FMath::Clamp<float>(AxisValue, -1.f, 1.f); } void APawnWithCamera::MoveRight(float AxisValue) { MovementInput.Y = FMath::Clamp<float>(AxisValue, -1.f, 1.f); } void APawnWithCamera::PitchCamera(float AxisValue) { CameraInput.Y = AxisValue; } void APawnWithCamera::YawCamera(float AxisValue) { CameraInput.X = AxisValue; } void APawnWithCamera::ZoomIn() { bZoomingIn = true; } void APawnWithCamera::ZoomOut() { bZoomingIn = false; }
[ "sibermonkey@gmail.com" ]
sibermonkey@gmail.com
a08fce32bb5241029a5a99514e37fdb31936e160
cc78959cb73f42516851acd74377a920b31a261a
/random_forest/src/main.cpp
0133fdc86dd2f934044c105900b691926096efb9
[]
no_license
Ethan-zhengyw/Data-Mining
7f6984d635382ad30a90456f0f4916ef9cd87259
0736e5d6f8dcce1734be9bdf9e319d5aa92007fc
refs/heads/master
2021-01-15T14:36:15.153514
2015-05-30T02:37:45
2015-05-30T02:37:45
32,360,215
0
0
null
null
null
null
UTF-8
C++
false
false
1,770
cpp
#include <iostream> #include <fstream> #include <string> #include "DataEntry.h" #include "TrainingDataEntry.h" #include "DecisionTree.h" #include "Forest.h" using namespace std; vector<TrainingDataEntry> DecisionNode::trainingData = DecisionNode::loadTrainingDataFromFile("data/train.csv"); vector<DataEntry> DecisionTree::testingData = DecisionTree::loadTestingDataFromFile("data/test.csv"); int DecisionTree::alpha = 0.001 * DecisionNode::trainingData.size(); // 属性分割100段 int DecisionTree::beta = 0.001 * DecisionNode::trainingData.size(); // 节点大小1%,60左右 /* alpha beta tree cr * 0.05 0.05 1 45.56 * 0.05 0.05 5 48.33 * 0.05 0.05 10 48.70 * 0.01 0.05 1 72.89 * 0.01 0.05 5 74.09 * 0.01 0.05 10 75.23 * 0.01 0.01 1 75.77 * 0.01 0.01 5 79.90 * 0.01 0.01 9 80.12 * 0.01 0.01 1 75.80 * 0.01 0.01 5 79.27 * 0.01 0.01 10 79.58 * 0.01 0.01 15 80.19 * 0.01 0.01 20 81.30 * 0.01 0.001 1 75.90 * 0.01 0.001 5 81.12 * 0.01 0.001 9 81.13 * 0.001 0.001 1 88.84 * 0.001 0.001 6 93.51 * 0.001 0.001 11 94.62 * 0.001 0.001 16 95.05 */ int main() { int forestSize = 140, threadNum = 7; Forest forest = Forest(forestSize); forest.trainAllTrees(threadNum); for (int i = 0; i < forestSize; i++) { forest.trees[i].judgeAllTrainingData(); } for (int i = 1; i <= forestSize; i++) { forest.judgeAllTrainingData(i); forest.judgeAllTestingData("data/tmp.csv", i); ofstream tmp("data/treeNum.txt"); tmp << i; tmp.close(); ifstream tmp2("data/treeNum.txt"); string tm; tmp2 >> tm; tmp2.close(); string path = "data/data/gini0.001_0.001_0.001_9_6_" + tm + ".csv"; forest.judgeAllTestingData(path, i); } return 0; }
[ "zhengyw55@gmail.com" ]
zhengyw55@gmail.com
612cdf537e4cbd6f875c857237f46d1b9a56ecce
79495026c46a07bb1b30229b69fdc4cadf3fae73
/include/targa.h
fc2370ab76ff0422f33c16891ae5af01f646ef3b
[ "MIT" ]
permissive
masscry/sofjes
9df00d4f1dbe7994742b9954bf21022fc1928dfa
f42f6c41c6073bb7d0f50153b439d3e3336928fa
refs/heads/master
2020-05-19T07:24:27.780368
2019-05-12T21:42:09
2019-05-12T21:42:09
184,896,878
1
0
null
null
null
null
UTF-8
C++
false
false
541
h
/** * @file targa.h * @author timur * * TGA format load/save routines. * */ #pragma once #ifndef __TARGA_HEADER__ #define __TARGA_HEADER__ #include <cstdint> #include <texture_t.h> namespace sj { enum tgaErrors { TGA_OK = 0, /**< No errors */ TGA_IO = 1, /**< IO error */ TGA_SIG = 2 }; /** * Load tga image. * * @param input input file stream * @param img image to store pixels data * * @return non-zero on errors */ texture_t tgaLoad(FILE* input); } #endif /* __TARGA_HEADER__ */
[ "masscry@gmail.com" ]
masscry@gmail.com
ffc4913d1543cb0bb1004d7d59ea130d167ff6a9
45daa5d1757d6c4aec89c4feb68b49c2bb19aa93
/POJ/1459/Dinic算法模板.cpp
2cbc3dbe2660ef07fbaed6280f687ffba356255c
[]
no_license
LQNew/Openjudge
74dbddb14d52ccf501f4873352ff00bdaa0cae59
9df795f74b8344ec3a98f4af7c2916907e3eece0
refs/heads/master
2020-03-22T14:10:17.866092
2019-01-02T06:56:43
2019-01-02T06:56:43
140,158,190
5
0
null
null
null
null
UTF-8
C++
false
false
1,883
cpp
#include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<vector> #include<queue> using namespace std; #define maxn 1005 #define inf 0x3f3f3f3f int first[maxn],nxt[maxn<<1],to[maxn<<1],pre[maxn<<1],e,flow[maxn<<1],cap[maxn<<1]; //int a[maxn],fa[maxn]; bool vis[maxn]; int level[maxn],cur[maxn]; void add(int u,int v,int c){ to[e]=v; pre[e]=u; flow[e]=0; cap[e]=c; nxt[e]=first[u]; first[u]=e++; } bool bfs(int s,int t){ memset(vis,0,sizeof vis); //memset(level,0,sizeof level); queue<int>q; level[s]=0; vis[s]=1; q.push(s); while(!q.empty()){ int u=q.front(); q.pop(); for(int i=first[u];~i;i=nxt[i]){ int v=to[i],fl=flow[i],c=cap[i]; if(!vis[v]&&c>fl){ level[v]=level[u]+1; vis[v]=1; q.push(v); } } } return vis[t]; } int dfs(int u,int t,int f){ if(u==t)return f; for(int &i=cur[u];~i;i=nxt[i]){ int v=to[i],fl=flow[i],c=cap[i]; if(level[v]==level[u]+1&&c>fl){ int d=dfs(v,t,min(c-fl,f)); if(d>0){ flow[i]+=d; flow[i^1]-=d; return d; } } } return 0; } int max_flow(int s,int t){ int flow=0; while(bfs(s,t)){ for(int i=1;i<=t;i++){ cur[i]=first[i]; } int temp=dfs(s,t,inf); //if(temp==0)break; //else flow+=temp; } return flow; } int main() { int t; int n,m; int u,v,c; int tt=0; //freopen("in.txt","r",stdin); scanf("%d",&t); while(t--){ e=0; memset(first,-1,sizeof first); scanf("%d%d",&n,&m); for(int i=0;i<m;i++){ scanf("%d%d%d",&u,&v,&c); add(u,v,c); add(v,u,0); } printf("Case %d: %d\n",++tt,max_flow(1,n)); } }
[ "1053539672@qq.com" ]
1053539672@qq.com
4baaf2561db04c29831e54fcee10aedbe54713ef
8893d5b1c3323a2bbe1353599a11c77efcaca88d
/2016 Jan/lightsout.cpp
88f73a436c2f5592664462aec29379151c7831d1
[]
no_license
ctzsm/USACO-Contest
10859193dd3cd591e536e810ace1c3ecc2cda179
9a2cd3e395f5cda8d63dbeabef51f974724e0b22
refs/heads/master
2020-12-24T16:14:54.276764
2016-01-21T19:01:54
2016-01-21T19:01:54
6,825,214
0
0
null
null
null
null
UTF-8
C++
false
false
2,044
cpp
#include <cmath> #include <vector> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> using namespace std; struct pnt { long long x, y; void scan() { scanf("%lld%lld", &x, &y); } pnt operator - (const pnt& a) { pnt res; res.x = x - a.x, res.y = y - a.y; return res; } }p[222]; typedef pnt vec; int n; inline long long dis(pnt& a, pnt& b) { return labs(b.x - a.x) + labs(b.y - a.y); } inline long long cross(vec& a, vec& b) { return a.x * b.y - a.y * b.x; } inline int dir(int i) { if (i == n) return 0; vec l1 = p[i] - p[i - 1], l2 = p[i + 1] - p[i]; long long area = cross(l1, l2); if (area == 0) return 180; return area < 0 ? 90 : 270; } long long l[222], r[222], d[222]; vector<int> path[222]; int main() { freopen("lightsout.in", "r", stdin); freopen("lightsout.out", "w", stdout); scanf("%d", &n); for (int i = 0; i < n; ++i) p[i].scan(); p[n] = p[0]; for (int i = 1; i < n; ++i) l[i] = l[i - 1] + dis(p[i], p[i - 1]); for (int i = n - 1; i > 0; --i) r[i] = r[i + 1] + dis(p[i + 1], p[i]); for (int i = 0; i < n; ++i) d[i] = min(l[i], r[i]); for (int i = 1; i < n; ++i) { path[i].push_back(dir(i)); for (int j = i + 1; j <= n; ++j) { path[i].push_back(dis(p[j], p[j - 1])); path[i].push_back(dir(j)); } } // for (int i = 1; i < n; ++i) { // for (int j = 0; j < path[i].size(); ++j) printf("%d ", path[i][j]); // printf("\n"); // } long long ans = 0; for (int i = 1; i < n; ++i) { int g = 0; long long len = 0; for (int j = 1; j < n; ++j) { if (j == i) continue; int l = min(path[i].size(), path[j].size()); long long tlen = 0; bool flag = false; for (int k = 0; k < l; ++k) { if (k & 1) tlen += path[i][k]; if (path[i][k] != path[j][k]) { if (g < (k + 1) / 2) { g = (k + 1) / 2; len = tlen; } flag = true; break; } } if (!flag) { if (g < l / 2) { g = l / 2; len = tlen; } } } g = (i + g) % n; ans = max(ans, d[g] + len - d[i]); } printf("%lld\n", ans); return 0; }
[ "shimi@hackerrank.com" ]
shimi@hackerrank.com
80b7bb000d2a61d4ef64d596d22f2772f7a3eed6
1ec8d6c5bf52c9fd0b0a2be714aacc5187877989
/request/zeroRateCurveRequest.cpp
3a7117026415a2c9cc51a9ed5d1ead1e69b99693
[]
permissive
KloudTrader/quantraserver
16e9375e8880b6d862b6af7260efa372edfc6bae
826deb292b82c05bbb7c1cc50412afaaaa474196
refs/heads/master
2020-12-04T16:17:10.135948
2019-07-13T22:47:53
2019-07-13T22:47:53
231,833,239
0
1
BSD-3-Clause
2020-01-04T21:48:58
2020-01-04T21:48:57
null
UTF-8
C++
false
false
5,354
cpp
// // Created by Josep Rubio on 6/22/17. // #include "zeroRateCurveRequest.h" void zeroRateCurveRequest::processRequest(crow::request req, boost::shared_ptr<crow::json::wvalue> response) { auto x = crow::json::load(req.body); bool error = false; bool tmpBool = false; std::ostringstream erroros; (*response)["response"] = "ok"; std::vector<std::string> *errorLog = new std::vector<std::string>(); /*Temporary to solve "{\"\"}" issue*/ if(req.body.at(0) == '"'){ (*response)["response"] = "ko"; (*response)["message"]["ZeroRateCurveErrors"] = "Wrong format"; return; } Document d; ParseResult ok = d.Parse(req.body.c_str()); if (!ok) { fprintf(stderr, "JSON parse error: %s (%u)", GetParseError_En(ok.Code()), ok.Offset()); erroros << "JSON parse error: " << GetParseError_En(ok.Code()) << " " << ok.Offset(); (*response)["response"] = "ko"; (*response)["message"]["ZeroRateCurveErrors"] = erroros.str(); return; } Value::MemberIterator iterator; pricingParser PricingParser(errorLog, "Pricing"); iterator = d.FindMember("Pricing"); if (iterator != d.MemberEnd()) { Value &pricingJSON = d["Pricing"]; tmpBool = PricingParser.parse(pricingJSON); error = error || tmpBool; } else { erroros << "Pricing: Not found "; CROW_LOG_DEBUG << "Pricing: Not found "; errorLog->push_back(erroros.str()); erroros.str(""); erroros.clear(); error = true; } zeroCurveParser ZeroCurveParser(errorLog, "ZeroCurve"); iterator = d.FindMember("ZeroCurve"); if(iterator != d.MemberEnd()){ Value& fwdCurveJSON = d["ZeroCurve"]; tmpBool = ZeroCurveParser.parse(fwdCurveJSON); error = error || tmpBool; }else{ erroros << "ZeroCurve: Not found "; CROW_LOG_DEBUG << "ZeroCurve: Not found "; errorLog->push_back(erroros.str()); erroros.str(""); erroros.clear(); error = true; } std::vector<curvePoint> resultPoints; if(!error){ termStructureListParser TermStructureListParser("Curves",errorLog); iterator = d.FindMember("Curves"); if(iterator != d.MemberEnd()){ TermStructureListParser.setAsOfDate(PricingParser.getAsOfDate()); tmpBool = TermStructureListParser.parse(d); error = error || tmpBool; }else{ erroros << "Curves: Not found "; CROW_LOG_DEBUG << "Curves: Not found "; errorLog->push_back(erroros.str()); erroros.str(""); erroros.clear(); error = true; } if(!error){ try{ boost::shared_ptr<YieldTermStructure> term; std::map<string,boost::shared_ptr<termStructureParser>> list = TermStructureListParser.getTermStructuresList(); std::map<string,boost::shared_ptr<termStructureParser>>::iterator it; it =list.find("ZeroRateTermStructure"); if (it != list.end()) { term = it->second->getTermStructure(); }else{ erroros << "ZeroRateTermStructure not found "; CROW_LOG_DEBUG << "ZeroRateTermStructure not found "; errorLog->push_back(erroros.str()); erroros.str(""); erroros.clear(); error = true; } if(!error) { Date counter = PricingParser.getAsOfDate(); int i = 0; while (counter < term->maxDate()) { curvePoint resultPoint; resultPoint.point = i; std::ostringstream os; os << QuantLib::io::iso_date(counter); resultPoint.date = os.str(); resultPoint.rate = term.get()->zeroRate(counter, ZeroCurveParser.getDayCounter(), ZeroCurveParser.getCompounding()); resultPoints.push_back(resultPoint); counter++; i++; } } }catch (Error e) { erroros << e.what(); CROW_LOG_DEBUG << e.what(); errorLog->push_back(erroros.str()); erroros.str(""); erroros.clear(); error = true; } } } if(!error){ (*response)["response"] = "ok"; for (int i = 0; i < resultPoints.size(); i++) { (*response)["message"][i]["Point"] = resultPoints[i].point; (*response)["message"][i]["Date"] = resultPoints[i].date; (*response)["message"][i]["Rate"] = resultPoints[i].rate; } }else{ (*response)["response"] = "ko"; int i = 0; for (std::vector<string>::iterator it = errorLog->begin(); it != errorLog->end(); ++it) { (*response)["message"]["ZeroRateCurveErrors"][i] = *it; i++; } } }
[ "josep@datag.es" ]
josep@datag.es
399f027cc1ee475778b41da03ecc5bc8ca4934f6
dd24a27132a8d62d44f24da4e4cb07ec33915b4a
/types/vertex.cpp
76e85b94c9db44e41da66881bf13095ecf7b6426
[]
no_license
OptoCloud/GameEngine
ed733eb1f64d668fdfba97ec95af8f7148b2a482
90ae0d325e6d0017004a0cb0d2f73c4d5158f14d
refs/heads/master
2020-09-14T14:47:27.318374
2019-11-21T15:38:27
2019-11-21T15:38:27
223,159,750
1
0
null
null
null
null
UTF-8
C++
false
false
120
cpp
#include "types.h" Vertex::Vertex() { } Vertex::Vertex(const Vertex& other) { } Vertex::~Vertex() { }
[ "" ]
aacfa937c220254733a532245b8a1e21ffea64e6
2c5eb0019b2404f22a63f34ef9bcdd273bfd2fbf
/OOP-CS304/Lab/015.Lab 15/002.task_2.cpp
f208333cfdc9a36120898c3725ace47cc9712a58
[]
no_license
IIvexII/CS
558054fd6b80b516bdc6c02d24a64c00cd7dc178
a6a03dacd4450828d5a87a2f52e940e0a0b14441
refs/heads/main
2023-06-30T06:03:56.411018
2021-08-04T13:56:36
2021-08-04T13:56:36
319,822,884
1
0
null
null
null
null
UTF-8
C++
false
false
702
cpp
/* Q.2 Write a C++ program that inputs up to 10 integer values from data file named “Question2.text” and displays them on the screen. If there are not 10 numbers in file, the message “The file is finished” should be displayed after last number. */ #include <iostream> #include <fstream> using namespace std; int main(){ int num, counter=1; ifstream myFile("resources/Question2.txt"); if(!myFile){ cout << "Unable to open." << endl; } else{ while(myFile >> num){ cout << counter << ". " << num << endl; counter++; } cout << "The file is finished." << endl; } myFile.close(); return 0; }
[ "mrh4ck3r1738@gmail.com" ]
mrh4ck3r1738@gmail.com
d3426579a07293e2629ec72a410c91a63a75cbfc
2178122fa9556dc02f32d80d8890ec202080ea65
/minionpriest.h
a1093eea1e97899766b5abcf8ec06acb041c55e8
[]
no_license
ds282547/UltraBattle
f45e1ad2adc6e642b6e7552c4763e38aec0f7525
4d6ce44fdf77f8428d2767fed6b8f709c3770b98
refs/heads/master
2021-06-10T23:38:09.803940
2021-03-23T01:02:45
2021-03-23T01:02:45
122,828,014
0
0
null
null
null
null
UTF-8
C++
false
false
262
h
#ifndef MINIONPRIEST_H #define MINIONPRIEST_H #include <QtMath> #include "minion.h" class MinionPriest : public Minion { public: MinionPriest(int _type, int _side, int _no, int _level); virtual void attack(); }; #endif // MINIONPRIEST_H
[ "ds282547@mail.ncku.edu.tw" ]
ds282547@mail.ncku.edu.tw
c5ffb1daf471de8b356956f3eea204a037e65e0d
6f874ccb136d411c8ec7f4faf806a108ffc76837
/code/Windows-classic-samples/Samples/Win7Samples/winui/speech/engines/samplesrengine/srengui.cpp
f8b0e2b062bf7668a9d5f79a6da09d22bbc7053d
[ "MIT" ]
permissive
JetAr/ZDoc
c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435
e81a3adc354ec33345e9a3303f381dcb1b02c19d
refs/heads/master
2022-07-26T23:06:12.021611
2021-07-11T13:45:57
2021-07-11T13:45:57
33,112,803
8
8
null
null
null
null
UTF-8
C++
false
false
3,409
cpp
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright © Microsoft Corporation. All rights reserved /****************************************************************************** * srengui.cpp * This file contains the implementation of the CSrEngineUI class. * This implements ISpTokenUI. This is used by the app to display UI. * The methods here can either be called by the app directly from ISpObjectToken, * or they can be called from the reco instance, in which case the methods * are able to make a private call back to the main engine object. ******************************************************************************/ #include "stdafx.h" #include "SampleSrEngine.h" #include "srengui.h" /**************************************************************************** * CSrEngineUI::IsUISupported * *----------------------------* * Description: * Determine if the UI is supported. A reference to the main SR engine * object (if it has been created), can be obtained from punkObject. * If none-NULL this may be an ISpRecoContext, from which an engine * extension interface can be obtained. * * Return: * S_OK on success * E_INVALIDARG on invalid arguments *****************************************************************************/ STDMETHODIMP CSrEngineUI::IsUISupported(const WCHAR * pszTypeOfUI, void * pvExtraData, ULONG cbExtraData, IUnknown * punkObject, BOOL *pfSupported) { *pfSupported = FALSE; // We can do both engine specific properties as well as default settings (defaults when punkObject == NULL) if (wcscmp(pszTypeOfUI, SPDUI_EngineProperties) == 0) *pfSupported = TRUE; // We can only do user training if we get passed an engine if (wcscmp(pszTypeOfUI, SPDUI_UserTraining) == 0 && punkObject != NULL) *pfSupported = TRUE; // We can only do mic training if we get passed an engine if (wcscmp(pszTypeOfUI, SPDUI_MicTraining) == 0 && punkObject != NULL) *pfSupported = TRUE; return S_OK; } /**************************************************************************** * CSrEngineUI::DisplayUI * *------------------------* * Description: * Display the UI requested * * Return: * S_OK on success *****************************************************************************/ STDMETHODIMP CSrEngineUI::DisplayUI(HWND hwndParent, const WCHAR * pszTitle, const WCHAR * pszTypeOfUI, void * pvExtraData, ULONG cbExtraData, ISpObjectToken * pToken, IUnknown * punkObject) { if (wcscmp(pszTypeOfUI, SPDUI_EngineProperties) == 0) { if (punkObject) { MessageBoxW(hwndParent, L"Developer Sample Engine: Replace this with real engine properties dialog.", pszTitle, MB_OK); } } if (wcscmp(pszTypeOfUI, SPDUI_UserTraining) == 0) { MessageBoxW(hwndParent, L"Developer Sample Engine: Replace this with real user training wizard / dialog.", pszTitle, MB_OK); } if (wcscmp(pszTypeOfUI, SPDUI_MicTraining) == 0) { MessageBoxW(hwndParent, L"Developer Sample Engine: Replace this with real microphone training wizard / dialog.", pszTitle, MB_OK); } return S_OK; }
[ "126.org@gmail.com" ]
126.org@gmail.com
2aeda4994d52ed21727ed55240d49d7df2219a46
64463108ccefe785c5458f2d2940024c03c38b26
/LibGUI/GMenuBar.h
4fc4d905546ea8911ac97da9cde9577a5a286210
[ "BSD-2-Clause" ]
permissive
Alxgee77/serenity
0e4d4aea85703819cf49d1c3cbc64baea117e29e
7aebda2ca3980aebf5c1882bd284e83dfbabf781
refs/heads/master
2020-05-27T14:36:14.799299
2019-06-06T21:45:06
2019-06-06T21:45:06
188,663,158
1
0
null
2019-05-26T09:23:41
2019-05-26T09:23:40
null
UTF-8
C++
false
false
460
h
#pragma once #include <LibGUI/GMenu.h> #include <AK/Badge.h> #include <AK/Vector.h> class GApplication; class GMenuBar { public: GMenuBar(); ~GMenuBar(); void add_menu(OwnPtr<GMenu>&&); void notify_added_to_application(Badge<GApplication>); void notify_removed_from_application(Badge<GApplication>); private: int realize_menubar(); void unrealize_menubar(); int m_menubar_id { -1 }; Vector<OwnPtr<GMenu>> m_menus; };
[ "awesomekling@gmail.com" ]
awesomekling@gmail.com
2d1955e9a22c1143047ad7677d27691d39787dba
05f0cab2f3c7426a0ae3bbe38e42e261c03ca49b
/prebuilt/include/osal/windows_thread.h
9902d8dd100c590e234671e9fb3e3df95e0a9f61
[]
no_license
JammyWei/ver30
199719eb7904db0b5d764a413e0ea6b7e8a26f6f
2e1fe0eeb6cef5c6e35a16e30226874a14b86f7d
refs/heads/master
2020-04-03T13:01:17.982783
2014-03-05T09:38:58
2014-03-05T09:38:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,025
h
#pragma once #include "base_thread.h" class WindowsThread : public BaseThread { public: WindowsThread(void); virtual ~WindowsThread(void); #if defined( _WIN32 ) virtual GMI_RESULT Create( const char_t *Name, size_t StackSize, TRHEAD_FUNCTION Function, void_t *Argument ); virtual GMI_RESULT Destroy(); virtual GMI_RESULT Start(); virtual GMI_RESULT Pause(); virtual GMI_RESULT Resume(); virtual GMI_RESULT Stop(); static long_t GetCurrentId(); private: static DWORD WINAPI ThreadProc( LPVOID lpParameter ) { WindowsThread *Thread = reinterpret_cast<WindowsThread*>(lpParameter); void_t *ReturnValue = Thread->m_ThreadFunction( Thread->m_ThreadFunctionArgument ); size_t ReturnInteger = (size_t) ReturnValue; return (DWORD) ReturnInteger; } private: HANDLE m_Thread; size_t m_StackSize; TRHEAD_FUNCTION m_ThreadFunction; void_t *m_ThreadFunctionArgument; #endif };
[ "admin_lgq@dd879d07-adaa-4757-b7d0-008d00b626b4" ]
admin_lgq@dd879d07-adaa-4757-b7d0-008d00b626b4
3fd5b73cf62951c79ef9cca172980411ab536246
674f772acb48675e2e6efe5e4ade1bab7b826e42
/input.h
48f3f4e0be4fd117ed1cdfde16c432c3466f1887
[]
no_license
dooks/employee-management
0726b53afd3ec865fc4c7f09a0750e34c9904c1d
c4e9f327e098a6819ffd7f99e384c2a5632ddd40
refs/heads/master
2021-06-18T08:50:05.561141
2017-04-02T23:13:13
2017-04-02T23:13:13
31,029,115
0
0
null
null
null
null
UTF-8
C++
false
false
89
h
#pragma once class Input { public: char getCh(); // Wait for user input and return };
[ "dook@stardust.red" ]
dook@stardust.red
a8a6e62739c1cdfce3e9483c46180fb7ee13e82a
181539218635be823d8491742d3056a4b45ceeb9
/weak-pointers.cpp
3ef0cd7638db81748d9fc29036b1d22904703fea
[]
no_license
taemini/programming-book-cpp-part-2
9f82d67464bf63f5cac3cce097a1afc4c7ef0984
a296188b0b025989278232adb955590b4aeebacd
refs/heads/main
2023-04-07T19:24:02.668262
2021-04-15T11:19:26
2021-04-15T11:19:26
352,287,136
0
0
null
null
null
null
UTF-8
C++
false
false
1,003
cpp
#define CATCH_CONFIG_MAIN #include <memory> #include "catch.hpp" struct DeadMenOfDunharrow { DeadMenOfDunharrow(const char* m = "") : message{m} { oaths_to_fulfill++; } ~DeadMenOfDunharrow() { oaths_to_fulfill--; } const char* message; static int oaths_to_fulfill; }; int DeadMenOfDunharrow::oaths_to_fulfill{}; // obtaining temporary ownership TEST_CASE("WeakPtr lock() yields") { auto message = "The way is shut."; SECTION("a shared pointer when tracked object is alive") { auto aragorn = std::make_shared<DeadMenOfDunharrow>(message); std::weak_ptr<DeadMenOfDunharrow> legolas{ aragorn }; auto sh_ptr = legolas.lock(); REQUIRE(sh_ptr->message == message); REQUIRE(sh_ptr.use_count() == 2); } SECTION("empty when shared pointer empty") { std::weak_ptr<DeadMenOfDunharrow> legolas; { auto aragorn = std::make_shared<DeadMenOfDunharrow>(message); legolas = aragorn; } auto sh_ptr = legolas.lock(); REQUIRE(nullptr == sh_ptr); } }
[ "tamini.kim@gmail.com" ]
tamini.kim@gmail.com
be5813f423066673446080c5f38315a1ee9bc8c9
2ff4ca7688546882d00415c8d857e8855f5fc81e
/ai/llvm/AI/AITolerate.cc
11c8161e6427bfd0fbdc93c5f55f1338430f9783
[]
no_license
junho0901/AI
449fbddb9a811b7680277214f382930ded23024e
27b783590756963b114f47c98839ee14a7e86c79
refs/heads/master
2021-12-02T19:13:06.986423
2014-03-14T14:14:32
2014-03-14T14:14:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,687
cc
#include "instrumentation/Function.h" #include "common.hpp" #include "stdio.h" #include <map> #include <set> using namespace std; using namespace llvm; using namespace llvm_instrumentation; static cl::opt<std::string> AISanitizedBSetFile("AISanitizedBSetFile", cl::init("sanitized-bset.txt"), cl::desc("Sanitized BSet File"), cl::Hidden); static cl::opt<std::string> AIInsGroupFile("AIInsGroupFile", cl::init(""), cl::desc("Instruction Group File"), cl::Hidden); static cl::opt<double> AIInsGroupThreshold("AIInsGroupThreshold", cl::init(0.4), cl::desc("Threshold of Instruction Group"), cl::Hidden); static cl::opt<int> AIRelax("AIRelax", cl::init(0), cl::desc("AI Relax"), cl::Hidden); namespace { struct AITolerate : public ModulePass { static char ID; AITolerate() : ModulePass(ID) {} InstrumentFunctionMonitor iFMonitor; Function *AITolerateMemoryAccess; map<AI_ACCESS_ID, AI_ACCESS_ID> IDMap; set<AI_ACCESS_ID> blackList, whiteList; bool runOnModule(Module &M); bool instrumentLoadOrStore(Instruction *I); }; // struct AITolerate } // namespace char AITolerate::ID = 0; static RegisterPass<AITolerate> X("AITolerate", "AI Tolerate Pass"); bool AITolerate::runOnModule(Module &M) { IRBuilder<> IRB(M.getContext()); // Function *pthreadCreate = M.getFunction("pthread_create"); // if (pthreadCreate) { // iFMonitor.RegisterFunctionReplacement(M, pthreadCreate, "__ai_wrapper_pthread_create"); // } // Module::FunctionListType &functions = M.getFunctionList(); // for (Module::FunctionListType::iterator it = functions.begin(), it_end = functions.end(); it != it_end; ++it) { // iFMonitor.Instrument(*it); // } FILE *whiteListFile = fopen("whitelist.ins", "r"); if (whiteListFile) { AI_ACCESS_ID ID; while (fscanf(whiteListFile, "%lu", &ID) != EOF) whiteList.insert(ID); } FILE *f = fopen(AISanitizedBSetFile.c_str(), "r"); size_t sz; assert(fscanf(f, "%zu", &sz) != EOF); AI_ACCESS_ID a,b; while (sz--) { assert(fscanf(f, "%lu%lu", &a, &b) != EOF); IDMap[a] = b; } fclose(f); blackList.clear(); if (AIInsGroupFile != "") { FILE *g = fopen(AIInsGroupFile.c_str(), "r"); int tot; while (fscanf(g, "%d", &tot) != EOF) { AI_ACCESS_ID ins; vector<AI_ACCESS_ID> v; while (tot--) { assert(fscanf(g, "%lu", &ins) != EOF); v.push_back(ins); } double p, p2; assert(fscanf(g, "%lf%lf", &p, &p2) != EOF); // fprintf(stderr, "%lf %lf\n", p, (double)AIInsGroupThreshold); if (p > AIInsGroupThreshold) { // fprintf(stderr, "Bloack!\n"); blackList.insert(v.begin(), v.end()); } } } bool is_changed = false; if (AIRelax == 0) { AITolerateMemoryAccess = checkInterfaceFunction(M.getOrInsertFunction("__ai_tolerate_memory_access", IRB.getVoidTy(), IRB.getInt64Ty(), IRB.getInt8PtrTy(), NULL)); } else { AITolerateMemoryAccess = checkInterfaceFunction(M.getOrInsertFunction("__ai_relax_memory_access", IRB.getVoidTy(), IRB.getInt64Ty(), IRB.getInt8PtrTy(), NULL)); } for (Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI) { Function &F =*MI; for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) { BasicBlock &BB = *FI; for (BasicBlock::iterator BI = BB.begin(), BE = BB.end(); BI != BE; ++BI) { if (isa<LoadInst>(BI) || isa<StoreInst>(BI)) is_changed |= instrumentLoadOrStore(BI); } } } if (is_changed) { iFMonitor.addToGlobalCtors(M, "__ai_tolerate_init", IRB.getVoidTy(), NULL); iFMonitor.addToGlobalDtors(M, "__ai_tolerate_destroy", IRB.getVoidTy(), NULL); } return is_changed; } bool AITolerate::instrumentLoadOrStore(Instruction *I) { IRBuilder<> IRB(I); MDNode *Node = I->getMetadata("AIMemoryAccessID"); if (!Node) { // HACK: Do not instrument instruction that has no AIMemoryAccessID return false; } Value *ID = Node->getOperand(0); ConstantInt *CI = dyn_cast<ConstantInt>(ID); if (!CI) { report_fatal_error("Error AIMemoryAccessID!"); } AI_ACCESS_ID id = CI->getZExtValue(); if (IDMap.count(id) == 0) return false; if (blackList.count(id) != 0 && whiteList.count(id) == 0) return false; AI_ACCESS_ID _id = IDMap[id]; // Add a Call Before it bool IsWrite = isa<StoreInst>(*I); Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand() : cast<LoadInst>(I)->getPointerOperand(); IRB.CreateCall2(AITolerateMemoryAccess, ConstantInt::get(IRB.getInt64Ty(), _id), IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); return true; }
[ "james0zan@gmail.com" ]
james0zan@gmail.com
ff08899730e43581c499126d5bd8807b1202a055
ec76c1297252070d72fd194baebca3146bafac59
/damBreak_laminar/damBreak/6.95/phi
24baf1c4d20424922ebfd2bb39be0a6a9d7e603b
[]
no_license
Shivam-IITKGP/CFD_InterFoam_BottleFill
413cdb5536cf71d95da882821fa36c7bd138e17e
be711e0f19a5331bb1094b8e54982c9ad101da5c
refs/heads/main
2023-04-13T12:58:09.332312
2021-04-15T16:24:42
2021-04-15T16:24:42
358,315,309
1
0
null
null
null
null
UTF-8
C++
false
false
226,842
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class surfaceScalarField; location "6.95"; object phi; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -1 0 0 0 0]; internalField nonuniform List<scalar> 18095 ( 1.99772e-08 -1.72113e-07 1.52136e-07 2.3174e-08 -1.97483e-07 1.94286e-07 1.99682e-08 -2.06091e-07 2.09296e-07 1.08602e-08 -2.10936e-07 2.20044e-07 -8.66649e-10 -2.13237e-07 2.24964e-07 -1.233e-08 -2.13208e-07 2.24671e-07 -2.06143e-08 -2.11231e-07 2.19516e-07 -2.3275e-08 -2.06214e-07 2.08874e-07 -1.99932e-08 -1.9746e-07 1.94178e-07 -1.72028e-07 1.52034e-07 1.55222e-08 -1.87635e-07 1.6175e-08 -1.98136e-07 1.19914e-08 -2.01907e-07 6.23766e-09 -2.05182e-07 -2.02238e-10 -2.06797e-07 -6.22787e-09 -2.07182e-07 -1.1881e-08 -2.05578e-07 -1.61967e-08 -2.01898e-07 -1.55705e-08 -1.98086e-07 -1.87598e-07 6.78729e-09 -1.94423e-07 8.38564e-09 -1.99734e-07 7.39945e-09 -2.00921e-07 4.61627e-09 -2.02399e-07 5.15906e-10 -2.02697e-07 -4.01649e-09 -2.0265e-07 -7.45285e-09 -2.02142e-07 -8.44897e-09 -2.00902e-07 -6.80888e-09 -1.99726e-07 -1.94407e-07 4.50912e-09 -1.98932e-07 4.71648e-09 -1.99942e-07 3.64884e-09 -1.99853e-07 1.6039e-09 -2.00354e-07 -3.52489e-10 -2.00741e-07 -2.07018e-09 -2.00932e-07 -3.72834e-09 -2.00484e-07 -4.75466e-09 -1.99876e-07 -4.52283e-09 -1.99958e-07 -1.9893e-07 1.06832e-09 1.1268e-09 1.27364e-09 9.19851e-10 1.7924e-10 -7.52899e-10 -1.23658e-09 -1.11214e-09 -1.07006e-09 -2.88266e-08 -1.95829e-07 2.24656e-07 -3.13262e-08 -1.99085e-07 2.01585e-07 -2.57122e-08 -2.01111e-07 1.95497e-07 -1.4395e-08 -2.01666e-07 1.90349e-07 1.73889e-10 -2.02071e-07 1.87502e-07 1.45932e-08 -2.02084e-07 1.87664e-07 2.56905e-08 -2.01801e-07 1.90704e-07 3.10989e-08 -2.01111e-07 1.95702e-07 2.85545e-08 -1.99274e-07 2.01819e-07 -1.95967e-07 2.24522e-07 -9.53685e-09 -1.86292e-07 -1.55144e-08 -1.93108e-07 -1.34447e-08 -2.03181e-07 -7.28912e-09 -2.07822e-07 -1.35839e-09 -2.08002e-07 4.85346e-09 -2.08296e-07 1.19717e-08 -2.08919e-07 1.51217e-08 -2.04261e-07 9.45332e-09 -1.93606e-07 -1.86514e-07 -9.73161e-09 -1.7656e-07 -7.49286e-09 -1.95347e-07 -5.64327e-09 -2.0503e-07 -2.95207e-09 -2.10513e-07 2.24905e-09 -2.13203e-07 7.21692e-09 -2.13263e-07 7.9703e-09 -2.09673e-07 8.27431e-09 -2.04565e-07 9.93632e-09 -1.95268e-07 -1.76578e-07 -6.41871e-09 -1.70142e-07 -8.35956e-09 -1.93406e-07 -8.21282e-09 -2.05177e-07 -3.93054e-09 -2.14795e-07 -6.94654e-10 -2.16439e-07 2.48555e-09 -2.16444e-07 7.25859e-09 -2.14446e-07 8.13486e-09 -2.05441e-07 6.43384e-09 -1.93567e-07 -1.70144e-07 -1.80059e-08 -1.71256e-08 -1.30061e-08 -7.75764e-09 7.67758e-10 8.99528e-09 1.40649e-08 1.74984e-08 1.81092e-08 3.52728e-08 -1.59302e-07 1.2403e-07 4.09629e-08 -2.00036e-07 1.94346e-07 3.58375e-08 -2.11621e-07 2.16746e-07 2.28682e-08 -2.16527e-07 2.29496e-07 5.23223e-09 -2.17484e-07 2.3512e-07 -1.31741e-08 -2.16878e-07 2.35284e-07 -2.95955e-08 -2.15112e-07 2.31534e-07 -3.97734e-08 -2.09662e-07 2.1984e-07 -3.73328e-08 -1.96994e-07 1.94554e-07 -1.56383e-07 1.1905e-07 1.63085e-08 -1.75611e-07 1.81173e-08 -2.01845e-07 1.45489e-08 -2.08052e-07 7.20797e-09 -2.09186e-07 -2.14416e-09 -2.08132e-07 -1.15683e-08 -2.07454e-07 -1.88137e-08 -2.07867e-07 -2.15848e-08 -2.06891e-07 -1.80189e-08 -2.0056e-07 -1.74402e-07 7.70556e-09 -1.83316e-07 8.05842e-09 -2.02198e-07 6.58036e-09 -2.06574e-07 1.35679e-09 -2.03963e-07 -1.88761e-09 -2.04888e-07 -4.80812e-09 -2.04533e-07 -8.13808e-09 -2.04537e-07 -9.09503e-09 -2.05934e-07 -8.26621e-09 -2.01389e-07 -1.82668e-07 7.47977e-09 -1.90796e-07 4.88867e-09 -1.99606e-07 5.9111e-09 -2.07597e-07 2.17142e-09 -2.00223e-07 6.45679e-10 -2.03362e-07 -1.09274e-09 -2.02795e-07 -6.59863e-09 -1.99031e-07 -5.73744e-09 -2.06795e-07 -7.75578e-09 -1.99371e-07 -1.90424e-07 3.38594e-08 3.58379e-08 2.3738e-08 1.38641e-08 -1.99585e-09 -1.71262e-08 -2.54534e-08 -3.65461e-08 -3.4098e-08 4.21143e-07 -1.95572e-08 -4.01586e-07 4.36895e-07 -1.57473e-08 4.53709e-07 -1.6814e-08 4.71582e-07 -1.78732e-08 4.90383e-07 -1.88008e-08 5.09894e-07 -1.9511e-08 5.27625e-07 -1.77305e-08 5.4087e-07 -1.32455e-08 5.46202e-07 -5.33186e-09 3.11424e-09 5.43088e-07 4.25565e-07 -4.96678e-08 -3.95455e-07 4.49164e-07 -3.93473e-08 4.67322e-07 -3.49731e-08 4.83471e-07 -3.40228e-08 4.96943e-07 -3.22734e-08 5.0608e-07 -2.86479e-08 5.13104e-07 -2.47554e-08 5.14647e-07 -1.47883e-08 5.09065e-07 2.4921e-10 9.48743e-09 5.02692e-07 3.99971e-07 -6.95494e-08 -3.8009e-07 4.20959e-07 -6.03348e-08 4.39996e-07 -5.40105e-08 4.57597e-07 -5.16242e-08 4.7089e-07 -4.55663e-08 4.77913e-07 -3.56712e-08 4.81841e-07 -2.86834e-08 4.81628e-07 -1.45752e-08 4.775e-07 4.37672e-09 1.70063e-08 4.69981e-07 4.05981e-07 -8.82601e-08 -3.8727e-07 4.24336e-07 -7.86909e-08 4.41719e-07 -7.13933e-08 4.54161e-07 -6.40659e-08 4.62318e-07 -5.37239e-08 4.66887e-07 -4.02401e-08 4.68159e-07 -2.99553e-08 4.68518e-07 -1.49344e-08 4.65533e-07 7.36126e-09 2.56504e-08 4.56889e-07 3.50764e-07 -9.8729e-08 -3.40295e-07 3.61488e-07 -8.94153e-08 3.68832e-07 -7.87371e-08 3.67362e-07 -6.2596e-08 3.66961e-07 -5.33234e-08 3.70936e-07 -4.42148e-08 3.78886e-07 -3.79057e-08 3.92319e-07 -2.83676e-08 3.92283e-07 7.39782e-09 4.6644e-08 3.71289e-07 2.21383e-07 -9.53218e-08 -2.2479e-07 2.13676e-07 -8.17086e-08 1.99279e-07 -6.4341e-08 1.88028e-07 -5.13442e-08 1.94534e-07 -5.98301e-08 2.09911e-07 -5.95915e-08 2.15368e-07 -4.33634e-08 2.11098e-07 -2.4097e-08 1.92371e-07 2.6125e-08 7.80752e-08 1.60939e-07 6.45758e-08 -7.57389e-08 -8.41587e-08 5.09779e-08 -6.81108e-08 4.5313e-08 -5.86763e-08 4.86394e-08 -5.46706e-08 4.46082e-08 -5.5799e-08 2.23882e-08 -3.73716e-08 -1.35586e-08 -7.41653e-09 -6.08849e-08 2.32292e-08 -9.55539e-08 6.07939e-08 9.61627e-08 -1.13641e-07 -2.34838e-08 -6.84313e-08 1.61762e-08 -3.67563e-08 -5.48384e-08 -4.82586e-08 -4.7174e-08 -7.19855e-08 -3.09437e-08 -1.14203e-07 -1.35813e-08 -1.58227e-07 6.65205e-09 -1.94045e-07 2.84012e-08 -2.22915e-07 5.20999e-08 -2.42264e-07 8.01427e-08 1.01841e-07 -2.47943e-07 -9.84272e-08 -6.78149e-08 9.78108e-08 -1.17546e-07 -3.5719e-08 -1.46319e-07 -1.84018e-08 -1.80492e-07 3.22927e-09 -2.03402e-07 9.32965e-09 -2.17366e-07 2.06158e-08 -2.30041e-07 4.1076e-08 -2.40247e-07 6.23056e-08 -2.44293e-07 8.41886e-08 9.29932e-08 -2.35445e-07 -1.41797e-07 -6.4555e-08 1.38537e-07 -1.58776e-07 -1.87392e-08 -1.76449e-07 -7.28923e-10 -1.93919e-07 2.06993e-08 -2.09575e-07 2.49856e-08 -2.18496e-07 2.95371e-08 -2.08766e-07 3.13453e-08 -1.89982e-07 4.3522e-08 -1.70117e-07 6.43235e-08 6.43162e-08 -1.4144e-07 -1.52102e-07 -7.4564e-08 1.62111e-07 -1.47561e-07 -2.32803e-08 -1.44566e-07 -3.72339e-09 -1.44088e-07 2.02211e-08 -1.42053e-07 2.2951e-08 -1.3486e-07 2.23436e-08 -1.19619e-07 1.61049e-08 -1.01768e-07 2.56713e-08 -7.94036e-08 4.19589e-08 4.28401e-08 -5.79274e-08 -1.66654e-07 -5.92285e-08 1.51319e-07 -1.60207e-07 -2.97267e-08 -1.43894e-07 -2.00369e-08 -1.19425e-07 -4.24762e-09 -1.00598e-07 4.12439e-09 -8.72759e-08 9.02126e-09 -8.57265e-08 1.45555e-08 -8.60992e-08 2.6044e-08 -7.98598e-08 3.57197e-08 4.595e-08 -8.29697e-08 -2.63599e-07 -5.28634e-08 2.57234e-07 -2.55978e-07 -3.73471e-08 -2.43948e-07 -3.20671e-08 -2.20615e-07 -2.75808e-08 -1.96872e-07 -1.96188e-08 -1.80988e-07 -6.8622e-09 -1.74922e-07 8.48943e-09 -1.73382e-07 2.45042e-08 -1.78944e-07 4.12816e-08 6.2118e-08 -1.95112e-07 -3.09017e-07 -5.13519e-08 3.07506e-07 -3.02784e-07 -4.35804e-08 -2.9405e-07 -4.0801e-08 -2.83208e-07 -3.84232e-08 -2.70481e-07 -3.2345e-08 -2.55745e-07 -2.15988e-08 -2.42497e-07 -4.7582e-09 -2.37208e-07 1.92152e-08 -2.40684e-07 4.47575e-08 6.96302e-08 -2.48196e-07 -3.14791e-07 -4.80999e-08 3.11539e-07 -3.14617e-07 -4.37544e-08 -3.12749e-07 -4.26686e-08 -3.12778e-07 -3.83937e-08 -3.09946e-07 -3.5177e-08 -3.01361e-07 -3.01837e-08 -2.85379e-07 -2.07403e-08 -2.67463e-07 1.29934e-09 -2.5659e-07 3.38841e-08 6.59032e-08 -2.52863e-07 -2.75049e-07 -5.06242e-08 2.77574e-07 -2.69943e-07 -4.8861e-08 -2.69796e-07 -4.28148e-08 -2.69544e-07 -3.8646e-08 -2.69991e-07 -3.47301e-08 -2.77126e-07 -2.30492e-08 -2.78847e-07 -1.90187e-08 -2.75892e-07 -1.65594e-09 -2.60335e-07 1.8327e-08 4.19568e-08 -2.36388e-07 -2.30987e-07 -5.66063e-08 2.36969e-07 -2.264e-07 -5.34479e-08 -2.20969e-07 -4.82458e-08 -2.16168e-07 -4.34468e-08 -2.12432e-07 -3.84662e-08 -1.92706e-07 -4.27757e-08 -1.92916e-07 -1.88082e-08 -1.94395e-07 -1.77624e-10 -1.82257e-07 6.18936e-09 1.12368e-08 -1.51537e-07 -2.22028e-07 -6.42457e-08 2.29667e-07 -2.15705e-07 -5.97711e-08 -2.07197e-07 -5.67535e-08 -1.97183e-07 -5.34605e-08 -1.86393e-07 -4.92562e-08 -1.85021e-07 -4.41477e-08 -1.7333e-07 -3.04994e-08 -1.4821e-07 -2.52975e-08 -1.17529e-07 -2.44924e-08 -1.77195e-09 -1.0452e-07 -2.06239e-07 -6.81512e-08 2.10144e-07 -2.00867e-07 -6.51426e-08 -1.95246e-07 -6.23752e-08 -1.90946e-07 -5.776e-08 -1.86583e-07 -5.36193e-08 -1.80175e-07 -5.05557e-08 -1.65693e-07 -4.49815e-08 -1.5031e-07 -4.06806e-08 -1.39861e-07 -3.49417e-08 -1.99884e-08 -1.21644e-07 -1.89275e-07 -7.90527e-08 2.00177e-07 -1.79543e-07 -7.48752e-08 -1.72401e-07 -6.9517e-08 -1.67735e-07 -6.24254e-08 -1.64633e-07 -5.67214e-08 -1.61646e-07 -5.35427e-08 -1.56157e-07 -5.04708e-08 -1.51188e-07 -4.56494e-08 -1.4606e-07 -4.00698e-08 -3.13021e-08 -1.34747e-07 -1.70985e-07 -9.48256e-08 1.86758e-07 -1.60653e-07 -8.52075e-08 -1.50121e-07 -8.00482e-08 -1.41616e-07 -7.09312e-08 -1.30357e-07 -6.79796e-08 -1.22873e-07 -6.10269e-08 -1.15094e-07 -5.825e-08 -1.06341e-07 -5.44019e-08 -9.7365e-08 -4.90462e-08 -3.73908e-08 -9.12762e-08 -1.36425e-07 -1.11992e-07 1.53591e-07 -1.28507e-07 -9.31249e-08 -1.20749e-07 -8.7806e-08 -1.0867e-07 -8.30107e-08 -9.97396e-08 -7.69097e-08 -9.22955e-08 -6.8471e-08 -8.54853e-08 -6.50601e-08 -7.87028e-08 -6.11844e-08 -7.23274e-08 -5.54215e-08 -4.24715e-08 -6.72467e-08 -5.78076e-08 -1.27921e-07 7.37365e-08 -5.17423e-08 -9.91899e-08 -6.03658e-08 -7.91824e-08 -6.51467e-08 -7.82297e-08 -6.4133e-08 -7.79234e-08 -6.22362e-08 -7.03677e-08 -6.13004e-08 -6.59959e-08 -5.70869e-08 -6.53978e-08 -5.42225e-08 -5.82858e-08 -4.25096e-08 -5.41844e-08 -1.45597e-08 -1.51441e-07 3.80795e-08 -6.86121e-09 -1.06888e-07 4.30518e-09 -9.03487e-08 5.85246e-09 -7.97769e-08 -4.36729e-09 -6.77036e-08 -1.69025e-08 -5.78324e-08 -2.40695e-08 -5.88288e-08 -2.3517e-08 -6.59503e-08 -2.23074e-08 -5.94954e-08 -4.22422e-08 -2.25748e-08 -2.55636e-08 -1.80291e-07 5.44136e-08 3.26444e-09 -1.35716e-07 2.66589e-08 -1.13743e-07 3.30172e-08 -8.6135e-08 3.46534e-08 -6.93397e-08 3.33831e-08 -5.6562e-08 2.84187e-08 -5.38643e-08 2.11166e-08 -5.86481e-08 1.76483e-08 -5.6027e-08 -4.27592e-08 1.81653e-08 -1.74817e-08 -1.93252e-07 3.0443e-08 7.28253e-09 -1.6048e-07 2.96216e-08 -1.36082e-07 5.07084e-08 -1.07222e-07 6.25397e-08 -8.11709e-08 6.23763e-08 -5.63985e-08 5.92408e-08 -5.07287e-08 5.16249e-08 -5.10322e-08 4.12708e-08 -4.56728e-08 -3.43367e-08 3.28485e-08 5.39823e-09 -1.99426e-07 7.76186e-10 2.64862e-08 -1.81568e-07 3.5451e-08 -1.45047e-07 4.14613e-08 -1.13232e-07 5.07306e-08 -9.04402e-08 6.09134e-08 -6.65811e-08 6.25214e-08 -5.23367e-08 5.73886e-08 -4.58993e-08 4.73221e-08 -3.56062e-08 -2.40661e-08 3.70516e-08 1.73937e-09 -1.93889e-07 -7.27671e-09 2.90215e-09 -1.82731e-07 8.42328e-09 -1.50568e-07 1.17183e-08 -1.16527e-07 1.55331e-08 -9.42549e-08 2.52756e-08 -7.63235e-08 3.16036e-08 -5.86645e-08 2.95685e-08 -4.38642e-08 2.29851e-08 -2.90227e-08 -1.95002e-08 1.84191e-08 -1.94183e-08 -1.91045e-07 1.65745e-08 -2.14149e-08 -1.80734e-07 -3.99599e-08 -1.32023e-07 -5.85039e-08 -9.79828e-08 -6.03452e-08 -9.24136e-08 -5.16307e-08 -8.50381e-08 -4.08154e-08 -6.94798e-08 -3.29197e-08 -5.17601e-08 -2.50701e-08 -3.68724e-08 -2.60391e-08 -1.85313e-08 -5.81391e-08 -1.86559e-07 5.36529e-08 -7.0672e-08 -1.68201e-07 -9.74632e-08 -1.05232e-07 -1.14415e-07 -8.10308e-08 -1.16357e-07 -9.04719e-08 -1.08435e-07 -9.29608e-08 -9.20669e-08 -8.58477e-08 -7.32684e-08 -7.05587e-08 -5.86541e-08 -5.14867e-08 -3.55764e-08 -4.91168e-08 -9.32273e-08 -1.7112e-07 7.77882e-08 -1.09448e-07 -1.5198e-07 -1.15103e-07 -9.95771e-08 -1.15832e-07 -8.03015e-08 -1.23022e-07 -8.32826e-08 -1.22682e-07 -9.33009e-08 -1.11843e-07 -9.66859e-08 -1.06717e-07 -7.56848e-08 -1.12944e-07 -4.52599e-08 -2.81847e-08 -1.20335e-07 -1.12904e-07 -1.45237e-07 8.70223e-08 -1.24684e-07 -1.40201e-07 -1.22679e-07 -1.01582e-07 -1.24833e-07 -7.81468e-08 -1.36285e-07 -7.18306e-08 -1.58405e-07 -7.11814e-08 -1.79957e-07 -7.51335e-08 -2.02719e-07 -5.29222e-08 -2.16462e-07 -3.15173e-08 -2.46738e-08 -2.19973e-07 -1.31735e-07 -1.19669e-07 1.06167e-07 -1.47493e-07 -1.24444e-07 -1.43212e-07 -1.05863e-07 -1.61479e-07 -5.98794e-08 -1.88979e-07 -4.43306e-08 -2.23078e-07 -3.70828e-08 -2.63127e-07 -3.50844e-08 -2.83323e-07 -3.27261e-08 -2.81836e-07 -3.3004e-08 -3.52614e-08 -2.71249e-07 -8.98383e-08 -9.61404e-08 6.63102e-08 -1.14854e-07 -9.94289e-08 -1.434e-07 -7.73165e-08 -1.72699e-07 -3.05801e-08 -2.09035e-07 -7.99499e-09 -2.3575e-07 -1.03675e-08 -2.5384e-07 -1.69943e-08 -2.58944e-07 -2.7623e-08 -2.59308e-07 -3.26398e-08 -4.12929e-08 -2.53276e-07 -1.13054e-07 -8.89108e-08 1.05824e-07 -1.32381e-07 -8.01017e-08 -1.62996e-07 -4.67017e-08 -1.80706e-07 -1.28694e-08 -2.01015e-07 1.23135e-08 -2.26901e-07 1.55191e-08 -2.30149e-07 -1.37464e-08 -2.2006e-07 -3.77115e-08 -2.10478e-07 -4.22222e-08 -4.74096e-08 -2.04361e-07 -1.17946e-07 -6.1431e-08 9.04664e-08 -1.65315e-07 -3.27329e-08 -2.06802e-07 -5.21553e-09 -2.23093e-07 3.42234e-09 -2.21625e-07 1.08453e-08 -2.11265e-07 5.15846e-09 -1.91073e-07 -3.39372e-08 -1.73788e-07 -5.49972e-08 -1.64671e-07 -5.13386e-08 -5.63968e-08 -1.55684e-07 -3.47608e-07 3.92902e-08 2.46887e-07 -4.0854e-07 2.81989e-08 -4.06681e-07 -7.07416e-09 -3.73322e-07 -2.99375e-08 -3.17706e-07 -4.47704e-08 -2.33166e-07 -7.93813e-08 -1.66812e-07 -1.00292e-07 -1.24698e-07 -9.71111e-08 -9.73874e-08 -7.86495e-08 -7.6691e-08 -7.70934e-08 -4.56789e-07 4.92817e-08 4.46797e-07 -4.43087e-07 1.44964e-08 -3.97201e-07 -5.29605e-08 -3.28207e-07 -9.89308e-08 -2.48551e-07 -1.24426e-07 -1.88027e-07 -1.39906e-07 -1.54454e-07 -1.33864e-07 -1.27232e-07 -1.24333e-07 -9.71786e-08 -1.08703e-07 -9.66248e-08 -7.72449e-08 -4.71151e-07 1.14e-08 5.09033e-07 -4.05131e-07 -5.1525e-08 -3.36795e-07 -1.21296e-07 -2.73418e-07 -1.62309e-07 -2.25107e-07 -1.72738e-07 -1.97688e-07 -1.67324e-07 -1.84602e-07 -1.4695e-07 -1.89392e-07 -1.19543e-07 -2.02789e-07 -9.53063e-08 -8.28297e-08 -2.16584e-07 -4.37748e-07 5.89381e-09 4.43254e-07 -4.00353e-07 -8.8918e-08 -3.52439e-07 -1.69211e-07 -3.25071e-07 -1.89676e-07 -3.13669e-07 -1.8414e-07 -3.31264e-07 -1.49729e-07 -3.86857e-07 -9.13565e-08 -4.60084e-07 -4.6316e-08 -5.08317e-07 -4.7073e-08 -7.71285e-08 -5.14018e-07 -3.52887e-07 2.01761e-08 3.38605e-07 -3.45585e-07 -9.62182e-08 -3.5801e-07 -1.56786e-07 -3.85507e-07 -1.6218e-07 -4.41107e-07 -1.2854e-07 -5.38327e-07 -5.25088e-08 -6.29614e-07 -6.92948e-11 -6.7071e-07 -5.21913e-09 -6.5864e-07 -5.91424e-08 -9.13759e-08 -6.44392e-07 -3.10784e-07 2.03287e-08 3.10632e-07 -3.225e-07 -8.45003e-08 -3.64712e-07 -1.14575e-07 -4.20531e-07 -1.06361e-07 -4.89162e-07 -5.99083e-08 -5.62894e-07 2.12236e-08 -6.17054e-07 5.40917e-08 -6.35987e-07 1.37149e-08 -6.38077e-07 -5.70525e-08 -8.30213e-08 -6.46432e-07 -2.63721e-07 -7.48447e-09 2.91534e-07 -2.90316e-07 -5.79058e-08 -3.40926e-07 -6.39645e-08 -3.99844e-07 -4.74418e-08 -4.5033e-07 -9.42192e-09 -4.88774e-07 5.96671e-08 -5.52561e-07 1.17879e-07 -6.03435e-07 6.45889e-08 -6.19883e-07 -4.06045e-08 -6.79593e-08 -6.34945e-07 -2.59651e-07 -3.16634e-08 2.8383e-07 -2.65637e-07 -5.19198e-08 -2.82753e-07 -4.68481e-08 -3.08336e-07 -2.18584e-08 -3.40618e-07 2.28604e-08 -3.76716e-07 9.57655e-08 -4.48437e-07 1.896e-07 -5.62724e-07 1.78876e-07 -6.16364e-07 1.30342e-08 -5.84636e-08 -6.2586e-07 -2.26365e-07 -3.91696e-08 2.33872e-07 -2.1304e-07 -6.52445e-08 -1.98318e-07 -6.1569e-08 -1.98581e-07 -2.15951e-08 -2.25529e-07 4.98078e-08 -2.70814e-07 1.41051e-07 -2.88067e-07 2.06853e-07 -3.06234e-07 1.97043e-07 -3.85911e-07 9.27111e-08 2.91639e-09 -4.47291e-07 -2.69296e-07 -5.91974e-08 2.89324e-07 -2.30797e-07 -1.03744e-07 -1.90745e-07 -1.0162e-07 -1.79426e-07 -3.29142e-08 -2.12705e-07 8.30878e-08 -2.37939e-07 1.66283e-07 -2.26467e-07 1.9538e-07 -2.12465e-07 1.8304e-07 -2.31409e-07 1.11655e-07 4.65248e-08 -2.75017e-07 -2.36077e-07 -6.25721e-08 2.39452e-07 -2.37315e-07 -1.02506e-07 -2.31973e-07 -1.06962e-07 -2.66938e-07 2.05063e-09 -2.87649e-07 1.038e-07 -2.49564e-07 1.28197e-07 -1.95848e-07 1.41664e-07 -1.78569e-07 1.65761e-07 -1.52889e-07 8.59751e-08 4.87428e-08 -1.55108e-07 -1.70345e-07 -7.15291e-08 1.79302e-07 -2.07424e-07 -6.54255e-08 -2.58853e-07 -5.55334e-08 -2.59536e-07 2.73365e-09 -3.24652e-07 1.68915e-07 -3.83496e-07 1.87041e-07 -3.42282e-07 1.00451e-07 -2.2624e-07 4.97197e-08 -1.38123e-07 -2.14247e-09 -1.19881e-09 -8.81818e-08 -1.76995e-07 -9.14946e-08 1.9696e-07 -1.9559e-07 -4.68302e-08 -1.87765e-07 -6.33584e-08 -1.04931e-07 -8.01001e-08 -6.66544e-08 1.30639e-07 -1.2115e-07 2.41537e-07 -1.54829e-07 1.34129e-07 -1.29121e-07 2.40122e-08 -5.67349e-08 -7.45283e-08 -7.72943e-08 1.93601e-08 -1.79233e-07 -4.74318e-08 1.3517e-07 -2.05329e-07 -2.07339e-08 -2.17083e-07 -5.1604e-08 -1.75214e-07 -1.21968e-07 -3.38257e-08 -1.07497e-08 9.27102e-08 1.15001e-07 1.88907e-07 3.79324e-08 2.13789e-07 -8.70081e-10 2.24327e-07 -8.50662e-08 -1.27235e-07 2.74268e-07 -3.65869e-08 2.68998e-08 -3.77445e-08 -8.44916e-08 2.71709e-08 -1.23114e-07 -1.29818e-08 -1.76467e-07 -6.86148e-08 -1.06688e-07 -8.05267e-08 7.55679e-08 -6.72535e-08 2.68013e-07 -1.54511e-07 3.94482e-07 -1.27339e-07 4.38525e-07 -1.2911e-07 -1.58618e-07 4.69909e-07 2.09585e-07 3.84438e-08 -2.21129e-07 2.30584e-07 6.17337e-09 2.54623e-07 -3.70211e-08 2.77593e-07 -9.15844e-08 3.26157e-07 -1.29091e-07 4.16201e-07 -1.57297e-07 4.38224e-07 -1.76534e-07 5.01994e-07 -1.91109e-07 5.67788e-07 -1.94905e-07 -2.19825e-07 6.28994e-07 4.93595e-07 3.32536e-08 -4.88405e-07 5.01218e-07 -1.44809e-09 5.02391e-07 -3.81925e-08 5.11697e-07 -1.00889e-07 5.43541e-07 -1.60934e-07 5.86181e-07 -1.99937e-07 6.14931e-07 -2.05284e-07 6.50627e-07 -2.26805e-07 7.00825e-07 -2.45103e-07 -2.70245e-07 7.51244e-07 4.9437e-07 -1.71294e-08 -4.43987e-07 5.22807e-07 -2.98847e-08 5.53983e-07 -6.93689e-08 5.68849e-07 -1.15755e-07 5.93623e-07 -1.85708e-07 6.26805e-07 -2.3312e-07 6.7894e-07 -2.5742e-07 7.22284e-07 -2.7015e-07 7.60332e-07 -2.8315e-07 -2.89145e-07 7.79232e-07 3.21437e-07 -9.47467e-08 -2.4382e-07 4.06428e-07 -1.14874e-07 4.8589e-07 -1.48832e-07 5.62448e-07 -1.92312e-07 6.09232e-07 -2.32493e-07 6.39506e-07 -2.63394e-07 6.68365e-07 -2.86279e-07 6.97485e-07 -2.9927e-07 7.18075e-07 -3.03739e-07 -3.04011e-07 7.32942e-07 4.40466e-07 -1.35192e-07 -4.00022e-07 4.8782e-07 -1.62229e-07 5.34384e-07 -1.95395e-07 5.72613e-07 -2.3054e-07 6.01216e-07 -2.61096e-07 6.23495e-07 -2.85674e-07 6.38568e-07 -3.01352e-07 6.47428e-07 -3.08129e-07 6.51317e-07 -3.07629e-07 -3.06483e-07 6.53789e-07 4.60661e-07 -1.52892e-07 -4.42961e-07 4.81526e-07 -1.83095e-07 5.04798e-07 -2.18667e-07 5.25903e-07 -2.51645e-07 5.43271e-07 -2.78464e-07 5.56386e-07 -2.98789e-07 5.64901e-07 -3.09866e-07 5.69943e-07 -3.13171e-07 5.80285e-07 -3.17971e-07 -3.26235e-07 6.00038e-07 4.68913e-07 -1.45089e-07 -4.76716e-07 4.68664e-07 -1.82847e-07 4.77163e-07 -2.27165e-07 4.85895e-07 -2.60378e-07 4.91328e-07 -2.83896e-07 4.93983e-07 -3.01443e-07 4.98556e-07 -3.14439e-07 5.11098e-07 -3.25713e-07 5.45018e-07 -3.51892e-07 -4.05387e-07 6.24169e-07 4.57709e-07 -1.15103e-07 -4.87696e-07 4.46452e-07 -1.71591e-07 4.48099e-07 -2.28813e-07 4.48061e-07 -2.60338e-07 4.41913e-07 -2.77748e-07 4.32115e-07 -2.91646e-07 4.36894e-07 -3.19219e-07 4.85058e-07 -3.73878e-07 5.91292e-07 -4.58126e-07 -5.36445e-07 7.2235e-07 4.20947e-07 -9.64854e-08 -4.39565e-07 4.18165e-07 -1.6881e-07 4.1134e-07 -2.21989e-07 3.88042e-07 -2.37039e-07 3.42856e-07 -2.32562e-07 3.09055e-07 -2.57845e-07 3.76093e-07 -3.86257e-07 5.42375e-07 -5.40159e-07 7.07284e-07 -6.23035e-07 -6.58358e-07 8.29197e-07 3.64045e-07 -1.16601e-07 -3.4393e-07 3.60273e-07 -1.65039e-07 3.27632e-07 -1.89347e-07 2.67693e-07 -1.771e-07 2.11843e-07 -1.76711e-07 2.62102e-07 -3.08105e-07 4.58483e-07 -5.82638e-07 6.37694e-07 -7.19371e-07 7.43751e-07 -7.29092e-07 -6.86714e-07 7.72107e-07 2.70107e-07 -1.09706e-07 -2.77003e-07 2.37182e-07 -1.32114e-07 2.02033e-07 -1.54196e-07 1.59727e-07 -1.34793e-07 1.36452e-07 -1.53436e-07 3.23007e-07 -4.9466e-07 5.05679e-07 -7.6531e-07 5.77885e-07 -7.91577e-07 5.89201e-07 -7.40407e-07 -6.27279e-07 5.29767e-07 1.90852e-07 -6.73284e-08 -2.3323e-07 1.81386e-07 -1.22649e-07 1.77952e-07 -1.50761e-07 1.51035e-07 -1.07877e-07 1.83983e-07 -1.86383e-07 3.77421e-07 -6.88099e-07 4.507e-07 -8.38591e-07 4.7421e-07 -8.15085e-07 4.11352e-07 -6.7755e-07 -5.78924e-07 3.62996e-07 1.73901e-07 -1.43617e-08 -2.26867e-07 1.55892e-07 -1.04641e-07 1.461e-07 -1.40969e-07 1.33379e-07 -9.51546e-08 2.30365e-07 -2.8337e-07 3.54905e-07 -8.12639e-07 3.99516e-07 -8.83203e-07 4.06436e-07 -8.22005e-07 3.37597e-07 -6.0871e-07 -5.40507e-07 2.99181e-07 2.38033e-07 1.43716e-08 -2.66767e-07 1.96706e-07 -6.33126e-08 1.47408e-07 -9.16711e-08 1.56404e-07 -1.04149e-07 3.07441e-07 -4.34407e-07 3.80978e-07 -8.86176e-07 3.93179e-07 -8.95403e-07 3.64222e-07 -7.93048e-07 3.32507e-07 -5.76995e-07 -5.09204e-07 3.01205e-07 2.58215e-07 4.52129e-08 -2.89056e-07 1.89349e-07 5.55487e-09 1.62101e-07 -6.44229e-08 1.92839e-07 -1.34886e-07 3.46983e-07 -5.88552e-07 3.92757e-07 -9.31951e-07 4.18137e-07 -9.20784e-07 3.67151e-07 -7.42062e-07 2.86785e-07 -4.96631e-07 -4.46211e-07 2.23792e-07 2.17146e-07 8.40932e-08 -2.56026e-07 1.7434e-07 4.83606e-08 1.79049e-07 -6.91314e-08 1.93884e-07 -1.49721e-07 3.07735e-07 -7.02402e-07 3.18689e-07 -9.42905e-07 3.08421e-07 -9.10516e-07 1.77249e-07 -6.1089e-07 1.52652e-07 -4.72034e-07 -4.39599e-07 1.46039e-07 1.04827e-07 1.07218e-07 -1.27952e-07 1.0997e-07 4.322e-08 1.5012e-07 -1.09281e-07 1.74353e-07 -1.73955e-07 2.27818e-07 -7.55868e-07 2.29517e-07 -9.44604e-07 1.65506e-07 -8.46506e-07 3.74416e-08 -4.82826e-07 -3.81925e-09 -4.30773e-07 -3.90746e-07 -5.26723e-08 1.58267e-07 8.92624e-08 -1.40311e-07 1.71366e-07 3.01199e-08 1.66521e-07 -1.04437e-07 1.53382e-07 -1.60815e-07 2.00272e-07 -8.02757e-07 1.9793e-07 -9.42262e-07 9.66011e-08 -7.45177e-07 -5.59883e-09 -3.80626e-07 -7.93006e-08 -3.5707e-07 -3.5392e-07 -1.16126e-07 2.17582e-07 8.12612e-08 -2.09581e-07 1.96812e-07 5.08869e-08 1.13586e-07 -2.12114e-08 1.0884e-07 -1.56068e-07 1.69605e-07 -8.63523e-07 1.47668e-07 -9.20326e-07 2.03131e-08 -6.17821e-07 -4.45797e-08 -3.15733e-07 -7.56255e-08 -3.26025e-07 -3.30161e-07 -9.93861e-08 1.766e-07 9.97377e-08 -1.95077e-07 1.10356e-07 1.17131e-07 2.89365e-08 6.02085e-08 1.23973e-07 -2.51105e-07 1.46651e-07 -8.862e-07 1.3478e-07 -9.08454e-07 -6.61716e-10 -4.82379e-07 -2.78644e-08 -2.8853e-07 -4.05057e-08 -3.13384e-07 -3.22412e-07 -4.82545e-08 1.2549e-07 1.27169e-07 -1.52922e-07 1.02123e-07 1.40498e-07 -2.80223e-09 1.65134e-07 1.06478e-07 -3.60386e-07 1.07219e-07 -8.8694e-07 9.14652e-08 -8.92699e-07 1.09528e-08 -4.01867e-07 -3.09131e-08 -2.46664e-07 -4.74598e-08 -2.96837e-07 -2.69126e-07 -1.00747e-07 -1.35439e-07 1.40493e-07 1.22115e-07 -1.56012e-07 1.61071e-07 -1.27353e-07 1.36474e-07 5.23715e-08 -5.40109e-07 1.83981e-08 -8.52967e-07 -2.61593e-08 -8.48141e-07 -1.7307e-07 -2.54956e-07 -2.25548e-07 -1.94184e-07 -3.13475e-07 -2.0891e-07 -2.25391e-07 -3.57209e-07 -2.5737e-07 1.17753e-07 2.8011e-07 -2.5753e-07 1.61228e-07 -1.08619e-07 -1.24373e-08 -5.19374e-08 -5.96791e-07 -3.32288e-08 -8.71676e-07 -3.28933e-08 -8.48477e-07 -5.18241e-08 -2.36025e-07 -1.91874e-07 -5.41337e-08 -3.00121e-07 -1.00663e-07 -9.97074e-08 -4.25804e-07 -9.23805e-08 8.92469e-08 1.20886e-07 -7.06231e-08 1.3947e-07 -8.8672e-08 5.61097e-09 -2.58304e-08 -6.59633e-07 -2.39002e-08 -8.73607e-07 -3.42634e-08 -8.38114e-07 -1.4213e-08 -2.56074e-07 -1.37513e-07 6.9167e-08 -2.87032e-07 4.8856e-08 -5.46156e-09 -3.81277e-07 5.4393e-08 -2.86017e-08 6.34556e-08 1.45287e-07 4.85759e-08 4.29479e-08 1.0795e-07 1.65495e-08 -6.33234e-07 7.70946e-09 -8.64768e-07 3.1785e-08 -8.6219e-07 2.53977e-07 -4.78266e-07 1.52774e-07 1.70371e-07 -1.30301e-08 2.1466e-07 1.41976e-07 -1.60467e-07 -3.26052e-08 -6.41601e-08 6.81634e-08 -4.43244e-08 6.02946e-08 -1.26605e-07 1.90229e-07 -6.0282e-08 -6.99557e-07 -1.84379e-08 -9.06612e-07 -3.55716e-09 -8.7707e-07 9.4226e-08 -5.76048e-07 1.49546e-07 1.15052e-07 1.57846e-07 2.06361e-07 2.09711e-07 9.01103e-08 -3.91806e-08 -4.90792e-08 2.40999e-08 -3.98942e-08 6.10082e-08 -9.51341e-08 2.45472e-07 5.83463e-08 -8.53039e-07 2.88995e-08 -8.77165e-07 2.44946e-08 -8.72665e-07 3.88664e-08 -5.9042e-07 2.49514e-07 -9.55959e-08 2.75651e-07 1.80224e-07 2.32081e-07 2.53281e-07 -2.86044e-07 4.61996e-08 1.90763e-07 -2.29196e-07 4.15816e-09 -7.87317e-08 9.50082e-08 -7.49986e-09 -9.2427e-07 -8.10166e-09 -8.76564e-07 5.43749e-09 -8.86204e-07 3.71012e-08 -6.22083e-07 6.77415e-08 -1.26236e-07 1.40932e-07 1.07034e-07 1.5026e-07 2.22753e-07 -5.84665e-07 -3.93014e-08 6.70192e-07 -4.5468e-07 -1.25863e-07 1.53987e-09 -3.61212e-07 -5.50268e-09 -9.17227e-07 -3.5767e-08 -8.463e-07 -7.0007e-08 -8.51963e-07 -4.09743e-08 -6.51115e-07 -1.59663e-07 -7.5451e-09 -6.61996e-08 1.35714e-08 3.43352e-08 4.9726e-08 -3.91021e-07 -6.11346e-08 4.12847e-07 -2.40621e-07 -2.7626e-07 5.90769e-08 -6.60913e-07 -6.70733e-09 -8.5144e-07 -2.60469e-08 -8.2696e-07 -5.54443e-08 -8.22566e-07 8.0175e-09 -7.14575e-07 -1.35961e-08 1.40695e-08 1.14809e-07 -1.14833e-07 2.10251e-08 1.2812e-07 -9.76218e-11 -7.99867e-08 1.89656e-08 -1.77168e-08 -2.58588e-07 -1.35544e-08 -6.65097e-07 -2.20085e-08 -8.42997e-07 -2.01939e-08 -8.28774e-07 -1.84932e-08 -8.24266e-07 1.14471e-07 -8.47539e-07 1.40464e-07 -1.19234e-08 2.92533e-07 -2.66903e-07 2.2789e-08 2.90777e-07 9.63173e-08 -1.14569e-07 -6.1736e-08 8.83891e-08 -2.50583e-07 4.55071e-08 -6.22183e-07 1.60396e-08 -8.13509e-07 -1.06259e-08 -8.02109e-07 -3.56945e-08 -7.99198e-07 -3.5391e-08 -8.47842e-07 2.00852e-07 -2.48168e-07 4.86663e-08 -1.14739e-07 3.10545e-08 4.03753e-08 9.35253e-08 -2.16314e-07 8.22399e-09 9.57093e-08 -2.52802e-07 3.42462e-08 -5.60759e-07 1.42054e-08 -7.93477e-07 -1.40546e-08 -7.73849e-07 -4.27671e-08 -7.70485e-07 -9.97178e-08 -7.9089e-07 1.76838e-07 -5.24709e-07 1.49616e-07 -8.75066e-08 1.11948e-07 6.87802e-08 3.99972e-08 -2.88003e-07 3.17016e-08 4.31834e-08 -2.55946e-07 3.22206e-08 -5.49783e-07 6.69068e-09 -7.67933e-07 -1.32599e-08 -7.53898e-07 -3.29449e-08 -7.508e-07 -6.05497e-08 -7.63279e-07 -4.08519e-08 -5.4445e-07 -1.60004e-07 3.16091e-08 2.04088e-07 -2.52173e-07 -3.21372e-08 -3.03072e-07 4.72073e-08 1.29008e-08 -3.01007e-07 6.42308e-08 -6.0112e-07 3.72077e-08 -7.40912e-07 4.37068e-09 -7.21061e-07 -2.7537e-08 -7.18892e-07 -5.3841e-08 -7.36975e-07 -8.78483e-08 -5.10437e-07 -1.47294e-07 9.10866e-08 2.7492e-07 -2.18127e-07 2.1487e-08 -3.29063e-07 4.50443e-09 5.32524e-08 -3.32768e-07 6.38785e-08 -6.11727e-07 3.9788e-08 -7.16816e-07 2.07242e-08 -7.01997e-07 4.10098e-09 -7.02269e-07 -1.97518e-08 -7.13128e-07 -4.21466e-08 -4.88056e-07 -9.98364e-08 1.48776e-07 3.14393e-07 -1.39315e-07 6.18489e-08 -3.31186e-07 -5.97291e-08 9.00586e-08 -3.61013e-07 6.96928e-08 -5.91402e-07 4.37753e-08 -6.90912e-07 1.10786e-08 -6.69301e-07 -2.76595e-08 -6.63531e-07 -5.20647e-08 -6.88725e-07 -4.33911e-08 -4.96724e-07 -5.45026e-08 1.59891e-07 2.69889e-07 -9.97666e-09 8.80353e-08 -2.99173e-07 -1.20047e-07 8.68406e-08 -3.59756e-07 4.14538e-08 -5.45991e-07 1.40894e-08 -6.63545e-07 -1.23207e-09 -6.5398e-07 -1.99622e-08 -6.44801e-07 -5.20985e-08 -6.56587e-07 -4.63079e-08 -5.02521e-07 -1.79199e-08 1.31502e-07 1.88056e-07 6.39232e-08 1.1e-07 -2.60348e-07 -1.48834e-07 1.00067e-07 -3.49885e-07 7.74138e-08 -5.23348e-07 4.52127e-08 -6.31344e-07 -3.80728e-09 -6.04959e-07 -3.02602e-08 -6.18348e-07 -5.87218e-08 -6.2812e-07 -6.20001e-08 -4.99243e-07 2.23544e-08 4.71418e-08 1.53501e-07 5.68958e-08 1.02861e-07 -2.08532e-07 -1.54678e-07 6.05419e-08 -3.07612e-07 5.54119e-08 -5.18248e-07 1.90579e-08 -5.94995e-07 2.95906e-10 -5.86197e-07 -3.84999e-08 -5.79552e-07 -6.8687e-08 -5.97931e-07 -6.90151e-08 -4.98913e-07 2.47395e-08 -4.66074e-08 1.11864e-07 6.63773e-08 1.03864e-07 -1.52318e-07 -1.60091e-07 5.84616e-08 -2.62162e-07 7.80759e-08 -5.37878e-07 4.70644e-08 -5.63984e-07 2.51052e-08 -5.64238e-07 -1.12009e-08 -5.43246e-07 -5.19021e-08 -5.5723e-07 -4.21556e-08 -5.08664e-07 3.85996e-08 -1.27361e-07 6.60979e-08 8.43676e-08 1.29649e-07 -1.03236e-07 -1.78739e-07 1.0998e-07 -2.42445e-07 1.02044e-07 -5.29939e-07 7.0527e-08 -5.32467e-07 2.75381e-08 -5.21249e-07 1.52139e-08 -5.30922e-07 -2.03731e-08 -5.21643e-07 2.15088e-08 -5.50544e-07 3.15633e-08 -1.37408e-07 6.75395e-08 3.01307e-08 1.33901e-07 -6.65404e-08 -1.70601e-07 1.29068e-07 -2.37625e-07 8.4557e-08 -4.85436e-07 4.08391e-08 -4.88749e-07 3.20903e-09 -4.83619e-07 -3.39627e-08 -4.9375e-07 -6.17369e-08 -4.93868e-07 -1.28e-07 -4.84278e-07 -9.51823e-08 -1.7022e-07 3.91173e-08 -6.67497e-08 1.4018e-07 -4.31145e-08 -1.63594e-07 1.1294e-07 -2.10378e-07 6.71162e-08 -4.39615e-07 2.651e-08 -4.48143e-07 -4.4931e-09 -4.52616e-07 -4.01085e-08 -4.58135e-07 -8.45643e-08 -4.49413e-07 -1.26637e-07 -4.42204e-07 -1.36401e-07 -1.60456e-07 3.20976e-08 -1.29379e-07 1.21498e-07 -5.29182e-08 -1.117e-07 1.39872e-07 -2.28766e-07 8.63242e-08 -3.86068e-07 3.80686e-08 -3.99887e-07 -4.38195e-09 -4.10166e-07 -4.99508e-08 -4.12566e-07 -9.0297e-08 -4.09066e-07 -1.4532e-07 -3.87181e-07 -1.24168e-07 -1.81608e-07 2.84842e-08 -1.20557e-07 5.34404e-08 -6.99922e-08 -3.63717e-08 1.15667e-07 -2.91007e-07 8.18947e-08 -3.52295e-07 5.00065e-08 -3.67999e-07 8.67412e-09 -3.68833e-07 -4.1686e-08 -3.62206e-07 -9.99641e-08 -3.50788e-07 -1.48827e-07 -3.38319e-07 -7.97711e-08 -2.50665e-07 -1.01906e-08 -4.10985e-08 1.41318e-07 -9.80397e-08 -1.13261e-07 1.31208e-07 -2.80862e-07 8.29428e-08 -3.04029e-07 2.67198e-08 -3.11776e-07 -2.51003e-08 -3.17013e-07 -6.98256e-08 -3.17481e-07 -1.05162e-07 -3.15452e-07 -1.40349e-07 -3.03132e-07 -1.08802e-07 -2.82212e-07 -6.77477e-08 -5.12454e-08 2.07115e-07 -1.97844e-07 -1.07311e-07 1.52966e-07 -2.26713e-07 1.08714e-07 -2.59776e-07 6.52381e-08 -2.683e-07 1.70585e-08 -2.68834e-07 -3.57717e-08 -2.6465e-07 -9.55885e-08 -2.55635e-07 -1.49876e-07 -2.48844e-07 -2.12638e-07 -2.1945e-07 -1.83548e-07 -9.68364e-08 1.25127e-07 -1.98941e-07 9.27602e-08 4.97301e-08 1.0926e-08 -2.27878e-08 -5.21538e-08 -7.62556e-08 -1.0526e-07 -1.30156e-07 -1.94654e-07 5.26099e-07 1.69882e-08 4.98159e-07 2.79397e-08 4.57766e-07 4.0393e-08 4.06514e-07 5.12525e-08 3.4919e-07 5.73234e-08 2.91699e-07 5.74904e-08 2.46431e-07 4.52685e-08 2.12276e-07 3.41546e-08 1.85638e-07 2.66375e-08 1.67256e-07 1.83823e-08 1.5044e-07 1.68153e-08 1.21371e-07 2.90692e-08 8.61304e-08 3.52404e-08 6.57415e-08 2.03886e-08 5.1804e-08 1.39373e-08 3.77521e-08 1.40517e-08 2.84827e-08 9.26916e-09 2.18185e-08 6.66393e-09 1.67166e-08 5.10168e-09 1.17371e-08 4.97924e-09 5.69183e-09 6.04498e-09 -2.46355e-11 5.7162e-09 -1.11153e-08 1.10904e-08 -3.84064e-08 2.72908e-08 -8.58481e-08 4.74415e-08 -1.33486e-07 4.76379e-08 -1.41826e-07 8.33956e-09 -1.31705e-07 -1.01218e-08 -1.21302e-07 -1.04026e-08 -1.21583e-07 2.80338e-10 -1.30762e-07 9.1791e-09 -1.40611e-07 9.84888e-09 -1.4534e-07 4.7285e-09 -1.38845e-07 -6.49576e-09 -1.16991e-07 -2.18542e-08 -8.48671e-08 -3.21238e-08 -5.13012e-08 -3.35661e-08 -2.13154e-08 -2.99861e-08 -3.20535e-10 -2.09951e-08 -3.20803e-10 4.90561e-07 2.91185e-08 4.72994e-07 4.55065e-08 4.52967e-07 6.04197e-08 4.23626e-07 8.0593e-08 3.82573e-07 9.83767e-08 3.35389e-07 1.04673e-07 2.87608e-07 9.30492e-08 2.43926e-07 7.78366e-08 2.05312e-07 6.5251e-08 1.7474e-07 4.89545e-08 1.52233e-07 3.93215e-08 1.32186e-07 4.9116e-08 1.03691e-07 6.37352e-08 7.48233e-08 4.92556e-08 5.52981e-08 3.3462e-08 3.85899e-08 3.07594e-08 2.69022e-08 2.09564e-08 1.73883e-08 1.61774e-08 1.12821e-08 1.12073e-08 7.15142e-09 9.10948e-09 1.34898e-09 1.18469e-08 -7.16097e-09 1.42257e-08 -2.43493e-08 2.82782e-08 -5.00067e-08 5.29477e-08 -8.26014e-08 8.00357e-08 -1.14178e-07 7.92137e-08 -1.18708e-07 1.28691e-08 -1.01158e-07 -2.76717e-08 -8.09721e-08 -3.05893e-08 -7.07144e-08 -9.97774e-09 -7.55045e-08 1.39687e-08 -8.83637e-08 2.27076e-08 -1.02955e-07 1.93193e-08 -1.09752e-07 3.01381e-10 -9.71685e-08 -3.44387e-08 -7.66428e-08 -5.265e-08 -5.27862e-08 -5.74233e-08 -2.75606e-08 -5.52122e-08 -5.74445e-09 -4.28118e-08 -6.06544e-09 4.59995e-07 3.91042e-08 4.4712e-07 5.83812e-08 4.30596e-07 7.6944e-08 4.09101e-07 1.02087e-07 3.81841e-07 1.25636e-07 3.42725e-07 1.43789e-07 2.91259e-07 1.44515e-07 2.4366e-07 1.25435e-07 2.07888e-07 1.01023e-07 1.77877e-07 7.89652e-08 1.48216e-07 6.89828e-08 1.17065e-07 8.02663e-08 8.8737e-08 9.20631e-08 6.4628e-08 7.33643e-08 3.90684e-08 5.90213e-08 1.56705e-08 5.41571e-08 -8.93465e-10 3.752e-08 -1.2539e-08 2.78226e-08 -2.12257e-08 1.98937e-08 -2.39179e-08 1.18013e-08 -1.9864e-08 7.79266e-09 -1.99522e-08 1.43136e-08 -3.42201e-08 4.25457e-08 -4.67479e-08 6.54751e-08 -4.35736e-08 7.6861e-08 -4.06462e-08 7.6286e-08 -5.54892e-08 2.77117e-08 -5.27558e-08 -3.04055e-08 -4.91087e-08 -3.42368e-08 -5.07336e-08 -8.35329e-09 -5.76017e-08 2.08365e-08 -6.90398e-08 3.41453e-08 -8.21518e-08 3.24309e-08 -8.52419e-08 3.391e-09 -7.53387e-08 -4.43422e-08 -6.22414e-08 -6.57477e-08 -4.44745e-08 -7.51905e-08 -2.73421e-08 -7.2345e-08 -1.35388e-08 -5.66154e-08 -1.96044e-08 4.42903e-07 5.30903e-08 4.26473e-07 7.48109e-08 4.02045e-07 1.01372e-07 3.67183e-07 1.36949e-07 3.17273e-07 1.75546e-07 2.67402e-07 1.9366e-07 2.30825e-07 1.81092e-07 2.00514e-07 1.55746e-07 1.73018e-07 1.28518e-07 1.45237e-07 1.06746e-07 1.09439e-07 1.04781e-07 7.66628e-08 1.13042e-07 5.3158e-08 1.15568e-07 3.68446e-08 8.96774e-08 1.44105e-08 8.14553e-08 -9.48728e-09 7.80545e-08 -2.76578e-08 5.56903e-08 -4.00797e-08 4.02443e-08 -5.14996e-08 3.13133e-08 -5.86145e-08 1.89159e-08 -5.88683e-08 8.04621e-09 -5.67962e-08 1.22412e-08 -5.02256e-08 3.59748e-08 -3.85286e-08 5.37777e-08 -2.33079e-08 6.164e-08 -7.58942e-09 6.05671e-08 -1.52238e-08 3.53458e-08 -3.92115e-08 -6.41809e-09 -5.66098e-08 -1.68388e-08 -6.56366e-08 6.73179e-10 -6.55486e-08 2.07481e-08 -6.08553e-08 2.94517e-08 -5.89278e-08 3.0503e-08 -5.35497e-08 -1.98739e-09 -5.25712e-08 -4.53211e-08 -4.19397e-08 -7.63795e-08 -2.45988e-08 -9.25317e-08 -1.38122e-08 -8.31319e-08 -9.70503e-09 -6.07229e-08 -2.93095e-08 3.53895e-07 7.04839e-08 3.35012e-07 9.36934e-08 2.77545e-07 1.58839e-07 1.85891e-07 2.28603e-07 1.27738e-07 2.33699e-07 1.12833e-07 2.08565e-07 1.1921e-07 1.74715e-07 1.18674e-07 1.56281e-07 1.05265e-07 1.41927e-07 8.57594e-08 1.26252e-07 6.49209e-08 1.2562e-07 4.61806e-08 1.31782e-07 3.45382e-08 1.2721e-07 2.34401e-08 1.00775e-07 8.02617e-09 9.6869e-08 -7.74601e-09 9.38265e-08 -2.35957e-08 7.15398e-08 -4.03475e-08 5.69959e-08 -5.55625e-08 4.65281e-08 -7.02939e-08 3.3647e-08 -8.19812e-08 1.97333e-08 -8.81568e-08 1.84166e-08 -7.68494e-08 2.46671e-08 -5.75471e-08 3.44752e-08 -2.92468e-08 3.33394e-08 -4.11359e-09 3.54336e-08 1.70526e-09 2.95267e-08 -1.81851e-08 1.3472e-08 -3.76841e-08 2.65994e-09 -4.1848e-08 4.83679e-09 -3.868e-08 1.75797e-08 -3.28215e-08 2.3593e-08 -2.55457e-08 2.32269e-08 -2.92895e-08 1.75612e-09 -4.03368e-08 -3.4274e-08 -2.96394e-08 -8.70771e-08 -1.1194e-08 -1.10977e-07 -2.36954e-09 -9.19566e-08 -4.73815e-09 -5.83545e-08 -3.40478e-08 1.23477e-07 1.07947e-07 6.49395e-08 1.5223e-07 6.6946e-09 2.17083e-07 -2.66973e-08 2.61995e-07 -5.65323e-09 2.12655e-07 3.15392e-08 1.71372e-07 5.26288e-08 1.53626e-07 5.69904e-08 1.5192e-07 5.08516e-08 1.48066e-07 3.97423e-08 1.37361e-07 2.9162e-08 1.362e-07 1.8516e-08 1.42428e-07 1.80208e-08 1.27705e-07 8.57431e-09 1.10222e-07 -1.55962e-09 1.07003e-07 -9.76828e-09 1.02035e-07 -1.69837e-08 7.8755e-08 -2.5494e-08 6.5506e-08 -3.41337e-08 5.51678e-08 -4.32257e-08 4.27388e-08 -5.17231e-08 2.82305e-08 -5.59248e-08 2.26181e-08 -5.15866e-08 2.03287e-08 -3.69759e-08 1.98643e-08 -7.87505e-09 4.23841e-09 3.31194e-08 -5.56104e-09 6.65057e-08 -3.8599e-09 9.09405e-08 -1.09631e-08 9.75634e-08 -3.96318e-09 9.57689e-08 6.63107e-09 8.74446e-08 2.59038e-08 6.62381e-08 4.47992e-08 4.01384e-08 4.93263e-08 1.4873e-09 4.0407e-08 -2.99304e-08 -2.8565e-09 -3.3483e-08 -8.35247e-08 -2.35926e-08 -1.20868e-07 -8.50819e-09 -1.07041e-07 -1.75241e-09 -6.51105e-08 -3.58003e-08 -1.44351e-07 1.38656e-07 -1.66342e-07 1.74221e-07 -1.55784e-07 2.06525e-07 -9.56724e-08 2.01884e-07 -3.85929e-08 1.55575e-07 -5.83324e-09 1.38612e-07 8.98628e-09 1.38806e-07 1.5088e-08 1.45818e-07 1.53493e-08 1.47804e-07 7.42958e-09 1.4528e-07 -3.27082e-09 1.469e-07 -1.04239e-08 1.49581e-07 -1.1666e-08 1.28947e-07 -1.93068e-08 1.17862e-07 -2.53033e-08 1.12999e-07 -2.33763e-08 1.00108e-07 -2.21678e-08 7.75464e-08 -2.05849e-08 6.39229e-08 -1.7167e-08 5.17497e-08 -9.86639e-09 3.5438e-08 -8.76223e-09 2.71262e-08 -1.58803e-08 2.9736e-08 -1.87741e-08 2.32224e-08 -1.25876e-08 1.36777e-08 5.64902e-10 -8.91429e-09 2.61689e-08 -3.11652e-08 6.14082e-08 -3.90993e-08 8.93494e-08 -3.89045e-08 1.08801e-07 -2.34151e-08 1.04712e-07 1.07198e-08 9.50851e-08 3.55308e-08 7.90807e-08 6.08035e-08 5.25558e-08 7.5851e-08 1.69813e-08 7.59813e-08 -1.3975e-08 2.80996e-08 -3.09609e-08 -6.6539e-08 -3.57815e-08 -1.16048e-07 -3.73554e-08 -1.05468e-07 -1.25759e-08 -8.98902e-08 -4.83763e-08 -2.47475e-07 1.38188e-07 -2.15596e-07 1.42342e-07 -1.56797e-07 1.47726e-07 -8.17132e-08 1.268e-07 -3.83095e-08 1.12171e-07 -2.13028e-08 1.21606e-07 -1.36041e-08 1.31107e-07 -8.50484e-09 1.40719e-07 -1.23856e-08 1.51685e-07 -2.56665e-08 1.58561e-07 -4.06871e-08 1.6192e-07 -4.22935e-08 1.51187e-07 -4.66832e-08 1.33337e-07 -5.3002e-08 1.24181e-07 -5.24126e-08 1.1241e-07 -4.37944e-08 9.14896e-08 -3.4612e-08 6.8364e-08 -2.74303e-08 5.67411e-08 -1.59879e-08 4.03072e-08 -4.07646e-09 2.35265e-08 4.79921e-09 1.82505e-08 6.88185e-09 2.76532e-08 8.15679e-09 2.19473e-08 1.28709e-08 8.96349e-09 1.878e-08 -1.48236e-08 3.54678e-08 -4.78532e-08 6.08226e-08 -6.44542e-08 8.49952e-08 -6.30773e-08 9.08228e-08 -2.92429e-08 8.26841e-08 1.88584e-08 6.21377e-08 5.60772e-08 4.54403e-08 7.75008e-08 3.91246e-08 8.21666e-08 3.80191e-08 7.70867e-08 3.21233e-08 3.39952e-08 7.10937e-09 -4.15252e-08 -1.11396e-08 -9.77988e-08 -2.24343e-08 -9.41731e-08 -1.61119e-08 -9.62128e-08 -6.44884e-08 -1.97707e-07 1.0045e-07 -1.44447e-07 8.90821e-08 -8.71787e-08 9.04577e-08 -5.09692e-08 9.05904e-08 -3.95496e-08 1.00752e-07 -3.78834e-08 1.19939e-07 -4.38317e-08 1.37055e-07 -5.62159e-08 1.53103e-07 -7.07487e-08 1.66217e-07 -8.36984e-08 1.71511e-07 -8.85453e-08 1.66767e-07 -8.98472e-08 1.52489e-07 -9.16449e-08 1.35134e-07 -8.71466e-08 1.19683e-07 -7.51849e-08 1.00448e-07 -5.94869e-08 7.57916e-08 -5.01422e-08 5.90192e-08 -4.13015e-08 4.79004e-08 -3.129e-08 3.02957e-08 -2.05563e-08 1.27927e-08 -1.0768e-08 8.46201e-09 -2.01499e-10 1.70867e-08 5.34801e-09 1.63977e-08 1.04431e-08 3.86835e-09 1.11669e-08 -1.55476e-08 7.64041e-09 -4.43267e-08 5.02212e-09 -6.1836e-08 5.40995e-09 -6.34652e-08 1.32689e-08 -3.71019e-08 2.16496e-08 1.04777e-08 3.34455e-08 4.42812e-08 2.39591e-08 8.69872e-08 2.17979e-08 8.43277e-08 1.88733e-08 8.00112e-08 2.11302e-08 3.17382e-08 1.04113e-08 -3.08064e-08 1.37393e-09 -8.87615e-08 -7.23122e-10 -9.20762e-08 -3.89764e-09 -9.30384e-08 -6.83861e-08 -9.77909e-08 5.68011e-08 -6.85417e-08 5.98329e-08 -5.25851e-08 7.45011e-08 -5.09881e-08 8.89934e-08 -5.99069e-08 1.09671e-07 -8.05973e-08 1.4063e-07 -1.08363e-07 1.64821e-07 -1.29591e-07 1.74331e-07 -1.36876e-07 1.73502e-07 -1.34035e-07 1.68669e-07 -1.30218e-07 1.62951e-07 -1.23465e-07 1.45736e-07 -1.12913e-07 1.24582e-07 -9.72196e-08 1.03989e-07 -7.95298e-08 8.27578e-08 -6.09654e-08 5.72272e-08 -4.88882e-08 4.69419e-08 -4.37033e-08 4.27154e-08 -4.2367e-08 2.89593e-08 -4.13032e-08 1.17289e-08 -3.66302e-08 3.78901e-09 -2.60112e-08 6.46769e-09 -2.30765e-08 1.34629e-08 -2.22052e-08 2.99693e-09 -2.62858e-08 -1.1467e-08 -3.4649e-08 -3.59636e-08 -4.41864e-08 -5.22987e-08 -5.19894e-08 -5.56623e-08 -5.0511e-08 -3.85804e-08 -4.01705e-08 1.3717e-10 -2.44395e-08 2.85501e-08 -1.48619e-08 7.74096e-08 -8.6041e-09 7.80698e-08 -1.43187e-08 8.57258e-08 -1.71029e-08 3.45224e-08 -6.66093e-09 -4.12485e-08 -7.70459e-09 -8.7718e-08 -5.82389e-09 -9.3957e-08 -4.38187e-09 -9.44806e-08 -7.2768e-08 -5.18985e-08 5.07723e-08 -5.97997e-08 6.77341e-08 -7.47551e-08 8.94565e-08 -9.92881e-08 1.13526e-07 -1.32068e-07 1.4245e-07 -1.59281e-07 1.67843e-07 -1.72181e-07 1.77721e-07 -1.75795e-07 1.77945e-07 -1.70809e-07 1.68516e-07 -1.62605e-07 1.60466e-07 -1.48107e-07 1.48453e-07 -1.31291e-07 1.2892e-07 -1.08543e-07 1.01835e-07 -8.28875e-08 7.83335e-08 -5.97566e-08 5.96269e-08 -4.44637e-08 4.19342e-08 -3.23902e-08 3.48685e-08 -2.42824e-08 3.46075e-08 -2.78101e-08 3.2487e-08 -3.84503e-08 2.23692e-08 -4.11593e-08 6.498e-09 -3.48095e-08 1.17883e-10 -2.91703e-08 7.82376e-09 -3.02054e-08 4.03196e-09 -3.68408e-08 -4.83159e-09 -5.06355e-08 -2.2169e-08 -6.62869e-08 -3.66473e-08 -8.31654e-08 -3.87838e-08 -9.79022e-08 -2.38437e-08 -9.28368e-08 -4.92829e-09 -8.44365e-08 2.01498e-08 -7.82406e-08 7.12137e-08 -8.88477e-08 8.86769e-08 -6.53556e-08 6.22335e-08 -3.90155e-08 8.18217e-09 -1.20918e-08 -6.81723e-08 -9.82776e-09 -8.99821e-08 -5.40053e-09 -9.83844e-08 -2.84124e-09 -9.704e-08 -7.56092e-08 -1.03303e-07 7.11062e-08 -1.31896e-07 9.63272e-08 -1.63722e-07 1.21282e-07 -1.91978e-07 1.41782e-07 -2.04387e-07 1.5486e-07 -2.04058e-07 1.67514e-07 -2.00166e-07 1.73828e-07 -1.92771e-07 1.7055e-07 -1.83063e-07 1.58808e-07 -1.63472e-07 1.40875e-07 -1.42938e-07 1.27918e-07 -1.11813e-07 9.77951e-08 -7.58749e-08 6.5896e-08 -4.24605e-08 4.49191e-08 -2.00362e-08 3.72025e-08 -7.14318e-09 2.90412e-08 2.04594e-09 2.56794e-08 7.09498e-09 2.95585e-08 4.89741e-09 3.46846e-08 -1.1808e-08 3.90746e-08 -2.94092e-08 2.40992e-08 -2.99703e-08 6.7895e-10 -1.88235e-08 -3.32298e-09 -1.7665e-08 2.87345e-09 -2.16178e-08 -8.7889e-10 -2.96056e-08 -1.41812e-08 -4.02679e-08 -2.5985e-08 -5.03564e-08 -2.86954e-08 -6.58394e-08 -8.36077e-09 -8.53094e-08 1.45416e-08 -9.73804e-08 3.22206e-08 -8.7073e-08 6.09061e-08 -6.75245e-08 6.91282e-08 -5.39493e-08 4.86582e-08 -2.46782e-08 -2.10891e-08 -1.3454e-08 -7.93967e-08 -9.98979e-09 -9.34465e-08 -5.79555e-09 -1.02579e-07 -3.34406e-09 -9.94916e-08 -7.89534e-08 -2.20826e-07 9.68205e-08 -2.40589e-07 1.1609e-07 -2.46639e-07 1.27332e-07 -2.45533e-07 1.40677e-07 -2.38351e-07 1.47678e-07 -2.2702e-07 1.56182e-07 -2.08223e-07 1.55031e-07 -1.8718e-07 1.49507e-07 -1.66342e-07 1.3797e-07 -1.39655e-07 1.14188e-07 -1.06536e-07 9.47996e-08 -6.65299e-08 5.77887e-08 -3.10744e-08 3.04405e-08 -2.70005e-09 1.65446e-08 1.95878e-08 1.49146e-08 2.95123e-08 1.91166e-08 3.46744e-08 2.05171e-08 4.22755e-08 2.19572e-08 4.74072e-08 2.95528e-08 3.37265e-08 5.27551e-08 9.80111e-09 4.80246e-08 -3.20869e-09 1.36887e-08 -2.08159e-09 -4.45013e-09 -9.73956e-09 1.05314e-08 -1.91375e-08 8.519e-09 -3.14523e-08 -1.86643e-09 -4.78584e-08 -9.57901e-09 -6.3032e-08 -1.3522e-08 -7.50796e-08 3.68668e-09 -8.59634e-08 2.54252e-08 -8.63034e-08 3.25604e-08 -7.13288e-08 4.59313e-08 -5.29677e-08 5.07668e-08 -3.05012e-08 2.61915e-08 -1.30399e-08 -3.85507e-08 -1.38012e-08 -7.86356e-08 -1.19537e-08 -9.52941e-08 -9.12106e-09 -1.05412e-07 -4.02559e-09 -1.04587e-07 -8.29791e-08 -2.56978e-07 1.05602e-07 -2.59511e-07 1.18624e-07 -2.55978e-07 1.23799e-07 -2.47541e-07 1.3224e-07 -2.37126e-07 1.37263e-07 -2.17037e-07 1.36094e-07 -1.94127e-07 1.32121e-07 -1.71684e-07 1.27064e-07 -1.48571e-07 1.14858e-07 -1.19198e-07 8.48153e-08 -8.1737e-08 5.73382e-08 -3.89519e-08 1.50036e-08 -2.57583e-09 -5.93568e-09 2.36742e-08 -9.70555e-09 4.31588e-08 -4.57005e-09 5.28921e-08 9.38314e-09 5.31345e-08 2.02746e-08 5.12058e-08 2.38858e-08 4.8702e-08 3.20565e-08 4.15657e-08 5.98913e-08 2.80931e-08 6.1497e-08 1.13257e-08 3.0456e-08 -4.87254e-10 7.3628e-09 -1.20792e-08 2.21233e-08 -2.20586e-08 1.84984e-08 -3.46825e-08 1.07573e-08 -5.19889e-08 7.72738e-09 -7.05277e-08 5.01674e-09 -7.86749e-08 1.18337e-08 -7.53148e-08 2.20649e-08 -6.42941e-08 2.15395e-08 -5.11951e-08 3.2832e-08 -3.72084e-08 3.67799e-08 -1.52393e-08 4.22213e-09 -1.47695e-08 -3.90207e-08 -2.35633e-08 -6.98422e-08 -2.44077e-08 -9.445e-08 -1.97395e-08 -1.1008e-07 -1.12062e-08 -1.13121e-07 -9.41855e-08 -2.47204e-07 9.99429e-08 -2.40474e-07 1.11894e-07 -2.32359e-07 1.15683e-07 -2.16553e-07 1.16434e-07 -1.92075e-07 1.12784e-07 -1.62376e-07 1.06395e-07 -1.35536e-07 1.05281e-07 -1.12965e-07 1.04493e-07 -8.92626e-08 9.11553e-08 -6.02786e-08 5.58312e-08 -1.66077e-08 1.36674e-08 2.10851e-08 -2.26892e-08 5.06208e-08 -3.54714e-08 7.04623e-08 -2.9547e-08 7.56891e-08 -9.79692e-09 7.40269e-08 1.10454e-08 6.73278e-08 2.69737e-08 5.74676e-08 3.3746e-08 4.60712e-08 4.34529e-08 3.98765e-08 6.6086e-08 3.26805e-08 6.86929e-08 2.56539e-08 3.74825e-08 9.0083e-09 2.40084e-08 -7.87129e-09 3.90028e-08 -1.92271e-08 2.98542e-08 -2.61605e-08 1.76907e-08 -3.46818e-08 1.62487e-08 -4.89316e-08 1.92664e-08 -6.20139e-08 2.49159e-08 -7.09268e-08 3.09777e-08 -7.78833e-08 2.84959e-08 -7.87549e-08 3.37034e-08 -7.37944e-08 3.18192e-08 -6.20372e-08 -7.53527e-09 -5.97159e-08 -4.13422e-08 -5.81058e-08 -7.14525e-08 -5.26584e-08 -9.98976e-08 -3.98295e-08 -1.22909e-07 -2.25623e-08 -1.30388e-07 -1.16748e-07 -2.12244e-07 7.57987e-08 -1.94168e-07 9.38184e-08 -1.74244e-07 9.57593e-08 -1.47485e-07 8.96753e-08 -1.15372e-07 8.06717e-08 -8.82847e-08 7.93074e-08 -6.62874e-08 8.32843e-08 -3.27855e-08 7.09909e-08 4.39215e-09 5.39778e-08 4.05785e-08 1.9645e-08 6.45738e-08 -1.03278e-08 8.13863e-08 -3.95016e-08 9.89932e-08 -5.30781e-08 1.11075e-07 -4.16282e-08 1.10621e-07 -9.34371e-09 9.04315e-08 3.12355e-08 7.62158e-08 4.11894e-08 6.44859e-08 4.5476e-08 5.38903e-08 5.40486e-08 4.01595e-08 7.98168e-08 3.13195e-08 7.7533e-08 2.07371e-08 4.8065e-08 -1.56654e-09 4.6312e-08 -1.30038e-08 5.04401e-08 -1.9185e-08 3.60354e-08 -1.95208e-08 1.80264e-08 -1.94413e-08 1.61692e-08 -2.85152e-08 2.83402e-08 -5.07873e-08 4.7188e-08 -5.90738e-08 3.92641e-08 -6.74641e-08 3.68861e-08 -7.61643e-08 4.24034e-08 -7.09435e-08 2.65983e-08 -7.4786e-08 -3.69297e-09 -7.17474e-08 -4.43809e-08 -6.26546e-08 -8.05454e-08 -5.4052e-08 -1.085e-07 -4.05539e-08 -1.36407e-07 -2.33029e-08 -1.47639e-07 -1.40051e-07 -1.27862e-07 5.21234e-08 -1.09026e-07 7.49825e-08 -8.8401e-08 7.51345e-08 -6.33603e-08 6.46347e-08 -3.86193e-08 5.59307e-08 -2.35818e-08 6.427e-08 -8.05688e-09 6.77594e-08 1.01197e-08 5.28145e-08 2.97918e-08 3.43057e-08 3.99891e-08 9.44779e-09 4.28146e-08 -1.31532e-08 5.87626e-08 -5.54494e-08 7.70499e-08 -7.13653e-08 8.91886e-08 -5.37667e-08 7.82581e-08 1.58702e-09 5.50477e-08 5.4446e-08 4.96429e-08 4.65944e-08 4.50024e-08 5.01167e-08 3.37423e-08 6.53089e-08 1.10661e-08 1.02493e-07 1.51688e-09 8.70823e-08 -1.16161e-08 6.1198e-08 -2.03696e-08 5.50656e-08 -1.57754e-08 4.58458e-08 -6.78545e-09 2.70454e-08 -4.7787e-09 1.60196e-08 -1.63975e-09 1.30302e-08 -5.05353e-10 2.72058e-08 -2.41494e-08 7.08319e-08 -4.87215e-08 6.38362e-08 -5.77657e-08 4.59301e-08 -6.19364e-08 4.65741e-08 -5.67415e-08 2.14034e-08 -5.23722e-08 -8.06233e-09 -4.82822e-08 -4.84709e-08 -4.29971e-08 -8.58305e-08 -3.79074e-08 -1.1359e-07 -3.16591e-08 -1.42656e-07 -1.69484e-08 -1.6235e-07 -1.56999e-07 -8.44029e-08 3.20063e-08 -6.02136e-08 5.07931e-08 -4.0018e-08 5.49388e-08 -2.52809e-08 4.98976e-08 -1.50872e-08 4.5737e-08 -1.0174e-09 5.02001e-08 9.2134e-09 5.75286e-08 1.21812e-08 4.98467e-08 7.26609e-09 3.92209e-08 -4.69015e-09 2.14041e-08 -1.87931e-08 9.49802e-10 -2.17349e-08 -5.25075e-08 -2.62935e-08 -6.68067e-08 -1.85225e-08 -6.15376e-08 2.90315e-09 -1.98385e-08 4.90525e-08 8.29673e-09 6.64835e-08 2.91636e-08 4.83332e-08 6.82671e-08 1.74252e-08 9.6217e-08 3.19586e-09 1.16722e-07 -8.13431e-09 9.84126e-08 -2.93012e-08 8.23649e-08 -4.03477e-08 6.61121e-08 -3.37254e-08 3.92235e-08 -2.40128e-08 1.73328e-08 -1.73812e-08 9.38787e-09 -1.402e-08 9.66891e-09 -2.28687e-09 1.54724e-08 4.46921e-09 6.40757e-08 -7.94583e-09 7.6251e-08 -1.75801e-08 5.55643e-08 -1.32579e-08 4.22518e-08 -8.2498e-09 1.63952e-08 -1.71662e-09 -1.45955e-08 7.22075e-09 -5.74082e-08 1.01019e-08 -8.87115e-08 5.62295e-09 -1.09111e-07 -3.63142e-09 -1.33401e-07 -5.20908e-09 -1.60772e-07 -1.62208e-07 -8.13586e-08 -8.27934e-09 -5.22786e-08 2.17131e-08 -3.88777e-08 4.15378e-08 -2.73629e-08 3.83828e-08 -2.06789e-08 3.9053e-08 -1.12918e-08 4.08131e-08 2.45747e-09 4.37794e-08 1.09477e-08 4.13564e-08 7.53778e-09 4.26309e-08 -2.11976e-09 3.10616e-08 -1.80979e-08 1.6928e-08 -4.1025e-08 -2.95804e-08 -4.61043e-08 -6.17273e-08 -3.88103e-08 -6.88315e-08 -5.24086e-09 -5.3408e-08 4.10426e-08 -3.79866e-08 7.81935e-08 -7.98726e-09 8.46804e-08 6.17803e-08 5.05293e-08 1.30368e-07 3.38339e-08 1.33418e-07 2.7696e-08 1.0455e-07 -1.78022e-09 1.11841e-07 -4.06907e-08 1.05023e-07 -5.79617e-08 5.64945e-08 -5.12737e-08 1.06447e-08 -3.97371e-08 -2.14888e-09 -2.95542e-08 -5.14179e-10 -1.5912e-08 1.83001e-09 1.99687e-08 2.81948e-08 4.45828e-08 5.16368e-08 5.90553e-08 4.10916e-08 7.27198e-08 2.85873e-08 8.17837e-08 7.33128e-09 8.60554e-08 -1.88671e-08 8.42256e-08 -5.55782e-08 7.8691e-08 -8.31767e-08 6.30401e-08 -9.34597e-08 3.98438e-08 -1.10204e-07 1.74285e-08 -1.38356e-07 -1.44779e-07 -1.21275e-07 -2.17512e-08 -9.34459e-08 -6.11595e-09 -5.5769e-08 3.86096e-09 -3.75098e-08 2.01235e-08 -2.53455e-08 2.68887e-08 -1.33959e-08 2.88636e-08 2.06533e-09 2.83182e-08 1.27361e-08 3.06857e-08 1.66014e-08 3.87657e-08 2.43723e-08 2.32909e-08 4.084e-08 4.60421e-10 4.43538e-08 -3.30941e-08 4.14629e-08 -5.88364e-08 3.25172e-08 -5.98856e-08 3.35101e-08 -5.44007e-08 3.88712e-08 -4.33477e-08 5.76248e-08 -2.67408e-08 8.68567e-08 3.25484e-08 7.99994e-08 1.37225e-07 6.53789e-08 1.48038e-07 5.91907e-08 1.10739e-07 5.19632e-08 1.19069e-07 3.16719e-08 1.25314e-07 3.71925e-09 8.44471e-08 -1.28251e-08 2.71889e-08 -1.67682e-08 1.79408e-09 -8.97588e-09 -8.3066e-09 1.87725e-09 -9.02324e-09 3.2112e-08 -2.04001e-09 6.65549e-08 1.71938e-08 9.19056e-08 1.57409e-08 1.07153e-07 1.33401e-08 1.18651e-07 -4.16661e-09 1.28827e-07 -2.90433e-08 1.17753e-07 -4.4504e-08 9.70575e-08 -6.24808e-08 7.26796e-08 -6.90815e-08 4.74598e-08 -8.49842e-08 2.40918e-08 -1.14988e-07 -1.20687e-07 -8.62582e-08 -2.67692e-08 -7.64745e-08 -1.58996e-08 -6.47139e-08 -7.89961e-09 -5.37372e-08 9.14697e-09 -3.29998e-08 6.15142e-09 -1.22023e-08 8.06617e-09 8.58897e-09 7.52718e-09 1.87786e-08 2.04963e-08 3.98931e-08 1.76514e-08 5.79702e-08 5.21399e-09 7.28463e-08 -1.44155e-08 7.7035e-08 -3.72826e-08 6.86762e-08 -5.04773e-08 6.02163e-08 -5.14255e-08 5.1983e-08 -4.61673e-08 4.43581e-08 -3.57226e-08 3.96172e-08 -2.19998e-08 6.17646e-08 1.04011e-08 8.75848e-08 1.11405e-07 1.01821e-07 1.33802e-07 8.94654e-08 1.23094e-07 9.28609e-08 1.15673e-07 1.08316e-07 1.09859e-07 1.08763e-07 8.39996e-08 8.32403e-08 5.27118e-08 6.15091e-08 2.35253e-08 5.31488e-08 5.37073e-11 5.26014e-08 -8.47583e-09 6.08432e-08 -1.02817e-08 8.59674e-08 -7.93028e-09 1.10315e-07 -8.60606e-09 1.31402e-07 -7.74666e-09 1.41083e-07 -1.38478e-08 1.33805e-07 -2.17651e-08 1.1551e-07 -2.62083e-08 8.92643e-08 -3.62347e-08 6.12985e-08 -4.11154e-08 3.7514e-08 -6.11994e-08 1.64094e-08 -9.38828e-08 -1.04278e-07 -6.03743e-08 -3.36416e-08 -5.54303e-08 -2.08436e-08 -5.6554e-08 -6.77583e-09 -4.97447e-08 2.33778e-09 -4.40647e-08 4.71598e-10 -3.24737e-08 -3.52474e-09 -1.77473e-08 -7.19898e-09 4.66459e-09 -1.91546e-09 2.92209e-08 -6.90471e-09 5.24428e-08 -1.80077e-08 6.88103e-08 -3.07828e-08 7.27708e-08 -4.12428e-08 6.96233e-08 -4.73297e-08 6.448e-08 -4.6282e-08 5.82969e-08 -3.9984e-08 4.97636e-08 -2.71891e-08 3.69895e-08 -9.22547e-09 3.77035e-08 9.6871e-09 7.37308e-08 7.5378e-08 9.71951e-08 1.10338e-07 1.14524e-07 1.05765e-07 1.22595e-07 1.07602e-07 1.45377e-07 8.70769e-08 1.6106e-07 6.83166e-08 1.58471e-07 5.53003e-08 1.50911e-07 3.10856e-08 1.39248e-07 1.17168e-08 1.25281e-07 5.49146e-09 1.16883e-07 -1.88398e-09 1.19758e-07 -1.08042e-08 1.26236e-07 -1.50844e-08 1.33251e-07 -1.47608e-08 1.33971e-07 -1.45682e-08 1.24842e-07 -1.26357e-08 1.07569e-07 -8.93501e-09 8.4761e-08 -1.3426e-08 6.01802e-08 -1.65343e-08 4.20061e-08 -4.30249e-08 2.21396e-08 -7.40159e-08 -8.21379e-08 -5.23926e-08 -3.54332e-08 -5.01412e-08 -2.3095e-08 -4.59072e-08 -1.10098e-08 -3.90159e-08 -4.55343e-09 -3.40185e-08 -4.52574e-09 -2.86205e-08 -8.92261e-09 -2.1446e-08 -1.43734e-08 -4.97573e-09 -1.83856e-08 1.26201e-08 -2.45004e-08 2.49722e-08 -3.03596e-08 3.1231e-08 -3.70413e-08 3.98643e-08 -4.98759e-08 4.88499e-08 -5.63152e-08 5.4643e-08 -5.20748e-08 5.55257e-08 -4.08665e-08 4.5031e-08 -1.66942e-08 2.73939e-08 8.41173e-09 1.59006e-08 2.11804e-08 4.27342e-08 4.85444e-08 7.97354e-08 7.33364e-08 9.66263e-08 8.88744e-08 1.19498e-07 8.47306e-08 1.54929e-07 5.16458e-08 1.74052e-07 4.91929e-08 1.75993e-07 5.33594e-08 1.74937e-07 3.21418e-08 1.62694e-07 2.396e-08 1.43834e-07 2.4351e-08 1.34959e-07 6.99186e-09 1.3465e-07 -1.04954e-08 1.35053e-07 -1.54866e-08 1.34223e-07 -1.39311e-08 1.25868e-07 -6.21249e-09 1.08203e-07 5.02916e-09 8.68775e-08 1.23911e-08 6.36598e-08 9.79194e-09 3.52946e-08 1.18311e-08 2.81553e-08 -3.58854e-08 1.57022e-08 -6.15626e-08 -6.6436e-08 -3.05791e-08 -2.7429e-08 -3.59996e-08 -1.76744e-08 -4.04053e-08 -6.60419e-09 -4.1724e-08 -3.23472e-09 -3.93303e-08 -6.91951e-09 -3.71565e-08 -1.10963e-08 -3.49459e-08 -1.6584e-08 -3.32626e-08 -2.00687e-08 -2.99235e-08 -2.78394e-08 -2.09007e-08 -3.93823e-08 -7.69128e-09 -5.02507e-08 1.17521e-08 -6.93192e-08 2.74904e-08 -7.20533e-08 3.42182e-08 -5.88025e-08 3.80656e-08 -4.47137e-08 2.68947e-08 -5.52316e-09 8.45223e-09 2.68543e-08 -3.92025e-10 3.00247e-08 1.32871e-08 3.48653e-08 3.87632e-08 4.78601e-08 6.64198e-08 6.12177e-08 9.85635e-08 5.25866e-08 1.31388e-07 1.88207e-08 1.54142e-07 2.64391e-08 1.71676e-07 3.58257e-08 1.59825e-07 4.39926e-08 1.38919e-07 4.48665e-08 1.3749e-07 2.57799e-08 1.44043e-07 4.39149e-10 1.44061e-07 -1.05128e-08 1.38218e-07 -9.64344e-09 1.27272e-07 -2.98484e-09 1.10043e-07 1.10166e-08 9.24722e-08 2.26001e-08 7.397e-08 3.08935e-08 3.5555e-08 4.82071e-08 1.0002e-08 3.73842e-08 1.17171e-08 -3.76005e-08 5.98209e-09 -5.58279e-08 -6.04544e-08 1.18102e-08 -2.10739e-08 -9.92075e-10 -4.87215e-09 -1.72022e-08 9.60597e-09 -3.00117e-08 9.57474e-09 -3.65338e-08 -3.97427e-10 -4.10422e-08 -6.58784e-09 -4.60741e-08 -1.1552e-08 -4.70812e-08 -1.90615e-08 -4.29286e-08 -3.1992e-08 -2.91e-08 -5.32108e-08 -6.51554e-09 -7.2835e-08 1.44251e-08 -9.02598e-08 2.3281e-08 -8.09092e-08 1.95611e-08 -5.50826e-08 1.52128e-08 -4.03653e-08 5.04576e-09 4.64393e-09 2.23806e-09 2.96621e-08 1.0412e-08 2.18507e-08 1.85675e-08 2.67097e-08 1.75425e-08 4.8885e-08 6.7882e-09 7.19718e-08 2.66749e-08 3.26998e-08 5.38988e-08 -8.40335e-09 7.67815e-08 3.55638e-09 8.90966e-08 2.35106e-08 8.94984e-08 4.3591e-08 9.66208e-08 3.77444e-08 1.10172e-07 1.22289e-08 1.12966e-07 -2.35421e-09 1.02565e-07 -1.11987e-10 8.868e-08 4.24152e-09 7.4512e-08 1.11832e-08 6.41507e-08 2.13779e-08 5.94649e-08 2.7286e-08 4.14399e-08 4.89186e-08 -1.12914e-09 9.07762e-08 -9.65807e-09 4.59131e-08 -1.42388e-09 -4.5835e-08 -9.75633e-10 -5.62768e-08 -6.14304e-08 3.30989e-08 -2.13242e-08 2.3416e-08 4.81079e-09 7.69003e-09 2.5332e-08 -8.33884e-09 2.56037e-08 -2.38159e-08 1.50796e-08 -3.04512e-08 4.74433e-11 -3.87087e-08 -3.29456e-09 -4.28856e-08 -1.48846e-08 -4.02771e-08 -3.46005e-08 -3.07155e-08 -6.27723e-08 -1.66962e-08 -8.68543e-08 -5.8044e-09 -1.01152e-07 -2.73874e-09 -8.39749e-08 -1.10007e-08 -4.68207e-08 -2.70604e-08 -2.43057e-08 -1.97379e-08 -2.67855e-09 -1.31415e-08 2.30656e-08 -1.82928e-08 2.7002e-08 -3.69e-08 4.53169e-08 -5.92291e-08 7.12139e-08 -5.99834e-08 7.27259e-08 -4.55477e-08 1.8264e-08 -5.91523e-08 5.20107e-09 -4.55354e-08 -1.00605e-08 -2.20053e-08 -1.94171e-11 3.15452e-09 1.84314e-08 2.67001e-08 1.41991e-08 3.84392e-08 4.89989e-10 3.33402e-08 2.74498e-09 2.53851e-08 7.84314e-09 1.97718e-08 9.85467e-09 1.72292e-08 1.37258e-08 1.61786e-08 2.24285e-08 1.07733e-08 3.26914e-08 -7.20039e-09 6.68924e-08 -1.84163e-08 1.01992e-07 -1.12009e-09 2.86168e-08 7.40667e-09 -5.43621e-08 1.76316e-09 -5.06338e-08 -5.9667e-08 3.44772e-08 -1.87497e-08 3.43919e-08 4.89611e-09 2.93139e-08 3.04101e-08 1.56893e-08 3.92283e-08 3.81755e-09 2.69513e-08 -3.99429e-09 7.85925e-09 -1.09088e-08 3.61992e-09 -1.9531e-08 -6.26243e-09 -2.93074e-08 -2.4824e-08 -3.8431e-08 -5.36487e-08 -4.51338e-08 -8.01515e-08 -5.72608e-08 -8.90246e-08 -7.09049e-08 -7.03309e-08 -8.24616e-08 -3.52641e-08 -8.37912e-08 -2.29763e-08 -7.97433e-08 -6.72658e-09 -8.37909e-08 2.71131e-08 -1.03293e-07 4.65044e-08 -1.18903e-07 6.09267e-08 -1.14972e-07 6.72824e-08 -9.37425e-08 5.14962e-08 -9.13948e-08 1.59161e-08 -9.41799e-08 7.98611e-09 -9.18908e-08 -1.23495e-08 -8.8691e-08 -3.21912e-09 -7.65289e-08 6.26959e-09 -6.16496e-08 -6.79965e-10 -4.92454e-08 -1.1914e-08 -3.58423e-08 -1.0658e-08 -3.25814e-08 4.58228e-09 -3.20996e-08 9.37275e-09 -3.34924e-08 1.51185e-08 -2.93395e-08 1.82756e-08 -2.40479e-08 2.73999e-08 -1.56861e-08 5.85309e-08 1.88152e-08 6.7491e-08 5.10338e-08 -3.60183e-09 3.66432e-08 -3.99716e-08 1.29657e-08 -2.69563e-08 -4.67007e-08 1.3431e-08 -1.37616e-08 1.01626e-08 8.16446e-09 8.17486e-09 3.23977e-08 9.30256e-09 3.81006e-08 9.9222e-09 2.63317e-08 5.32142e-09 1.24601e-08 3.74168e-09 5.19966e-09 -9.62225e-10 -1.55855e-09 -1.0189e-08 -1.55972e-08 -2.80892e-08 -3.57486e-08 -5.33139e-08 -5.49268e-08 -7.86539e-08 -6.36848e-08 -9.37832e-08 -5.52018e-08 -1.04725e-07 -2.43229e-08 -1.1663e-07 -1.10715e-08 -1.27522e-07 4.16575e-09 -1.28313e-07 2.79042e-08 -1.20692e-07 3.88834e-08 -1.10277e-07 5.05109e-08 -1.02876e-07 5.98821e-08 -9.51585e-08 4.37783e-08 -9.43788e-08 1.51365e-08 -9.03684e-08 3.9758e-09 -9.86885e-08 -4.02916e-09 -9.99612e-08 -1.9462e-09 -9.2274e-08 -1.41737e-09 -8.3603e-08 -9.35065e-09 -8.05596e-08 -1.49572e-08 -7.63736e-08 -1.48438e-08 -6.72351e-08 -4.55612e-09 -6.27397e-08 4.8775e-09 -5.91137e-08 1.14926e-08 -5.18822e-08 1.10443e-08 -3.8045e-08 1.35629e-08 -6.86673e-09 2.73528e-08 3.87895e-08 2.18349e-08 5.28573e-08 -1.76696e-08 2.5435e-08 -1.2549e-08 6.10956e-09 -7.63024e-09 -4.05907e-08 -1.66166e-08 -1.56764e-08 -2.32892e-08 1.4837e-08 -2.83772e-08 3.74856e-08 -2.53178e-08 3.50411e-08 -1.52184e-08 1.62324e-08 -5.3357e-09 2.57731e-09 6.79083e-09 -6.92698e-09 1.56473e-08 -1.04152e-08 1.30304e-08 -1.29805e-08 -1.08213e-09 -2.16363e-08 -2.83247e-08 -2.76844e-08 -6.15636e-08 -3.04461e-08 -8.65949e-08 -3.01708e-08 -9.79835e-08 -1.29346e-08 -1.11366e-07 2.31063e-09 -1.25397e-07 1.81968e-08 -1.25719e-07 2.82256e-08 -1.12539e-07 2.57035e-08 -9.49037e-08 3.28759e-08 -8.68076e-08 5.17861e-08 -8.88954e-08 4.58663e-08 -9.52975e-08 2.15387e-08 -9.69451e-08 5.62363e-09 -1.00342e-07 -6.32503e-10 -9.98361e-08 -2.45158e-09 -9.63977e-08 -4.85568e-09 -9.576e-08 -9.98829e-09 -9.67691e-08 -1.39482e-08 -9.58435e-08 -1.57693e-08 -8.58331e-08 -1.45665e-08 -7.14772e-08 -9.47834e-09 -5.49801e-08 -5.00435e-09 -4.13287e-08 -2.60692e-09 -3.1251e-08 3.48533e-09 -1.1049e-08 7.15076e-09 1.41272e-08 -3.34124e-09 9.96816e-09 -1.35105e-08 2.96302e-09 -5.54354e-09 1.17004e-08 -1.63669e-08 -2.88905e-08 -5.22607e-08 -1.25325e-08 -6.45945e-08 2.71707e-08 -7.43376e-08 4.72285e-08 -8.03099e-08 4.10133e-08 -7.09227e-08 6.84496e-09 -5.08329e-08 -1.75127e-08 -2.57748e-08 -3.19853e-08 -4.32878e-09 -3.18615e-08 5.65525e-09 -2.29648e-08 4.58588e-09 -2.05671e-08 -5.91659e-09 -1.71822e-08 -2.8743e-08 -7.61991e-09 -5.57496e-08 -3.16458e-09 -6.73503e-08 -1.33417e-09 -7.83943e-08 1.33543e-08 -9.01002e-08 2.99024e-08 -9.61632e-08 3.42885e-08 -1.04585e-07 3.41249e-08 -1.05548e-07 3.38399e-08 -9.46873e-08 4.09253e-08 -8.49015e-08 3.60807e-08 -8.78942e-08 2.45317e-08 -9.10762e-08 8.80588e-09 -9.38649e-08 2.15631e-09 -9.54058e-08 -9.10725e-10 -9.77795e-08 -2.48217e-09 -1.01578e-07 -6.18996e-09 -1.05185e-07 -1.03421e-08 -1.07873e-07 -1.30811e-08 -1.08612e-07 -1.38275e-08 -1.00502e-07 -1.75885e-08 -8.25369e-08 -2.29696e-08 -6.59295e-08 -1.92143e-08 -5.6003e-08 -6.4412e-09 -4.30983e-08 -5.75407e-09 -2.82356e-08 -1.82042e-08 -1.65512e-08 -2.51949e-08 -5.66486e-09 -1.64296e-08 3.18832e-09 -2.52199e-08 -2.57024e-08 -1.28755e-07 -4.11282e-09 -1.31123e-07 2.9538e-08 -1.19511e-07 3.56164e-08 -1.01692e-07 2.31944e-08 -8.98735e-08 -4.97383e-09 -7.31207e-08 -3.42656e-08 -5.17049e-08 -5.34012e-08 -3.18884e-08 -5.16783e-08 -2.07296e-08 -3.41237e-08 -1.3977e-08 -2.73198e-08 -1.7276e-08 -1.38832e-08 -3.48809e-08 9.98493e-09 -5.47693e-08 1.67237e-08 -7.42256e-08 1.81219e-08 -8.77175e-08 2.6846e-08 -9.09519e-08 3.31366e-08 -9.34127e-08 3.67493e-08 -9.35326e-08 3.42448e-08 -8.86636e-08 2.89711e-08 -7.8226e-08 3.0488e-08 -6.9322e-08 2.7177e-08 -6.54528e-08 2.06628e-08 -6.87791e-08 1.21323e-08 -7.40857e-08 7.46296e-09 -7.91889e-08 4.19232e-09 -8.54392e-08 3.76784e-09 -9.46715e-08 3.04189e-09 -1.02477e-07 -2.53678e-09 -1.05907e-07 -9.65228e-09 -1.06023e-07 -1.3711e-08 -1.02518e-07 -2.10943e-08 -9.94801e-08 -2.6007e-08 -9.06622e-08 -2.80321e-08 -7.09902e-08 -2.61132e-08 -4.86657e-08 -2.80787e-08 -3.16815e-08 -3.51885e-08 -2.1447e-08 -3.54293e-08 -1.02993e-08 -2.75771e-08 -6.11772e-09 -2.94017e-08 -3.18199e-08 -2.05045e-07 -1.90402e-08 -1.73524e-07 -1.98331e-09 -1.40852e-07 2.94412e-09 -1.11201e-07 -6.45728e-09 -1.00369e-07 -1.58053e-08 -1.04854e-07 -2.97807e-08 -1.07285e-07 -5.09707e-08 -1.02864e-07 -5.60997e-08 -9.0493e-08 -4.64946e-08 -8.00347e-08 -3.77783e-08 -7.47681e-08 -1.91498e-08 -7.53374e-08 1.05541e-08 -7.78717e-08 1.9258e-08 -8.3551e-08 2.3801e-08 -8.62916e-08 2.95864e-08 -8.36283e-08 3.04731e-08 -8.43523e-08 3.74733e-08 -7.85538e-08 2.84464e-08 -6.46883e-08 1.51058e-08 -5.83112e-08 2.4111e-08 -4.96676e-08 1.85335e-08 -4.80113e-08 1.90064e-08 -5.05974e-08 1.47183e-08 -5.6024e-08 1.28894e-08 -6.30594e-08 1.12275e-08 -7.01538e-08 1.08619e-08 -7.89827e-08 1.18703e-08 -8.94242e-08 7.90427e-09 -9.81532e-08 -9.23707e-10 -1.04617e-07 -7.2472e-09 -1.07811e-07 -1.79004e-08 -1.06491e-07 -2.73272e-08 -9.84456e-08 -3.60778e-08 -8.06706e-08 -4.38882e-08 -5.99277e-08 -4.88216e-08 -4.38217e-08 -5.12944e-08 -2.98018e-08 -4.94492e-08 -1.57851e-08 -4.15939e-08 -7.84314e-09 -3.73438e-08 -3.96628e-08 -2.48303e-07 -4.19851e-08 -2.12239e-07 -3.80479e-08 -1.80511e-07 -2.87832e-08 -1.6349e-07 -2.34788e-08 -1.55643e-07 -2.36515e-08 -1.50527e-07 -3.48968e-08 -1.45087e-07 -5.64104e-08 -1.35862e-07 -6.53249e-08 -1.1735e-07 -6.50071e-08 -1.00997e-07 -5.41312e-08 -9.68352e-08 -2.33117e-08 -9.04992e-08 4.21816e-09 -9.04262e-08 1.91848e-08 -9.76445e-08 3.10192e-08 -9.92003e-08 3.1142e-08 -9.3148e-08 2.44207e-08 -8.05736e-08 2.48988e-08 -6.76689e-08 1.55419e-08 -5.60233e-08 3.46045e-09 -4.67655e-08 1.48534e-08 -3.16854e-08 3.45344e-09 -2.81307e-08 1.54515e-08 -3.52211e-08 2.18084e-08 -4.33942e-08 2.10622e-08 -5.09118e-08 1.87447e-08 -5.68524e-08 1.68022e-08 -6.007e-08 1.50879e-08 -6.36908e-08 1.15249e-08 -6.97281e-08 5.11355e-09 -7.66706e-08 -3.04933e-10 -8.17644e-08 -1.28068e-08 -8.37639e-08 -2.53279e-08 -8.20367e-08 -3.78052e-08 -7.61697e-08 -4.97555e-08 -6.55615e-08 -5.943e-08 -5.25433e-08 -6.43127e-08 -3.76238e-08 -6.43688e-08 -2.09359e-08 -5.8282e-08 -8.35033e-09 -4.99293e-08 -4.80132e-08 -2.31713e-07 -6.35483e-08 -2.05297e-07 -6.44637e-08 -1.8439e-07 -4.96899e-08 -1.72249e-07 -3.56197e-08 -1.61269e-07 -3.46311e-08 -1.53325e-07 -4.28407e-08 -1.50179e-07 -5.9556e-08 -1.51027e-07 -6.44776e-08 -1.51554e-07 -6.44805e-08 -1.54326e-07 -5.13584e-08 -1.50016e-07 -2.76226e-08 -1.36831e-07 -8.96623e-09 -1.25005e-07 7.35862e-09 -1.12906e-07 1.89202e-08 -9.34952e-08 1.17309e-08 -6.81016e-08 -9.7317e-10 -4.61731e-08 2.97016e-09 -4.49828e-08 1.43517e-08 -3.7612e-08 -3.91015e-09 -6.90998e-09 -1.58482e-08 8.53651e-09 -1.19928e-08 1.51016e-08 8.88651e-09 6.65743e-09 3.02525e-08 -1.29386e-08 4.0658e-08 -3.19955e-08 3.78014e-08 -4.42484e-08 2.9055e-08 -4.88841e-08 1.97236e-08 -5.11065e-08 1.37475e-08 -5.30149e-08 7.02216e-09 -5.51685e-08 1.84871e-09 -5.92909e-08 -8.68469e-09 -6.29115e-08 -2.17076e-08 -6.52797e-08 -3.54374e-08 -6.57681e-08 -4.92674e-08 -6.15461e-08 -6.36522e-08 -5.2434e-08 -7.3425e-08 -4.00557e-08 -7.67474e-08 -2.37116e-08 -7.46264e-08 -8.47605e-09 -6.51647e-08 -5.64894e-08 -1.90509e-07 -7.74004e-08 -1.71476e-07 -8.3496e-08 -1.52484e-07 -6.86818e-08 -1.50551e-07 -3.75522e-08 -1.57769e-07 -2.74133e-08 -1.62689e-07 -3.79213e-08 -1.6326e-07 -5.8985e-08 -1.62708e-07 -6.50298e-08 -1.62704e-07 -6.44845e-08 -1.64294e-07 -4.97683e-08 -1.66597e-07 -2.53198e-08 -1.6078e-07 -1.47834e-08 -1.4577e-07 -7.65118e-09 -1.21965e-07 -4.88492e-09 -9.14422e-08 -1.8792e-08 -6.25234e-08 -2.98922e-08 -3.36148e-08 -2.59386e-08 3.70119e-09 -2.29642e-08 3.74667e-08 -3.76755e-08 5.44738e-08 -3.28549e-08 5.32102e-08 -1.07289e-08 5.10739e-08 1.1023e-08 4.8914e-08 3.24124e-08 3.72974e-08 5.22744e-08 1.20549e-08 6.30437e-08 -1.18277e-08 5.29376e-08 -2.9209e-08 3.7105e-08 -3.85031e-08 2.30418e-08 -4.48196e-08 1.3339e-08 -4.79502e-08 4.97937e-09 -5.16427e-08 -4.9925e-09 -5.54936e-08 -1.78573e-08 -5.84111e-08 -3.25204e-08 -5.98959e-08 -4.77829e-08 -5.84803e-08 -6.50678e-08 -5.07151e-08 -8.11903e-08 -3.85414e-08 -8.89213e-08 -2.3407e-08 -8.9761e-08 -7.26596e-09 -8.13062e-08 -6.37555e-08 -1.38185e-07 -9.4899e-08 -1.21914e-07 -9.97669e-08 -1.04805e-07 -8.57906e-08 -9.7426e-08 -4.49313e-08 -1.00074e-07 -2.47651e-08 -1.11053e-07 -2.6942e-08 -1.21954e-07 -4.80848e-08 -1.27795e-07 -5.91882e-08 -1.34908e-07 -5.73723e-08 -1.36008e-07 -4.86682e-08 -1.40594e-07 -2.07348e-08 -1.50504e-07 -4.87282e-09 -1.4968e-07 -8.47552e-09 -1.29966e-07 -2.45991e-08 -1.04816e-07 -4.39415e-08 -8.19666e-08 -5.27416e-08 -5.78777e-08 -5.00273e-08 -2.70281e-08 -5.38137e-08 5.82189e-09 -7.05255e-08 3.46586e-08 -6.16918e-08 3.85519e-08 -1.46224e-08 3.85653e-08 1.10095e-08 4.14665e-08 2.9511e-08 5.04002e-08 4.33405e-08 5.15343e-08 6.19092e-08 3.59524e-08 6.85189e-08 1.18649e-08 6.11922e-08 -1.00352e-08 4.49418e-08 -2.5724e-08 2.90277e-08 -3.70258e-08 1.62809e-08 -4.50897e-08 3.07078e-09 -5.01584e-08 -1.27893e-08 -5.35618e-08 -2.91176e-08 -5.52568e-08 -4.60882e-08 -5.42208e-08 -6.61039e-08 -4.72686e-08 -8.81425e-08 -3.40651e-08 -1.02125e-07 -1.88705e-08 -1.04956e-07 -5.95642e-09 -9.42206e-08 -6.97123e-08 -7.5824e-08 -9.61684e-08 -8.26916e-08 -9.28996e-08 -8.8561e-08 -7.99215e-08 -8.05756e-08 -5.29169e-08 -7.41545e-08 -3.11863e-08 -7.08815e-08 -3.02149e-08 -8.3554e-08 -3.54122e-08 -9.86255e-08 -4.41169e-08 -1.16362e-07 -3.96361e-08 -1.18935e-07 -4.60959e-08 -1.11069e-07 -2.86013e-08 -1.24491e-07 8.54904e-09 -1.4069e-07 7.72369e-09 -1.25979e-07 -3.93106e-08 -9.97868e-08 -7.01333e-08 -7.44221e-08 -7.81062e-08 -5.94146e-08 -6.50345e-08 -5.16516e-08 -6.15765e-08 -4.05102e-08 -8.16668e-08 -2.74795e-08 -7.47228e-08 -1.47044e-08 -2.7398e-08 5.10072e-10 -4.20559e-09 2.19223e-08 8.09827e-09 4.45486e-08 2.07138e-08 6.29607e-08 4.34967e-08 5.7456e-08 7.40231e-08 4.37589e-08 7.48888e-08 2.94842e-08 5.92162e-08 1.43886e-08 4.41232e-08 -1.28686e-09 3.19561e-08 -1.56869e-08 1.74703e-08 -2.85862e-08 1.092e-10 -3.88931e-08 -1.88113e-08 -4.29829e-08 -4.19987e-08 -4.3491e-08 -6.55959e-08 -3.9157e-08 -9.24767e-08 -2.70496e-08 -1.14233e-07 -1.3313e-08 -1.18693e-07 -5.34063e-09 -1.02193e-07 -7.50534e-08 -7.72189e-08 -9.61944e-08 -8.43239e-08 -8.57948e-08 -9.11421e-08 -7.31032e-08 -9.05419e-08 -5.35169e-08 -9.07882e-08 -3.09401e-08 -9.38404e-08 -2.71627e-08 -1.03908e-07 -2.53452e-08 -1.21429e-07 -2.65955e-08 -1.34208e-07 -2.68576e-08 -1.44415e-07 -3.58886e-08 -1.34372e-07 -3.86448e-08 -1.20908e-07 -4.91439e-09 -1.1297e-07 -2.14552e-10 -1.05797e-07 -4.64837e-08 -8.89387e-08 -8.69913e-08 -7.10877e-08 -9.59573e-08 -7.05765e-08 -6.55455e-08 -8.71281e-08 -4.50244e-08 -9.37872e-08 -7.50073e-08 -9.37542e-08 -7.47558e-08 -7.60136e-08 -4.51391e-08 -4.58729e-08 -3.43468e-08 -1.2905e-08 -2.48702e-08 1.75884e-08 -9.77995e-09 3.79424e-08 2.31425e-08 4.67328e-08 6.52323e-08 4.87944e-08 7.28269e-08 4.75008e-08 6.05096e-08 4.5043e-08 4.65809e-08 4.31522e-08 3.38467e-08 3.82603e-08 2.23618e-08 2.98121e-08 8.55688e-09 1.75036e-08 -6.50325e-09 2.85592e-09 -2.73514e-08 -1.16827e-08 -5.10575e-08 -2.14119e-08 -8.27477e-08 -1.80055e-08 -1.17639e-07 -1.00518e-08 -1.26647e-07 -6.19159e-09 -1.06054e-07 -8.12452e-08 -2.21875e-07 -9.09036e-08 -2.15372e-07 -9.22971e-08 -2.05257e-07 -8.32185e-08 -1.94277e-07 -6.44973e-08 -1.82891e-07 -4.23258e-08 -1.82111e-07 -2.7943e-08 -1.83069e-07 -2.43875e-08 -1.87522e-07 -2.21431e-08 -1.87953e-07 -2.64268e-08 -1.85971e-07 -3.78711e-08 -1.82365e-07 -4.22506e-08 -1.5149e-07 -3.57883e-08 -1.22644e-07 -2.90602e-08 -1.13684e-07 -5.54435e-08 -1.07525e-07 -9.3151e-08 -1.08065e-07 -9.5417e-08 -1.24238e-07 -4.93729e-08 -1.39958e-07 -2.93049e-08 -1.44871e-07 -7.00938e-08 -1.4082e-07 -7.88069e-08 -1.23997e-07 -6.19631e-08 -1.04456e-07 -5.38879e-08 -7.93895e-08 -4.99373e-08 -4.7676e-08 -4.14937e-08 -1.29919e-08 -1.15417e-08 1.41832e-08 3.80569e-08 3.48583e-08 5.21515e-08 4.65378e-08 4.88298e-08 5.02279e-08 4.28906e-08 5.26598e-08 3.14148e-08 5.78785e-08 1.7143e-08 6.49016e-08 1.5336e-09 6.7649e-08 -9.25087e-09 6.01192e-08 -1.98215e-08 4.24984e-08 -3.34367e-08 1.63094e-08 -5.65586e-08 2.89973e-09 -1.0423e-07 -1.38579e-09 -1.22361e-07 -4.77681e-09 -1.02663e-07 -8.60221e-08 -5.0445e-07 -1.00471e-07 -4.87231e-07 -1.09516e-07 -4.63379e-07 -1.0707e-07 -4.37938e-07 -8.99395e-08 -4.10454e-07 -6.98097e-08 -3.82696e-07 -5.5701e-08 -3.5092e-07 -5.61634e-08 -3.10548e-07 -6.25157e-08 -2.68452e-07 -6.85227e-08 -2.29386e-07 -7.69375e-08 -1.95354e-07 -7.62815e-08 -1.74741e-07 -5.64016e-08 -1.60273e-07 -4.35281e-08 -1.59241e-07 -5.64745e-08 -1.66292e-07 -8.61003e-08 -1.75367e-07 -8.63423e-08 -1.89067e-07 -3.56727e-08 -1.95399e-07 -2.29735e-08 -1.89105e-07 -7.63874e-08 -1.76731e-07 -9.11814e-08 -1.6e-07 -7.86944e-08 -1.50741e-07 -6.31479e-08 -1.36499e-07 -6.41791e-08 -1.06971e-07 -7.10219e-08 -6.12096e-08 -5.73035e-08 -1.39861e-08 -9.1668e-09 1.16589e-08 2.65063e-08 2.97559e-08 3.07327e-08 4.24453e-08 3.02012e-08 4.97075e-08 2.41527e-08 5.87637e-08 8.0871e-09 7.08223e-08 -1.05249e-08 8.03222e-08 -1.87509e-08 8.27779e-08 -2.22774e-08 7.18434e-08 -2.25024e-08 4.6711e-08 -3.14263e-08 2.5906e-08 -8.34245e-08 1.08955e-08 -1.07351e-07 8.31573e-10 -9.26e-08 -8.51905e-08 -6.32339e-07 -1.12525e-07 -6.26433e-07 -1.15422e-07 -6.18392e-07 -1.15113e-07 -5.97452e-07 -1.1088e-07 -5.59244e-07 -1.08018e-07 -5.04981e-07 -1.09963e-07 -4.43497e-07 -1.17648e-07 -3.80036e-07 -1.25976e-07 -3.20361e-07 -1.28197e-07 -2.7436e-07 -1.22939e-07 -2.51836e-07 -9.88056e-08 -2.40241e-07 -6.79959e-08 -2.20748e-07 -6.30218e-08 -2.04567e-07 -7.26552e-08 -2.18242e-07 -7.24255e-08 -2.41677e-07 -6.2907e-08 -2.39451e-07 -3.78986e-08 -2.15147e-07 -4.72776e-08 -2.01526e-07 -9.00089e-08 -1.91257e-07 -1.0145e-07 -1.73974e-07 -9.59778e-08 -1.52298e-07 -8.48241e-08 -1.31256e-07 -8.52216e-08 -1.11543e-07 -9.07351e-08 -8.5633e-08 -8.3213e-08 -4.71328e-08 -4.7667e-08 -1.40573e-08 -6.56951e-09 9.96393e-09 6.71124e-09 2.88e-08 1.13652e-08 5.03128e-08 2.64002e-09 7.16992e-08 -1.32992e-08 8.31688e-08 -2.19947e-08 8.87208e-08 -2.43034e-08 8.31522e-08 -1.67093e-08 6.46268e-08 -3.97718e-09 4.75308e-08 -1.43304e-08 3.7987e-08 -7.38809e-08 2.29821e-08 -9.23466e-08 1.27292e-08 -8.23474e-08 -7.24615e-08 -6.53579e-07 -1.05378e-07 -6.59728e-07 -1.09273e-07 -6.61149e-07 -1.13692e-07 -6.46305e-07 -1.25724e-07 -6.15606e-07 -1.38716e-07 -5.79859e-07 -1.45711e-07 -5.49254e-07 -1.48254e-07 -5.23214e-07 -1.52016e-07 -4.93503e-07 -1.57908e-07 -4.58695e-07 -1.57748e-07 -4.23437e-07 -1.34063e-07 -3.9176e-07 -9.96737e-08 -3.69132e-07 -8.56497e-08 -3.50181e-07 -9.16066e-08 -3.15757e-07 -1.0685e-07 -2.77957e-07 -1.00706e-07 -2.32698e-07 -8.31584e-08 -2.00577e-07 -7.93988e-08 -1.95703e-07 -9.48822e-08 -1.96304e-07 -1.0085e-07 -1.90249e-07 -1.02033e-07 -1.69511e-07 -1.05562e-07 -1.47619e-07 -1.07114e-07 -1.35054e-07 -1.033e-07 -1.2512e-07 -9.31469e-08 -9.72119e-08 -7.55753e-08 -6.82623e-08 -3.55192e-08 -4.39728e-08 -1.75785e-08 -1.13365e-08 -2.12715e-08 2.95489e-08 -3.82457e-08 6.007e-08 -4.38204e-08 6.3068e-08 -2.49929e-08 5.73511e-08 -1.8587e-08 4.20913e-08 -1.45001e-09 3.67356e-08 1.37823e-09 5.18675e-08 -2.94623e-08 5.58298e-08 -7.78434e-08 4.23207e-08 -7.88378e-08 2.81016e-08 -6.81284e-08 -4.43598e-08 -6.53217e-07 -8.71065e-08 -6.70436e-07 -9.20549e-08 -6.8078e-07 -1.03348e-07 -6.73563e-07 -1.32942e-07 -6.55967e-07 -1.56312e-07 -6.40721e-07 -1.60957e-07 -6.31982e-07 -1.56993e-07 -6.25438e-07 -1.5856e-07 -6.0833e-07 -1.75015e-07 -5.84639e-07 -1.81439e-07 -5.53233e-07 -1.65469e-07 -5.17467e-07 -1.35439e-07 -4.70091e-07 -1.33026e-07 -4.09208e-07 -1.52489e-07 -3.46523e-07 -1.69535e-07 -2.91315e-07 -1.55915e-07 -2.51661e-07 -1.22812e-07 -2.30954e-07 -1.00106e-07 -2.29645e-07 -9.61907e-08 -2.33788e-07 -9.67064e-08 -2.35506e-07 -1.00316e-07 -2.2917e-07 -1.11899e-07 -2.13283e-07 -1.23e-07 -1.92914e-07 -1.23669e-07 -1.66435e-07 -1.19626e-07 -1.35598e-07 -1.06412e-07 -9.76095e-08 -7.35086e-08 -5.99936e-08 -5.51949e-08 -2.69594e-08 -5.4306e-08 -1.92551e-09 -6.32799e-08 9.59826e-09 -5.53445e-08 1.07642e-08 -2.61593e-08 6.8731e-09 -1.46965e-08 1.62054e-08 -1.07829e-08 4.86397e-08 -3.10564e-08 7.21233e-08 -5.29461e-08 6.87712e-08 -7.44915e-08 5.54575e-08 -6.55241e-08 3.79381e-08 -5.0609e-08 -6.42156e-09 -6.26187e-07 -8.67794e-08 -6.39749e-07 -7.84928e-08 -6.63027e-07 -8.0069e-08 -6.61737e-07 -1.34231e-07 -6.43758e-07 -1.74291e-07 -6.27674e-07 -1.77042e-07 -6.27458e-07 -1.5721e-07 -6.37302e-07 -1.48715e-07 -6.37301e-07 -1.75017e-07 -6.16039e-07 -2.02701e-07 -5.86383e-07 -1.95124e-07 -5.61681e-07 -1.60141e-07 -5.34527e-07 -1.60181e-07 -4.80436e-07 -2.0658e-07 -4.21974e-07 -2.27997e-07 -3.68698e-07 -2.0919e-07 -3.27782e-07 -1.63728e-07 -3.03157e-07 -1.24731e-07 -2.97521e-07 -1.01827e-07 -2.87776e-07 -1.06452e-07 -2.71218e-07 -1.16874e-07 -2.47022e-07 -1.36095e-07 -2.19433e-07 -1.50589e-07 -1.93689e-07 -1.49413e-07 -1.71348e-07 -1.41967e-07 -1.47241e-07 -1.30518e-07 -1.10819e-07 -1.09931e-07 -7.84559e-08 -8.75577e-08 -5.22272e-08 -8.05352e-08 -3.06465e-08 -8.48612e-08 -2.27351e-08 -6.32563e-08 -1.28204e-08 -3.60743e-08 -3.39509e-09 -2.41222e-08 1.35791e-08 -2.77572e-08 3.90186e-08 -5.64959e-08 5.90785e-08 -7.30061e-08 5.98798e-08 -7.52931e-08 4.10706e-08 -4.67151e-08 2.02655e-08 -2.98038e-08 1.38439e-08 -4.82555e-07 -5.15156e-08 -5.225e-07 -3.8548e-08 -5.65689e-07 -3.68795e-08 -5.83812e-07 -1.16108e-07 -5.5388e-07 -2.04224e-07 -5.17222e-07 -2.13699e-07 -5.20716e-07 -1.53716e-07 -5.75602e-07 -9.38301e-08 -6.25433e-07 -1.25185e-07 -6.05095e-07 -2.23039e-07 -5.6864e-07 -2.31579e-07 -5.5028e-07 -1.78501e-07 -5.27989e-07 -1.82472e-07 -4.74576e-07 -2.59993e-07 -4.19437e-07 -2.83136e-07 -3.70215e-07 -2.58413e-07 -3.39333e-07 -1.94611e-07 -3.09948e-07 -1.54116e-07 -2.73058e-07 -1.38717e-07 -2.3698e-07 -1.42531e-07 -2.11197e-07 -1.42657e-07 -1.89436e-07 -1.57856e-07 -1.69653e-07 -1.70371e-07 -1.55609e-07 -1.63457e-07 -1.47734e-07 -1.49842e-07 -1.35941e-07 -1.4231e-07 -1.17623e-07 -1.28249e-07 -9.41093e-08 -1.11072e-07 -7.17172e-08 -1.02927e-07 -5.96061e-08 -9.69725e-08 -5.14795e-08 -7.13829e-08 -3.00169e-08 -5.75368e-08 -6.29575e-09 -4.78434e-08 2.95045e-09 -3.70035e-08 2.57751e-09 -5.6123e-08 -2.83404e-09 -6.75947e-08 -2.28124e-08 -5.53152e-08 -4.565e-08 -2.38779e-08 -4.56878e-08 -2.97663e-08 -3.1844e-08 -3.24059e-07 -2.47331e-09 -3.29338e-07 -3.32685e-08 -3.12552e-07 -5.36665e-08 -3.31093e-07 -9.75679e-08 -3.34814e-07 -2.00504e-07 -3.45444e-07 -2.0307e-07 -3.584e-07 -1.4076e-07 -3.72845e-07 -7.9386e-08 -4.15893e-07 -8.21367e-08 -4.63254e-07 -1.75678e-07 -4.70718e-07 -2.24116e-07 -4.39303e-07 -2.09917e-07 -3.82347e-07 -2.39429e-07 -3.27523e-07 -3.14815e-07 -2.77944e-07 -3.32714e-07 -2.37523e-07 -2.98835e-07 -1.92054e-07 -2.40082e-07 -1.53839e-07 -1.92332e-07 -1.00953e-07 -1.91602e-07 -5.75053e-08 -1.85978e-07 -3.89212e-08 -1.61241e-07 -4.44422e-08 -1.52336e-07 -5.08327e-08 -1.6398e-07 -6.01412e-08 -1.54147e-07 -8.47657e-08 -1.25218e-07 -1.01395e-07 -1.25681e-07 -1.05726e-07 -1.23917e-07 -1.01935e-07 -1.14863e-07 -9.35006e-08 -1.11362e-07 -7.8588e-08 -1.11885e-07 -4.74806e-08 -1.0249e-07 -1.40135e-08 -9.1004e-08 -3.54908e-09 -5.83076e-08 7.29089e-09 -4.78431e-08 -1.98976e-09 -4.68421e-08 -1.65153e-08 -5.30692e-08 -2.94326e-08 -4.23982e-08 -3.91199e-08 -1.41909e-08 -3.76778e-08 -3.12086e-08 -6.95218e-08 -1.71485e-07 1.39039e-08 -1.63417e-07 -4.13375e-08 -1.07243e-07 -1.09841e-07 -7.45264e-08 -1.30285e-07 -1.256e-07 -1.4943e-07 -1.76276e-07 -1.52394e-07 -2.27654e-07 -8.93823e-08 -2.30814e-07 -7.62265e-08 -2.13007e-07 -9.99439e-08 -2.4174e-07 -1.46944e-07 -2.57255e-07 -2.08601e-07 -2.23733e-07 -2.43439e-07 -1.82142e-07 -2.8102e-07 -1.64028e-07 -3.32929e-07 -1.56942e-07 -3.398e-07 -1.46319e-07 -3.09458e-07 -7.32494e-08 -3.13153e-07 4.51348e-08 -3.10717e-07 1.39254e-07 -2.85722e-07 1.95935e-07 -2.42659e-07 1.92469e-07 -1.57775e-07 1.42854e-07 -1.02721e-07 9.70843e-08 -1.18209e-07 7.29883e-08 -1.30051e-07 3.66217e-08 -8.88502e-08 -2.74634e-08 -6.15965e-08 -6.46784e-08 -8.67021e-08 -8.29855e-08 -9.6556e-08 -9.09589e-08 -1.03389e-07 -8.90224e-08 -1.13822e-07 -7.48012e-08 -1.16712e-07 -5.86567e-08 -1.07148e-07 -3.13941e-08 -8.557e-08 2.64503e-09 -8.1882e-08 1.43991e-08 -5.85962e-08 1.5532e-08 -5.42023e-08 1.50527e-08 -4.19195e-08 1.63251e-08 -1.54635e-08 1.59546e-08 -3.08381e-08 -5.35668e-08 -7.59679e-08 1.68909e-09 -8.2104e-08 -3.52021e-08 -5.02173e-08 -1.41728e-07 -1.6372e-09 -1.78866e-07 9.73491e-09 -1.60803e-07 1.39283e-08 -1.56587e-07 3.65461e-08 -1.12e-07 7.46984e-08 -1.14379e-07 1.06082e-07 -1.31328e-07 1.25358e-07 -1.6622e-07 1.49457e-07 -2.327e-07 1.69689e-07 -2.6367e-07 1.8005e-07 -2.91381e-07 1.42353e-07 -2.95234e-07 8.84813e-08 -2.85929e-07 6.75844e-08 -2.88562e-07 1.06241e-07 -3.51811e-07 1.98875e-07 -4.0335e-07 2.98015e-07 -3.84861e-07 3.80198e-07 -3.24843e-07 4.29e-07 -2.06576e-07 3.8552e-07 -5.92413e-08 2.92415e-07 -2.51027e-08 2.19632e-07 -5.72674e-08 2.07596e-07 -7.68145e-08 1.69123e-07 -2.31241e-08 7.54569e-08 6.96266e-09 -1.64369e-08 -4.66269e-09 -6.20421e-08 -5.77839e-08 -7.90651e-08 -9.6799e-08 -8.25969e-08 -1.1318e-07 -8.02972e-08 -1.09448e-07 -6.41654e-08 -1.01702e-07 -6.05972e-08 -8.54502e-08 -5.54173e-08 -6.37762e-08 -4.1573e-08 -6.8047e-08 -2.81647e-08 -5.53283e-08 -1.15054e-08 -3.21232e-08 8.29172e-09 -5.06351e-08 -4.52747e-08 1.07111e-07 -8.60627e-08 1.77886e-07 -1.05976e-07 2.07429e-07 -1.71269e-07 2.35332e-07 -2.0677e-07 2.82135e-07 -2.07605e-07 3.22456e-07 -1.96908e-07 3.9718e-07 -1.86723e-07 4.68728e-07 -1.85927e-07 5.25265e-07 -1.87867e-07 5.67748e-07 -2.08702e-07 5.83486e-07 -2.48437e-07 5.93929e-07 -2.74113e-07 6.02432e-07 -2.99885e-07 6.04773e-07 -2.97573e-07 6.01574e-07 -2.82731e-07 5.98871e-07 -2.85859e-07 5.56239e-07 -3.0918e-07 5.17722e-07 -3.64833e-07 4.9942e-07 -3.66559e-07 5.23452e-07 -3.48874e-07 5.95349e-07 -2.78473e-07 6.63943e-07 -1.27835e-07 6.65701e-07 -2.68604e-08 5.48086e-07 6.03475e-08 4.11228e-07 6.00441e-08 3.43739e-07 4.43651e-08 2.95162e-07 5.55393e-08 2.17448e-07 7.30504e-08 1.2701e-07 3.26534e-08 4.72936e-08 -1.70823e-08 -1.95103e-09 -6.39347e-08 -3.59519e-08 -7.54464e-08 -6.28189e-08 -7.48345e-08 -6.80941e-08 -8.01751e-08 -6.30285e-08 -6.88421e-08 -6.18769e-08 -6.91987e-08 -4.31187e-08 -7.40866e-08 -3.75491e-09 -7.14872e-08 8.65582e-09 -6.30456e-08 -3.6619e-08 3.97476e-07 -2.0927e-07 5.16679e-07 -2.2518e-07 5.41465e-07 -1.96055e-07 5.71422e-07 -2.36726e-07 6.37823e-07 -2.74006e-07 6.96754e-07 -2.55839e-07 7.28156e-07 -2.18125e-07 7.41216e-07 -1.98986e-07 7.49079e-07 -1.9573e-07 7.50421e-07 -2.10046e-07 7.67667e-07 -2.65684e-07 7.86444e-07 -2.9289e-07 7.89544e-07 -3.02986e-07 7.90946e-07 -2.98976e-07 8.00979e-07 -2.92764e-07 8.18704e-07 -3.03583e-07 8.2234e-07 -3.12814e-07 8.06019e-07 -3.48512e-07 7.91685e-07 -3.52224e-07 7.73834e-07 -3.31023e-07 7.61179e-07 -2.65818e-07 7.89381e-07 -1.56037e-07 8.33907e-07 -7.13872e-08 7.56022e-07 1.38233e-07 5.6349e-07 2.52575e-07 4.08771e-07 1.99084e-07 3.20518e-07 1.43792e-07 2.4046e-07 1.53109e-07 2.06234e-07 6.68792e-08 1.54142e-07 3.50091e-08 1.08457e-07 -1.82501e-08 6.7851e-08 -3.48412e-08 2.53791e-08 -3.23628e-08 -3.85927e-09 -5.0937e-08 -1.21608e-08 -6.05408e-08 -1.05835e-08 -7.07762e-08 1.02092e-09 -8.56911e-08 1.36153e-08 -8.40817e-08 3.67077e-09 -5.31006e-08 -3.29486e-08 5.12963e-07 -2.52324e-07 5.57418e-07 -2.69636e-07 6.40627e-07 -2.79265e-07 7.05833e-07 -3.01932e-07 7.42469e-07 -3.10641e-07 7.79641e-07 -2.93011e-07 8.05741e-07 -2.44226e-07 8.25923e-07 -2.19167e-07 8.4382e-07 -2.13627e-07 8.55154e-07 -2.2138e-07 8.52065e-07 -2.62595e-07 8.70279e-07 -3.11104e-07 8.92813e-07 -3.2552e-07 9.18977e-07 -3.2514e-07 9.42011e-07 -3.15798e-07 9.47315e-07 -3.08888e-07 9.57522e-07 -3.23021e-07 9.44272e-07 -3.35262e-07 9.24737e-07 -3.32689e-07 9.09494e-07 -3.15779e-07 9.12345e-07 -2.68669e-07 9.07294e-07 -1.50985e-07 8.65432e-07 -2.9525e-08 8.53337e-07 1.50327e-07 7.32501e-07 3.73412e-07 4.96241e-07 4.35344e-07 2.89862e-07 3.50169e-07 2.11163e-07 2.31808e-07 1.59911e-07 1.18132e-07 1.15362e-07 7.95579e-08 9.81349e-08 -1.02357e-09 9.17082e-08 -2.84148e-08 6.97897e-08 -1.04446e-08 3.82692e-08 -1.94165e-08 2.43277e-08 -4.6599e-08 2.91842e-08 -7.56325e-08 1.57394e-08 -7.22466e-08 1.38816e-08 -8.22243e-08 9.33906e-09 -4.85583e-08 -2.36097e-08 6.64491e-07 -2.8782e-07 7.04801e-07 -3.09946e-07 7.45286e-07 -3.1975e-07 7.68164e-07 -3.2481e-07 7.79647e-07 -3.22124e-07 7.92524e-07 -3.05888e-07 8.20676e-07 -2.72378e-07 8.55197e-07 -2.53689e-07 8.81741e-07 -2.4017e-07 9.0393e-07 -2.43568e-07 9.30478e-07 -2.89144e-07 9.70267e-07 -3.50894e-07 1.00454e-06 -3.59787e-07 1.02254e-06 -3.43144e-07 1.03507e-06 -3.28334e-07 1.0542e-06 -3.28017e-07 1.05796e-06 -3.26773e-07 1.0418e-06 -3.19106e-07 1.00833e-06 -2.99217e-07 9.64636e-07 -2.72088e-07 9.2409e-07 -2.28123e-07 8.90718e-07 -1.17614e-07 8.35322e-07 2.58712e-08 8.22829e-07 1.6282e-07 8.06442e-07 3.89797e-07 6.95371e-07 5.46415e-07 4.83974e-07 5.61566e-07 2.79467e-07 4.36315e-07 1.46841e-07 2.50757e-07 9.05666e-08 1.35832e-07 5.0475e-08 3.90674e-08 3.49781e-08 -1.29182e-08 2.85419e-08 -4.00846e-09 2.18576e-08 -1.27319e-08 1.89697e-08 -4.37103e-08 2.44648e-08 -8.11272e-08 2.54336e-08 -7.32156e-08 9.72627e-09 -6.65172e-08 1.8194e-09 -4.0652e-08 -2.17904e-08 7.79324e-07 -3.159e-07 7.94119e-07 -3.24741e-07 8.01753e-07 -3.27384e-07 8.02251e-07 -3.25307e-07 7.99607e-07 -3.19481e-07 8.0135e-07 -3.0763e-07 8.23205e-07 -2.94232e-07 8.73083e-07 -3.03566e-07 9.31388e-07 -2.98475e-07 1.01713e-06 -3.29315e-07 1.0817e-06 -3.53712e-07 1.11215e-06 -3.8134e-07 1.1152e-06 -3.62843e-07 1.10354e-06 -3.31484e-07 1.1034e-06 -3.28193e-07 1.10069e-06 -3.25304e-07 1.09414e-06 -3.20231e-07 1.07713e-06 -3.02091e-07 1.04099e-06 -2.63074e-07 9.87693e-07 -2.18794e-07 9.33637e-07 -1.74066e-07 8.85371e-07 -6.93492e-08 8.12867e-07 9.83749e-08 7.69556e-07 2.06131e-07 7.88806e-07 3.70548e-07 7.77835e-07 5.57384e-07 7.00716e-07 6.38684e-07 5.21599e-07 6.15432e-07 3.08016e-07 4.64339e-07 1.80902e-07 2.62944e-07 1.24558e-07 9.54109e-08 1.00873e-07 1.07675e-08 8.66318e-08 1.02327e-08 5.76185e-08 1.62822e-08 4.76408e-08 -3.37316e-08 4.18331e-08 -7.53191e-08 2.31099e-08 -5.44926e-08 -8.69699e-09 -3.47106e-08 -1.3948e-08 -3.54015e-08 -3.57381e-08 7.9352e-07 -3.30188e-07 8.00888e-07 -3.32109e-07 8.03192e-07 -3.29687e-07 8.01141e-07 -3.23256e-07 7.93995e-07 -3.12336e-07 8.17538e-07 -3.31173e-07 8.62462e-07 -3.39156e-07 9.25746e-07 -3.6685e-07 1.00275e-06 -3.75477e-07 1.08786e-06 -4.14424e-07 1.1528e-06 -4.18654e-07 1.16496e-06 -3.93494e-07 1.14798e-06 -3.45872e-07 1.135e-06 -3.18503e-07 1.1265e-06 -3.1969e-07 1.11661e-06 -3.15417e-07 1.09431e-06 -2.97927e-07 1.05902e-06 -2.66801e-07 1.01875e-06 -2.22803e-07 9.76328e-07 -1.76375e-07 9.14323e-07 -1.12061e-07 8.48081e-07 -3.10826e-09 7.69349e-07 1.77106e-07 6.90514e-07 2.84966e-07 6.87998e-07 3.73064e-07 7.27754e-07 5.17629e-07 7.16668e-07 6.4977e-07 6.61656e-07 6.70443e-07 4.97648e-07 6.28347e-07 2.92731e-07 4.67861e-07 1.76044e-07 2.12097e-07 1.0647e-07 8.03424e-08 5.15957e-08 6.51071e-08 4.06117e-09 6.38176e-08 -1.07253e-08 -1.89445e-08 -2.102e-08 -6.50241e-08 -3.22122e-08 -4.33003e-08 -2.94832e-08 -3.74398e-08 -1.6625e-08 -4.82596e-08 -5.23624e-08 7.41735e-07 -3.38981e-07 7.43871e-07 -3.34244e-07 7.40125e-07 -3.2594e-07 7.55626e-07 -3.38756e-07 7.91563e-07 -3.48272e-07 8.47786e-07 -3.87396e-07 9.20571e-07 -4.11941e-07 1.00674e-06 -4.53019e-07 1.09198e-06 -4.60718e-07 1.12984e-06 -4.52285e-07 1.13622e-06 -4.25035e-07 1.13056e-06 -3.8783e-07 1.1256e-06 -3.40916e-07 1.1291e-06 -3.22002e-07 1.12743e-06 -3.18021e-07 1.11931e-06 -3.07296e-07 1.09572e-06 -2.74342e-07 1.06019e-06 -2.31266e-07 1.01388e-06 -1.7649e-07 9.58403e-07 -1.209e-07 8.88963e-07 -4.26214e-08 7.62421e-07 1.23433e-07 6.57417e-07 2.82112e-07 5.95901e-07 3.46481e-07 5.7128e-07 3.97685e-07 6.18151e-07 4.70758e-07 6.47553e-07 6.20368e-07 6.13033e-07 7.04962e-07 5.46294e-07 6.95085e-07 3.92055e-07 6.22099e-07 2.66934e-07 3.37218e-07 1.88217e-07 1.59059e-07 1.39648e-07 1.13676e-07 9.88126e-08 1.04653e-07 1.91875e-08 6.06805e-08 -4.97567e-08 3.91968e-09 -6.94056e-08 -2.36519e-08 -3.47616e-08 -7.20843e-08 -1.4308e-09 -8.159e-08 -5.37931e-08 6.56995e-07 -3.42187e-07 6.71858e-07 -3.49106e-07 7.21236e-07 -3.75318e-07 7.88682e-07 -4.062e-07 8.75336e-07 -4.34927e-07 9.66518e-07 -4.78579e-07 1.05127e-06 -4.96693e-07 1.09258e-06 -4.94332e-07 1.11303e-06 -4.81162e-07 1.07982e-06 -4.19072e-07 1.03734e-06 -3.8256e-07 1.0203e-06 -3.70793e-07 1.02028e-06 -3.40898e-07 1.02944e-06 -3.31155e-07 1.03118e-06 -3.19763e-07 1.01993e-06 -2.9605e-07 1.00578e-06 -2.60188e-07 9.96104e-07 -2.21593e-07 9.58556e-07 -1.38944e-07 8.09126e-07 2.85305e-08 5.98539e-07 1.67965e-07 4.27788e-07 2.94183e-07 3.54282e-07 3.55618e-07 3.37939e-07 3.62826e-07 3.55931e-07 3.79693e-07 4.08532e-07 4.18157e-07 4.72784e-07 5.56117e-07 4.6324e-07 7.14505e-07 4.20949e-07 7.37376e-07 3.3691e-07 7.06138e-07 2.35414e-07 4.38715e-07 1.80969e-07 2.13504e-07 1.44354e-07 1.50292e-07 1.00811e-07 1.48197e-07 3.24042e-08 1.29087e-07 -3.85071e-08 7.4831e-08 -5.963e-08 -2.52878e-09 -5.97843e-08 -7.19298e-08 -3.6385e-08 -1.04988e-07 -9.01785e-08 6.38755e-07 -3.80904e-07 6.95534e-07 -4.05884e-07 7.95301e-07 -4.75084e-07 9.05841e-07 -5.1674e-07 1.00705e-06 -5.36134e-07 1.06305e-06 -5.34583e-07 1.09071e-06 -5.24354e-07 1.08037e-06 -4.83989e-07 1.00386e-06 -4.04651e-07 9.43431e-07 -3.58642e-07 8.97498e-07 -3.36626e-07 8.6691e-07 -3.40206e-07 8.69495e-07 -3.43484e-07 8.76491e-07 -3.38152e-07 8.7696e-07 -3.20232e-07 8.65452e-07 -2.84542e-07 8.55809e-07 -2.50545e-07 7.96387e-07 -1.62171e-07 5.38886e-07 1.18559e-07 2.12153e-07 3.55264e-07 5.66446e-08 3.23474e-07 4.22733e-08 3.08555e-07 8.53461e-08 3.12545e-07 1.27665e-07 3.20506e-07 1.69341e-07 3.38018e-07 2.11467e-07 3.76032e-07 2.32895e-07 5.34688e-07 2.41208e-07 7.06192e-07 2.29125e-07 7.49458e-07 2.08264e-07 7.26998e-07 1.73642e-07 4.73335e-07 1.43597e-07 2.4355e-07 1.00078e-07 1.93811e-07 6.61328e-08 1.82143e-07 2.97491e-08 1.65471e-07 -2.30026e-08 1.27582e-07 -6.47295e-08 3.9198e-08 -8.88597e-08 -4.77993e-08 -4.40621e-08 -1.49786e-07 -1.34241e-07 7.27557e-07 -4.84292e-07 8.47648e-07 -5.25975e-07 9.55605e-07 -5.83039e-07 1.02684e-06 -5.87972e-07 1.05908e-06 -5.68383e-07 1.0626e-06 -5.38094e-07 1.00528e-06 -4.67045e-07 8.81193e-07 -3.59899e-07 7.71506e-07 -2.94964e-07 7.05518e-07 -2.92654e-07 6.98616e-07 -3.29726e-07 7.10474e-07 -3.52065e-07 7.20048e-07 -3.53056e-07 7.35379e-07 -3.53483e-07 7.56638e-07 -3.41492e-07 7.49058e-07 -2.76962e-07 6.25418e-07 -1.26905e-07 4.16481e-07 4.67635e-08 1.38465e-07 3.96573e-07 -4.19883e-08 5.35717e-07 -6.0331e-08 3.41817e-07 -3.87451e-08 2.86969e-07 -8.17735e-09 2.81979e-07 2.39212e-08 2.88408e-07 4.83545e-08 3.13584e-07 5.22738e-08 3.72113e-07 6.4494e-08 5.22468e-07 9.63424e-08 6.74343e-07 1.19364e-07 7.26437e-07 1.42218e-07 7.04144e-07 1.51639e-07 4.63915e-07 1.32013e-07 2.63176e-07 9.22921e-08 2.33532e-07 8.3444e-08 1.9099e-07 7.5392e-08 1.73522e-07 5.85325e-08 1.44441e-07 3.63919e-08 6.13385e-08 -1.54792e-08 4.0721e-09 -1.38987e-08 -1.51367e-07 -1.4814e-07 8.56734e-07 -6.18676e-07 9.6036e-07 -6.29601e-07 1.01281e-06 -6.35486e-07 1.03079e-06 -6.05951e-07 9.96161e-07 -5.33758e-07 8.81606e-07 -4.23539e-07 7.2708e-07 -3.12518e-07 6.0021e-07 -2.33031e-07 5.63295e-07 -2.58048e-07 5.77412e-07 -3.0677e-07 6.0585e-07 -3.58164e-07 6.22521e-07 -3.68737e-07 6.29008e-07 -3.59544e-07 6.12681e-07 -3.37155e-07 5.2841e-07 -2.57221e-07 4.24908e-07 -1.73459e-07 3.02207e-07 -4.2045e-09 1.04949e-07 2.44024e-07 -4.90449e-08 5.50566e-07 -6.5263e-08 5.51934e-07 -3.84947e-08 3.15049e-07 -3.55535e-08 2.84028e-07 -3.1725e-08 2.7815e-07 -2.45173e-08 2.81201e-07 -2.33157e-08 3.12382e-07 -4.1341e-08 3.90138e-07 -4.12967e-08 5.22422e-07 -2.75962e-09 6.35804e-07 7.29063e-08 6.5077e-07 1.43231e-07 6.3382e-07 1.73452e-07 4.33694e-07 1.5627e-07 2.80358e-07 1.29826e-07 2.59977e-07 7.95124e-08 2.41304e-07 2.68309e-08 2.26203e-07 -9.05482e-09 1.80327e-07 -4.52912e-08 9.75748e-08 -1.88537e-08 -2.23657e-08 -1.75725e-08 -1.52649e-07 -1.65712e-07 9.05695e-07 -6.95173e-07 9.35994e-07 -6.59899e-07 9.11437e-07 -6.10929e-07 8.34296e-07 -5.2881e-07 7.04173e-07 -4.03635e-07 5.6353e-07 -2.82898e-07 4.57674e-07 -2.06661e-07 4.43545e-07 -2.18901e-07 4.57897e-07 -2.724e-07 4.8595e-07 -3.34824e-07 4.93143e-07 -3.65357e-07 4.68158e-07 -3.43753e-07 3.94586e-07 -2.85973e-07 2.93138e-07 -2.35708e-07 1.58632e-07 -1.22717e-07 2.29281e-08 -3.77551e-08 -6.62139e-08 8.49359e-08 -1.67758e-07 3.45569e-07 -1.36369e-07 5.19179e-07 -6.58592e-08 4.81425e-07 -4.40778e-08 2.93267e-07 -4.55852e-08 2.85534e-07 -5.44817e-08 2.87046e-07 -6.07525e-08 2.87471e-07 -6.34268e-08 3.15056e-07 -7.2342e-08 3.99053e-07 -7.17927e-08 5.21872e-07 -3.47416e-08 5.98753e-07 6.85658e-08 5.47464e-07 1.62888e-07 5.39498e-07 1.8622e-07 4.10362e-07 1.59893e-07 3.06685e-07 1.24138e-07 2.95731e-07 6.97472e-08 2.95695e-07 3.46732e-08 2.61277e-07 8.96049e-09 2.0604e-07 -3.97201e-08 1.46256e-07 -2.2255e-08 -3.98307e-08 -2.52708e-08 -1.49633e-07 -1.90983e-07 7.56489e-07 -6.79556e-07 6.80004e-07 -5.83414e-07 5.73179e-07 -5.04104e-07 4.96179e-07 -4.51812e-07 4.2809e-07 -3.35546e-07 3.78471e-07 -2.3328e-07 3.52055e-07 -1.80246e-07 3.61473e-07 -2.28318e-07 3.49071e-07 -2.59997e-07 3.09459e-07 -2.95212e-07 2.36437e-07 -2.92335e-07 1.33152e-07 -2.40469e-07 3.73037e-08 -1.90125e-07 -6.89635e-08 -1.29441e-07 -1.99288e-07 7.60564e-09 -2.96502e-07 5.94569e-08 -3.57743e-07 1.46174e-07 -3.39945e-07 3.27771e-07 -2.42769e-07 4.22005e-07 -1.51374e-07 3.90033e-07 -1.15113e-07 2.57007e-07 -1.0192e-07 2.72342e-07 -1.05038e-07 2.90165e-07 -9.47457e-08 2.77178e-07 -7.46442e-08 2.94954e-07 -5.90943e-08 3.83503e-07 -2.07568e-08 4.83534e-07 4.18964e-08 5.36099e-07 9.80303e-08 4.9133e-07 1.59257e-07 4.78272e-07 1.69932e-07 3.99688e-07 1.30048e-07 3.46569e-07 8.92419e-08 3.36538e-07 6.22461e-08 3.2269e-07 4.62252e-08 2.77298e-07 -6.49559e-09 2.5876e-07 -8.81119e-08 2.27872e-07 -9.01494e-08 -3.77936e-08 -5.43803e-08 -1.85402e-07 -2.45364e-07 4.63475e-07 -6.13264e-07 4.269e-07 -5.46839e-07 4.02994e-07 -4.80198e-07 3.6886e-07 -4.17677e-07 3.36344e-07 -3.0303e-07 2.40638e-07 -1.37573e-07 2.5496e-07 -1.94567e-07 2.28325e-07 -2.01683e-07 1.76991e-07 -2.08664e-07 1.1729e-07 -2.35511e-07 1.63079e-08 -1.91354e-07 -9.50763e-08 -1.29085e-07 -1.70425e-07 -1.14777e-07 -2.65553e-07 -3.4313e-08 -3.08088e-07 5.01414e-08 -3.58591e-07 1.09959e-07 -4.14731e-07 2.02314e-07 -3.72404e-07 2.85441e-07 -2.79325e-07 3.28922e-07 -2.12696e-07 3.23401e-07 -2.26436e-07 2.70746e-07 -1.7602e-07 2.21927e-07 -1.22428e-07 2.36572e-07 -7.79732e-08 2.32723e-07 -5.54156e-08 2.72396e-07 -3.13679e-08 3.59455e-07 1.38611e-08 4.38305e-07 6.89425e-08 4.81018e-07 9.10354e-08 4.69237e-07 1.27763e-07 4.41545e-07 1.26255e-07 4.01196e-07 8.16002e-08 3.91224e-07 5.75742e-08 3.60563e-07 5.47862e-08 3.25478e-07 2.85888e-08 3.03496e-07 -2.41862e-08 3.11536e-07 -5.06567e-08 2.54343e-07 -9.23963e-08 3.94579e-09 -6.51439e-08 -2.12655e-07 -3.10507e-07 3.40887e-07 -5.91155e-07 3.40148e-07 -5.461e-07 3.63869e-07 -5.03918e-07 2.98398e-07 -3.52207e-07 1.43207e-07 -1.4784e-07 1.42186e-07 -1.36553e-07 1.01088e-07 -1.53469e-07 2.57093e-08 -1.26304e-07 -4.30847e-08 -1.3987e-07 -1.06622e-07 -1.71975e-07 -1.38532e-07 -1.59445e-07 -1.61807e-07 -1.0581e-07 -2.10857e-07 -6.57276e-08 -2.26612e-07 -1.85588e-08 -2.41724e-07 6.52526e-08 -2.5311e-07 1.21345e-07 -2.40379e-07 1.89585e-07 -2.00705e-07 2.45769e-07 -1.25384e-07 2.53603e-07 -1.00773e-07 2.98791e-07 -1.20869e-07 2.90842e-07 -9.88141e-08 1.99873e-07 -4.92321e-08 1.86989e-07 -2.92499e-08 2.1274e-07 -3.13792e-08 2.74524e-07 -2.44062e-08 3.52482e-07 -3.99728e-09 4.17896e-07 2.72919e-08 4.49729e-07 5.11017e-08 4.45427e-07 6.61379e-08 4.26508e-07 2.72698e-08 4.40064e-07 1.48188e-08 4.03675e-07 2.10644e-08 3.54317e-07 1.62928e-08 3.3025e-07 2.07858e-08 2.99004e-07 4.02621e-08 2.92061e-07 5.33724e-08 2.41233e-07 -5.17554e-08 1.09074e-07 -2.8227e-08 -2.36183e-07 -3.38734e-07 2.77332e-07 -5.69307e-07 2.87402e-07 -5.5617e-07 1.27649e-07 -3.44166e-07 -1.33721e-07 -9.08378e-08 -2.25137e-07 -5.64256e-08 -2.35833e-07 -1.25857e-07 -2.55769e-07 -1.33532e-07 -2.47984e-07 -1.34089e-07 -2.3061e-07 -1.57243e-07 -2.34463e-07 -1.68121e-07 -2.45507e-07 -1.48401e-07 -2.54075e-07 -9.72428e-08 -2.63449e-07 -5.63539e-08 -2.58517e-07 -2.34923e-08 -2.33545e-07 4.02803e-08 -2.12704e-07 1.00503e-07 -1.81475e-07 1.58354e-07 -1.47415e-07 2.11707e-07 -1.20074e-07 2.26262e-07 -7.02757e-08 2.48992e-07 -2.32212e-08 2.43787e-07 -2.64912e-08 2.03143e-07 -3.38689e-08 1.94368e-07 -3.7529e-08 2.164e-07 -4.96777e-08 2.86672e-07 -6.06239e-08 3.63428e-07 -5.50352e-08 4.12307e-07 -3.60066e-08 4.307e-07 -3.21061e-08 4.41527e-07 -6.05626e-08 4.54965e-07 -9.69833e-08 4.76484e-07 -8.87804e-08 3.95472e-07 -8.65436e-08 3.52081e-07 -5.78318e-08 3.01539e-07 9.30297e-09 2.31869e-07 8.95985e-08 2.11765e-07 1.48591e-07 1.8224e-07 7.85591e-08 1.79106e-07 5.71516e-08 -2.14776e-07 -2.81583e-07 2.72779e-07 -5.40882e-07 1.12535e-07 -3.95927e-07 -1.85365e-07 -4.62686e-08 -3.82344e-07 1.06138e-07 -4.20393e-07 -1.83774e-08 -4.51813e-07 -9.44372e-08 -4.54858e-07 -1.30487e-07 -4.26226e-07 -1.62721e-07 -3.89166e-07 -1.94303e-07 -3.67881e-07 -1.89406e-07 -3.60901e-07 -1.55382e-07 -3.64269e-07 -9.38742e-08 -3.62581e-07 -5.80426e-08 -3.58654e-07 -2.74186e-08 -3.42243e-07 2.38689e-08 -3.18424e-07 7.66849e-08 -2.85458e-07 1.25388e-07 -2.53385e-07 1.79635e-07 -2.46348e-07 2.19225e-07 -2.35737e-07 2.3838e-07 -1.6072e-07 1.68769e-07 -8.37734e-08 1.26196e-07 -4.82429e-08 1.58837e-07 -6.29395e-08 2.31097e-07 -9.59329e-08 3.19665e-07 -1.21395e-07 3.88889e-07 -1.3632e-07 4.27233e-07 -1.56586e-07 4.50965e-07 -1.92503e-07 4.77444e-07 -2.27646e-07 4.90108e-07 -2.20659e-07 4.69498e-07 -2.09414e-07 3.84227e-07 -2.00889e-07 3.43557e-07 -1.42009e-07 2.42659e-07 -6.7409e-08 1.57269e-07 8.42404e-09 1.35932e-07 -5.99842e-09 1.96663e-07 2.77569e-09 1.70333e-07 2.6275e-08 -2.38273e-07 -2.55308e-07 1.19685e-07 -4.36775e-07 -1.17321e-07 -1.5892e-07 -2.46232e-07 8.26392e-08 -3.13258e-07 1.7316e-07 -3.63499e-07 3.18636e-08 -4.10186e-07 -4.77512e-08 -4.56024e-07 -8.4649e-08 -5.22352e-07 -9.63923e-08 -5.11168e-07 -2.05486e-07 -4.85187e-07 -2.15387e-07 -4.5733e-07 -1.83239e-07 -4.49461e-07 -1.01743e-07 -4.44496e-07 -6.30092e-08 -4.34152e-07 -3.77634e-08 -4.07345e-07 -2.93816e-09 -3.63822e-07 3.31616e-08 -3.09742e-07 7.13069e-08 -2.74177e-07 1.4407e-07 -2.56384e-07 2.01433e-07 -2.23086e-07 2.05084e-07 -1.66826e-07 1.12509e-07 -1.35886e-07 9.52546e-08 -1.21093e-07 1.44045e-07 -1.30123e-07 2.40127e-07 -1.71975e-07 3.61517e-07 -2.18033e-07 4.34947e-07 -2.59659e-07 4.68859e-07 -3.04084e-07 4.95391e-07 -3.29929e-07 5.03289e-07 -3.24631e-07 4.84809e-07 -2.77292e-07 4.22159e-07 -2.65161e-07 3.72095e-07 -2.16873e-07 2.95269e-07 -1.27227e-07 1.53013e-07 -7.13938e-08 1.01437e-07 -6.06542e-08 1.25192e-07 -6.58296e-08 2.01837e-07 6.61745e-08 3.83276e-08 4.62651e-08 -2.18364e-07 -2.09043e-07 1.78502e-08 -3.08586e-07 -7.67224e-08 -6.4351e-08 -8.81479e-08 9.40624e-08 -1.59968e-07 2.44978e-07 -2.71754e-07 1.4365e-07 -3.35475e-07 1.59697e-08 -4.16262e-07 -3.86154e-09 -5.47175e-07 3.4521e-08 -5.6105e-07 -1.91613e-07 -5.36021e-07 -2.40416e-07 -5.12064e-07 -2.07196e-07 -4.91008e-07 -1.22799e-07 -4.79439e-07 -7.45785e-08 -4.65076e-07 -5.21258e-08 -4.32512e-07 -3.5501e-08 -3.83609e-07 -1.57405e-08 -3.25279e-07 1.29765e-08 -2.77378e-07 9.61673e-08 -2.21052e-07 1.45105e-07 -1.55034e-07 1.39064e-07 -1.4218e-07 9.96556e-08 -1.6706e-07 1.20134e-07 -2.18785e-07 1.95769e-07 -2.8798e-07 3.09322e-07 -3.53032e-07 4.26568e-07 -3.89197e-07 4.71113e-07 -4.11595e-07 4.91256e-07 -4.15905e-07 4.99701e-07 -3.85343e-07 4.72728e-07 -3.17275e-07 4.16741e-07 -2.61838e-07 3.66722e-07 -2.28736e-07 3.38994e-07 -1.54596e-07 2.21128e-07 -9.92545e-08 9.76713e-08 -1.1373e-07 1.15912e-07 -1.71606e-07 1.83069e-07 -1.59278e-07 1.8951e-07 1.31907e-08 -1.3414e-07 7.17681e-09 -2.12351e-07 -2.01866e-07 -1.37851e-07 -2.23409e-07 -1.23409e-07 -7.87973e-08 -1.04859e-07 7.55121e-08 -9.15325e-08 2.31654e-07 -6.0042e-08 1.1216e-07 -6.70977e-08 2.30259e-08 -2.07459e-07 1.365e-07 -3.56751e-07 1.83814e-07 -5.86194e-07 3.78314e-08 -5.47777e-07 -2.78833e-07 -5.28727e-07 -2.26247e-07 -5.00526e-07 -1.50999e-07 -4.85978e-07 -8.91274e-08 -4.72998e-07 -6.51062e-08 -4.54725e-07 -5.37743e-08 -4.28586e-07 -4.1879e-08 -3.9308e-07 -2.25292e-08 -3.33818e-07 3.69071e-08 -2.75581e-07 8.68677e-08 -2.41043e-07 1.04525e-07 -2.73805e-07 1.32416e-07 -3.51023e-07 1.97352e-07 -4.45983e-07 2.90728e-07 -5.28778e-07 3.92118e-07 -5.55519e-07 4.5331e-07 -5.55244e-07 4.70838e-07 -5.32937e-07 4.68949e-07 -4.67562e-07 4.34326e-07 -3.48864e-07 3.5403e-07 -2.4015e-07 3.08028e-07 -1.71854e-07 2.98426e-07 -1.08533e-07 2.75673e-07 -4.99306e-08 1.62526e-07 -7.57511e-08 1.23492e-07 -1.23415e-07 1.63575e-07 -1.07704e-07 1.67357e-07 9.751e-09 7.20546e-08 3.26051e-08 -1.56994e-07 1.0955e-08 -1.90701e-07 -1.90911e-07 -1.27662e-07 -2.11873e-07 -1.13377e-07 -9.30855e-08 -1.00123e-07 6.22578e-08 -7.54905e-09 1.3908e-07 6.09437e-08 4.36665e-08 5.11678e-08 3.28015e-08 7.28325e-09 1.80385e-07 -1.39599e-07 3.30696e-07 -3.0451e-07 2.02744e-07 -4.67651e-07 -1.15692e-07 -5.08996e-07 -1.84902e-07 -4.8803e-07 -1.71965e-07 -4.66262e-07 -1.10895e-07 -4.60108e-07 -7.12597e-08 -4.57317e-07 -5.65648e-08 -4.57052e-07 -4.2144e-08 -4.51132e-07 -2.8449e-08 -4.21397e-07 7.17235e-09 -3.91331e-07 5.68022e-08 -3.99236e-07 1.1243e-07 -4.51713e-07 1.84893e-07 -5.22532e-07 2.68169e-07 -5.79749e-07 3.47944e-07 -6.06049e-07 4.18418e-07 -6.0304e-07 4.503e-07 -5.88971e-07 4.56768e-07 -5.38931e-07 4.18909e-07 -3.95524e-07 2.90919e-07 -2.47342e-07 2.05848e-07 -1.63116e-07 2.23801e-07 -1.31062e-07 2.66372e-07 -7.1091e-08 2.15702e-07 -8.97437e-08 1.81178e-07 -1.55991e-07 1.89739e-07 -1.57049e-07 1.64632e-07 -7.93212e-08 8.96275e-08 3.61088e-08 -4.33758e-08 2.49477e-08 -1.45834e-07 7.27622e-09 -1.73029e-07 -1.83634e-07 -8.94548e-08 -2.21803e-07 -1.21205e-07 -6.13356e-08 -1.27711e-07 6.87635e-08 -1.15587e-07 1.26955e-07 -8.3289e-08 1.13685e-08 -4.01052e-08 -1.03819e-08 -7.83736e-08 2.18653e-07 -1.76317e-07 4.28641e-07 -2.84026e-07 3.10456e-07 -3.85918e-07 -1.37997e-08 -4.39845e-07 -1.30975e-07 -4.47777e-07 -1.64033e-07 -4.29639e-07 -1.29033e-07 -4.16093e-07 -8.48056e-08 -4.24133e-07 -4.85245e-08 -4.40265e-07 -2.60124e-08 -4.55857e-07 -1.28568e-08 -4.55493e-07 6.80729e-09 -4.5518e-07 5.6488e-08 -4.82047e-07 1.39296e-07 -5.2324e-07 2.26086e-07 -5.5822e-07 3.03148e-07 -5.80351e-07 3.70076e-07 -5.80926e-07 4.18992e-07 -5.62651e-07 4.32026e-07 -5.21267e-07 4.15384e-07 -4.41308e-07 3.38951e-07 -3.52406e-07 2.02017e-07 -2.83749e-07 1.37191e-07 -1.81569e-07 1.21621e-07 -7.06832e-08 1.55486e-07 -3.13792e-08 1.76398e-07 -4.24676e-08 1.92267e-07 -5.46614e-08 2.01933e-07 -3.00473e-08 1.40019e-07 7.18401e-09 5.23967e-08 1.79127e-08 -5.41046e-08 1.34612e-08 -1.41383e-07 9.93474e-09 -1.69502e-07 -1.737e-07 -5.19988e-08 -2.18059e-07 -6.38044e-08 -4.95305e-08 -2.87653e-08 3.37231e-08 2.98243e-08 6.83666e-08 -4.44712e-08 8.56646e-08 -1.19832e-07 6.4979e-08 -1.66914e-07 2.65737e-07 -1.30196e-07 3.91924e-07 -1.69839e-07 3.50098e-07 -2.82955e-07 9.93158e-08 -3.96603e-07 -1.73264e-08 -4.50197e-07 -1.10438e-07 -4.14358e-07 -1.64871e-07 -3.90181e-07 -1.08983e-07 -3.86879e-07 -5.18258e-08 -3.9984e-07 -1.30514e-08 -4.3155e-07 1.8853e-08 -4.59611e-07 3.48693e-08 -4.84797e-07 8.1672e-08 -5.10012e-07 1.6451e-07 -5.3058e-07 2.46654e-07 -5.3496e-07 3.07527e-07 -5.25092e-07 3.60206e-07 -4.91496e-07 3.85395e-07 -4.26783e-07 3.67312e-07 -3.36268e-07 3.24869e-07 -2.57077e-07 2.59759e-07 -2.18191e-07 1.63131e-07 -1.47761e-07 6.67612e-08 -6.74453e-08 4.13051e-08 1.91294e-08 6.8911e-08 7.92365e-08 1.16291e-07 1.33656e-07 1.37848e-07 1.93774e-07 1.41814e-07 2.09728e-07 1.24064e-07 1.87531e-07 7.45939e-08 1.43308e-07 -9.88219e-09 9.99377e-08 -9.8012e-08 5.04094e-08 -1.19974e-07 -1.2329e-07 -1.64262e-07 -1.54544e-07 -1.84385e-07 -2.94086e-08 -1.66194e-07 1.55313e-08 -1.21197e-07 2.3372e-08 -8.71203e-08 5.15899e-08 -1.00084e-07 7.7944e-08 -5.03251e-08 2.15978e-07 4.48242e-08 2.96774e-07 1.31848e-07 2.63074e-07 1.03456e-07 1.27707e-07 -5.74499e-08 1.4358e-07 -2.27707e-07 5.98203e-08 -3.29658e-07 -6.29201e-08 -3.68882e-07 -6.97584e-08 -3.83988e-07 -3.67204e-08 -3.97393e-07 3.52857e-10 -4.24621e-07 4.6081e-08 -4.6718e-07 7.74284e-08 -5.00087e-07 1.14579e-07 -5.29169e-07 1.93592e-07 -5.30656e-07 2.48141e-07 -4.97604e-07 2.74475e-07 -4.36372e-07 2.98975e-07 -3.61573e-07 3.10595e-07 -2.90252e-07 2.95992e-07 -2.06456e-07 2.41073e-07 -1.23888e-07 1.77192e-07 -7.3297e-08 1.12541e-07 -2.27192e-08 1.61829e-08 2.27475e-08 -4.16227e-09 8.30423e-08 8.61592e-09 1.17059e-07 8.22741e-08 1.68924e-07 8.59835e-08 2.21162e-07 8.95749e-08 2.44843e-07 1.00382e-07 2.62234e-07 5.72022e-08 2.5286e-07 -5.08401e-10 1.88376e-07 -3.35274e-08 1.02899e-07 -3.44962e-08 -2.03914e-08 -3.7774e-07 -1.34013e-07 -3.4664e-07 -6.05082e-08 -3.02673e-07 -2.8435e-08 -2.64313e-07 -1.49858e-08 -2.10937e-07 -1.78374e-09 -1.36295e-07 3.30376e-09 1.17747e-08 6.79085e-08 1.34518e-07 1.74029e-07 1.95417e-07 2.02173e-07 2.09155e-07 1.13968e-07 2.19307e-07 1.33425e-07 1.03796e-07 1.75331e-07 -9.32546e-08 1.34131e-07 -2.47227e-07 8.42136e-08 -3.05105e-07 2.11581e-08 -3.42347e-07 3.75956e-08 -3.91372e-07 9.51064e-08 -4.49112e-07 1.35168e-07 -4.93652e-07 1.59119e-07 -5.22433e-07 2.22373e-07 -5.27907e-07 2.53614e-07 -5.10238e-07 2.56805e-07 -4.62188e-07 2.50923e-07 -4.08359e-07 2.56767e-07 -3.32654e-07 2.20286e-07 -2.71239e-07 1.79657e-07 -2.25202e-07 1.31155e-07 -1.53639e-07 4.09784e-08 -8.58746e-08 -5.1581e-08 -1.05099e-09 -8.89858e-08 1.10325e-07 -1.02761e-07 2.07113e-07 -1.4514e-08 2.15926e-07 7.71706e-08 2.05398e-07 1.00102e-07 2.36011e-07 6.97701e-08 2.61413e-07 3.18006e-08 2.65112e-07 -4.20719e-09 2.18579e-07 1.30047e-08 1.31246e-07 5.28362e-08 1.10855e-07 -4.65083e-07 -9.4734e-08 -4.45913e-07 -7.96772e-08 -3.94487e-07 -7.98598e-08 -3.18921e-07 -9.05524e-08 -2.53342e-07 -6.73628e-08 -2.06708e-07 -4.33314e-08 -9.50108e-08 -4.37901e-08 8.53262e-08 -6.31012e-09 2.38276e-07 4.92216e-08 2.54541e-07 9.77024e-08 2.09675e-07 1.78291e-07 1.28557e-07 2.56449e-07 1.37068e-07 1.25619e-07 -3.93576e-08 2.60639e-07 -2.10578e-07 1.92378e-07 -2.58847e-07 8.58653e-08 -2.98508e-07 1.34768e-07 -3.63107e-07 1.99767e-07 -4.24585e-07 2.20597e-07 -4.45067e-07 2.42856e-07 -4.49068e-07 2.57614e-07 -4.52736e-07 2.60472e-07 -4.39894e-07 2.38082e-07 -3.96119e-07 2.12993e-07 -3.51612e-07 1.75779e-07 -3.17942e-07 1.45987e-07 -2.94229e-07 1.07441e-07 -2.44629e-07 -8.62141e-09 -1.86136e-07 -1.10073e-07 -9.8405e-08 -1.76716e-07 -8.47965e-09 -1.92686e-07 8.45142e-08 -1.07508e-07 7.60995e-08 8.55848e-08 5.00952e-08 1.26106e-07 2.07467e-08 9.91189e-08 1.01817e-08 4.23655e-08 3.14242e-08 -2.54499e-08 4.388e-08 5.49192e-10 1.55299e-08 8.11865e-08 1.26384e-07 -4.4138e-07 -3.4631e-08 -4.65502e-07 -5.55546e-08 -4.75497e-07 -6.98648e-08 -4.69265e-07 -9.67845e-08 -4.25873e-07 -1.10754e-07 -3.54838e-07 -1.14367e-07 -2.88274e-07 -1.10354e-07 -2.07744e-07 -8.68406e-08 -8.06525e-08 -7.78698e-08 7.36067e-09 9.69005e-09 5.95073e-08 1.26145e-07 1.29184e-07 1.86774e-07 1.11144e-07 1.4366e-07 6.53148e-08 3.06469e-07 -6.97693e-08 3.27462e-07 -1.63396e-07 1.79492e-07 -1.67223e-07 1.38595e-07 -1.59236e-07 1.91781e-07 -2.14557e-07 2.75917e-07 -2.45698e-07 2.73997e-07 -2.51047e-07 2.62964e-07 -2.40883e-07 2.50308e-07 -2.23745e-07 2.20944e-07 -1.95475e-07 1.84722e-07 -1.67331e-07 1.47636e-07 -1.25285e-07 1.03942e-07 -6.30565e-08 4.52128e-08 -4.39424e-08 -2.77355e-08 -2.31915e-08 -1.30824e-07 -2.95047e-08 -1.70403e-07 -3.97144e-08 -1.82477e-07 -8.41283e-09 -1.3881e-07 -9.15109e-09 8.63229e-08 -3.04047e-08 1.47359e-07 -4.85068e-08 1.17221e-07 -7.42903e-08 6.81487e-08 -7.09446e-08 -2.87957e-08 -4.25554e-08 -2.78399e-08 -2.19657e-08 6.05968e-08 1.04419e-07 -2.61381e-07 6.62818e-08 -3.07456e-07 -9.48011e-09 -3.57035e-07 -2.02855e-08 -3.84735e-07 -6.90843e-08 -3.81733e-07 -1.13757e-07 -3.58215e-07 -1.37884e-07 -3.22463e-07 -1.46105e-07 -2.73942e-07 -1.35362e-07 -2.12929e-07 -1.38882e-07 -1.16034e-07 -8.72051e-08 2.23667e-08 -1.22553e-08 1.37084e-07 7.20593e-08 1.14903e-07 1.65839e-07 1.28852e-07 2.92521e-07 1.20307e-07 3.36008e-07 6.07638e-08 2.39035e-07 6.09509e-08 1.38407e-07 7.27927e-08 1.7994e-07 8.17986e-08 2.66911e-07 8.10913e-08 2.74704e-07 8.2882e-08 2.61174e-07 1.16833e-07 2.16358e-07 1.70852e-07 1.66925e-07 2.20096e-07 1.35479e-07 2.60051e-07 1.07682e-07 3.25889e-07 3.81057e-08 4.21869e-07 -5.07661e-08 4.73552e-07 -7.94178e-08 4.56954e-07 -1.14229e-07 4.08568e-07 -1.22017e-07 2.7655e-07 -5.04603e-08 1.31579e-07 6.16152e-09 9.559e-08 1.22312e-07 9.06241e-08 1.52325e-07 7.92529e-08 1.28592e-07 3.85002e-08 1.08901e-07 -4.71265e-08 5.68309e-08 -8.90884e-08 1.41218e-08 -4.70244e-08 1.85324e-08 5.73946e-08 2.85263e-08 1.27866e-07 -2.89717e-08 4.80176e-08 -1.04418e-07 5.516e-08 -1.56305e-07 -1.71978e-08 -1.38803e-07 -1.31259e-07 -1.04579e-07 -1.72108e-07 -8.43701e-08 -1.66314e-07 -1.00873e-07 -1.18858e-07 -1.57352e-07 -8.24035e-08 -1.85994e-07 -5.85623e-08 -1.6172e-07 -3.65299e-08 -1.21841e-07 3.21805e-08 -8.22783e-08 1.26277e-07 4.38548e-08 1.66388e-07 2.06413e-07 1.7345e-07 2.26595e-07 2.18854e-07 1.90506e-07 1.74496e-07 1.81774e-07 1.88671e-07 2.12336e-07 2.3635e-07 2.46667e-07 2.40374e-07 2.82167e-07 2.25675e-07 3.04606e-07 1.93919e-07 3.17997e-07 1.53535e-07 3.44503e-07 1.08974e-07 4.12981e-07 3.9203e-08 4.88539e-07 -3.74529e-08 5.23772e-07 -8.59996e-08 5.52654e-07 -1.08299e-07 5.98719e-07 -1.60293e-07 7.07696e-07 -2.30994e-07 5.18368e-07 1.38866e-07 2.35121e-07 2.89409e-07 1.36231e-07 2.21202e-07 2.10088e-07 7.84673e-08 2.78385e-07 6.0296e-08 2.65578e-07 1.21708e-07 1.94431e-07 1.27978e-07 1.10184e-07 9.83697e-08 4.50007e-08 8.37156e-08 1.02395e-07 2.32776e-07 1.48371e-07 2.1653e-07 6.42633e-08 2.07509e-07 6.41807e-08 1.64827e-07 2.54853e-08 1.24112e-07 -9.05429e-08 7.62007e-08 -1.24196e-07 4.54534e-08 -1.35567e-07 2.24031e-08 -9.58078e-08 -1.72438e-08 -4.27564e-08 -4.83891e-08 -2.74166e-08 -7.00289e-08 -1.48901e-08 -5.93783e-08 2.15302e-08 -1.89022e-08 8.58004e-08 4.02776e-08 1.07209e-07 8.3896e-08 1.29832e-07 1.43329e-07 1.59421e-07 1.69845e-07 1.4798e-07 1.82055e-07 1.76462e-07 2.26815e-07 1.9159e-07 2.73037e-07 1.94151e-07 3.21587e-07 1.77124e-07 3.47877e-07 1.67631e-07 3.51241e-07 1.50172e-07 3.57625e-07 1.0259e-07 4.13641e-07 -1.68133e-08 4.51753e-07 -7.55646e-08 4.39006e-07 -7.32526e-08 4.113e-07 -8.0596e-08 4.1622e-07 -1.6522e-07 3.42283e-07 -1.57053e-07 4.12541e-07 6.86132e-08 3.81232e-07 3.20718e-07 2.9657e-07 3.05864e-07 2.18e-07 1.57038e-07 2.03575e-07 7.47205e-08 2.01709e-07 1.23574e-07 2.33984e-07 9.57028e-08 2.53807e-07 7.8546e-08 1.51585e-07 1.85938e-07 2.5398e-07 2.80712e-07 9.04129e-08 2.97938e-07 4.70374e-08 3.39952e-07 2.21658e-08 3.53931e-07 1.1507e-08 2.85168e-07 -2.17785e-08 2.11447e-07 -5.04743e-08 9.92118e-08 -2.33312e-08 3.06624e-08 -2.72579e-08 -1.24004e-09 -1.08539e-08 -3.33898e-08 4.73366e-09 -7.62148e-08 2.79357e-08 -8.84277e-08 3.37433e-08 -5.02001e-08 4.7573e-08 -1.24469e-08 6.94564e-08 2.13334e-08 9.6052e-08 6.48025e-08 1.15952e-07 8.90446e-08 1.23738e-07 1.13129e-07 1.52378e-07 1.52609e-07 1.52111e-07 1.98296e-07 1.48465e-07 2.38205e-07 1.37216e-07 2.76605e-07 1.29231e-07 3.1821e-07 1.08568e-07 3.71919e-07 4.88815e-08 4.15224e-07 -6.01161e-08 4.76302e-07 -1.36643e-07 6.64067e-07 -2.61029e-07 6.69569e-07 -8.60871e-08 6.01057e-07 -9.67188e-08 5.38814e-07 -9.47867e-08 6.43433e-07 -3.60157e-08 6.91927e-07 2.72221e-07 6.27974e-07 3.69828e-07 4.73992e-07 3.11023e-07 3.70441e-07 1.7827e-07 3.52745e-07 1.41273e-07 2.90553e-07 1.57898e-07 1.88224e-07 1.8088e-07 1.02017e-07 2.72148e-07 3.55997e-07 1.88349e-07 -4.82099e-08 2.83915e-07 -4.85281e-08 3.74137e-07 -6.80558e-08 3.68689e-07 1.69546e-08 2.14084e-07 1.32827e-07 8.10907e-08 8.25189e-08 -3.04694e-08 8.82309e-08 -1.04255e-07 4.65277e-08 -1.25801e-07 1.06923e-08 -1.47164e-07 2.60973e-08 -1.50782e-07 3.15542e-08 -1.4133e-07 2.42916e-08 -1.20774e-07 2.70177e-08 -9.0456e-08 3.91381e-08 -5.4084e-08 5.968e-08 -2.11433e-08 8.30111e-08 6.86041e-09 9.57347e-08 4.44007e-08 1.14838e-07 8.18399e-08 1.14673e-07 1.26941e-07 1.03365e-07 1.88012e-07 7.61452e-08 2.51051e-07 6.61916e-08 3.20652e-07 3.89667e-08 4.10321e-07 -4.07889e-08 5.49377e-07 -1.99174e-07 5.75852e-07 -1.63127e-07 4.81753e-07 -1.66933e-07 5.52316e-07 -1.56634e-07 5.19254e-07 -6.36341e-08 4.85659e-07 -6.11981e-08 4.88642e-07 -3.89773e-08 6.07e-07 1.53873e-07 6.42341e-07 3.34483e-07 6.23903e-07 3.29459e-07 5.57777e-07 2.44401e-07 5.03198e-07 1.95862e-07 4.2184e-07 2.39254e-07 2.94182e-07 3.08545e-07 1.49354e-07 4.16972e-07 5.05349e-07 2.01104e-07 -1.21197e-07 5.19496e-07 -3.66924e-07 3.85056e-07 6.63776e-08 -1.27325e-07 5.29333e-07 -3.69009e-07 3.74508e-07 -3.51882e-07 6.53925e-08 -2.47534e-07 -1.61178e-08 -1.60731e-07 -4.0275e-08 -1.29027e-07 -2.10122e-08 -1.26978e-07 2.40485e-08 -1.24e-07 2.85771e-08 -1.19124e-07 1.94152e-08 -1.10439e-07 1.8333e-08 -9.92727e-08 2.79716e-08 -7.53197e-08 3.57271e-08 -4.48774e-08 5.2569e-08 -6.32022e-09 5.71778e-08 4.45664e-08 6.39515e-08 1.00745e-07 5.84946e-08 1.54992e-07 4.91188e-08 2.00809e-07 3.03282e-08 2.67267e-07 -2.64685e-10 3.77553e-07 -7.13208e-08 5.6157e-07 -2.24811e-07 5.32531e-07 -1.70126e-07 5.201e-07 -1.50709e-07 4.57046e-07 -1.03851e-07 3.41171e-07 -4.07523e-08 2.86441e-07 -8.9254e-09 2.69377e-07 -4.41244e-08 2.70764e-07 -4.03539e-08 3.85356e-07 3.92865e-08 4.60228e-07 2.59608e-07 4.73049e-07 3.16632e-07 4.20547e-07 2.9691e-07 3.31511e-07 2.84912e-07 2.25854e-07 3.44912e-07 1.0282e-07 4.31582e-07 1.82133e-08 5.01573e-07 5.23562e-07 1.78947e-07 -9.36373e-09 -1.86472e-07 -1.47599e-09 -6.7761e-07 5.57562e-07 -5.4692e-07 3.98661e-07 -3.88112e-07 2.15706e-07 -2.15803e-07 -1.06918e-07 -1.53411e-07 -7.85072e-08 -2.09613e-07 1.59281e-08 -1.90039e-07 -4.05858e-08 -1.23363e-07 -4.26269e-08 -7.82113e-08 -1.65745e-08 -6.36558e-08 4.85991e-09 -5.30797e-08 7.75697e-09 -4.13624e-08 1.62543e-08 -2.63046e-08 2.06696e-08 1.99932e-09 2.42658e-08 3.68426e-08 2.23351e-08 7.92455e-08 2.15488e-08 1.42346e-07 -4.60627e-09 2.39186e-07 -4.7723e-08 4.41716e-07 -1.722e-07 9.07583e-07 -4.66142e-07 7.89423e-07 4.68502e-08 6.82763e-07 -1.1814e-07 6.16213e-07 -1.03593e-07 4.98484e-07 -3.29488e-08 3.83325e-07 1.13246e-08 3.10875e-07 3.16861e-08 2.9867e-07 3.287e-09 2.83902e-07 -2.93388e-08 2.6751e-07 -2.39639e-08 2.12565e-07 9.42211e-08 1.72601e-07 2.99575e-07 1.39606e-07 3.4964e-07 9.72584e-08 3.39258e-07 3.8371e-08 3.43798e-07 -1.51657e-08 3.98462e-07 -6.25166e-08 4.78921e-07 -7.29036e-08 5.11962e-07 4.5066e-07 -9.04998e-08 1.21445e-07 -4.50321e-07 3.58279e-07 -4.48328e-07 5.55485e-07 -4.47077e-07 3.97409e-07 -4.44554e-07 2.1318e-07 -3.98786e-07 -1.52683e-07 -4.4082e-07 -3.64769e-08 -4.38253e-07 1.33598e-08 -4.49473e-07 -2.93658e-08 -3.65378e-07 -1.26721e-07 -2.14132e-07 -1.67821e-07 -1.09996e-07 -9.92748e-08 -6.00404e-08 -4.21963e-08 -1.98432e-08 -2.39402e-08 1.15698e-08 -1.07414e-08 5.63376e-08 -2.05013e-08 1.19014e-07 -4.03419e-08 2.60132e-07 -1.1957e-07 4.58059e-07 -2.02536e-07 3.9198e-07 1.83586e-08 2.95731e-07 -7.59542e-08 6.34729e-08 -2.3386e-07 7.83861e-08 3.19088e-08 1.82299e-08 -5.798e-08 1.2705e-09 -8.66126e-08 7.20864e-08 -1.03781e-07 1.74223e-07 -9.08351e-08 2.38467e-07 -3.25484e-08 2.52316e-07 -1.05444e-08 2.17611e-07 5.3726e-09 1.37925e-07 5.57141e-08 1.99804e-08 2.12154e-07 -3.76416e-08 3.57208e-07 -6.78926e-08 3.79911e-07 -9.88498e-08 3.70221e-07 -1.28164e-07 3.73104e-07 -1.38601e-07 4.08894e-07 -1.32269e-07 4.72589e-07 -1.03081e-07 4.82769e-07 3.47582e-07 -1.21648e-07 3.11906e-07 -2.74331e-07 5.10981e-07 -2.4893e-07 5.3013e-07 -2.52035e-07 4.00511e-07 -2.44437e-07 2.05581e-07 -3.65688e-07 -3.14324e-08 -3.93769e-07 -8.39184e-09 -3.97626e-07 1.72197e-08 -4.06453e-07 -2.05391e-08 -4.17696e-07 -1.1548e-07 -4.51959e-07 -1.33559e-07 -4.36922e-07 -1.14311e-07 -3.81578e-07 -9.75389e-08 -3.15972e-07 -8.95425e-08 -2.5686e-07 -6.98526e-08 -1.94625e-07 -8.27363e-08 -1.28781e-07 -1.0618e-07 -1.01742e-07 -1.46602e-07 -1.52911e-07 -1.51366e-07 -8.66662e-08 -4.78767e-08 -6.84713e-08 -9.41446e-08 -1.89069e-07 -1.13282e-07 -8.30623e-08 -7.40643e-08 -7.65312e-08 -6.45092e-08 -3.0753e-08 -1.32415e-07 3.90716e-08 -1.73603e-07 1.07243e-07 -1.58985e-07 1.38428e-07 -6.3723e-08 1.11519e-07 1.63606e-08 1.88635e-08 9.80163e-08 -1.02777e-07 1.77351e-07 -1.76903e-07 2.86291e-07 -1.73528e-07 3.53843e-07 -1.66198e-07 3.72582e-07 -1.69504e-07 3.73519e-07 -1.69271e-07 3.72868e-07 -1.59791e-07 3.99407e-07 -1.2478e-07 4.37577e-07 -7.48015e-08 4.32787e-07 2.72781e-07 -2.97185e-07 3.56886e-07 -2.83181e-07 4.96977e-07 -2.32193e-07 4.7914e-07 -1.69643e-07 3.37959e-07 -1.8991e-07 2.25846e-07 -3.27682e-07 1.06337e-07 -4.3532e-07 9.92493e-08 -5.0449e-07 8.63975e-08 -5.56329e-07 3.13026e-08 -6.041e-07 -6.77088e-08 -6.16522e-07 -1.21135e-07 -5.89925e-07 -1.40904e-07 -5.25211e-07 -1.62254e-07 -4.53897e-07 -1.60863e-07 -3.77638e-07 -1.46124e-07 -3.12972e-07 -1.4741e-07 -2.65e-07 -1.54148e-07 -2.31972e-07 -1.7963e-07 -2.25794e-07 -1.57547e-07 -1.51144e-07 -1.22531e-07 -1.27676e-07 -1.17605e-07 -1.31203e-07 -1.09744e-07 -1.28557e-07 -7.67289e-08 -1.32148e-07 -6.0938e-08 -1.46566e-07 -1.17988e-07 -1.22308e-07 -1.97846e-07 -1.04787e-07 -1.76502e-07 -1.08458e-07 -6.00619e-08 -1.4255e-07 5.04424e-08 -1.78186e-07 1.33656e-07 -2.1339e-07 2.12564e-07 -2.16981e-07 2.89892e-07 -1.9692e-07 3.33786e-07 -1.79342e-07 3.54998e-07 -1.68348e-07 3.62516e-07 -1.53355e-07 3.57869e-07 -1.26914e-07 3.72958e-07 -8.54201e-08 3.96088e-07 -4.11517e-08 3.88521e-07 2.31627e-07 -2.7112e-07 4.09899e-07 -2.63041e-07 4.88909e-07 -2.17273e-07 4.33376e-07 -1.65943e-07 2.8663e-07 -2.60545e-07 3.20448e-07 -3.89678e-07 2.35468e-07 -4.80734e-07 1.90306e-07 -5.34474e-07 1.40137e-07 -5.80512e-07 7.73382e-08 -6.02617e-07 -4.56057e-08 -6.01934e-07 -1.21812e-07 -5.74136e-07 -1.68694e-07 -5.2327e-07 -2.13115e-07 -4.54192e-07 -2.2994e-07 -3.67936e-07 -2.32378e-07 -3.00867e-07 -2.14472e-07 -2.63391e-07 -1.91626e-07 -2.56885e-07 -1.86142e-07 -2.39551e-07 -1.74862e-07 -2.00525e-07 -1.61545e-07 -1.66225e-07 -1.51918e-07 -1.38328e-07 -1.37643e-07 -1.03203e-07 -1.1185e-07 -9.41936e-08 -6.99344e-08 -1.30971e-07 -8.1206e-08 -1.66414e-07 -1.62407e-07 -1.85153e-07 -1.5777e-07 -2.07903e-07 -3.73211e-08 -2.33014e-07 7.55507e-08 -2.4144e-07 1.42085e-07 -2.26498e-07 1.97625e-07 -2.00214e-07 2.63608e-07 -1.69227e-07 3.02791e-07 -1.46747e-07 3.32504e-07 -1.27927e-07 3.43686e-07 -1.09967e-07 3.39903e-07 -8.75365e-08 3.50527e-07 -6.79524e-08 3.76508e-07 -3.70274e-08 3.57599e-07 1.94596e-07 -1.82975e-07 4.53558e-07 -1.88579e-07 4.94517e-07 -1.43494e-07 3.8829e-07 -1.28639e-07 2.71776e-07 -2.2233e-07 4.14135e-07 -3.54541e-07 3.67683e-07 -4.24856e-07 2.60622e-07 -4.54972e-07 1.70252e-07 -4.73025e-07 9.53897e-08 -4.99711e-07 -1.89204e-08 -5.15275e-07 -1.06248e-07 -5.05496e-07 -1.78472e-07 -4.72986e-07 -2.45628e-07 -4.16662e-07 -2.86271e-07 -3.51451e-07 -2.97592e-07 -2.86528e-07 -2.79384e-07 -2.41981e-07 -2.36163e-07 -2.17607e-07 -2.10513e-07 -1.9571e-07 -1.96754e-07 -1.72668e-07 -1.84588e-07 -1.46656e-07 -1.77929e-07 -1.18863e-07 -1.65418e-07 -1.09559e-07 -1.21142e-07 -1.11292e-07 -6.82084e-08 -1.53543e-07 -3.89695e-08 -2.47004e-07 -6.89542e-08 -3.11455e-07 -9.33185e-08 -3.01641e-07 -4.71267e-08 -2.75092e-07 4.90076e-08 -2.52818e-07 1.19813e-07 -2.19553e-07 1.64353e-07 -1.81817e-07 2.25863e-07 -1.45792e-07 2.66755e-07 -1.17494e-07 3.04202e-07 -9.95529e-08 3.25747e-07 -8.81157e-08 3.28465e-07 -7.51601e-08 3.3757e-07 -6.12178e-08 3.62566e-07 -4.00447e-08 3.36428e-07 1.54551e-07 -7.79886e-09 4.51386e-07 -1.05925e-08 4.97305e-07 7.51136e-09 3.7018e-07 -3.3763e-08 3.13048e-07 -5.98661e-08 4.40236e-07 -1.52139e-07 4.59955e-07 -2.48699e-07 3.57181e-07 -3.05636e-07 2.27188e-07 -3.2838e-07 1.18137e-07 -3.58451e-07 1.11577e-08 -3.82922e-07 -8.17694e-08 -3.94064e-07 -1.67326e-07 -3.9162e-07 -2.48072e-07 -3.65138e-07 -3.12752e-07 -3.16946e-07 -3.45781e-07 -2.62959e-07 -3.3337e-07 -2.18747e-07 -2.80383e-07 -1.83048e-07 -2.46212e-07 -1.63206e-07 -2.16584e-07 -1.53322e-07 -1.94461e-07 -1.48927e-07 -1.82318e-07 -1.43064e-07 -1.71281e-07 -1.41671e-07 -1.22542e-07 -1.60784e-07 -4.91047e-08 -1.86761e-07 -1.2999e-08 -2.62415e-07 6.69967e-09 -3.29263e-07 -2.64691e-08 -3.38355e-07 -3.80329e-08 -2.95598e-07 6.24793e-09 -2.43167e-07 6.73732e-08 -2.18024e-07 1.39201e-07 -1.93472e-07 2.01305e-07 -1.78471e-07 2.51751e-07 -1.48158e-07 2.7389e-07 -1.21754e-07 2.99349e-07 -1.06185e-07 3.129e-07 -9.87785e-08 3.30163e-07 -8.06799e-08 3.44465e-07 -3.85588e-08 2.94306e-07 1.15993e-07 1.13941e-07 4.01366e-07 1.6024e-07 4.50999e-07 1.34883e-07 3.9554e-07 9.65666e-08 3.51375e-07 1.15528e-07 4.21283e-07 1.02892e-07 4.72592e-07 4.01986e-08 4.19871e-07 -3.15805e-08 2.98961e-07 -8.03459e-08 1.66899e-07 -1.20935e-07 5.17482e-08 -1.52336e-07 -5.03632e-08 -1.77442e-07 -1.42215e-07 -2.04484e-07 -2.21032e-07 -2.26659e-07 -2.90582e-07 -2.17035e-07 -3.55406e-07 -1.93422e-07 -3.56978e-07 -1.60134e-07 -3.13668e-07 -1.2586e-07 -2.80479e-07 -1.04454e-07 -2.3798e-07 -9.02609e-08 -2.08654e-07 -8.41189e-08 -1.88466e-07 -9.29619e-08 -1.62444e-07 -9.8073e-08 -1.17432e-07 -8.77073e-08 -5.94672e-08 -8.30895e-08 -1.7614e-08 -1.43942e-07 6.7553e-08 -2.12405e-07 4.19921e-08 -2.321e-07 -1.83429e-08 -2.02825e-07 -2.30321e-08 -1.82754e-07 4.72978e-08 -2.08879e-07 1.65323e-07 -2.09053e-07 2.01477e-07 -2.01714e-07 2.44412e-07 -1.88254e-07 2.60431e-07 -1.60766e-07 2.71865e-07 -1.32086e-07 2.84224e-07 -1.02746e-07 3.00824e-07 -6.63561e-08 3.08074e-07 -2.38678e-08 2.51817e-07 9.21275e-08 1.19453e-07 3.388e-07 1.66522e-07 4.03926e-07 1.78709e-07 3.83358e-07 1.73049e-07 3.57047e-07 2.01091e-07 3.9325e-07 2.34572e-07 4.39117e-07 2.39399e-07 4.15046e-07 2.04873e-07 3.33488e-07 1.60953e-07 2.10821e-07 1.1823e-07 9.44732e-08 7.15092e-08 -3.6416e-09 3.49336e-08 -1.05641e-07 2.71826e-09 -1.88819e-07 -1.7178e-08 -2.70687e-07 -2.9485e-08 -3.43096e-07 -5.32156e-08 -3.33245e-07 -5.58836e-08 -3.11005e-07 -5.92898e-08 -2.77081e-07 -6.09052e-08 -2.36371e-07 -6.44653e-08 -2.05097e-07 -6.34425e-08 -1.8949e-07 -6.72469e-08 -1.58638e-07 -6.91112e-08 -1.15562e-07 -6.8932e-08 -5.96418e-08 -1.00977e-07 1.44321e-08 -1.06317e-07 7.28908e-08 -1.36822e-07 7.24926e-08 -1.83122e-07 2.79508e-08 -2.31233e-07 2.50756e-08 -2.45951e-07 6.20142e-08 -2.3483e-07 1.54205e-07 -2.26254e-07 1.92905e-07 -2.0559e-07 2.23749e-07 -1.80468e-07 2.35309e-07 -1.42694e-07 2.34091e-07 -1.04815e-07 2.46348e-07 -6.22581e-08 2.5827e-07 -3.13452e-08 2.77162e-07 -2.90936e-09 2.23381e-07 8.92186e-08 1.22556e-07 2.82626e-07 1.6468e-07 3.6181e-07 1.83262e-07 3.64787e-07 1.84799e-07 3.55518e-07 2.05759e-07 3.72295e-07 2.49271e-07 3.95607e-07 2.84581e-07 3.79736e-07 2.93763e-07 3.24304e-07 2.75913e-07 2.2867e-07 2.44252e-07 1.26137e-07 2.10223e-07 3.03889e-08 1.67746e-07 -6.31663e-08 1.31204e-07 -1.52288e-07 1.08835e-07 -2.48331e-07 7.15588e-08 -3.05831e-07 4.43419e-08 -3.06039e-07 2.42623e-08 -2.90936e-07 8.46646e-09 -2.61294e-07 -9.24831e-09 -2.18659e-07 -2.79289e-08 -1.86416e-07 -4.77633e-08 -1.69655e-07 -6.70799e-08 -1.39321e-07 -8.36028e-08 -9.9042e-08 -1.00243e-07 -4.30079e-08 -9.19554e-08 6.13859e-09 -3.85819e-08 1.95119e-08 -4.01811e-08 7.40879e-08 -1.08415e-07 9.6182e-08 -1.81628e-07 9.8288e-08 -2.23445e-07 1.03831e-07 -2.20613e-07 1.51373e-07 -2.16938e-07 1.89231e-07 -1.89416e-07 1.96226e-07 -1.59086e-07 2.04976e-07 -1.24936e-07 1.99938e-07 -8.62424e-08 2.07653e-07 -5.55542e-08 2.27583e-07 -6.34241e-09 2.27952e-07 1.73014e-08 1.99738e-07 1.06518e-07 1.36774e-07 2.30225e-07 1.63906e-07 3.3469e-07 1.75356e-07 3.53349e-07 1.82886e-07 3.47999e-07 2.02179e-07 3.53009e-07 2.39143e-07 3.58647e-07 2.75062e-07 3.43817e-07 2.97953e-07 3.01411e-07 3.00749e-07 2.25872e-07 2.90771e-07 1.36112e-07 2.70603e-07 5.05535e-08 2.41784e-07 -3.4353e-08 2.12079e-07 -1.22592e-07 1.81391e-07 -2.17652e-07 1.40319e-07 -2.64764e-07 1.15626e-07 -2.81348e-07 9.14459e-08 -2.66762e-07 6.86945e-08 -2.38549e-07 4.43466e-08 -1.94318e-07 1.82482e-08 -1.60325e-07 -6.92146e-09 -1.44493e-07 -2.96645e-08 -1.16585e-07 -3.62396e-08 -9.24735e-08 -3.07117e-08 -4.85407e-08 -8.70424e-09 -1.58706e-08 -6.23656e-09 1.70456e-08 -1.50263e-08 8.28804e-08 -3.23581e-08 1.13516e-07 -5.17002e-08 1.17629e-07 -8.24536e-08 1.34581e-07 -1.17221e-07 1.86138e-07 -1.49856e-07 2.21863e-07 -1.38368e-07 1.84735e-07 -1.22884e-07 1.89488e-07 -1.17868e-07 1.94919e-07 -1.06227e-07 1.96009e-07 -6.20394e-08 1.83394e-07 -1.54789e-08 1.81391e-07 5.14499e-09 1.79112e-07 1.11659e-07 7.92691e-08 1.81093e-07 1.20284e-07 2.93686e-07 1.41978e-07 3.31664e-07 1.59651e-07 3.30332e-07 1.80779e-07 3.31886e-07 2.10715e-07 3.28714e-07 2.43546e-07 3.10986e-07 2.71931e-07 2.73023e-07 2.84897e-07 2.12902e-07 2.85107e-07 1.359e-07 2.77879e-07 5.7779e-08 2.62845e-07 -1.9322e-08 2.49831e-07 -1.09583e-07 2.25269e-07 -1.93097e-07 1.95906e-07 -2.3541e-07 1.60422e-07 -2.45872e-07 1.26772e-07 -2.33124e-07 8.81439e-08 -1.99935e-07 5.53417e-08 -1.61531e-07 3.07958e-08 -1.35792e-07 9.62387e-09 -1.23331e-07 -1.13506e-08 -9.56162e-08 -3.18627e-08 -7.19639e-08 -3.17022e-08 -4.87013e-08 -2.49167e-08 -2.26551e-08 -3.92813e-08 3.14116e-08 -3.66936e-08 8.02931e-08 -2.64576e-08 1.03279e-07 -3.05012e-08 1.21669e-07 -4.7487e-08 1.51561e-07 -8.04949e-08 2.19139e-07 -8.88436e-08 2.30207e-07 -9.48478e-08 1.90737e-07 -9.04346e-08 1.85074e-07 -9.79178e-08 2.024e-07 -9.39891e-08 1.92078e-07 -7.93997e-08 1.688e-07 -5.98017e-08 1.61787e-07 -2.87994e-08 1.48103e-07 8.28552e-08 -2.73721e-08 1.41725e-07 2.74317e-08 2.38891e-07 7.05834e-08 2.88517e-07 1.06119e-07 2.94799e-07 1.38145e-07 2.99862e-07 1.72781e-07 2.94079e-07 2.07505e-07 2.76262e-07 2.37475e-07 2.43054e-07 2.58367e-07 1.92011e-07 2.69338e-07 1.2493e-07 2.67647e-07 5.94713e-08 2.63799e-07 -1.5475e-08 2.55129e-07 -1.00917e-07 2.25774e-07 -1.63749e-07 1.86326e-07 -1.95972e-07 1.37858e-07 -1.97413e-07 8.70736e-08 -1.8235e-07 4.32313e-08 -1.56102e-07 1.35199e-08 -1.31828e-07 -1.28263e-08 -1.09453e-07 -4.6906e-08 -8.92548e-08 -7.71348e-08 -6.53883e-08 -1.01093e-07 -4.8005e-08 -1.14564e-07 -3.52299e-08 -1.2999e-07 -7.23084e-09 -1.30353e-07 3.17701e-08 -1.13104e-07 6.30398e-08 -1.01366e-07 9.15365e-08 -9.76557e-08 1.17955e-07 -1.16065e-07 1.69967e-07 -1.16195e-07 2.19266e-07 -1.10571e-07 2.24581e-07 -9.96307e-08 1.79797e-07 -9.05912e-08 1.76035e-07 -8.37157e-08 1.95525e-07 -8.14427e-08 1.89802e-07 -7.58594e-08 1.63212e-07 -5.95769e-08 1.45498e-07 -3.08472e-08 1.19367e-07 5.20065e-08 -1.0748e-07 1.19831e-07 -6.81533e-08 1.99567e-07 -1.46433e-08 2.35008e-07 3.46886e-08 2.45467e-07 7.5467e-08 2.59084e-07 1.13423e-07 2.56124e-07 1.4775e-07 2.41935e-07 1.79723e-07 2.1108e-07 2.09429e-07 1.62305e-07 2.28294e-07 1.06066e-07 2.38307e-07 4.9459e-08 2.45593e-07 -2.27607e-08 2.30213e-07 -8.5539e-08 1.86017e-07 -1.19558e-07 1.27828e-07 -1.3779e-07 6.82493e-08 -1.3784e-07 1.43183e-08 -1.28423e-07 -2.70275e-08 -1.1476e-07 -6.50462e-08 -9.38127e-08 -1.05799e-07 -6.87035e-08 -1.46633e-07 -4.84241e-08 -1.71175e-07 -4.08504e-08 -1.87016e-07 -3.21679e-08 -2.12984e-07 -9.26654e-09 -2.36543e-07 1.63221e-08 -2.37111e-07 3.23316e-08 -2.1951e-07 4.54344e-08 -1.96604e-07 6.86281e-08 -1.91216e-07 1.12567e-07 -1.93495e-07 1.72248e-07 -1.65812e-07 1.91584e-07 -1.25698e-07 1.84469e-07 -1.0377e-07 1.57868e-07 -9.09555e-08 1.6322e-07 -7.49141e-08 1.79482e-07 -6.0013e-08 1.74899e-07 -4.83764e-08 1.51572e-07 -3.572e-08 1.32838e-07 -1.72647e-08 1.00909e-07 3.47435e-08 -1.16014e-07 1.15285e-07 -9.34479e-08 1.77e-07 -6.15915e-08 2.03152e-07 -2.8038e-08 2.11915e-07 7.71747e-09 2.23331e-07 4.22001e-08 2.21644e-07 8.81178e-08 1.96019e-07 1.31624e-07 1.67574e-07 1.66819e-07 1.27108e-07 1.92245e-07 8.06379e-08 2.18842e-07 2.28605e-08 2.25286e-07 -2.92048e-08 1.87794e-07 -4.8048e-08 1.25499e-07 -5.72655e-08 5.53453e-08 -6.76401e-08 -8.59917e-09 -7.39007e-08 -6.18232e-08 -7.52038e-08 -1.09043e-07 -6.75452e-08 -1.51837e-07 -5.10246e-08 -1.87041e-07 -3.35078e-08 -2.07243e-07 -2.82316e-08 -2.12835e-07 -3.52683e-08 -2.21624e-07 -2.3388e-08 -2.42974e-07 1.20741e-08 -2.58284e-07 3.16243e-08 -2.63915e-07 3.79577e-08 -2.54335e-07 3.58515e-08 -2.3505e-07 4.93427e-08 -2.09696e-07 8.72167e-08 -1.67695e-07 1.30251e-07 -1.25082e-07 1.48976e-07 -8.69502e-08 1.46339e-07 -6.9729e-08 1.40648e-07 -5.89601e-08 1.52451e-07 -4.32217e-08 1.63743e-07 -2.86414e-08 1.60319e-07 -2.13553e-08 1.44287e-07 -1.49527e-08 1.26437e-07 -7.11952e-09 9.30775e-08 2.76267e-08 -6.99904e-08 1.44176e-07 -6.09918e-08 1.68002e-07 -4.51845e-08 1.87348e-07 -2.24221e-08 1.89156e-07 3.94915e-09 1.96963e-07 3.82059e-08 1.8739e-07 7.40181e-08 1.60208e-07 1.00309e-07 1.41282e-07 1.21221e-07 1.0619e-07 1.42795e-07 5.90583e-08 1.5187e-07 1.37809e-08 1.23012e-07 -3.50903e-10 7.76633e-08 -2.70303e-09 3.3916e-08 -1.35222e-08 -6.36857e-09 -2.73603e-08 -4.34615e-08 -3.68134e-08 -8.07143e-08 -3.79574e-08 -1.18667e-07 -2.95994e-08 -1.51845e-07 -1.78552e-08 -1.76478e-07 -8.883e-09 -1.96649e-07 -8.07032e-09 -2.18333e-07 -1.35931e-08 -2.36205e-07 -5.52353e-09 -2.38963e-07 1.48248e-08 -2.36033e-07 2.86899e-08 -2.25501e-07 2.74217e-08 -2.11536e-07 2.1884e-08 -1.92441e-07 3.02474e-08 -1.67744e-07 6.25191e-08 -1.26646e-07 8.91549e-08 -8.67927e-08 1.09124e-07 -6.25252e-08 1.22073e-07 -5.13096e-08 1.29434e-07 -4.1279e-08 1.42421e-07 -2.67499e-08 1.49216e-07 -1.311e-08 1.46681e-07 -5.40182e-09 1.36581e-07 -1.09759e-09 1.22136e-07 9.59773e-10 9.10238e-08 2.85881e-08 -3.47613e-08 1.27692e-07 -2.40321e-08 1.57275e-07 -1.18806e-08 1.752e-07 -1.1896e-08 1.89174e-07 -8.80865e-09 1.93876e-07 1.89381e-08 1.59641e-07 3.83824e-08 1.40758e-07 6.41488e-08 1.15507e-07 8.19312e-08 8.83982e-08 7.33751e-08 6.76043e-08 3.67689e-08 5.03777e-08 -2.18879e-09 3.85993e-08 -3.25057e-08 2.76083e-08 -4.78028e-08 1.77139e-09 -5.96057e-08 -1.55604e-08 -7.34548e-08 -2.29679e-08 -8.98717e-08 -2.1545e-08 -1.1269e-07 -6.78628e-09 -1.37884e-07 7.33269e-09 -1.58406e-07 1.16325e-08 -1.83071e-07 1.65896e-08 -2.10114e-07 1.34445e-08 -2.22806e-07 7.16312e-09 -2.11251e-07 3.26752e-09 -1.90414e-07 7.85027e-09 -1.70057e-07 7.06327e-09 -1.55563e-07 7.3881e-09 -1.49312e-07 2.39946e-08 -1.35963e-07 4.91678e-08 -1.13627e-07 6.68177e-08 -8.95522e-08 8.50484e-08 -6.91921e-08 1.01713e-07 -5.37791e-08 1.14022e-07 -3.84886e-08 1.27132e-07 -2.21367e-08 1.32866e-07 -7.56848e-09 1.32115e-07 1.95792e-09 1.27057e-07 7.75976e-09 1.16337e-07 7.81841e-09 9.09676e-08 3.64065e-08 9.6345e-10 2.98962e-08 2.25508e-08 1.35692e-07 3.06309e-08 1.6712e-07 2.32517e-08 1.96549e-07 -5.82393e-08 2.75362e-07 -5.78092e-08 1.59205e-07 -4.06039e-08 1.23547e-07 -2.66611e-08 1.01559e-07 -2.28067e-08 8.45389e-08 -2.8527e-08 7.33208e-08 -4.40225e-08 6.58705e-08 -6.90608e-08 6.36364e-08 -8.8628e-08 4.7176e-08 -7.992e-08 -6.93485e-09 -7.20648e-08 -2.34136e-08 -6.84855e-08 -2.65459e-08 -6.73445e-08 -2.26856e-08 -6.4567e-08 -9.56431e-09 -6.51987e-08 7.96325e-09 -8.7769e-08 3.42015e-08 -1.82273e-07 1.11092e-07 -2.20233e-07 5.14015e-08 -2.03098e-07 -9.97318e-09 -1.74477e-07 -2.53552e-08 -1.46143e-07 -2.04851e-08 -1.28563e-07 -1.05175e-08 -1.21936e-07 7.60509e-10 -1.17977e-07 2.00338e-08 -1.0991e-07 4.1099e-08 -9.99118e-08 5.68174e-08 -8.65548e-08 7.16897e-08 -7.07186e-08 8.58762e-08 -5.43881e-08 9.76911e-08 -3.55128e-08 1.08258e-07 -1.70411e-08 1.14395e-07 -8.68935e-10 1.15944e-07 1.19231e-08 1.14267e-07 2.05597e-08 1.07701e-07 2.19487e-08 8.95793e-08 5.83549e-08 -6.09304e-08 2.44604e-08 8.62107e-08 1.09043e-07 -1.63787e-07 -2.45312e-07 -1.87031e-07 -1.35275e-07 -9.22109e-08 -6.40499e-08 -4.99039e-08 -6.14275e-08 -8.68506e-08 -6.52878e-08 -4.35169e-08 -2.64789e-08 -1.27242e-08 3.99844e-09 2.33242e-08 1.1004e-08 -1.32548e-07 -1.74614e-07 -1.44639e-07 -1.16394e-07 -9.57588e-08 -8.57386e-08 -8.15362e-08 -7.83142e-08 -7.35757e-08 -6.72969e-08 -5.91155e-08 -4.86575e-08 -3.63909e-08 -2.18912e-08 -6.57769e-09 7.76825e-09 2.03441e-08 3.14547e-08 3.67874e-08 -1.30644e-08 1.30644e-08 -2.76913e-08 1.4627e-08 -5.27882e-08 2.5097e-08 -8.28974e-08 3.01093e-08 -9.63628e-08 1.34656e-08 -8.19181e-08 -1.44447e-08 -6.01195e-08 -2.17985e-08 -4.32743e-08 -1.68451e-08 -3.84693e-08 -4.80492e-09 -4.86509e-08 1.01817e-08 -7.14719e-08 2.2821e-08 -1.01263e-07 2.97917e-08 -1.29574e-07 2.83105e-08 -1.53003e-07 2.34291e-08 -1.77152e-07 2.41494e-08 -2.06266e-07 2.91142e-08 -2.39145e-07 3.28786e-08 -2.70936e-07 3.17907e-08 -3.02043e-07 3.11078e-08 -3.05475e-07 3.43141e-09 -2.72213e-07 -3.32615e-08 -2.31378e-07 -4.08347e-08 -1.96447e-07 -3.49312e-08 -1.70434e-07 -2.60128e-08 -1.58641e-07 -1.17928e-08 -1.48879e-07 -9.76251e-09 -1.31315e-07 -1.75637e-08 -1.01911e-07 -2.9404e-08 -5.98744e-08 -4.20364e-08 -5.07796e-09 -5.47965e-08 5.08172e-08 -5.58952e-08 1.09709e-07 -5.88916e-08 1.64978e-07 -5.52691e-08 2.17079e-07 -5.21013e-08 2.60907e-07 -4.38289e-08 2.90145e-07 -2.92376e-08 3.15446e-07 -2.53021e-08 3.42892e-07 -2.74463e-08 3.7169e-07 -2.87989e-08 -2.99013e-08 -2.22447e-08 3.53092e-08 -4.68149e-08 3.91974e-08 -7.31305e-08 5.14127e-08 -8.71636e-08 4.41426e-08 -7.86798e-08 4.98192e-09 -6.75636e-08 -2.55607e-08 -5.9269e-08 -3.00929e-08 -5.59306e-08 -2.01834e-08 -7.1201e-08 1.04657e-08 -1.03339e-07 4.232e-08 -1.33539e-07 5.30212e-08 -1.57976e-07 5.42288e-08 -1.70306e-07 4.06408e-08 -1.75888e-07 2.90108e-08 -1.80407e-07 2.86687e-08 -1.84222e-07 3.29293e-08 -1.92493e-07 4.11493e-08 -1.97858e-07 3.71565e-08 -1.94004e-07 2.72541e-08 -1.92026e-07 1.45318e-09 -1.88871e-07 -3.64164e-08 -1.8577e-07 -4.39357e-08 -1.77457e-07 -4.32441e-08 -1.67687e-07 -3.57827e-08 -1.54038e-07 -2.54414e-08 -1.40447e-07 -2.33535e-08 -1.17874e-07 -4.01364e-08 -9.05566e-08 -5.67214e-08 -5.20363e-08 -8.05566e-08 -1.28122e-08 -9.40205e-08 2.93987e-08 -9.81059e-08 6.89713e-08 -9.84641e-08 1.11662e-07 -9.79596e-08 1.55221e-07 -9.56602e-08 1.97426e-07 -8.60338e-08 2.41989e-07 -7.37991e-08 2.83216e-07 -6.6529e-08 3.21155e-07 -6.53839e-08 3.5812e-07 -6.57616e-08 -6.72366e-08 -3.22274e-08 6.75368e-08 -6.01893e-08 6.71595e-08 -8.64325e-08 7.76561e-08 -1.05783e-07 6.34931e-08 -1.12204e-07 1.14037e-08 -1.23731e-07 -1.40344e-08 -1.4349e-07 -1.03336e-08 -1.76782e-07 1.31087e-08 -2.08969e-07 4.26534e-08 -2.33188e-07 6.65385e-08 -2.54028e-07 7.38617e-08 -2.66581e-07 6.67814e-08 -2.62117e-07 3.61774e-08 -2.48589e-07 1.54825e-08 -2.31147e-07 1.12277e-08 -2.03364e-07 5.14611e-09 -1.55209e-07 -7.0056e-09 -1.25921e-07 7.86817e-09 -1.06376e-07 7.70967e-09 -1.1445e-07 9.5275e-09 -1.22659e-07 -2.82079e-08 -1.22686e-07 -4.39081e-08 -1.21117e-07 -4.48137e-08 -1.16511e-07 -4.03881e-08 -1.18501e-07 -2.34514e-08 -1.22338e-07 -1.95165e-08 -1.24208e-07 -3.82662e-08 -1.12376e-07 -6.85534e-08 -7.65658e-08 -1.16367e-07 -2.409e-08 -1.46496e-07 3.21056e-08 -1.54302e-07 8.84522e-08 -1.54811e-07 1.45774e-07 -1.55281e-07 1.93987e-07 -1.43874e-07 2.34653e-07 -1.267e-07 2.72019e-07 -1.11165e-07 3.08073e-07 -1.02584e-07 3.37962e-07 -9.52735e-08 3.61745e-07 -8.95447e-08 -8.55818e-08 -2.33716e-08 9.09084e-08 -4.9521e-08 9.33091e-08 -7.96113e-08 1.07747e-07 -1.18736e-07 1.02618e-07 -1.666e-07 5.92674e-08 -2.08253e-07 2.76188e-08 -2.44375e-07 2.57883e-08 -2.7185e-07 4.05847e-08 -2.81167e-07 5.19699e-08 -2.75119e-07 6.04908e-08 -2.65343e-07 6.40863e-08 -2.62372e-07 6.38099e-08 -2.77057e-07 5.08628e-08 -2.74915e-07 1.33404e-08 -2.51716e-07 -1.19709e-08 -1.94644e-07 -5.19261e-08 -1.10503e-07 -9.11466e-08 -3.6432e-08 -6.62025e-08 1.91207e-08 -4.7843e-08 3.31724e-08 -4.52417e-09 2.12455e-08 -1.6281e-08 2.15978e-08 -4.42603e-08 3.41164e-08 -5.73323e-08 5.07043e-08 -5.6976e-08 6.26591e-08 -3.54062e-08 3.77273e-08 5.41534e-09 -4.80973e-09 4.27085e-09 -4.13319e-08 -3.20312e-08 -1.99178e-08 -1.37781e-07 4.15602e-08 -2.07974e-07 1.04447e-07 -2.17188e-07 1.59984e-07 -2.10349e-07 2.04301e-07 -1.99597e-07 2.33975e-07 -1.73548e-07 2.57879e-07 -1.50604e-07 2.82875e-07 -1.36162e-07 3.09909e-07 -1.29617e-07 3.37154e-07 -1.22519e-07 3.63696e-07 -1.16086e-07 -1.09156e-07 -1.52282e-08 1.06137e-07 -3.16049e-08 1.09686e-07 -4.63338e-08 1.22476e-07 -7.17296e-08 1.28014e-07 -1.18975e-07 1.06512e-07 -1.65682e-07 7.43268e-08 -1.98391e-07 5.84968e-08 -2.16016e-07 5.82103e-08 -2.22819e-07 5.87726e-08 -2.22615e-07 6.02873e-08 -2.24678e-07 6.61496e-08 -2.281e-07 6.72321e-08 -2.33596e-07 5.63583e-08 -2.21783e-07 1.52823e-09 -2.01821e-07 -3.1933e-08 -1.6939e-07 -8.43568e-08 -1.32101e-07 -1.28436e-07 -6.67125e-08 -1.31591e-07 -2.14969e-08 -9.30586e-08 8.09692e-09 -3.4118e-08 2.19026e-08 -3.00867e-08 5.19312e-08 -7.42889e-08 7.97072e-08 -8.51083e-08 1.30704e-07 -1.07973e-07 1.8094e-07 -8.5642e-08 1.90957e-07 -4.602e-09 1.82964e-07 1.22639e-08 1.72433e-07 -2.14997e-08 1.68891e-07 -1.3424e-07 1.79477e-07 -2.18561e-07 1.93499e-07 -2.3121e-07 2.09305e-07 -2.26155e-07 2.22215e-07 -2.12508e-07 2.28138e-07 -1.79471e-07 2.38728e-07 -1.61195e-07 2.58633e-07 -1.56067e-07 2.80724e-07 -1.51709e-07 3.03104e-07 -1.44899e-07 3.23973e-07 -1.36956e-07 -1.25479e-07 -1.13366e-08 1.17473e-07 -2.21494e-08 1.20499e-07 -2.78859e-08 1.28212e-07 -3.1603e-08 1.31731e-07 -5.04715e-08 1.25381e-07 -8.13425e-08 1.05198e-07 -1.06801e-07 8.39559e-08 -1.15885e-07 6.72936e-08 -1.14257e-07 5.71449e-08 -1.04283e-07 5.03135e-08 -9.90348e-08 6.09016e-08 -9.11219e-08 5.93193e-08 -1.0647e-07 7.17066e-08 -1.40004e-07 3.50623e-08 -1.80966e-07 9.02891e-09 -1.88481e-07 -7.6842e-08 -1.72888e-07 -1.44028e-07 -1.51918e-07 -1.52561e-07 -1.34831e-07 -1.10146e-07 -1.07086e-07 -6.18627e-08 -6.86153e-08 -6.85576e-08 -1.64162e-08 -1.26488e-07 1.93006e-08 -1.20825e-07 3.72897e-08 -1.25962e-07 4.65205e-08 -9.4873e-08 9.96612e-08 -5.77427e-08 1.55786e-07 -4.38607e-08 2.14402e-07 -8.0116e-08 2.43441e-07 -1.63278e-07 2.44232e-07 -2.19353e-07 2.39229e-07 -2.26207e-07 2.31914e-07 -2.18839e-07 2.17815e-07 -1.98409e-07 1.85297e-07 -1.46953e-07 1.77343e-07 -1.53241e-07 1.91316e-07 -1.7004e-07 2.05829e-07 -1.66221e-07 2.18206e-07 -1.57276e-07 2.24918e-07 -1.43668e-07 -1.25351e-07 1.52073e-09 1.15953e-07 2.80681e-09 1.19213e-07 1.03592e-08 1.2066e-07 1.9548e-08 1.22543e-07 2.14413e-08 1.23488e-07 1.5546e-08 1.11093e-07 8.13895e-09 9.1363e-08 5.02491e-09 7.04077e-08 7.87106e-09 5.42988e-08 2.54672e-08 3.27175e-08 6.14811e-08 2.48878e-08 9.45808e-08 2.62196e-08 9.75495e-08 6.8738e-08 4.1104e-08 9.15079e-08 -4.01692e-08 9.03022e-08 -1.26863e-07 9.8517e-09 -1.85314e-07 -8.55769e-08 -2.09077e-07 -1.28798e-07 -1.93963e-07 -1.2526e-07 -1.30147e-07 -1.25679e-07 -6.55474e-08 -1.33157e-07 -4.52313e-08 -1.46804e-07 -3.03892e-08 -1.35667e-07 -1.22497e-08 -1.44102e-07 1.58138e-08 -1.22937e-07 7.61497e-08 -1.18079e-07 1.4948e-07 -1.17191e-07 2.26137e-07 -1.56773e-07 2.65733e-07 -2.02874e-07 2.60685e-07 -2.14304e-07 2.45737e-07 -2.1126e-07 2.12675e-07 -1.85777e-07 1.26371e-07 -1.12105e-07 5.61908e-08 -7.67732e-08 6.24571e-08 -1.59507e-07 8.36045e-08 -1.91188e-07 9.10676e-08 -1.73684e-07 9.14271e-08 -1.57635e-07 9.05537e-08 -1.42795e-07 -1.18956e-07 1.10213e-08 1.04932e-07 2.25365e-08 1.07698e-07 3.98488e-08 1.03348e-07 6.22469e-08 1.00145e-07 8.48559e-08 1.00879e-07 9.68918e-08 9.90574e-08 1.02843e-07 8.54119e-08 9.95604e-08 7.36904e-08 8.74539e-08 6.64054e-08 7.58603e-08 4.43111e-08 7.93124e-08 2.14359e-08 7.85438e-08 2.69883e-08 7.64024e-08 7.08795e-08 7.96803e-08 8.82301e-08 7.44282e-08 9.55545e-08 1.57786e-08 6.85013e-08 -3.69471e-08 -3.28512e-08 -8.33837e-08 -8.23616e-08 -9.11111e-08 -1.17533e-07 -6.98242e-08 -1.46966e-07 -5.77661e-08 -1.45215e-07 -5.37236e-08 -1.50847e-07 -2.68324e-08 -1.62559e-07 9.04233e-10 -1.71839e-07 3.75448e-08 -1.59577e-07 7.88472e-08 -1.59381e-07 1.43799e-07 -1.82144e-07 1.9325e-07 -2.06224e-07 2.04728e-07 -2.14353e-07 1.90493e-07 -2.00069e-07 1.36456e-07 -1.57222e-07 5.33641e-08 -1.02686e-07 -2.03038e-08 -3.84367e-08 -2.64894e-08 -7.05876e-08 -9.72555e-09 -1.76271e-07 -1.47521e-08 -1.86161e-07 -2.90255e-08 -1.59411e-07 -3.5826e-08 -1.50835e-07 -2.94986e-08 -1.49122e-07 -1.32278e-07 1.16953e-08 9.32364e-08 2.42338e-08 9.51593e-08 4.75009e-08 8.00808e-08 7.86856e-08 6.896e-08 1.11214e-07 6.83503e-08 1.38507e-07 7.1765e-08 1.53387e-07 7.05318e-08 1.49801e-07 7.72759e-08 1.25161e-07 9.10462e-08 8.96379e-08 7.98338e-08 7.47973e-08 3.62765e-08 6.31201e-08 3.86656e-08 6.9204e-08 6.47956e-08 8.59701e-08 7.1464e-08 9.87814e-08 8.27432e-08 1.04032e-07 6.32511e-08 8.56879e-08 -1.45074e-08 6.73202e-08 -6.39939e-08 5.67807e-08 -1.06993e-07 4.86774e-08 -1.38862e-07 4.34494e-08 -1.39987e-07 4.16365e-08 -1.49034e-07 4.46162e-08 -1.65538e-07 4.41473e-08 -1.7137e-07 5.31072e-08 -1.68537e-07 7.91029e-08 -1.85377e-07 1.06031e-07 -2.09072e-07 1.10805e-07 -2.10997e-07 8.99559e-08 -1.93504e-07 2.88731e-08 -1.38987e-07 -4.35898e-08 -8.47594e-08 -8.95954e-08 -5.66799e-08 -8.27836e-08 -4.52485e-08 -4.93253e-08 -1.04046e-07 -5.94211e-08 -1.66175e-07 -8.09252e-08 -1.64657e-07 -9.7763e-08 -1.42573e-07 -1.04931e-07 -1.43667e-07 -1.02376e-07 -1.51678e-07 -1.36843e-07 1.66183e-08 7.66181e-08 3.59337e-08 7.58439e-08 6.20393e-08 5.39751e-08 9.36346e-08 3.73647e-08 1.22433e-07 3.95522e-08 1.44063e-07 5.0135e-08 1.58886e-07 5.5708e-08 1.64711e-07 7.14514e-08 1.53406e-07 1.02352e-07 1.3277e-07 1.0047e-07 1.06477e-07 6.25694e-08 9.76557e-08 4.74864e-08 1.0133e-07 6.11209e-08 1.08268e-07 6.45264e-08 1.32088e-07 5.89232e-08 1.58922e-07 3.64169e-08 1.6434e-07 -1.99252e-08 1.61715e-07 -6.13685e-08 1.50089e-07 -9.53671e-08 1.34385e-07 -1.23159e-07 1.2506e-07 -1.30661e-07 1.04261e-07 -1.28235e-07 8.27975e-08 -1.44074e-07 6.41472e-08 -1.52719e-07 6.44241e-08 -1.68814e-07 7.48698e-08 -1.95822e-07 6.9729e-08 -2.03931e-07 5.12137e-08 -1.92482e-07 -1.74409e-09 -1.40546e-07 -6.53565e-08 -7.53741e-08 -9.40476e-08 -5.60682e-08 -9.63476e-08 -5.438e-08 -7.7134e-08 -6.44621e-08 -7.38864e-08 -1.07293e-07 -9.41848e-08 -1.45877e-07 -1.08324e-07 -1.50518e-07 -1.20077e-07 -1.3082e-07 -1.33585e-07 -1.30159e-07 -1.38939e-07 -1.46323e-07 -1.37245e-07 3.53651e-08 4.1253e-08 6.97453e-08 4.14638e-08 9.19745e-08 3.17459e-08 1.12137e-07 1.72025e-08 1.32814e-07 1.88746e-08 1.52686e-07 3.02631e-08 1.63155e-07 4.52392e-08 1.74961e-07 5.96453e-08 1.97728e-07 7.95846e-08 2.09809e-07 8.83883e-08 1.96727e-07 7.56515e-08 1.86924e-07 5.72894e-08 1.91856e-07 5.61894e-08 2.033e-07 5.30823e-08 2.21762e-07 4.04616e-08 2.45468e-07 1.27106e-08 2.50532e-07 -2.49895e-08 2.33895e-07 -4.47307e-08 2.06357e-07 -6.78291e-08 1.75952e-07 -9.27538e-08 1.40937e-07 -9.56464e-08 1.09181e-07 -9.64789e-08 8.15046e-08 -1.16398e-07 5.40094e-08 -1.25224e-07 4.63469e-08 -1.61151e-07 3.31653e-08 -1.82641e-07 9.35774e-09 -1.80124e-07 -2.12379e-08 -1.61886e-07 -7.34772e-08 -8.83063e-08 -9.52694e-08 -5.35818e-08 -9.9643e-08 -5.16946e-08 -9.51764e-08 -5.88465e-08 -8.30535e-08 -7.6585e-08 -8.29489e-08 -1.07398e-07 -1.03502e-07 -1.25324e-07 -1.2488e-07 -1.2914e-07 -1.32942e-07 -1.22757e-07 -1.40363e-07 -1.22738e-07 -1.51135e-07 -1.35551e-07 -1.26269e-07 4.3767e-08 -2.51405e-09 8.52674e-08 -3.6629e-11 1.1125e-07 5.76304e-09 1.41183e-07 -1.27306e-08 1.84602e-07 -2.45438e-08 2.276e-07 -1.27348e-08 2.54221e-07 1.86179e-08 2.76372e-07 3.74946e-08 3.05612e-07 5.03445e-08 3.28004e-07 6.59964e-08 3.38528e-07 6.51273e-08 3.43448e-07 5.23691e-08 3.4886e-07 5.07778e-08 3.53195e-07 4.87466e-08 3.49616e-07 4.40408e-08 3.31801e-07 3.05261e-08 3.06567e-07 2.4459e-10 2.80717e-07 -1.88815e-08 2.4937e-07 -3.64821e-08 2.03552e-07 -4.69354e-08 1.37121e-07 -2.92159e-08 8.10784e-08 -4.04358e-08 3.37648e-08 -6.90844e-08 1.07755e-08 -1.02235e-07 -5.41813e-09 -1.44958e-07 -3.33659e-08 -1.54693e-07 -5.30197e-08 -1.6047e-07 -8.27081e-08 -1.32198e-07 -1.07952e-07 -6.30627e-08 -1.13171e-07 -4.83623e-08 -1.15078e-07 -4.97876e-08 -1.11968e-07 -6.19568e-08 -1.05406e-07 -8.3147e-08 -1.12325e-07 -1.00479e-07 -1.2957e-07 -1.08078e-07 -1.38265e-07 -1.20446e-07 -1.33591e-07 -1.27431e-07 -1.31778e-07 -1.24551e-07 -1.40576e-07 -1.26753e-07 -1.15526e-07 5.91033e-08 -6.16173e-08 1.09482e-07 -5.04155e-08 1.55772e-07 -4.05267e-08 2.08068e-07 -6.50263e-08 2.5802e-07 -7.44954e-08 3.09544e-07 -6.42593e-08 3.60085e-07 -3.19228e-08 4.07418e-07 -9.83909e-09 4.51145e-07 6.61828e-09 4.81642e-07 3.54995e-08 5.01349e-07 4.54201e-08 5.04724e-07 4.89939e-08 4.98735e-07 5.67664e-08 4.88537e-07 5.89447e-08 4.62187e-07 7.03913e-08 4.06687e-07 8.60256e-08 3.39117e-07 6.78153e-08 2.84582e-07 3.56529e-08 2.2303e-07 2.50701e-08 1.43855e-07 3.22401e-08 9.01638e-08 2.44749e-08 4.14372e-08 8.29072e-09 -9.06515e-09 -1.85821e-08 -2.94332e-08 -8.18667e-08 -5.97884e-08 -1.14602e-07 -8.36429e-08 -1.30838e-07 -1.09658e-07 -1.34455e-07 -1.35533e-07 -1.06323e-07 -1.4132e-07 -5.72758e-08 -1.42127e-07 -4.75549e-08 -1.42232e-07 -4.96833e-08 -1.42178e-07 -6.20101e-08 -1.48931e-07 -7.63946e-08 -1.67448e-07 -8.19622e-08 -1.78575e-07 -9.6952e-08 -1.832e-07 -1.15821e-07 -1.95212e-07 -1.15419e-07 -2.09567e-07 -1.10195e-07 -2.30992e-07 -1.05329e-07 -8.92841e-08 8.89184e-08 -1.50536e-07 1.74097e-07 -1.35594e-07 2.54756e-07 -1.21186e-07 2.96969e-07 -1.07239e-07 3.16429e-07 -9.39553e-08 3.47179e-07 -9.50095e-08 4.02977e-07 -8.77209e-08 4.32373e-07 -3.92353e-08 4.44009e-07 -5.01751e-09 4.63508e-07 1.60013e-08 4.70395e-07 3.85324e-08 4.60766e-07 5.86236e-08 4.32656e-07 8.48767e-08 4.03787e-07 8.78129e-08 3.75219e-07 9.89602e-08 3.37904e-07 1.2334e-07 2.71896e-07 1.33824e-07 1.94644e-07 1.12904e-07 1.12973e-07 1.06741e-07 4.07491e-08 1.04464e-07 -1.38671e-08 7.90911e-08 -6.51328e-08 5.95563e-08 -8.2191e-08 -1.52388e-09 -1.12536e-07 -5.15222e-08 -1.46848e-07 -8.02899e-08 -1.71232e-07 -1.06454e-07 -1.95647e-07 -1.1004e-07 -2.05045e-07 -9.69245e-08 -1.98725e-07 -6.35967e-08 -1.94245e-07 -5.20347e-08 -1.92101e-07 -5.18269e-08 -1.9543e-07 -5.86814e-08 -2.07245e-07 -6.45801e-08 -2.2199e-07 -6.7217e-08 -2.35651e-07 -8.32914e-08 -2.54121e-07 -9.73505e-08 -2.71745e-07 -9.7795e-08 -2.84491e-07 -9.74488e-08 -2.97288e-07 -9.25319e-08 -7.90659e-08 9.43078e-08 -2.44843e-07 1.99476e-07 -2.40763e-07 2.77139e-07 -1.98848e-07 2.81125e-07 -1.11225e-07 2.37504e-07 -5.03334e-08 1.571e-07 -1.46053e-08 1.30029e-07 -6.06502e-08 1.41783e-07 -5.09889e-08 1.50471e-07 -1.37063e-08 1.55257e-07 1.12159e-08 1.73014e-07 2.07759e-08 1.80608e-07 5.10293e-08 1.67862e-07 9.76228e-08 1.33552e-07 1.22123e-07 1.00696e-07 1.31817e-07 7.11117e-08 1.52924e-07 3.49037e-08 1.70032e-07 -7.52659e-09 1.55335e-07 -4.13039e-08 1.40519e-07 -7.72725e-08 1.40433e-07 -1.22704e-07 1.24523e-07 -1.37763e-07 7.46149e-08 -1.42814e-07 3.5266e-09 -1.72649e-07 -2.16865e-08 -1.98383e-07 -5.45564e-08 -2.20558e-07 -8.42793e-08 -2.39758e-07 -9.08407e-08 -2.51318e-07 -8.53644e-08 -2.46839e-07 -6.80753e-08 -2.44831e-07 -5.40427e-08 -2.44818e-07 -5.18404e-08 -2.4369e-07 -5.98093e-08 -2.44451e-07 -6.38191e-08 -2.50182e-07 -6.14861e-08 -2.61725e-07 -7.1748e-08 -2.73914e-07 -8.51619e-08 -2.82564e-07 -8.91444e-08 -2.89413e-07 -9.06004e-08 -3.01455e-07 -8.04896e-08 -6.89822e-08 7.74726e-08 -3.22316e-07 1.49016e-07 -3.12306e-07 1.38068e-07 -1.879e-07 3.25661e-08 -5.72295e-09 -9.75992e-08 7.9832e-08 -1.45438e-07 3.32337e-08 -1.16251e-07 -8.98375e-08 -5.92734e-08 -1.07966e-07 -1.07007e-08 -6.22789e-08 -4.84351e-10 9.99721e-10 -2.89006e-08 4.91923e-08 -7.10162e-08 9.31451e-08 -1.0954e-07 1.36147e-07 -1.51948e-07 1.64531e-07 -1.8013e-07 1.59999e-07 -1.79309e-07 1.52103e-07 -1.49818e-07 1.40541e-07 -1.4211e-07 1.47626e-07 -1.56911e-07 1.55319e-07 -1.70474e-07 1.53996e-07 -1.71336e-07 1.25385e-07 -1.55157e-07 5.84352e-08 -1.7293e-07 2.12996e-08 -1.99448e-07 4.83139e-09 -2.23692e-07 -3.03124e-08 -2.44186e-07 -6.37855e-08 -2.6145e-07 -7.35769e-08 -2.72845e-07 -7.39687e-08 -2.72853e-07 -6.80677e-08 -2.6615e-07 -6.07456e-08 -2.60269e-07 -5.77215e-08 -2.59058e-07 -6.10204e-08 -2.6038e-07 -6.24965e-08 -2.60388e-07 -6.14782e-08 -2.69301e-07 -6.28349e-08 -2.74742e-07 -7.97216e-08 -2.74432e-07 -8.94539e-08 -2.7583e-07 -8.9203e-08 -2.75879e-07 -8.04399e-08 -6.72881e-08 1.28094e-08 -3.35125e-07 -6.56627e-09 -2.9293e-07 -8.40116e-08 -1.10454e-07 -1.47222e-07 5.74874e-08 -1.56314e-07 8.89241e-08 -1.0854e-07 -1.45395e-08 -8.82352e-08 -1.10143e-07 -9.30723e-08 -1.03129e-07 -1.58137e-07 2.78575e-09 -2.33526e-07 7.63895e-08 -3.10417e-07 1.26083e-07 -3.60971e-07 1.43698e-07 -3.66154e-07 1.4133e-07 -3.36035e-07 1.34412e-07 -2.9125e-07 1.15214e-07 -2.52885e-07 1.13738e-07 -2.33084e-07 1.20741e-07 -2.16483e-07 1.31024e-07 -2.00777e-07 1.39614e-07 -1.84979e-07 1.38198e-07 -1.62796e-07 1.03201e-07 -1.61875e-07 5.75139e-08 -1.82226e-07 4.16505e-08 -2.04753e-07 2.73582e-08 -2.25602e-07 -9.46282e-09 -2.42579e-07 -4.68087e-08 -2.56173e-07 -5.99834e-08 -2.65324e-07 -6.48173e-08 -2.65472e-07 -6.792e-08 -2.57738e-07 -6.84796e-08 -2.48495e-07 -6.69636e-08 -2.42582e-07 -6.69336e-08 -2.41549e-07 -6.35293e-08 -2.44022e-07 -5.90057e-08 -2.47472e-07 -5.93842e-08 -2.57454e-07 -6.97399e-08 -2.56469e-07 -9.04386e-08 -2.51161e-07 -9.45117e-08 -2.43424e-07 -8.8177e-08 -7.37428e-08 -4.28833e-08 -2.92242e-07 -9.36966e-08 -2.42116e-07 -1.70845e-07 -3.33056e-08 -1.80904e-07 6.75466e-08 -1.77321e-07 8.53414e-08 -1.95371e-07 3.51012e-09 -2.60355e-07 -4.51584e-08 -3.46218e-07 -1.72648e-08 -4.15497e-07 7.20649e-08 -4.49025e-07 1.09918e-07 -4.51134e-07 1.28192e-07 -4.37552e-07 1.30117e-07 -4.12509e-07 1.16287e-07 -3.66984e-07 8.88871e-08 -3.23047e-07 7.12769e-08 -2.81079e-07 7.17699e-08 -2.41335e-07 8.09972e-08 -2.13015e-07 1.02704e-07 -1.87642e-07 1.14241e-07 -1.58903e-07 1.09459e-07 -1.34016e-07 7.83135e-08 -1.39885e-07 6.33837e-08 -1.57525e-07 5.92899e-08 -1.78526e-07 4.83592e-08 -2.02637e-07 1.46479e-08 -2.24459e-07 -2.49864e-08 -2.44494e-07 -3.99481e-08 -2.63024e-07 -4.62874e-08 -2.73644e-07 -5.72992e-08 -2.73291e-07 -6.88333e-08 -2.65965e-07 -7.42895e-08 -2.55369e-07 -7.75291e-08 -2.43074e-07 -7.58247e-08 -2.30517e-07 -7.15625e-08 -2.21739e-07 -6.81623e-08 -2.18377e-07 -7.31018e-08 -2.2791e-07 -8.09052e-08 -2.36014e-07 -8.64078e-08 -2.37587e-07 -8.6604e-08 -8.1663e-08 -5.22051e-08 -2.40037e-07 -9.58957e-08 -1.98426e-07 -1.40409e-07 1.12076e-08 -1.60241e-07 8.73792e-08 -1.70209e-07 9.53088e-08 -2.22595e-07 5.58964e-08 -2.98091e-07 3.03376e-08 -3.80532e-07 6.51768e-08 -4.12189e-07 1.03722e-07 -4.19794e-07 1.17522e-07 -4.08951e-07 1.17349e-07 -3.84434e-07 1.056e-07 -3.42628e-07 7.44801e-08 -3.00939e-07 4.7198e-08 -2.70412e-07 4.07503e-08 -2.41109e-07 4.2467e-08 -2.12335e-07 5.2223e-08 -1.8649e-07 7.68583e-08 -1.57161e-07 8.4912e-08 -1.26042e-07 7.83402e-08 -1.13317e-07 6.55892e-08 -1.15731e-07 6.57974e-08 -1.31668e-07 7.52274e-08 -1.64725e-07 8.14153e-08 -2.0206e-07 5.19836e-08 -2.28514e-07 1.46737e-09 -2.52997e-07 -1.54653e-08 -2.76805e-07 -2.24786e-08 -2.98396e-07 -3.57088e-08 -3.0824e-07 -5.89887e-08 -3.10506e-07 -7.20236e-08 -3.07587e-07 -8.04476e-08 -2.96134e-07 -8.72779e-08 -2.73421e-07 -9.42752e-08 -2.46926e-07 -9.4657e-08 -2.31877e-07 -8.81511e-08 -2.26761e-07 -8.60214e-08 -2.23754e-07 -8.94146e-08 -2.1679e-07 -9.35684e-08 -8.83085e-08 -4.95294e-08 -1.90507e-07 -8.77286e-08 -1.60226e-07 -1.19431e-07 4.29103e-08 -1.47219e-07 1.15167e-07 -1.81315e-07 1.29405e-07 -2.48818e-07 1.23399e-07 -3.28508e-07 1.10028e-07 -3.6896e-07 1.05628e-07 -3.82433e-07 1.17195e-07 -3.63839e-07 9.89282e-08 -3.17328e-07 7.08383e-08 -2.70332e-07 5.86041e-08 -2.38176e-07 4.23236e-08 -2.27045e-07 3.60674e-08 -2.22496e-07 3.62016e-08 -2.21036e-07 4.10066e-08 -2.17203e-07 4.83903e-08 -1.92595e-07 5.22496e-08 -1.58123e-07 5.04402e-08 -1.26647e-07 4.68649e-08 -1.07729e-07 4.66703e-08 -9.55323e-08 5.36012e-08 -9.67536e-08 7.64487e-08 -1.31452e-07 1.16114e-07 -1.94043e-07 1.14574e-07 -2.33504e-07 4.09286e-08 -2.5243e-07 3.46051e-09 -2.7095e-07 -3.95853e-09 -2.95285e-07 -1.13729e-08 -3.15805e-07 -3.84693e-08 -3.30041e-07 -5.77869e-08 -3.38755e-07 -7.1734e-08 -3.43485e-07 -8.25472e-08 -3.331e-07 -1.04661e-07 -3.05717e-07 -1.22039e-07 -2.7101e-07 -1.22859e-07 -2.42594e-07 -1.14438e-07 -2.23304e-07 -1.08704e-07 -2.0979e-07 -1.07083e-07 -9.79215e-08 -4.56827e-08 -1.44825e-07 -7.41723e-08 -1.31737e-07 -9.03906e-08 5.91286e-08 -1.3264e-07 1.57417e-07 -1.83809e-07 1.80574e-07 -2.38625e-07 1.78215e-07 -2.72555e-07 1.43958e-07 -2.83083e-07 1.16156e-07 -2.75621e-07 1.09734e-07 -2.59926e-07 8.32331e-08 -2.3643e-07 4.73415e-08 -2.1781e-07 3.99846e-08 -2.13676e-07 3.81894e-08 -2.15364e-07 3.77553e-08 -2.18292e-07 3.91299e-08 -2.1835e-07 4.10644e-08 -2.10907e-07 4.09476e-08 -1.95891e-07 3.72333e-08 -1.73001e-07 2.75503e-08 -1.48096e-07 2.19595e-08 -1.2794e-07 2.65147e-08 -1.21544e-07 4.72054e-08 -1.31301e-07 8.6206e-08 -1.48939e-07 1.33752e-07 -1.76236e-07 1.41871e-07 -2.09078e-07 7.37716e-08 -2.40311e-07 3.46936e-08 -2.66201e-07 2.19317e-08 -2.84568e-07 6.9942e-09 -3.06375e-07 -1.66629e-08 -3.28236e-07 -3.59253e-08 -3.46158e-07 -5.38118e-08 -3.61039e-07 -6.76665e-08 -3.59969e-07 -1.0573e-07 -3.40644e-07 -1.41364e-07 -3.10507e-07 -1.52996e-07 -2.72929e-07 -1.52015e-07 -2.34032e-07 -1.47601e-07 -2.05957e-07 -1.35158e-07 -1.17121e-07 -2.80326e-08 -1.16792e-07 -6.1555e-08 -9.82141e-08 -6.78447e-08 6.54184e-08 -1.11729e-07 2.01301e-07 -1.59434e-07 2.28279e-07 -2.03147e-07 2.21929e-07 -2.24151e-07 1.64961e-07 -2.24142e-07 1.16148e-07 -2.1588e-07 1.01471e-07 -2.14372e-07 8.1725e-08 -2.15026e-07 4.79953e-08 -2.16662e-07 4.16208e-08 -2.18968e-07 4.0495e-08 -2.2405e-07 4.28375e-08 -2.29947e-07 4.50265e-08 -2.34658e-07 4.57756e-08 -2.35204e-07 4.14941e-08 -2.28888e-07 3.09164e-08 -2.21308e-07 1.99711e-08 -2.14338e-07 1.49896e-08 -2.08259e-07 2.04354e-08 -2.08125e-07 4.70717e-08 -2.11181e-07 8.92614e-08 -1.97902e-07 1.20474e-07 -1.771e-07 1.21069e-07 -1.96393e-07 9.30645e-08 -2.34382e-07 7.26829e-08 -2.67932e-07 5.54811e-08 -2.87936e-07 2.69986e-08 -3.16561e-07 1.19621e-08 -3.41301e-07 -1.11845e-08 -3.42741e-07 -5.23722e-08 -3.35242e-07 -7.51652e-08 -3.22732e-07 -1.1824e-07 -3.11947e-07 -1.52149e-07 -2.86587e-07 -1.78355e-07 -2.51164e-07 -1.87439e-07 -2.13736e-07 -1.85028e-07 -1.79728e-07 -1.69166e-07 -1.43257e-07 -2.86281e-08 -8.81639e-08 -5.95179e-08 -6.73242e-08 -4.62837e-08 5.21841e-08 -6.0657e-08 2.15674e-07 -9.16002e-08 2.59222e-07 -1.27641e-07 2.5797e-07 -1.6001e-07 1.97331e-07 -1.68472e-07 1.24609e-07 -1.8033e-07 1.13329e-07 -1.98033e-07 9.94286e-08 -2.17751e-07 6.7713e-08 -2.28897e-07 5.27671e-08 -2.36707e-07 4.83046e-08 -2.44347e-07 5.04774e-08 -2.51953e-07 5.26327e-08 -2.58371e-07 5.2193e-08 -2.62665e-07 4.57888e-08 -2.63687e-07 3.19377e-08 -2.7042e-07 2.67049e-08 -2.89806e-07 3.43754e-08 -3.12411e-07 4.30404e-08 -3.28044e-07 6.27053e-08 -3.24904e-07 8.61206e-08 -3.03346e-07 9.89169e-08 -2.85909e-07 1.03631e-07 -2.88089e-07 9.52445e-08 -3.04342e-07 8.89356e-08 -3.24571e-07 7.57106e-08 -3.49152e-07 5.15797e-08 -3.62874e-07 2.56844e-08 -3.47478e-07 -2.65807e-08 -3.29117e-07 -7.07331e-08 -2.90157e-07 -1.14125e-07 -2.66392e-07 -1.42005e-07 -2.43996e-07 -1.74544e-07 -2.16062e-07 -2.06289e-07 -1.80565e-07 -2.22935e-07 -1.40655e-07 -2.24938e-07 -1.01426e-07 -2.08396e-07 -1.70946e-07 -4.1962e-08 -4.62019e-08 -7.28767e-08 -3.64095e-08 -5.08305e-08 3.01379e-08 -1.41249e-08 1.78968e-07 -3.25358e-09 2.4835e-07 -1.58925e-08 2.70608e-07 -5.76896e-08 2.39128e-07 -9.46154e-08 1.61535e-07 -1.22486e-07 1.41199e-07 -1.6118e-07 1.38123e-07 -2.01922e-07 1.08455e-07 -2.32089e-07 8.29342e-08 -2.47335e-07 6.355e-08 -2.53022e-07 5.6165e-08 -2.59279e-07 5.88893e-08 -2.69332e-07 6.22453e-08 -2.82722e-07 5.91796e-08 -2.98275e-07 4.74904e-08 -3.11311e-07 3.9741e-08 -3.21496e-07 4.45609e-08 -3.3135e-07 5.2894e-08 -3.48669e-07 8.00241e-08 -3.67959e-07 1.05411e-07 -3.8279e-07 1.13748e-07 -3.77882e-07 9.87237e-08 -3.55826e-07 7.31882e-08 -3.37002e-07 7.01116e-08 -3.16629e-07 5.5338e-08 -3.03625e-07 3.85755e-08 -2.86836e-07 8.8961e-09 -2.77389e-07 -3.60271e-08 -2.6676e-07 -8.13627e-08 -2.57984e-07 -1.22901e-07 -2.44473e-07 -1.55516e-07 -2.23079e-07 -1.95938e-07 -1.9635e-07 -2.33018e-07 -1.59102e-07 -2.60184e-07 -1.13124e-07 -2.70916e-07 -7.0156e-08 -2.51363e-07 -2.03023e-07 -4.66603e-08 4.58446e-10 -7.91212e-08 -3.94866e-09 -6.69807e-08 1.79974e-08 1.31117e-08 9.88762e-08 7.02568e-08 1.91205e-07 1.14561e-07 2.26304e-07 1.13285e-07 2.40404e-07 4.95111e-08 2.25309e-07 -7.03199e-09 1.97743e-07 -4.62887e-08 1.7738e-07 -9.5227e-08 1.57394e-07 -1.47577e-07 1.35284e-07 -1.92967e-07 1.08941e-07 -2.23287e-07 8.64848e-08 -2.40903e-07 7.65049e-08 -2.45138e-07 6.64804e-08 -2.57186e-07 7.12282e-08 -2.80367e-07 7.06711e-08 -3.04186e-07 6.35597e-08 -3.19816e-07 6.01913e-08 -3.35152e-07 6.82301e-08 -3.51496e-07 9.63682e-08 -3.53183e-07 1.07098e-07 -3.4262e-07 1.03184e-07 -3.29821e-07 8.59247e-08 -3.18935e-07 6.23024e-08 -2.94329e-07 4.55059e-08 -2.62348e-07 2.33565e-08 -2.2386e-07 8.82172e-11 -1.97718e-07 -1.72456e-08 -1.68946e-07 -6.47995e-08 -1.45352e-07 -1.04957e-07 -1.32414e-07 -1.35838e-07 -1.28575e-07 -1.59355e-07 -1.50169e-07 -1.74344e-07 -1.70484e-07 -2.12703e-07 -1.62615e-07 -2.68052e-07 -1.30291e-07 -3.0324e-07 -9.2348e-08 -2.89306e-07 -2.40957e-07 -3.10397e-08 3.14982e-08 -6.28041e-08 2.78157e-08 -7.10654e-08 2.62587e-08 -9.81411e-09 3.76248e-08 7.63548e-08 1.05036e-07 1.35087e-07 1.67572e-07 2.02901e-07 1.7259e-07 2.01047e-07 2.27162e-07 1.55964e-07 2.42826e-07 1.13918e-07 2.19425e-07 7.58422e-08 1.9547e-07 4.03268e-08 1.70799e-07 3.04512e-09 1.46222e-07 -4.66818e-08 1.36212e-07 -1.08868e-07 1.38691e-07 -1.6455e-07 1.22163e-07 -1.88114e-07 9.47928e-08 -1.92544e-07 7.51009e-08 -2.06771e-07 7.77861e-08 -2.3533e-07 8.87506e-08 -2.62793e-07 9.56932e-08 -2.68595e-07 1.02171e-07 -2.61245e-07 9.97479e-08 -2.42881e-07 8.48207e-08 -2.05939e-07 4.89824e-08 -1.71897e-07 2.82603e-08 -1.39103e-07 1.27118e-08 -1.12383e-07 -3.36315e-09 -7.99208e-08 -3.23743e-08 -3.08317e-08 -6.63347e-08 1.43315e-08 -1.09963e-07 4.51911e-08 -1.35816e-07 6.93099e-08 -1.59957e-07 7.63451e-08 -1.6639e-07 4.44924e-08 -1.42491e-07 -1.66118e-08 -1.51599e-07 -6.36367e-08 -2.21027e-07 -6.39018e-08 -3.02975e-07 -4.8145e-08 -3.05063e-07 -2.58658e-07 -1.47754e-08 4.62737e-08 -3.59236e-08 4.89638e-08 -3.68514e-08 2.71864e-08 -2.07537e-08 2.15269e-08 3.81733e-08 4.61092e-08 1.15032e-07 9.07128e-08 1.69253e-07 1.18369e-07 2.19003e-07 1.77411e-07 2.71443e-07 1.90386e-07 2.85088e-07 2.0578e-07 2.65103e-07 2.15455e-07 2.20323e-07 2.15579e-07 1.72784e-07 1.93761e-07 1.49149e-07 1.59847e-07 1.24222e-07 1.63618e-07 3.20277e-08 2.14357e-07 -8.10949e-08 2.07916e-07 -1.28382e-07 1.22388e-07 -1.19675e-07 6.90787e-08 -1.03776e-07 7.28522e-08 -8.52115e-08 7.71285e-08 -6.52406e-08 8.21997e-08 -4.63461e-08 8.08534e-08 -2.70429e-08 6.55175e-08 -1.34368e-08 3.53763e-08 -1.81868e-09 1.66423e-08 1.30256e-08 -2.1324e-09 2.88882e-08 -1.92258e-08 3.85363e-08 -4.20224e-08 9.27525e-08 -1.20551e-07 1.22101e-07 -1.39311e-07 1.27062e-07 -1.40778e-07 1.34206e-07 -1.671e-07 1.43919e-07 -1.76104e-07 1.39007e-07 -1.37579e-07 1.26159e-07 -1.3875e-07 7.7128e-08 -1.71996e-07 4.21109e-08 -2.67958e-07 1.3161e-08 -2.76113e-07 -2.44721e-07 -3.19454e-08 7.82191e-08 -4.56338e-08 6.26521e-08 -3.23865e-08 1.39389e-08 5.54986e-09 -1.64095e-08 5.22926e-08 -6.33673e-10 9.26039e-08 5.04013e-08 1.49618e-07 6.13549e-08 2.40989e-07 8.60408e-08 3.03685e-07 1.2769e-07 3.49588e-07 1.59878e-07 3.54674e-07 2.10368e-07 3.35594e-07 2.34659e-07 3.04323e-07 2.25032e-07 2.66246e-07 1.97924e-07 2.38145e-07 1.91719e-07 2.3404e-07 2.18462e-07 1.61386e-07 2.80569e-07 4.87325e-08 2.35042e-07 -2.0427e-08 1.38238e-07 -2.65693e-08 7.89946e-08 -8.80822e-09 5.93675e-08 6.76452e-09 6.66269e-08 1.59259e-08 7.1692e-08 1.69494e-08 6.44939e-08 1.1111e-08 4.12145e-08 1.41665e-08 1.35868e-08 2.89596e-08 -1.69255e-08 4.40359e-08 -3.43021e-08 6.40705e-08 -6.20573e-08 5.80935e-08 -1.14574e-07 7.56992e-08 -1.56917e-07 1.11075e-07 -1.76153e-07 1.31296e-07 -1.87321e-07 1.39371e-07 -1.84179e-07 1.40579e-07 -1.38787e-07 1.32367e-07 -1.30538e-07 1.10929e-07 -1.50557e-07 7.45027e-08 -2.31532e-07 3.16525e-08 -2.33263e-07 -2.20345e-07 -4.0085e-08 1.18304e-07 -5.3349e-08 7.59157e-08 -4.05693e-08 1.15909e-09 -1.06395e-08 -4.63395e-08 4.36977e-08 -5.4971e-08 7.33793e-08 2.07196e-08 1.09382e-07 2.53516e-08 1.69273e-07 2.61503e-08 2.50025e-07 4.69369e-08 3.00278e-07 1.09625e-07 3.27238e-07 1.83408e-07 3.44832e-07 2.17065e-07 3.54638e-07 2.15227e-07 3.57002e-07 1.9556e-07 3.47352e-07 2.01369e-07 3.45253e-07 2.20561e-07 3.57284e-07 2.68538e-07 3.26782e-07 2.65544e-07 2.24066e-07 2.40954e-07 1.36951e-07 1.6611e-07 9.60932e-08 1.00225e-07 8.8612e-08 7.41082e-08 9.15824e-08 6.87217e-08 9.47355e-08 6.13407e-08 9.25659e-08 4.3384e-08 8.95976e-08 1.65549e-08 8.94583e-08 -1.67863e-08 8.2249e-08 -2.70931e-08 5.50134e-08 -3.48218e-08 4.32589e-08 -1.0282e-07 6.74761e-08 -1.81134e-07 9.54172e-08 -2.04094e-07 1.12935e-07 -2.0484e-07 1.16968e-07 -1.88212e-07 1.10972e-07 -1.3279e-07 6.32053e-08 -8.27711e-08 6.20151e-08 -1.49367e-07 3.75814e-08 -2.07098e-07 -1.44269e-09 -1.94239e-07 -2.05214e-07 -6.92108e-09 1.25225e-07 -2.16291e-08 9.06235e-08 -5.51329e-08 3.46627e-08 -5.64993e-08 -4.49733e-08 -5.74659e-09 -1.05724e-07 5.82344e-08 -4.32615e-08 8.92976e-08 -5.71164e-09 8.07535e-08 3.46943e-08 1.01906e-07 2.57842e-08 1.64215e-07 4.73163e-08 2.42417e-07 1.05206e-07 3.07736e-07 1.51746e-07 3.54911e-07 1.68051e-07 3.81365e-07 1.69107e-07 4.00039e-07 1.82695e-07 4.0205e-07 2.1855e-07 4.12215e-07 2.58373e-07 4.15855e-07 2.61904e-07 4.02359e-07 2.54451e-07 3.35769e-07 2.327e-07 2.66104e-07 1.69889e-07 2.29915e-07 1.10298e-07 2.18373e-07 8.02629e-08 2.22648e-07 5.70655e-08 2.29694e-07 3.6338e-08 2.28931e-07 1.73175e-08 2.21025e-07 -8.87961e-09 2.04742e-07 -1.08105e-08 1.76047e-07 -6.12725e-09 1.39636e-07 -6.64091e-08 1.36721e-07 -1.78219e-07 1.4376e-07 -2.11134e-07 1.45868e-07 -2.06947e-07 1.18801e-07 -1.61145e-07 3.46997e-08 -4.86896e-08 -1.54775e-09 -4.65235e-08 1.95446e-08 -1.70459e-07 -1.3486e-08 -1.74067e-07 -4.79768e-08 -1.59748e-07 -1.99537e-07 6.43905e-08 6.08342e-08 8.619e-08 6.88238e-08 5.3545e-08 6.73075e-08 3.77441e-09 4.79719e-09 -6.09547e-09 -9.58541e-08 5.3506e-08 -1.02863e-07 1.08407e-07 -6.06126e-08 1.72491e-07 -2.93897e-08 1.64552e-07 3.37231e-08 1.42756e-07 6.91126e-08 1.77359e-07 7.06026e-08 2.23399e-07 1.05706e-07 2.71293e-07 1.20157e-07 3.14166e-07 1.26233e-07 3.53229e-07 1.43632e-07 3.75483e-07 1.96296e-07 3.99688e-07 2.34168e-07 4.06397e-07 2.55194e-07 4.11125e-07 2.49722e-07 4.09547e-07 2.34278e-07 3.87143e-07 1.92292e-07 3.39565e-07 1.57876e-07 3.00453e-07 1.19375e-07 2.82303e-07 7.52158e-08 2.80815e-07 3.78257e-08 2.86237e-07 1.18957e-08 2.81452e-07 -4.09543e-09 2.7396e-07 -3.31879e-09 2.7478e-07 -6.94706e-09 2.5317e-07 -4.47994e-08 2.27718e-07 -1.52767e-07 2.13195e-07 -1.96611e-07 1.86447e-07 -1.80199e-07 1.24185e-07 -9.88837e-08 4.15581e-08 3.39378e-08 5.55663e-08 -6.05315e-08 2.80813e-08 -1.42974e-07 -1.61726e-08 -1.29813e-07 -5.33846e-08 -1.22536e-07 -1.75134e-07 4.98755e-08 1.09586e-08 6.79725e-08 5.07266e-08 8.82833e-08 4.69967e-08 1.01737e-07 -8.65654e-09 1.13481e-07 -1.07599e-07 1.20223e-07 -1.09605e-07 1.552e-07 -9.55894e-08 1.94441e-07 -6.86309e-08 2.21153e-07 7.01166e-09 2.46746e-07 4.35193e-08 2.24118e-07 9.3231e-08 1.94308e-07 1.35516e-07 1.89409e-07 1.25055e-07 2.05256e-07 1.10386e-07 2.20529e-07 1.28359e-07 2.57805e-07 1.5902e-07 2.98594e-07 1.93379e-07 3.3926e-07 2.14528e-07 3.68064e-07 2.20918e-07 3.99278e-07 2.03063e-07 4.25559e-07 1.66012e-07 4.30308e-07 1.53127e-07 4.21999e-07 1.27684e-07 4.0982e-07 8.73945e-08 3.93719e-07 5.39271e-08 3.75688e-07 2.99258e-08 3.53168e-07 1.84247e-08 3.34739e-07 1.51104e-08 3.26882e-07 9.09793e-10 3.22574e-07 -4.04917e-08 3.0776e-07 -1.37954e-07 2.7245e-07 -1.61301e-07 2.07005e-07 -1.14753e-07 7.32507e-08 3.48701e-08 5.2387e-08 5.48016e-08 7.25066e-08 -8.06509e-08 4.50772e-08 -1.15545e-07 1.26793e-08 -9.74152e-08 -3.66894e-08 -7.31669e-08 -1.24801e-07 9.73311e-09 1.22533e-09 6.32207e-08 -2.76111e-09 1.33967e-07 -2.37496e-08 1.98842e-07 -7.35318e-08 2.03845e-07 -1.12602e-07 2.0681e-07 -1.12569e-07 2.05512e-07 -9.42914e-08 2.07477e-07 -7.05957e-08 2.30156e-07 -1.56669e-08 2.53014e-07 2.06606e-08 2.77191e-07 6.90542e-08 2.78739e-07 1.33969e-07 2.5176e-07 1.52034e-07 2.0871e-07 1.53436e-07 1.87492e-07 1.49577e-07 2.13664e-07 1.32847e-07 2.40879e-07 1.66163e-07 2.83025e-07 1.72382e-07 3.18101e-07 1.85842e-07 3.5757e-07 1.63594e-07 3.97938e-07 1.25643e-07 4.24505e-07 1.26561e-07 4.3274e-07 1.19449e-07 4.25021e-07 9.5113e-08 4.1417e-07 6.47785e-08 3.95398e-07 4.86972e-08 3.76041e-07 3.77824e-08 3.62702e-07 2.84495e-08 3.5307e-07 1.05417e-08 3.59383e-07 -4.68044e-08 3.1385e-07 -9.24207e-08 2.1809e-07 -6.55414e-08 8.60289e-08 1.73077e-08 3.36632e-08 8.72358e-08 9.64515e-08 -7.98646e-09 1.04497e-07 -8.8696e-08 8.31008e-08 -9.41486e-08 5.47188e-08 -6.90332e-08 -7.0818e-09 -1.13666e-08 -2.57165e-08 3.0989e-08 -2.97637e-08 1.0024e-07 -7.20121e-08 1.72732e-07 -9.62418e-08 2.18199e-07 -1.18999e-07 2.30936e-07 -1.25338e-07 2.32464e-07 -1.14097e-07 2.1985e-07 -8.16774e-08 2.09752e-07 -6.04981e-08 2.18149e-07 -2.40632e-08 2.42096e-07 -3.28699e-09 2.66698e-07 4.44519e-08 2.87508e-07 1.13158e-07 2.87514e-07 1.52028e-07 2.73905e-07 1.67045e-07 2.57848e-07 1.65634e-07 2.29535e-07 1.61161e-07 2.38061e-07 1.57637e-07 2.62589e-07 1.47854e-07 3.10283e-07 1.38148e-07 3.45082e-07 1.28794e-07 3.54335e-07 1.16391e-07 3.72331e-07 1.08565e-07 3.89879e-07 1.01901e-07 3.91465e-07 9.35271e-08 3.83782e-07 7.24617e-08 3.67907e-07 6.45723e-08 3.41071e-07 6.4618e-08 3.23266e-07 4.62547e-08 3.32583e-07 1.225e-09 3.20753e-07 -3.49741e-08 2.23239e-07 5.09322e-09 1.17214e-07 4.0484e-08 6.80131e-08 6.65086e-08 1.24262e-07 3.09865e-08 1.65861e-07 -4.95848e-08 1.52351e-07 -7.51865e-08 1.32887e-07 -7.46841e-08 7.57672e-08 -1.19138e-08 1.73736e-09 6.2663e-08 4.2331e-08 4.22992e-08 -7.2063e-08 9.27067e-08 -1.2242e-07 1.42098e-07 -1.45633e-07 1.74295e-07 -1.51196e-07 1.96267e-07 -1.4731e-07 2.16538e-07 -1.34368e-07 2.25267e-07 -9.04061e-08 2.22514e-07 -5.77452e-08 2.18806e-07 -2.03554e-08 2.02829e-07 1.26904e-08 2.02427e-07 4.48539e-08 2.18884e-07 9.67013e-08 2.33106e-07 1.37806e-07 2.41779e-07 1.58372e-07 2.57024e-07 1.50388e-07 2.73898e-07 1.44286e-07 2.88087e-07 1.43448e-07 3.07581e-07 1.2836e-07 3.24226e-07 1.21502e-07 3.30217e-07 1.22803e-07 3.25649e-07 1.20959e-07 3.16661e-07 1.17554e-07 3.01378e-07 1.17184e-07 2.8443e-07 1.10475e-07 2.71266e-07 8.56264e-08 2.63326e-07 7.25125e-08 2.4526e-07 8.26846e-08 2.52134e-07 3.93805e-08 2.38694e-07 1.46659e-08 1.48205e-07 5.55147e-08 7.39649e-08 7.9333e-08 8.00732e-08 3.43758e-08 1.29398e-07 1.71838e-08 1.90406e-07 -3.00215e-08 1.92668e-07 -5.18466e-08 1.61199e-07 -4.37184e-08 5.62116e-08 3.03034e-08 -6.23216e-08 1.06619e-07 -1.35961e-07 1.36303e-07 1.21936e-08 5.48118e-08 -1.26875e-07 1.09754e-07 -1.77362e-07 1.55155e-07 -1.91034e-07 1.84901e-07 -1.80942e-07 2.0346e-07 -1.6587e-07 2.19169e-07 -1.50076e-07 2.3436e-07 -1.05598e-07 2.34909e-07 -5.82942e-08 2.16945e-07 -2.39119e-09 1.71784e-07 5.78508e-08 1.41481e-07 7.51569e-08 1.45883e-07 9.22998e-08 1.70931e-07 1.12758e-07 1.97962e-07 1.3134e-07 2.29629e-07 1.18721e-07 2.66451e-07 1.07464e-07 2.98774e-07 1.11126e-07 3.1365e-07 1.13484e-07 3.13867e-07 1.21285e-07 3.03037e-07 1.33633e-07 2.84638e-07 1.39358e-07 2.60409e-07 1.41783e-07 2.24891e-07 1.52702e-07 1.88452e-07 1.46914e-07 1.6027e-07 1.13809e-07 1.6539e-07 6.73933e-08 1.93945e-07 5.41297e-08 1.54478e-07 7.88478e-08 6.9066e-08 1.00078e-07 6.07339e-08 6.3847e-08 9.98151e-08 4.02518e-08 1.47282e-07 -1.30914e-08 1.9714e-07 -3.26743e-08 1.93056e-07 -2.59379e-08 1.44143e-07 -2.9331e-09 2.81478e-08 7.22761e-08 -1.07814e-07 1.66265e-07 -1.71233e-07 1.70037e-07 -1.36784e-07 1.01854e-07 -3.41237e-08 8.06e-08 -2.07475e-07 1.3383e-07 -2.30593e-07 1.6362e-07 -2.20824e-07 1.78139e-07 -1.95462e-07 1.9057e-07 -1.78301e-07 2.01175e-07 -1.60682e-07 2.1632e-07 -1.20743e-07 2.32543e-07 -7.45169e-08 2.39312e-07 -9.16098e-09 2.33153e-07 6.40105e-08 2.02245e-07 1.06064e-07 1.85974e-07 1.08571e-07 1.93772e-07 1.0496e-07 2.28133e-07 9.69786e-08 2.61303e-07 8.55496e-08 2.83622e-07 8.51453e-08 2.96771e-07 9.79766e-08 2.85803e-07 1.24452e-07 2.58279e-07 1.48808e-07 2.1145e-07 1.80463e-07 1.50533e-07 2.00274e-07 9.27318e-08 1.99585e-07 7.50936e-08 1.7034e-07 8.20523e-08 1.39956e-07 8.70883e-08 1.08773e-07 3.41729e-08 1.20309e-07 -1.14109e-08 9.97135e-08 -1.71871e-08 8.46241e-08 1.22836e-08 7.06074e-08 5.4203e-08 2.19278e-08 1.12626e-07 -1.81712e-08 1.32077e-07 -3.25422e-08 1.23026e-07 -2.36234e-08 5.93076e-08 3.77799e-08 -7.40704e-08 1.30445e-07 -1.91453e-07 1.89658e-07 -2.15668e-07 1.9048e-07 -1.83804e-07 1.38173e-07 -1.7289e-07 9.09394e-08 3.98736e-08 6.7762e-08 -2.75237e-07 9.76849e-08 -2.60516e-07 1.05306e-07 -2.28446e-07 1.14145e-07 -2.04301e-07 1.34813e-07 -1.98969e-07 1.51958e-07 -1.77827e-07 1.68338e-07 -1.37124e-07 1.87198e-07 -9.33769e-08 2.16394e-07 -3.83567e-08 2.54484e-07 2.59204e-08 2.64926e-07 9.56219e-08 2.70199e-07 1.03298e-07 2.87122e-07 8.80361e-08 3.07109e-07 7.69915e-08 3.15338e-07 7.73208e-08 3.00781e-07 9.97021e-08 2.26783e-07 1.71975e-07 1.35413e-07 2.15822e-07 5.5996e-08 2.28226e-07 -6.49868e-09 2.42958e-07 -2.77434e-08 2.21519e-07 -2.16316e-08 1.93474e-07 -6.43484e-09 1.55144e-07 -6.70458e-09 1.40226e-07 -5.7341e-08 1.59409e-07 -8.91866e-08 1.52155e-07 -7.90161e-08 8.95431e-08 -5.70103e-08 6.26184e-08 -4.35988e-09 1.79572e-08 2.38987e-08 -6.3306e-09 2.71469e-08 -2.14192e-08 8.92772e-09 -1.4323e-08 -4.94887e-08 3.47928e-08 -1.47902e-07 1.36193e-07 -2.51492e-07 2.34033e-07 -3.07959e-07 2.46126e-07 -3.10722e-07 1.93244e-07 -3.34193e-07 1.61643e-07 -3.87039e-07 1.43786e-07 9.96317e-08 1.79081e-08 -2.93146e-07 1.44636e-08 -2.57072e-07 2.44095e-08 -2.38392e-07 5.79654e-08 -2.37857e-07 1.00764e-07 -2.41768e-07 1.42758e-07 -2.19821e-07 1.81555e-07 -1.7592e-07 2.13532e-07 -1.25354e-07 2.43213e-07 -6.80378e-08 2.44715e-07 2.44179e-08 2.07688e-07 1.32648e-07 2.15805e-07 9.51815e-08 2.45801e-07 5.80393e-08 2.45336e-07 7.74573e-08 1.92977e-07 1.29679e-07 7.1745e-08 2.20935e-07 -5.85659e-08 3.02286e-07 -1.15199e-07 2.72456e-07 -1.36653e-07 2.49679e-07 -1.21665e-07 2.2797e-07 -9.47195e-08 1.94574e-07 -8.98895e-08 1.88644e-07 -1.34292e-07 1.99546e-07 -1.85606e-07 1.9154e-07 -1.97091e-07 1.70895e-07 -1.43793e-07 9.88562e-08 -1.00444e-07 4.61949e-08 -6.8462e-08 3.06362e-08 -7.08397e-08 2.0335e-08 -7.62586e-08 -9.11508e-10 -8.02002e-08 -1.74774e-08 -1.20569e-07 2.60458e-08 -2.04797e-07 1.19021e-07 -2.87301e-07 2.18697e-07 -3.26642e-07 2.73375e-07 -3.62024e-07 2.81508e-07 -3.57179e-07 1.88399e-07 -3.81953e-07 1.86418e-07 -4.679e-07 2.29732e-07 1.40766e-07 -2.31422e-08 -2.70004e-07 -3.10588e-08 -2.49155e-07 5.03906e-09 -2.7449e-07 5.45695e-08 -2.87388e-07 1.04315e-07 -2.91514e-07 1.46337e-07 -2.61843e-07 1.71603e-07 -2.01187e-07 1.56956e-07 -1.10707e-07 7.50324e-08 1.38851e-08 -1.82333e-08 1.17684e-07 -4.21213e-08 1.56536e-07 -3.94327e-08 9.24926e-08 -4.81247e-08 6.6731e-08 -1.09054e-07 1.38386e-07 -2.10159e-07 2.30785e-07 -2.77234e-07 2.8801e-07 -2.70529e-07 2.9558e-07 -2.51018e-07 2.52945e-07 -2.16966e-07 2.15627e-07 -1.89071e-07 2.00075e-07 -2.03846e-07 2.0935e-07 -2.44086e-07 2.28884e-07 -2.65885e-07 2.21345e-07 -2.5598e-07 1.81636e-07 -1.95559e-07 1.10473e-07 -1.41273e-07 4.45705e-08 -1.14114e-07 1.90366e-08 -8.81106e-08 4.63267e-09 -6.98536e-08 2.07834e-09 -7.70911e-08 6.32612e-09 -1.40473e-07 4.59051e-08 -2.27307e-07 1.1288e-07 -2.92522e-07 1.84236e-07 -3.25887e-07 2.52063e-07 -3.4053e-07 2.88019e-07 -3.39454e-07 2.80432e-07 -3.60874e-07 2.0982e-07 -4.07925e-07 2.33469e-07 -4.34969e-07 2.56775e-07 1.4905e-07 -4.27101e-08 -2.27294e-07 -4.02376e-08 -2.51628e-07 -1.0265e-08 -3.04463e-07 1.83964e-08 -3.16049e-07 2.22881e-08 -2.95406e-07 -2.05956e-08 -2.18959e-07 -9.87943e-08 -1.22989e-07 -1.83548e-07 -2.59533e-08 -2.63975e-07 9.43112e-08 -2.91487e-07 1.45196e-07 -2.70214e-07 1.35264e-07 -2.78264e-07 1.00543e-07 -3.24909e-07 1.13376e-07 -3.87936e-07 2.01413e-07 -4.23174e-07 2.66023e-07 -4.15007e-07 2.79844e-07 -3.92326e-07 2.729e-07 -3.67741e-07 2.2836e-07 -3.52105e-07 1.99992e-07 -3.61295e-07 2.09264e-07 -3.74404e-07 2.22459e-07 -3.59063e-07 2.13543e-07 -3.14303e-07 1.76586e-07 -2.76311e-07 1.43644e-07 -2.38836e-07 7.29979e-08 -2.08114e-07 1.38488e-08 -1.72884e-07 -1.6193e-08 -1.30662e-07 -3.75897e-08 -1.16643e-07 -1.19395e-08 -1.77131e-07 6.68136e-08 -2.84001e-07 1.52776e-07 -3.51878e-07 1.80757e-07 -3.6719e-07 1.99548e-07 -3.72227e-07 2.571e-07 -3.62202e-07 2.77994e-07 -3.37401e-07 2.55631e-07 -3.54934e-07 2.27354e-07 -3.58497e-07 2.37032e-07 -3.35802e-07 2.34081e-07 1.51852e-07 -4.63971e-08 -1.80897e-07 -6.75097e-08 -2.30515e-07 -8.60894e-08 -2.85883e-07 -1.14714e-07 -2.87424e-07 -1.79608e-07 -2.30512e-07 -2.68847e-07 -1.2972e-07 -3.36465e-07 -5.53708e-08 -3.70645e-07 8.22665e-09 -3.61548e-07 8.52137e-08 -3.55956e-07 1.39604e-07 -3.65482e-07 1.44789e-07 -4.09894e-07 1.44954e-07 -4.81409e-07 1.84892e-07 -5.05267e-07 2.25271e-07 -4.85561e-07 2.46317e-07 -4.70782e-07 2.65065e-07 -4.60908e-07 2.63026e-07 -4.66368e-07 2.33821e-07 -4.64993e-07 1.98616e-07 -4.357e-07 1.79972e-07 -3.91068e-07 1.77827e-07 -3.52177e-07 1.74652e-07 -3.28639e-07 1.53048e-07 -2.97514e-07 1.12518e-07 -3.10548e-07 8.60326e-08 -3.16076e-07 1.93766e-08 -2.89898e-07 -4.23707e-08 -2.78044e-07 -4.94436e-08 -2.64117e-07 -2.58662e-08 -2.8618e-07 8.88757e-08 -3.09235e-07 1.75831e-07 -3.35541e-07 2.07062e-07 -3.64761e-07 2.28768e-07 -3.61703e-07 2.54041e-07 -3.43629e-07 2.5992e-07 -3.33288e-07 2.45289e-07 -3.35438e-07 2.29504e-07 -3.29245e-07 2.30839e-07 -3.11996e-07 2.16833e-07 1.50486e-07 -5.47929e-08 -1.26104e-07 -1.2263e-07 -1.62677e-07 -1.82421e-07 -2.26091e-07 -2.3932e-07 -2.30524e-07 -3.0535e-07 -1.64482e-07 -3.55925e-07 -7.91458e-08 -3.90262e-07 -2.10338e-08 -3.97511e-07 1.54756e-08 -4.03245e-07 9.09484e-08 -4.26458e-07 1.62816e-07 -4.66117e-07 1.84448e-07 -5.08336e-07 1.87172e-07 -5.44689e-07 2.21245e-07 -5.39012e-07 2.19594e-07 -5.10176e-07 2.17481e-07 -4.97385e-07 2.52273e-07 -4.92033e-07 2.57674e-07 -4.87388e-07 2.29175e-07 -4.52443e-07 1.63671e-07 -4.14124e-07 1.41654e-07 -3.90606e-07 1.54309e-07 -3.67794e-07 1.5184e-07 -3.56163e-07 1.41417e-07 -3.71883e-07 1.28239e-07 -3.86757e-07 1.00907e-07 -3.82858e-07 1.54771e-08 -3.944e-07 -3.08285e-08 -4.03114e-07 -4.07298e-08 -4.00695e-07 -2.82854e-08 -3.64063e-07 5.22434e-08 -3.39303e-07 1.51072e-07 -3.33982e-07 2.01741e-07 -3.28916e-07 2.23702e-07 -3.17306e-07 2.42432e-07 -3.20423e-07 2.63037e-07 -3.35957e-07 2.60824e-07 -3.51652e-07 2.45199e-07 -3.51816e-07 2.31003e-07 -3.31345e-07 1.96363e-07 1.10677e-07 -5.13462e-08 -7.47571e-08 -1.67439e-07 -4.65832e-08 -2.48605e-07 -1.44925e-07 -3.14393e-07 -1.64736e-07 -3.51873e-07 -1.27001e-07 -3.7662e-07 -5.43985e-08 -4.00281e-07 2.6272e-09 -4.12456e-07 2.765e-08 -4.13184e-07 9.16771e-08 -4.38039e-07 1.8767e-07 -4.70034e-07 2.16443e-07 -4.98638e-07 2.15776e-07 -5.07204e-07 2.29811e-07 -5.16983e-07 2.29373e-07 -5.27604e-07 2.28101e-07 -5.12463e-07 2.37132e-07 -4.84978e-07 2.30189e-07 -4.48657e-07 1.92854e-07 -4.27036e-07 1.42051e-07 -4.18662e-07 1.3328e-07 -3.93329e-07 1.28975e-07 -3.70044e-07 1.28555e-07 -3.69177e-07 1.4055e-07 -3.91372e-07 1.50433e-07 -4.27305e-07 1.3684e-07 -4.55966e-07 4.41375e-08 -4.77561e-07 -9.23341e-09 -4.98315e-07 -1.99763e-08 -5.14867e-07 -1.17338e-08 -4.89946e-07 2.73219e-08 -4.36357e-07 9.74828e-08 -3.93439e-07 1.58823e-07 -3.81335e-07 2.11597e-07 -4.07321e-07 2.68418e-07 -4.13602e-07 2.69317e-07 -4.15008e-07 2.6223e-07 -4.03425e-07 2.33616e-07 -3.83964e-07 2.11541e-07 -3.36121e-07 1.4852e-07 5.83867e-08 -5.8407e-09 -6.8916e-08 -1.3226e-07 7.98374e-08 -2.52621e-07 -2.45642e-08 -3.1854e-07 -9.8816e-08 -3.33786e-07 -1.11755e-07 -3.37234e-07 -5.09511e-08 -3.49241e-07 1.46341e-08 -3.7003e-07 4.84383e-08 -3.79299e-07 1.00946e-07 -3.98855e-07 2.07225e-07 -4.24937e-07 2.42524e-07 -4.49058e-07 2.39896e-07 -4.60528e-07 2.41282e-07 -4.75354e-07 2.44199e-07 -4.89402e-07 2.42149e-07 -4.84519e-07 2.3225e-07 -4.62902e-07 2.08572e-07 -4.37342e-07 1.67294e-07 -4.23692e-07 1.284e-07 -4.02287e-07 1.11875e-07 -3.72859e-07 9.95472e-08 -3.45881e-07 1.01577e-07 -3.32594e-07 1.27262e-07 -3.51259e-07 1.69098e-07 -3.99421e-07 1.85001e-07 -4.65663e-07 1.1038e-07 -4.96356e-07 2.14593e-08 -5.1192e-07 -4.41317e-09 -5.1911e-07 -4.54369e-09 -5.06113e-07 1.43247e-08 -4.74941e-07 6.63107e-08 -4.5947e-07 1.43351e-07 -4.58846e-07 2.10973e-07 -4.3445e-07 2.44022e-07 -4.29446e-07 2.64313e-07 -4.19157e-07 2.51941e-07 -4.17387e-07 2.31846e-07 -3.64813e-07 1.58967e-07 -2.84362e-07 6.80694e-08 7.89654e-09 -2.96238e-09 -6.5953e-08 -5.88555e-08 1.35731e-07 -1.77811e-07 9.43918e-08 -2.89417e-07 1.27907e-08 -3.79182e-07 -2.19898e-08 -3.87016e-07 -4.31171e-08 -3.63433e-07 -8.94905e-09 -3.39441e-07 2.44456e-08 -3.17184e-07 7.86882e-08 -2.92005e-07 1.82046e-07 -3.09489e-07 2.60007e-07 -3.54809e-07 2.85216e-07 -3.86716e-07 2.73189e-07 -4.02661e-07 2.60144e-07 -4.14098e-07 2.53586e-07 -4.17742e-07 2.35894e-07 -4.09539e-07 2.00369e-07 -3.98122e-07 1.55877e-07 -3.93096e-07 1.23374e-07 -3.90165e-07 1.08943e-07 -3.78072e-07 8.74548e-08 -3.35291e-07 5.87954e-08 -2.75226e-07 6.71969e-08 -2.35932e-07 1.29804e-07 -2.8481e-07 2.33879e-07 -4.07618e-07 2.33188e-07 -4.77813e-07 9.16548e-08 -5.04228e-07 2.20015e-08 -5.19807e-07 1.10356e-08 -5.25393e-07 1.99103e-08 -5.21014e-07 6.19314e-08 -5.1647e-07 1.38808e-07 -4.9773e-07 1.92232e-07 -4.7882e-07 2.25113e-07 -4.5841e-07 2.43903e-07 -4.44752e-07 2.38282e-07 -3.93905e-07 1.80999e-07 -3.32617e-07 9.76785e-08 -3.07156e-07 4.26084e-08 -9.93382e-09 -4.97679e-08 -1.61846e-08 -3.03195e-08 1.16284e-07 -3.28674e-08 9.69402e-08 -7.1489e-08 5.14128e-08 -1.42574e-07 4.90956e-08 -2.47502e-07 6.1811e-08 -2.68661e-07 1.221e-08 -2.76662e-07 3.24455e-08 -2.52137e-07 5.41633e-08 -2.0368e-07 1.33589e-07 -1.32572e-07 1.889e-07 -1.0989e-07 2.62534e-07 -1.53748e-07 3.17047e-07 -2.14189e-07 3.20584e-07 -2.56785e-07 2.96182e-07 -2.73823e-07 2.52932e-07 -2.73971e-07 2.00517e-07 -2.5174e-07 1.33646e-07 -2.47061e-07 1.18694e-07 -2.85135e-07 1.47016e-07 -3.35988e-07 1.38308e-07 -3.32069e-07 5.48766e-08 -2.71377e-07 6.50463e-09 -1.70322e-07 2.87482e-08 -1.26497e-07 1.90055e-07 -2.04365e-07 3.11055e-07 -3.30675e-07 2.17965e-07 -4.08848e-07 1.00175e-07 -4.4477e-07 4.69577e-08 -4.67292e-07 4.24329e-08 -4.9783e-07 9.2469e-08 -5.34461e-07 1.75439e-07 -5.39508e-07 1.9728e-07 -5.32156e-07 2.1776e-07 -5.05068e-07 2.16814e-07 -4.65989e-07 1.99203e-07 -3.98433e-07 1.13444e-07 -3.23284e-07 2.25293e-08 -2.74284e-07 -6.3919e-09 -4.4764e-08 -5.7785e-08 4.16008e-08 -4.48736e-08 1.03373e-07 -3.43801e-08 8.64469e-08 -5.77568e-08 7.47896e-08 -9.33751e-08 8.47136e-08 -1.06288e-07 7.4723e-08 -1.44622e-07 5.05444e-08 -1.74472e-07 6.22951e-08 -1.67729e-07 4.74196e-08 -1.28316e-07 9.41756e-08 -7.88709e-08 1.39455e-07 4.06933e-10 1.83257e-07 7.98244e-08 2.3763e-07 1.13299e-07 2.8711e-07 1.2111e-07 2.88372e-07 1.08938e-07 2.65104e-07 7.02543e-08 2.392e-07 2.37281e-08 1.80172e-07 -1.65878e-08 1.59009e-07 -4.50142e-08 1.75443e-07 -7.93186e-08 1.72612e-07 -1.1312e-07 8.86782e-08 -1.18719e-07 1.21036e-08 -9.93998e-08 9.42948e-09 -3.13954e-08 1.2205e-07 -2.61956e-08 3.05856e-07 -1.07806e-07 2.99576e-07 -2.14069e-07 2.06437e-07 -2.94003e-07 1.26891e-07 -3.52796e-07 1.01226e-07 -3.91284e-07 1.30958e-07 -4.19711e-07 2.03865e-07 -4.65356e-07 2.42925e-07 -4.80687e-07 2.33091e-07 -4.60145e-07 1.96272e-07 -3.95034e-07 1.34092e-07 -3.16918e-07 3.53272e-08 -2.68685e-07 -2.5704e-08 -2.13848e-07 -6.12284e-08 -7.93099e-08 -7.877e-08 1.20371e-07 -8.33577e-08 1.0796e-07 -9.52539e-08 9.83425e-08 -1.03418e-07 8.2954e-08 -1.19153e-07 1.00448e-07 -1.00767e-07 5.6337e-08 -1.27529e-07 7.73058e-08 -1.22226e-07 5.69923e-08 -1.18495e-07 4.36894e-08 -1.03577e-07 7.92576e-08 -7.84137e-08 1.14291e-07 -1.21665e-08 1.1701e-07 8.90599e-08 1.36403e-07 1.78907e-07 1.97263e-07 2.70787e-07 1.96491e-07 3.0525e-07 2.3064e-07 3.12565e-07 2.31885e-07 2.85062e-07 2.07675e-07 2.52502e-07 1.91569e-07 2.23876e-07 2.04068e-07 1.92342e-07 2.04145e-07 1.16555e-07 1.64465e-07 2.98137e-08 9.88447e-08 -5.30374e-08 9.22807e-08 -4.44081e-08 1.13421e-07 3.53521e-09 2.57912e-07 6.458e-09 2.96653e-07 -3.73102e-08 2.50206e-07 -1.22389e-07 2.1197e-07 -1.80703e-07 1.59541e-07 -2.04282e-07 1.54537e-07 -1.84675e-07 1.84259e-07 -1.70599e-07 2.28849e-07 -1.8802e-07 2.50512e-07 -2.28184e-07 2.36436e-07 -2.83554e-07 1.89462e-07 -3.17268e-07 6.90418e-08 -3.12598e-07 -3.03734e-08 -2.60384e-07 -1.13443e-07 -1.42733e-07 -2.75077e-08 1.47879e-07 -3.22624e-08 1.12715e-07 -4.14004e-08 1.0748e-07 -6.42682e-08 1.05821e-07 -7.77409e-08 1.13921e-07 -1.03571e-07 8.2167e-08 -1.01123e-07 7.48577e-08 -1.08673e-07 6.45416e-08 -1.02955e-07 3.7972e-08 -7.83592e-08 5.46619e-08 -2.02521e-08 5.61844e-08 1.28591e-08 8.38988e-08 6.86835e-08 8.05788e-08 1.2543e-07 1.40516e-07 1.80739e-07 1.41183e-07 2.30207e-07 1.81173e-07 2.82652e-07 1.7944e-07 3.19009e-07 1.71318e-07 3.01871e-07 2.08706e-07 2.54375e-07 2.51564e-07 2.03567e-07 2.54953e-07 1.63932e-07 2.04101e-07 7.33072e-08 1.8947e-07 -1.75283e-08 1.83116e-07 -5.48516e-08 1.50745e-07 -4.70923e-09 2.0777e-07 3.01363e-08 2.61807e-07 5.86586e-08 2.21683e-07 4.17754e-08 2.28854e-07 -1.11239e-09 2.02429e-07 -1.98377e-08 1.73263e-07 1.74244e-08 1.46996e-07 1.06845e-07 1.39428e-07 1.98272e-07 1.59084e-07 2.34095e-07 2.00613e-07 1.74542e-07 2.49015e-07 1.98118e-08 2.23771e-07 -1.11562e-07 1.01e-07 -1.35084e-07 -8.99218e-08 -1.42646e-07 1.70341e-08 1.30845e-07 3.05765e-08 9.91729e-08 2.54653e-08 1.12591e-07 2.02085e-08 1.11078e-07 1.8353e-08 1.15776e-07 2.72672e-08 7.32527e-08 3.26546e-08 6.94703e-08 3.45336e-08 6.26626e-08 3.23251e-08 4.01804e-08 4.9894e-08 3.70929e-08 6.79618e-08 3.81165e-08 1.04666e-07 4.71951e-08 1.20823e-07 6.44211e-08 1.64007e-07 9.7332e-08 1.91186e-07 1.14003e-07 2.36889e-07 1.3547e-07 2.58678e-07 1.57651e-07 2.73829e-07 1.56167e-07 2.79725e-07 2.02811e-07 2.60593e-07 2.70696e-07 2.41515e-07 2.74031e-07 2.20479e-07 2.25138e-07 1.95176e-07 2.14773e-07 1.45155e-07 2.33137e-07 6.94777e-08 2.26422e-07 6.10413e-08 2.16207e-07 8.28504e-08 2.39998e-07 9.3176e-08 2.11358e-07 9.43164e-08 2.27714e-07 8.35658e-08 2.1318e-07 8.22204e-08 1.74608e-07 1.08259e-07 1.20958e-07 1.70508e-07 7.7179e-08 2.69035e-07 6.0556e-08 3.82425e-07 8.72232e-08 4.63755e-07 1.67686e-07 4.57211e-07 2.30315e-07 3.47143e-07 2.11068e-07 1.70033e-07 8.7188e-08 -1.03571e-08 1.74566e-08 1.13388e-07 1.5052e-08 1.01577e-07 1.97831e-08 1.0786e-07 2.55442e-08 1.05317e-07 5.63208e-08 8.49993e-08 7.71968e-08 5.23766e-08 9.20885e-08 5.45783e-08 1.064e-07 4.83511e-08 1.27312e-07 1.92681e-08 1.68207e-07 -3.80227e-09 2.03782e-07 2.54162e-09 2.36046e-07 1.49318e-08 2.61082e-07 3.93849e-08 2.93858e-07 6.45568e-08 3.15204e-07 9.26577e-08 3.22024e-07 1.2865e-07 3.24068e-07 1.55607e-07 3.11493e-07 1.68742e-07 3.23439e-07 1.90866e-07 3.43986e-07 2.50149e-07 3.48207e-07 2.69809e-07 3.08211e-07 2.65134e-07 2.64871e-07 2.58113e-07 2.20155e-07 2.77852e-07 1.67407e-07 2.7917e-07 1.31631e-07 2.51983e-07 1.26136e-07 2.45493e-07 1.09148e-07 2.28347e-07 1.13334e-07 2.23527e-07 1.16187e-07 2.10327e-07 1.16306e-07 1.74488e-07 1.2347e-07 1.13794e-07 1.64412e-07 3.62362e-08 2.32402e-07 -7.43454e-09 3.25585e-07 -5.9596e-09 4.22106e-07 7.11644e-08 4.62957e-07 1.89465e-07 4.54157e-07 2.19868e-07 3.52655e-07 1.8869e-07 1.21169e-07 4.12172e-08 7.21711e-08 6.46875e-08 7.81074e-08 5.98012e-08 1.12747e-07 5.10836e-08 1.14035e-07 5.0928e-08 8.51548e-08 5.62096e-08 4.70947e-08 8.60483e-08 2.47393e-08 1.14481e-07 1.99184e-08 1.38953e-07 -5.20391e-09 1.93649e-07 -5.84983e-08 2.59003e-07 -6.28126e-08 3.03634e-07 -2.96988e-08 3.38281e-07 4.73795e-09 3.46871e-07 5.59678e-08 3.40895e-07 9.86337e-08 3.37051e-07 1.32494e-07 3.32287e-07 1.6037e-07 3.26307e-07 1.74721e-07 3.33928e-07 1.83245e-07 3.55392e-07 2.28684e-07 3.61487e-07 2.63714e-07 3.40947e-07 2.85675e-07 3.10084e-07 2.88976e-07 2.9247e-07 2.95466e-07 2.6577e-07 3.05871e-07 2.06574e-07 3.1118e-07 1.72178e-07 2.79889e-07 1.51816e-07 2.48709e-07 1.41411e-07 2.33933e-07 1.34345e-07 2.17392e-07 1.22006e-07 1.86827e-07 1.01466e-07 1.34334e-07 1.02121e-07 3.55814e-08 1.263e-07 -3.16139e-08 1.68016e-07 -4.76755e-08 2.24808e-07 1.43721e-08 3.04722e-07 1.09551e-07 3.8696e-07 1.37631e-07 4.49273e-07 1.26378e-07 8.20384e-08 8.2437e-08 -1.02657e-08 1.19754e-07 4.07906e-08 1.93145e-07 3.93564e-08 2.38936e-07 6.82436e-08 2.1774e-07 1.0635e-07 1.81333e-07 8.35016e-08 1.74416e-07 3.16555e-08 1.8205e-07 1.22844e-08 1.99272e-07 -2.24267e-08 2.30936e-07 -9.01616e-08 2.52289e-07 -8.41657e-08 2.55071e-07 -3.248e-08 2.46329e-07 1.34801e-08 2.48469e-07 5.38278e-08 2.60666e-07 8.64372e-08 2.81177e-07 1.11983e-07 3.03023e-07 1.38525e-07 3.16153e-07 1.61591e-07 3.20087e-07 1.7931e-07 3.40179e-07 2.08592e-07 3.54288e-07 2.49605e-07 3.54382e-07 2.85581e-07 3.38363e-07 3.04995e-07 3.20356e-07 3.13474e-07 3.02966e-07 3.23261e-07 2.81698e-07 3.32447e-07 2.4391e-07 3.17677e-07 2.02351e-07 2.90269e-07 1.76815e-07 2.59469e-07 1.58107e-07 2.361e-07 1.30849e-07 2.14086e-07 9.39282e-08 1.71254e-07 3.71081e-08 9.24016e-08 -2.12214e-08 2.67159e-08 -4.12343e-08 -2.76624e-08 2.07772e-09 -2.89397e-08 1.07167e-07 4.46207e-09 2.32781e-07 1.20174e-08 3.51857e-07 7.30282e-09 -1.00886e-08 5.17078e-08 -6.1973e-08 1.6315e-07 -7.0652e-08 2.75591e-07 -7.30847e-08 3.58225e-07 -1.43901e-08 3.89366e-07 7.52082e-08 3.99304e-07 7.35629e-08 3.63828e-07 6.71314e-08 3.11931e-07 6.4181e-08 2.77925e-07 1.15795e-08 2.4023e-07 -5.24659e-08 2.05556e-07 -4.94922e-08 1.59174e-07 1.39026e-08 1.25858e-07 4.6796e-08 1.21296e-07 5.83898e-08 1.39898e-07 6.78349e-08 1.77139e-07 7.47413e-08 2.21407e-07 9.42573e-08 2.62115e-07 1.20883e-07 2.95898e-07 1.45528e-07 3.23725e-07 1.80764e-07 3.40974e-07 2.32357e-07 3.44161e-07 2.82394e-07 3.41443e-07 3.07714e-07 3.38735e-07 3.16181e-07 3.37663e-07 3.24333e-07 3.44896e-07 3.25215e-07 3.4098e-07 3.21594e-07 3.14146e-07 3.17103e-07 2.71341e-07 3.02275e-07 2.29961e-07 2.7748e-07 1.98043e-07 2.46004e-07 1.65504e-07 2.03793e-07 1.23016e-07 1.3489e-07 6.84313e-08 8.13006e-08 1.94865e-08 2.12825e-08 9.12938e-09 -1.85827e-08 4.65703e-08 -3.29791e-08 1.06015e-07 -4.74272e-08 1.73671e-07 -6.03532e-08 -8.02376e-08 3.19085e-08 -9.38815e-08 8.10615e-08 -1.19805e-07 1.28363e-07 -1.20387e-07 1.80655e-07 -6.66831e-08 2.52872e-07 2.9905e-09 3.00991e-07 2.54437e-08 3.37378e-07 3.07436e-08 3.79915e-07 2.1644e-08 3.70662e-07 2.08325e-08 3.10045e-07 8.15126e-09 2.36546e-07 2.40071e-08 1.8988e-07 6.05686e-08 1.59191e-07 7.74848e-08 1.35991e-07 8.15899e-08 1.26538e-07 7.72875e-08 1.29561e-07 7.17176e-08 1.45906e-07 7.79121e-08 1.82919e-07 8.38701e-08 2.2847e-07 9.99775e-08 2.70305e-07 1.38929e-07 3.0016e-07 2.02502e-07 3.19554e-07 2.63e-07 3.32323e-07 2.94944e-07 3.44076e-07 3.04429e-07 3.65151e-07 3.03258e-07 3.92456e-07 2.9791e-07 4.21107e-07 2.92944e-07 4.39352e-07 2.98858e-07 4.43015e-07 2.98612e-07 4.27372e-07 2.93123e-07 3.93878e-07 2.79499e-07 3.52098e-07 2.45573e-07 3.28143e-07 1.58845e-07 3.29241e-07 8.02025e-08 3.15748e-07 3.47755e-08 2.94149e-07 3.01609e-09 2.95067e-07 -3.38968e-08 3.16401e-07 -6.87603e-08 3.54363e-07 -9.83154e-08 -1.25897e-07 1.49934e-08 -1.08875e-07 3.61516e-08 -1.40964e-07 5.20359e-08 -1.36271e-07 1.03612e-07 -1.18259e-07 1.86177e-07 -7.9575e-08 2.52762e-07 -4.11413e-08 3.05144e-07 -2.16389e-08 3.57168e-07 -3.03794e-08 3.94196e-07 -1.61965e-08 3.79256e-07 2.30919e-08 3.21177e-07 8.20853e-08 2.99325e-07 8.24214e-08 2.81369e-07 9.54407e-08 2.4124e-07 1.21719e-07 1.87214e-07 1.31314e-07 1.396e-07 1.19332e-07 1.11016e-07 1.06496e-07 1.04885e-07 9.00015e-08 1.27076e-07 7.77861e-08 1.65993e-07 1.00012e-07 2.10427e-07 1.58069e-07 2.61904e-07 2.11523e-07 3.07735e-07 2.49113e-07 3.44412e-07 2.67752e-07 3.81818e-07 2.65852e-07 4.20594e-07 2.59135e-07 4.56369e-07 2.57169e-07 4.79283e-07 2.75945e-07 4.91179e-07 2.86717e-07 5.01255e-07 2.83047e-07 5.00594e-07 2.8016e-07 4.80757e-07 2.6541e-07 4.44666e-07 1.94936e-07 4.16638e-07 1.0823e-07 3.99673e-07 5.17399e-08 3.97413e-07 5.27566e-09 3.9994e-07 -3.64232e-08 4.08758e-07 -7.75787e-08 4.24677e-07 -1.14234e-07 -1.44181e-07 3.29348e-08 -1.4181e-07 7.25137e-08 -1.80543e-07 1.13791e-07 -1.77549e-07 1.66238e-07 -1.70707e-07 2.3103e-07 -1.44367e-07 2.928e-07 -1.02911e-07 3.35786e-07 -6.46247e-08 3.45254e-07 -3.98472e-08 3.47216e-07 -1.81593e-08 3.59767e-07 1.05412e-08 3.93308e-07 4.85445e-08 4.12728e-07 6.30004e-08 4.29116e-07 7.9053e-08 4.21258e-07 1.29576e-07 3.53937e-07 1.98635e-07 2.36332e-07 2.36937e-07 1.2548e-07 2.17348e-07 6.29863e-08 1.52496e-07 5.43568e-08 8.6416e-08 7.57066e-08 7.86625e-08 1.21394e-07 1.12382e-07 1.84917e-07 1.48e-07 2.44609e-07 1.89421e-07 3.04192e-07 2.0817e-07 3.52961e-07 2.17084e-07 3.95591e-07 2.16506e-07 4.31676e-07 2.21085e-07 4.60346e-07 2.47274e-07 4.74004e-07 2.73059e-07 4.78733e-07 2.78318e-07 4.83683e-07 2.75209e-07 4.8888e-07 2.60213e-07 4.808e-07 2.03016e-07 4.69634e-07 1.19396e-07 4.66711e-07 5.46626e-08 4.67788e-07 4.19866e-09 4.75354e-07 -4.39896e-08 4.78773e-07 -8.09977e-08 4.81024e-07 -1.16486e-07 -1.39873e-07 4.41681e-08 -1.85979e-07 8.34914e-08 -2.19867e-07 1.26085e-07 -2.20143e-07 1.68004e-07 -2.12626e-07 2.12499e-07 -1.88862e-07 2.55368e-07 -1.45779e-07 2.86545e-07 -9.5802e-08 2.9767e-07 -5.09724e-08 3.02066e-07 -2.25544e-08 3.18191e-07 -5.58461e-09 3.57148e-07 9.58817e-09 3.99478e-07 2.06702e-08 4.3066e-07 4.78709e-08 4.44321e-07 1.15914e-07 4.26699e-07 2.16257e-07 3.56693e-07 3.06944e-07 2.40952e-07 3.33089e-07 1.43328e-07 2.5012e-07 7.84463e-08 1.51298e-07 6.09595e-08 9.61495e-08 8.47085e-08 8.8633e-08 1.24573e-07 1.08135e-07 1.79515e-07 1.3448e-07 2.23903e-07 1.63782e-07 2.60561e-07 1.80426e-07 2.94915e-07 1.82152e-07 3.30166e-07 1.85834e-07 3.65916e-07 2.11524e-07 3.9478e-07 2.44195e-07 4.11757e-07 2.61341e-07 4.2388e-07 2.63086e-07 4.36672e-07 2.47421e-07 4.42077e-07 1.9761e-07 4.43006e-07 1.18466e-07 4.54057e-07 4.3612e-08 4.77999e-07 -1.97439e-08 4.96656e-07 -6.26467e-08 5.10998e-07 -9.53402e-08 5.09594e-07 -1.15082e-07 -1.17975e-07 5.45675e-08 -2.40546e-07 1.11907e-07 -2.77207e-07 1.61983e-07 -2.70219e-07 2.03108e-07 -2.53752e-07 2.28123e-07 -2.13876e-07 2.53639e-07 -1.71295e-07 2.81756e-07 -1.23919e-07 2.95682e-07 -6.48991e-08 2.959e-07 -2.27722e-08 2.93057e-07 -2.74144e-09 3.03677e-07 -1.03238e-09 3.24787e-07 -4.39354e-10 3.57717e-07 1.49417e-08 3.91864e-07 8.17672e-08 3.90419e-07 2.17703e-07 3.83846e-07 3.13516e-07 3.8348e-07 3.33456e-07 3.1776e-07 3.1584e-07 2.17767e-07 2.51291e-07 1.46777e-07 1.6714e-07 1.23159e-07 1.12252e-07 1.3263e-07 9.8664e-08 1.44258e-07 1.22851e-07 1.66787e-07 1.41253e-07 1.85965e-07 1.61248e-07 1.92761e-07 1.75356e-07 1.93564e-07 1.85031e-07 2.07422e-07 1.97667e-07 2.30652e-07 2.20964e-07 2.45273e-07 2.4672e-07 2.70399e-07 2.37961e-07 2.95221e-07 2.22599e-07 3.25442e-07 1.67389e-07 3.59365e-07 8.45434e-08 4.02705e-07 2.71936e-10 4.44673e-07 -6.17117e-08 4.73416e-07 -9.13895e-08 4.86292e-07 -1.08216e-07 4.70757e-07 -9.95464e-08 -8.67837e-08 3.92594e-08 -2.79806e-07 1.09974e-07 -3.47921e-07 1.7025e-07 -3.30494e-07 2.0982e-07 -2.93321e-07 2.30128e-07 -2.34184e-07 2.43192e-07 -1.84359e-07 2.67476e-07 -1.48203e-07 2.79031e-07 -7.64538e-08 2.85327e-07 -2.90679e-08 2.81641e-07 9.44201e-10 2.6735e-07 1.32592e-08 2.54633e-07 1.22771e-08 2.53211e-07 1.63647e-08 2.78704e-07 5.62737e-08 3.30841e-07 1.65566e-07 3.64653e-07 2.79704e-07 3.95705e-07 3.02403e-07 4.16473e-07 2.95073e-07 4.02678e-07 2.65087e-07 3.38164e-07 2.31655e-07 2.62674e-07 1.87742e-07 2.00366e-07 1.60971e-07 1.7296e-07 1.50257e-07 1.66777e-07 1.47435e-07 1.74961e-07 1.53064e-07 1.70092e-07 1.80224e-07 1.59644e-07 1.9548e-07 1.58074e-07 1.99238e-07 1.70023e-07 2.09014e-07 1.913e-07 2.25443e-07 2.02134e-07 2.27127e-07 2.27917e-07 1.96815e-07 2.70655e-07 1.24651e-07 3.13292e-07 4.19062e-08 3.50979e-07 -3.7415e-08 3.82381e-07 -9.31128e-08 3.88756e-07 -9.77648e-08 3.63302e-07 -8.2761e-08 3.41725e-07 -7.79692e-08 -8.89894e-08 2.17444e-08 -3.01551e-07 8.0567e-08 -4.06743e-07 1.32267e-07 -3.82194e-07 1.62832e-07 -3.23885e-07 1.90902e-07 -2.62254e-07 2.1008e-07 -2.03536e-07 2.04619e-07 -1.42742e-07 1.90443e-07 -6.22774e-08 1.94572e-07 -3.31967e-08 2.14773e-07 -1.92573e-08 2.17587e-07 1.04458e-08 1.91544e-07 3.83198e-08 1.67673e-07 4.02354e-08 1.66753e-07 5.71933e-08 2.22551e-07 1.09768e-07 3.04462e-07 1.97794e-07 3.85676e-07 2.2119e-07 4.2136e-07 2.59389e-07 4.47013e-07 2.39434e-07 4.56506e-07 2.22162e-07 4.3638e-07 2.07869e-07 3.92708e-07 2.04643e-07 3.29005e-07 2.1396e-07 2.7308e-07 2.03361e-07 2.4177e-07 1.84374e-07 2.28265e-07 1.93729e-07 2.12372e-07 2.11373e-07 2.05815e-07 2.05795e-07 2.20497e-07 1.94331e-07 2.3208e-07 2.13859e-07 2.33203e-07 2.26005e-07 2.57855e-07 1.72162e-07 3.01671e-07 8.08348e-08 3.07722e-07 3.58558e-08 3.00688e-07 -3.03808e-08 2.81089e-07 -7.35131e-08 2.626e-07 -7.9277e-08 2.55359e-07 -7.55196e-08 2.60981e-07 -8.35926e-08 -1.05011e-07 2.35512e-08 -3.25102e-07 5.81848e-08 -4.41377e-07 8.40287e-08 -4.08038e-07 8.14856e-08 -3.21342e-07 7.27857e-08 -2.53554e-07 6.09164e-08 -1.91667e-07 2.54455e-08 -1.07271e-07 1.07963e-08 -4.7628e-08 1.01185e-08 -3.25185e-08 2.17745e-08 -3.09129e-08 2.47899e-08 7.4305e-09 1.70119e-08 4.60976e-08 1.7627e-08 3.96197e-08 3.91633e-08 3.56565e-08 9.72398e-08 5.16906e-08 1.87936e-07 1.07097e-07 2.76466e-07 1.3266e-07 3.68895e-07 1.66961e-07 4.31607e-07 1.76722e-07 4.7306e-07 1.80708e-07 5.07012e-07 1.73917e-07 5.32584e-07 1.79071e-07 5.38634e-07 2.07909e-07 5.24346e-07 2.17649e-07 5.01639e-07 2.07079e-07 4.9202e-07 2.03347e-07 4.87134e-07 2.16259e-07 4.56503e-07 2.36425e-07 4.14459e-07 2.36375e-07 3.98909e-07 2.29409e-07 4.02891e-07 2.22022e-07 3.87166e-07 1.87888e-07 3.62784e-07 1.05218e-07 3.45682e-07 5.29578e-08 3.06753e-07 8.54698e-09 2.64816e-07 -3.15769e-08 2.4677e-07 -6.12308e-08 2.50186e-07 -7.89355e-08 2.52332e-07 -8.57396e-08 -8.591e-08 1.01761e-08 -3.35277e-07 -1.19576e-09 -4.30005e-07 -4.53616e-08 -3.63871e-07 -1.14206e-07 -2.52498e-07 -1.81243e-07 -1.86517e-07 -2.3851e-07 -1.34399e-07 -2.60167e-07 -8.56133e-08 -2.34747e-07 -7.30476e-08 -1.98801e-07 -6.84647e-08 -1.70578e-07 -5.91354e-08 -1.33142e-07 -3.00054e-08 -8.45043e-08 -2.54066e-09 -4.48343e-08 -5.0884e-11 -5.33534e-10 -8.64495e-09 4.69993e-08 4.15733e-09 1.1653e-07 3.75657e-08 1.91771e-07 5.74196e-08 2.75566e-07 8.31653e-08 3.53941e-07 9.83468e-08 4.30446e-07 1.04204e-07 4.93889e-07 1.10474e-07 5.46214e-07 1.26746e-07 5.76867e-07 1.77255e-07 5.91883e-07 2.02632e-07 5.96538e-07 2.02425e-07 5.98503e-07 2.01382e-07 6.01024e-07 2.13737e-07 5.9074e-07 2.46709e-07 5.61576e-07 2.65538e-07 5.3373e-07 2.57255e-07 5.17832e-07 2.3792e-07 5.03384e-07 2.02337e-07 4.77406e-07 1.31196e-07 4.66908e-07 6.34562e-08 4.42669e-07 3.27851e-08 4.05665e-07 5.42646e-09 3.77437e-07 -3.30013e-08 3.49574e-07 -5.10718e-08 3.0231e-07 -3.84755e-08 -1.04689e-08 -2.02816e-08 -3.14996e-07 -7.29525e-08 -3.77334e-07 -1.51726e-07 -2.85098e-07 -1.98126e-07 -2.06098e-07 -2.21067e-07 -1.63577e-07 -2.39078e-07 -1.16388e-07 -2.34239e-07 -9.04512e-08 -2.30729e-07 -7.65573e-08 -2.20706e-07 -7.8488e-08 -2.2514e-07 -5.47012e-08 -2.13441e-07 -4.17051e-08 -1.78263e-07 -3.77182e-08 -1.52696e-07 -2.5619e-08 -1.28946e-07 -3.23953e-08 -1.01204e-07 -2.35841e-08 -5.09718e-08 -1.26667e-08 1.54367e-08 -8.9888e-09 1.03474e-07 -4.87193e-09 2.00834e-07 9.86554e-10 2.91121e-07 1.39168e-08 3.61158e-07 4.04369e-08 4.24828e-07 6.30756e-08 4.84904e-07 1.17179e-07 5.26875e-07 1.60661e-07 5.47685e-07 1.81614e-07 5.59644e-07 1.89423e-07 5.57688e-07 2.15693e-07 5.48833e-07 2.55566e-07 5.41542e-07 2.72828e-07 5.29309e-07 2.69488e-07 5.21757e-07 2.45471e-07 5.06949e-07 2.17146e-07 4.74058e-07 1.64088e-07 4.60186e-07 7.73287e-08 4.56998e-07 3.59733e-08 4.54331e-07 8.09383e-09 4.41263e-07 -1.9933e-08 3.99824e-07 -9.63219e-09 3.27336e-07 3.40126e-08 5.00984e-08 -2.77286e-08 -2.87267e-07 -9.46921e-08 -3.1037e-07 -1.527e-07 -2.2709e-07 -1.7174e-07 -1.87058e-07 -1.71436e-07 -1.63879e-07 -1.74187e-07 -1.13637e-07 -1.74155e-07 -9.04826e-08 -1.70325e-07 -8.03866e-08 -1.87374e-07 -6.14396e-08 -2.40188e-07 -1.88706e-09 -2.70125e-07 -1.17676e-08 -2.57584e-07 -5.02599e-08 -2.35348e-07 -4.78559e-08 -2.29218e-07 -3.85251e-08 -2.16269e-07 -3.65327e-08 -1.86433e-07 -4.25023e-08 -1.32774e-07 -6.2648e-08 -5.99472e-08 -7.76995e-08 1.45507e-08 -7.35116e-08 9.79211e-08 -6.94537e-08 1.81277e-07 -4.29186e-08 2.55543e-07 -1.11913e-08 3.14143e-07 5.85797e-08 3.82525e-07 9.22794e-08 4.3528e-07 1.28859e-07 4.58299e-07 1.66404e-07 4.67474e-07 2.06517e-07 4.69187e-07 2.53852e-07 4.73233e-07 2.68782e-07 4.8259e-07 2.60131e-07 4.81757e-07 2.46303e-07 4.75533e-07 2.2337e-07 4.69127e-07 1.70495e-07 4.74703e-07 7.17537e-08 4.72276e-07 3.84008e-08 4.50865e-07 2.95047e-08 4.03735e-07 2.71973e-08 3.50002e-07 4.41008e-08 3.12077e-07 7.1938e-08 7.31195e-08 -5.03285e-08 -2.36938e-07 -1.08373e-07 -2.52325e-07 -1.44228e-07 -1.91234e-07 -1.82046e-07 -1.4924e-07 -2.20117e-07 -1.25807e-07 -2.09095e-07 -1.24659e-07 -1.65655e-07 -1.33923e-07 -1.45116e-07 -1.00925e-07 -1.67254e-07 -3.93011e-08 -2.02143e-07 3.30013e-08 -2.32874e-07 1.8964e-08 -2.6375e-07 -1.93846e-08 -2.84263e-07 -2.73429e-08 -2.8516e-07 -3.76275e-08 -2.65502e-07 -5.61902e-08 -2.28995e-07 -7.90094e-08 -1.87247e-07 -1.04396e-07 -1.47313e-07 -1.17633e-07 -9.96221e-08 -1.21203e-07 -5.18159e-08 -1.1726e-07 9.67688e-09 -1.04411e-07 6.94893e-08 -7.10033e-08 1.38872e-07 -1.08026e-08 1.79497e-07 5.16551e-08 2.13451e-07 9.49046e-08 2.77528e-07 1.02327e-07 3.16192e-07 1.67852e-07 3.12835e-07 2.57209e-07 3.2959e-07 2.52029e-07 3.80811e-07 2.0891e-07 4.32783e-07 1.94331e-07 4.69674e-07 1.86479e-07 4.93336e-07 1.46833e-07 4.73649e-07 9.14405e-08 4.30716e-07 8.13336e-08 3.74258e-07 8.59632e-08 3.16387e-07 8.50679e-08 2.81563e-07 7.89244e-08 2.69941e-07 8.35619e-08 8.7036e-08 -8.54255e-08 -1.51512e-07 -1.25386e-07 -2.12364e-07 -1.63497e-07 -1.53122e-07 -2.06077e-07 -1.0666e-07 -2.22593e-07 -1.09291e-07 -2.29831e-07 -1.17421e-07 -2.75788e-07 -8.79664e-08 -3.37217e-07 -3.94969e-08 -3.87068e-07 1.05504e-08 -3.93133e-07 3.90659e-08 -4.05026e-07 3.08573e-08 -4.06925e-07 -1.74849e-08 -3.70237e-07 -6.40307e-08 -3.09388e-07 -9.84756e-08 -2.42064e-07 -1.23515e-07 -1.85272e-07 -1.35801e-07 -1.48788e-07 -1.4088e-07 -1.21992e-07 -1.4443e-07 -9.39899e-08 -1.49206e-07 -6.65905e-08 -1.44659e-07 -3.78557e-08 -1.33146e-07 -1.17488e-08 -9.71101e-08 4.56145e-08 -6.8166e-08 1.00202e-07 -2.93297e-09 1.48066e-07 4.70408e-08 1.69126e-07 8.12663e-08 1.87461e-07 1.49516e-07 2.28751e-07 2.15919e-07 2.66681e-07 2.141e-07 2.76188e-07 1.99404e-07 2.85782e-07 1.84737e-07 3.02232e-07 1.70029e-07 3.19772e-07 1.29293e-07 3.10861e-07 1.00352e-07 2.82642e-07 1.09552e-07 2.46583e-07 1.22021e-07 2.19771e-07 1.11879e-07 1.99614e-07 9.90814e-08 1.69695e-07 1.13482e-07 1.28778e-07 -7.50091e-08 -7.65026e-08 -1.21236e-07 -1.66136e-07 -1.42226e-07 -1.32131e-07 -1.89741e-07 -5.91462e-08 -2.49587e-07 -4.94459e-08 -3.1544e-07 -5.15676e-08 -3.72351e-07 -3.10564e-08 -4.08643e-07 -3.20493e-09 -4.04296e-07 6.20314e-09 -3.83515e-07 1.8285e-08 -3.58162e-07 5.50472e-09 -3.16471e-07 -5.91762e-08 -2.5637e-07 -1.24131e-07 -2.01539e-07 -1.53306e-07 -1.54131e-07 -1.70923e-07 -1.19695e-07 -1.70238e-07 -9.26798e-08 -1.67895e-07 -7.10466e-08 -1.66063e-07 -5.87406e-08 -1.61511e-07 -5.46103e-08 -1.48789e-07 -5.65894e-08 -1.31167e-07 -4.19141e-08 -1.11786e-07 -2.48173e-08 -8.52632e-08 1.65081e-08 -4.42589e-08 7.50442e-08 -1.1495e-08 1.30252e-07 2.60597e-08 1.44207e-07 1.35561e-07 1.64046e-07 1.96081e-07 1.62208e-07 2.15938e-07 1.54723e-07 2.06889e-07 1.38649e-07 2.00813e-07 1.51027e-07 1.5765e-07 1.79792e-07 1.00528e-07 1.93721e-07 8.64233e-08 1.87077e-07 1.16196e-07 1.70102e-07 1.38996e-07 1.54438e-07 1.27542e-07 1.39653e-07 1.13868e-07 1.412e-07 1.11936e-07 1.29667e-07 -1.24555e-07 4.80525e-08 -1.73881e-07 -1.1681e-07 -1.7509e-07 -1.30922e-07 -1.94156e-07 -4.00808e-08 -2.72005e-07 2.84018e-08 -3.02598e-07 -2.09748e-08 -3.14789e-07 -1.88647e-08 -3.27073e-07 9.07852e-09 -2.96952e-07 -2.3918e-08 -2.68288e-07 -1.03793e-08 -2.37275e-07 -2.55076e-08 -2.10416e-07 -8.60344e-08 -1.79024e-07 -1.55522e-07 -1.48316e-07 -1.84014e-07 -1.11406e-07 -2.07833e-07 -7.71437e-08 -2.04501e-07 -5.13313e-08 -1.93708e-07 -3.71811e-08 -1.80213e-07 -3.70511e-08 -1.61641e-07 -4.18713e-08 -1.43968e-07 -4.60459e-08 -1.26992e-07 -4.70298e-08 -1.10802e-07 -3.57418e-08 -9.65518e-08 -1.44901e-08 -6.55106e-08 -6.20085e-11 -2.59226e-08 2.27565e-08 3.24097e-09 6.35483e-08 9.47684e-08 9.26571e-08 1.66972e-07 9.41226e-08 2.14473e-07 9.20905e-08 2.08922e-07 9.81049e-08 1.94798e-07 1.12228e-07 1.43527e-07 1.15727e-07 9.70301e-08 9.74507e-08 1.04699e-07 1.20869e-07 9.27775e-08 1.54061e-07 1.05804e-07 2.12982e-07 6.86204e-08 2.22853e-07 1.03997e-07 2.04977e-07 1.29811e-07 1.25062e-07 -1.8225e-07 2.30303e-07 -1.87913e-07 -1.11146e-07 -1.56413e-07 -1.62422e-07 -8.14254e-08 -1.15069e-07 -4.98533e-08 -3.17039e-09 -1.41303e-07 7.04752e-08 -2.21352e-07 6.11839e-08 -2.25932e-07 1.3659e-08 -2.35395e-07 -1.44552e-08 -2.18409e-07 -2.73659e-08 -2.12168e-07 -3.17483e-08 -2.14462e-07 -8.37394e-08 -1.91933e-07 -1.78051e-07 -1.53684e-07 -2.22263e-07 -1.17163e-07 -2.44354e-07 -8.48853e-08 -2.36778e-07 -7.07029e-08 -2.0789e-07 -7.13074e-08 -1.79608e-07 -8.04906e-08 -1.52458e-07 -9.77316e-08 -1.26728e-07 -1.18036e-07 -1.06688e-07 -1.34175e-07 -9.46635e-08 -1.48073e-07 -8.26532e-08 -1.50175e-07 -6.3409e-08 -1.45866e-07 -3.02312e-08 -1.44753e-07 2.12817e-09 -9.95104e-08 4.9526e-08 -6.30198e-08 1.30482e-07 -2.94392e-08 1.80892e-07 -3.43478e-09 1.82919e-07 3.88411e-08 1.52522e-07 7.06532e-08 1.11714e-07 9.78218e-08 6.98623e-08 1.46277e-07 5.62445e-08 1.68273e-07 7.07817e-08 1.95689e-07 7.8388e-08 2.03445e-07 6.08652e-08 2.2734e-07 8.01019e-08 2.09961e-07 1.47189e-07 1.39945e-07 -5.90893e-08 2.89393e-07 -1.69304e-07 -9.30249e-10 -1.19775e-07 -2.11951e-07 -3.85625e-08 -1.96281e-07 7.81608e-08 -1.19893e-07 6.47184e-08 8.39178e-08 -2.7501e-08 1.53403e-07 -1.11762e-07 9.792e-08 -1.36775e-07 1.05583e-08 -1.20541e-07 -4.35994e-08 -1.61384e-07 9.09447e-09 -2.13767e-07 -3.13562e-08 -2.15011e-07 -1.76806e-07 -1.88341e-07 -2.48934e-07 -1.67301e-07 -2.65394e-07 -1.71614e-07 -2.32466e-07 -2.05127e-07 -1.74377e-07 -2.40817e-07 -1.43917e-07 -2.64706e-07 -1.28569e-07 -2.7937e-07 -1.12065e-07 -2.89162e-07 -9.68951e-08 -3.04416e-07 -7.94098e-08 -3.07848e-07 -7.92214e-08 -3.07716e-07 -6.35411e-08 -3.05934e-07 -3.20133e-08 -3.05127e-07 1.3209e-09 -2.97138e-07 4.15384e-08 -2.55532e-07 8.88766e-08 -1.73759e-07 9.91179e-08 -7.59733e-08 8.51335e-08 1.90138e-09 7.46483e-08 5.96436e-08 5.39717e-08 9.4146e-08 3.536e-08 1.14554e-07 3.58361e-08 1.46317e-07 3.9019e-08 1.83543e-07 4.11624e-08 2.02589e-07 4.18193e-08 1.94216e-07 8.84748e-08 1.68085e-07 1.73321e-07 1.55107e-07 1.0102e-07 1.88374e-07 2.80786e-08 7.2012e-08 1.82868e-08 -2.02159e-07 2.05462e-08 -1.98541e-07 5.931e-08 -1.58657e-07 1.55379e-07 -1.21505e-08 1.43708e-07 1.65075e-07 8.95105e-08 1.52117e-07 1.73811e-08 8.26879e-08 -4.52923e-08 1.90742e-08 -1.10802e-07 7.4605e-08 -1.83409e-07 4.12507e-08 -2.27611e-07 -1.32603e-07 -2.52189e-07 -2.24356e-07 -2.86683e-07 -2.30899e-07 -3.56247e-07 -1.62902e-07 -4.17619e-07 -1.13005e-07 -4.38903e-07 -1.22633e-07 -4.32169e-07 -1.35305e-07 -4.0405e-07 -1.40183e-07 -3.81499e-07 -1.19445e-07 -4.07521e-07 -5.33879e-08 -4.48557e-07 -3.81863e-08 -4.65142e-07 -4.6957e-08 -4.73249e-07 -2.39054e-08 -5.03186e-07 3.12587e-08 -5.09588e-07 4.79411e-08 -4.65551e-07 4.48402e-08 -3.92682e-07 2.62482e-08 -3.13786e-07 6.2366e-09 -2.42654e-07 3.51651e-09 -2.14845e-07 2.61618e-08 -1.84239e-07 4.75397e-09 -1.43719e-07 -4.68495e-09 -1.04583e-07 -1.15964e-10 -7.04919e-08 7.07119e-09 -4.25484e-08 1.38759e-08 -4.95383e-08 9.54639e-08 -6.58939e-08 1.89675e-07 2.11328e-07 1.06624e-07 8.175e-08 1.32118e-07 4.65185e-08 8.25136e-08 -1.52554e-07 6.22598e-08 -1.78286e-07 3.9505e-08 -1.35902e-07 7.89294e-08 -5.15745e-08 8.65432e-08 1.57462e-07 7.33652e-08 1.65296e-07 4.68328e-08 1.09221e-07 -1.43273e-08 8.02345e-08 -4.84549e-08 1.08733e-07 -9.76062e-08 9.04021e-08 -1.9919e-07 -3.10191e-08 -2.78502e-07 -1.45044e-07 -3.65471e-07 -1.43929e-07 -4.47862e-07 -8.05097e-08 -5.06076e-07 -5.47914e-08 -5.26169e-07 -1.02541e-07 -5.28806e-07 -1.32667e-07 -5.38161e-07 -1.30827e-07 -5.88381e-07 -6.92251e-08 -6.59952e-07 1.81833e-08 -7.31357e-07 3.32173e-08 -8.08147e-07 2.9832e-08 -8.69524e-07 3.74707e-08 -8.91027e-07 5.27641e-08 -8.99974e-07 5.68887e-08 -9.08876e-07 5.37424e-08 -8.63008e-07 -1.96197e-08 -7.99876e-07 -5.6896e-08 -7.34976e-07 -6.13823e-08 -6.36395e-07 -7.2417e-08 -5.46699e-07 -8.49423e-08 -4.3016e-07 -1.21223e-07 -3.49682e-07 -8.05935e-08 -2.9112e-07 -5.14891e-08 -2.76487e-07 -7.55846e-10 -3.17434e-07 1.3641e-07 -3.03997e-07 1.76238e-07 1.87441e-07 7.43094e-08 7.44112e-09 1.24863e-07 -4.03422e-09 1.22473e-07 -1.50164e-07 8.59952e-08 -1.41808e-07 3.71213e-08 -8.70278e-08 -2.65779e-08 1.2125e-08 -2.01405e-08 1.51025e-07 -1.152e-08 1.56676e-07 -6.97065e-09 1.04672e-07 -1.9047e-08 9.23115e-08 -2.78232e-08 1.17509e-07 -2.87158e-08 9.12946e-08 -9.10283e-08 3.12932e-08 -1.54114e-07 -8.19586e-08 -2.40273e-07 -5.77692e-08 -3.32628e-07 1.18457e-08 -4.49877e-07 6.2458e-08 -5.4725e-07 -5.16676e-09 -5.96332e-07 -8.35842e-08 -6.41018e-07 -8.61422e-08 -7.07285e-07 -2.95823e-09 -7.5556e-07 6.64602e-08 -7.95848e-07 7.35052e-08 -8.43204e-07 7.71874e-08 -8.91986e-07 8.6255e-08 -9.21445e-07 8.22231e-08 -9.3813e-07 7.35713e-08 -9.04383e-07 1.9997e-08 -8.33589e-07 -9.04117e-08 -7.26174e-07 -1.64308e-07 -6.32485e-07 -1.55071e-07 -5.7285e-07 -1.32052e-07 -5.26914e-07 -1.30878e-07 -5.07298e-07 -1.40839e-07 -4.46408e-07 -1.41484e-07 -3.67868e-07 -1.30031e-07 -2.9785e-07 -7.07753e-08 -2.33999e-07 7.25578e-08 -1.66846e-07 1.09084e-07 1.4148e-07 1.8774e-08 -1.13327e-08 8.04224e-08 -6.56822e-08 4.82847e-08 -1.18026e-07 -5.79493e-08 -3.5574e-08 -1.66406e-07 2.14291e-08 -2.51135e-07 9.68543e-08 -1.96297e-07 9.61865e-08 -1.19437e-07 7.98177e-08 -6.39636e-08 4.91989e-08 -6.05838e-09 3.44063e-08 2.6526e-08 8.49246e-08 6.11622e-08 5.6658e-08 2.99713e-08 6.2484e-08 -6.44177e-08 1.24307e-08 -1.26854e-07 4.66711e-09 -1.67267e-07 5.22573e-08 -2.79523e-07 1.74714e-07 -4.59879e-07 1.7519e-07 -5.82636e-07 3.91735e-08 -6.50792e-07 -1.79866e-08 -6.64133e-07 1.03817e-08 -6.6998e-07 7.23062e-08 -6.89596e-07 9.31222e-08 -6.99332e-07 8.69235e-08 -6.70049e-07 5.69714e-08 -6.22664e-07 3.48389e-08 -5.24721e-07 -2.43702e-08 -4.12271e-07 -9.24536e-08 -3.60337e-07 -1.42344e-07 -3.37761e-07 -1.86885e-07 -3.16886e-07 -1.75947e-07 -3.12909e-07 -1.3603e-07 -3.27494e-07 -1.16292e-07 -3.52667e-07 -1.15666e-07 -3.65775e-07 -1.28376e-07 -3.69024e-07 -1.26782e-07 -3.53198e-07 -8.66029e-08 -2.70876e-07 -9.76475e-09 -1.86311e-07 2.45187e-08 1.86235e-08 -1.22618e-07 1.11286e-07 -1.20588e-07 -6.77122e-08 -1.45198e-07 -9.34153e-08 -2.26366e-07 4.55935e-08 -2.92891e-07 8.79543e-08 -2.94798e-07 9.8761e-08 -2.9604e-07 9.74298e-08 -2.26447e-07 1.02254e-08 -1.33715e-07 -4.35339e-08 -4.86983e-08 -5.06108e-08 1.485e-08 2.1375e-08 3.25222e-08 3.89855e-08 1.83835e-08 7.66238e-08 -5.02665e-08 8.10821e-08 -8.05253e-08 3.49259e-08 -1.26001e-07 9.77324e-08 -1.81745e-07 2.30459e-07 -2.60071e-07 2.53515e-07 -3.44075e-07 1.23178e-07 -3.87381e-07 2.532e-08 -3.90052e-07 1.30544e-08 -3.83497e-07 6.57496e-08 -3.88272e-07 9.7898e-08 -3.80925e-07 7.95777e-08 -3.35899e-07 1.19465e-08 -2.55794e-07 -4.52671e-08 -1.83345e-07 -9.68167e-08 -1.3032e-07 -1.45477e-07 -1.20205e-07 -1.52458e-07 -1.39043e-07 -1.68048e-07 -1.45209e-07 -1.6978e-07 -1.5179e-07 -1.29449e-07 -1.65296e-07 -1.02786e-07 -1.94556e-07 -8.6406e-08 -2.18844e-07 -1.04088e-07 -2.22401e-07 -1.23226e-07 -2.23892e-07 -8.51109e-08 -1.80598e-07 -5.30582e-08 -1.22462e-07 -3.36179e-08 -3.5674e-08 -6.49699e-08 1.76256e-07 -1.74558e-07 4.18766e-08 -2.55424e-07 -1.25491e-08 -2.69182e-07 5.93505e-08 -2.12487e-07 3.1259e-08 -1.81053e-07 6.73272e-08 -1.24457e-07 4.08354e-08 -1.21009e-07 6.7776e-09 -1.21401e-07 -4.31424e-08 -1.3213e-07 -3.98822e-08 -1.1938e-07 8.62465e-09 -1.08055e-07 2.76599e-08 -9.1926e-08 6.04958e-08 -1.40632e-07 1.29788e-07 -2.72389e-07 1.66681e-07 -3.75898e-07 2.01241e-07 -3.16385e-07 1.70947e-07 -1.90217e-07 1.27347e-07 -1.48367e-07 8.13284e-08 -1.58718e-07 3.56688e-08 -1.58213e-07 1.2549e-08 -1.25333e-07 3.28726e-08 -1.24398e-07 9.6961e-08 -8.91331e-08 4.4313e-08 -6.5223e-08 -1.19648e-08 -5.63539e-08 -5.41371e-08 -4.75333e-08 -1.05637e-07 -5.85049e-08 -1.34507e-07 -6.80014e-08 -1.42964e-07 -7.59187e-08 -1.60131e-07 -7.24783e-08 -1.7322e-07 -7.0663e-08 -1.31264e-07 -4.08784e-08 -1.3257e-07 -7.81131e-09 -1.19473e-07 1.43707e-08 -1.2627e-07 -1.41968e-08 -9.46587e-08 -4.65939e-08 -5.27138e-08 -2.48913e-08 -7.47614e-08 -1.69205e-09 -5.68172e-08 -1.32658e-08 2.07569e-08 1.55499e-07 -4.44851e-08 1.07119e-07 -5.6817e-08 -2.17393e-10 -1.47416e-08 1.72746e-08 1.90923e-08 -2.57485e-09 7.98178e-08 6.60215e-09 1.36547e-07 -1.58932e-08 1.77163e-07 -3.38386e-08 2.02908e-07 -6.88881e-08 2.17633e-07 -5.46074e-08 2.35417e-07 -9.15853e-09 2.56681e-07 6.39549e-09 2.75449e-07 4.17282e-08 2.52599e-07 1.52637e-07 -2.98234e-08 4.49102e-07 -5.68856e-07 7.40275e-07 -5.59233e-07 1.61332e-07 -1.97312e-07 -2.3457e-07 -3.94543e-08 -7.65439e-08 -4.83244e-08 4.4539e-08 -1.63108e-07 1.27333e-07 -2.32094e-07 1.01861e-07 -2.45141e-07 1.10006e-07 -2.59653e-07 5.88291e-08 -2.38809e-07 -3.28104e-08 -1.91472e-07 -1.01475e-07 -1.49588e-07 -1.47522e-07 -1.52416e-07 -1.3168e-07 -1.37782e-07 -1.57592e-07 -1.18382e-07 -1.7953e-07 -1.05634e-07 -1.85971e-07 -9.48944e-08 -1.42005e-07 -4.86198e-08 -1.78843e-07 3.04383e-08 -1.98529e-07 1.38535e-07 -2.34364e-07 9.89215e-08 -5.50447e-08 5.0976e-08 -4.7695e-09 5.39621e-08 -7.77493e-08 -3.01976e-09 1.65402e-10 1.74475e-07 5.73677e-08 9.81319e-08 1.30026e-07 3.44603e-08 1.7981e-07 -5.00014e-08 2.16158e-07 -1.90733e-08 2.31507e-07 -1.79244e-08 2.52708e-07 -1.45982e-08 3.27015e-07 -9.01994e-08 4.01919e-07 -1.08743e-07 4.35556e-07 -1.02527e-07 4.81236e-07 -1.00286e-07 3.52141e-07 1.19935e-07 2.37319e-07 1.21218e-07 2.95373e-07 -1.63264e-08 4.24655e-07 2.33538e-08 5.78011e-07 2.95746e-07 5.44353e-07 7.73934e-07 2.85035e-08 6.77157e-07 -3.8682e-07 1.80794e-07 -6.51058e-07 1.87692e-07 -7.94394e-07 1.87901e-07 -9.01803e-07 2.34745e-07 -7.32177e-07 -6.77674e-08 -5.85722e-07 -3.64504e-08 -3.94527e-07 -1.32366e-07 -2.42561e-07 -1.84783e-07 -1.59445e-07 -1.84595e-07 -7.66921e-08 -2.3027e-07 1.30481e-08 -2.21411e-07 -3.08562e-08 -1.13695e-07 -1.12692e-07 -9.76831e-08 -1.88204e-07 -1.10455e-07 -2.1218e-07 -1.18032e-07 -2.37188e-07 -1.53836e-07 -2.50387e-07 -1.8532e-07 -3.42106e-07 -1.42643e-07 -4.14123e-07 1.69649e-08 -4.65134e-07 4.62519e-08 -5.75746e-07 3.28577e-08 -7.15769e-07 1.40194e-07 1.28953e-07 7.95766e-08 1.85555e-08 1.36911e-07 -2.28745e-08 1.12256e-07 -2.53462e-08 1.39737e-07 -4.6554e-08 2.42123e-07 -1.2031e-07 4.44437e-07 -2.16913e-07 6.73345e-07 -3.19111e-07 5.95946e-07 -3.13445e-08 6.22276e-07 -1.28858e-07 5.56408e-07 -3.44205e-08 5.85391e-07 9.0955e-08 5.49121e-07 1.57485e-07 4.28684e-07 1.04109e-07 2.83431e-07 1.68602e-07 1.37153e-07 4.42022e-07 4.85466e-08 8.62566e-07 4.90515e-08 6.76588e-07 -1.87208e-07 4.17073e-07 -2.599e-07 2.60323e-07 -2.65237e-07 1.93189e-07 -2.07738e-07 1.77269e-07 -3.20339e-07 4.48487e-08 -3.07842e-07 -4.89467e-08 -2.77512e-07 -1.62708e-07 -3.08989e-07 -1.53308e-07 -3.65703e-07 -1.27894e-07 -5.00058e-07 -9.59167e-08 -6.31002e-07 -9.04648e-08 -6.17768e-07 -1.26958e-07 -5.87387e-07 -1.28079e-07 -5.69573e-07 -1.28269e-07 -5.36848e-07 -1.50758e-07 -5.17994e-07 -1.72693e-07 -5.32079e-07 -1.71245e-07 -5.47417e-07 -1.27314e-07 -4.92096e-07 -3.83581e-08 -4.70281e-07 2.44216e-08 -5.04401e-07 6.69591e-08 -4.62107e-07 9.78805e-08 7.97447e-08 1.49907e-07 -1.31351e-07 1.74492e-07 -4.74589e-08 2.0005e-07 -5.09038e-08 2.0901e-07 -5.55154e-08 1.65928e-07 -7.72279e-08 1.0038e-07 -1.51366e-07 -1.21362e-09 -2.17519e-07 3.03522e-08 -6.29198e-08 4.0021e-08 -1.3852e-07 8.06704e-08 -7.50609e-08 7.96477e-08 9.19759e-08 7.63782e-08 1.60751e-07 -2.75269e-08 2.0803e-07 -2.38972e-07 3.80031e-07 -4.27298e-07 6.30349e-07 -3.42678e-07 7.77986e-07 -1.45179e-07 4.79064e-07 -6.58588e-08 3.37789e-07 -1.41418e-08 2.08565e-07 6.34728e-08 1.15573e-07 8.50724e-08 1.5567e-07 -8.89874e-08 2.18927e-07 -2.56504e-07 1.18577e-07 -3.75873e-07 -4.33215e-08 -4.20204e-07 -1.08975e-07 -4.04474e-07 -1.43629e-07 -4.41931e-07 -5.84647e-08 -5.21924e-07 -1.04552e-08 -5.54939e-07 -9.39213e-08 -5.67434e-07 -1.1559e-07 -5.61737e-07 -1.33962e-07 -5.70935e-07 -1.4154e-07 -5.87585e-07 -1.5603e-07 -5.71159e-07 -1.87676e-07 -5.01446e-07 -1.9703e-07 -3.902e-07 -1.49579e-07 -2.87647e-07 -7.81421e-08 -1.91038e-07 -2.96367e-08 -9.98631e-08 6.71401e-09 -1.1626e-09 -2.77918e-08 -1.03559e-07 -2.23529e-09 -7.29995e-08 -1.18129e-09 -5.19521e-08 -4.61172e-08 -1.05864e-08 -1.31064e-07 7.71356e-09 -2.21281e-07 -6.11481e-08 -3.31887e-07 -1.06924e-07 -3.03429e-07 -9.13835e-08 -3.54293e-07 -8.76581e-08 -4.0383e-07 -2.55277e-08 -4.42772e-07 1.30923e-07 -4.79905e-07 1.97858e-07 -5.60867e-07 2.88982e-07 -5.91432e-07 4.106e-07 -4.95349e-07 5.34222e-07 -2.61651e-07 5.44284e-07 -1.27588e-07 3.44998e-07 -5.50954e-08 2.65236e-07 -3.73628e-08 1.90866e-07 -4.66592e-08 1.24899e-07 -8.34523e-08 1.92441e-07 -2.23263e-07 3.58695e-07 -4.50631e-07 3.45915e-07 -5.98208e-07 1.04237e-07 -7.0545e-07 -1.72978e-09 -8.50565e-07 1.48046e-09 -8.53418e-07 -5.56039e-08 -7.65954e-07 -9.79429e-08 -6.47251e-07 -2.12627e-07 -5.68201e-07 -1.94644e-07 -5.29901e-07 -1.72266e-07 -4.94829e-07 -1.76614e-07 -4.64903e-07 -1.85962e-07 -4.44574e-07 -2.08006e-07 -4.13605e-07 -2.2799e-07 -3.51414e-07 -2.11772e-07 -2.72931e-07 -1.56613e-07 -1.49512e-07 -1.53059e-07 -3.21683e-08 -1.10623e-07 -9.5123e-08 -1.0557e-07 2.01249e-09 -1.49465e-07 -2.90962e-08 -2.16539e-07 1.51284e-08 -2.86078e-07 5.8961e-08 -3.16932e-07 3.85705e-08 -3.66128e-07 -1.19623e-08 -4.55478e-07 -1.75755e-08 -5.15905e-07 -3.0946e-08 -5.68691e-07 -3.48642e-08 -6.25614e-07 3.1413e-08 -6.15832e-07 1.21156e-07 -6.21649e-07 2.03689e-07 -6.10601e-07 2.77913e-07 -5.30344e-07 3.30337e-07 -3.48405e-07 3.52302e-07 -1.23084e-07 3.18962e-07 -4.05021e-08 2.62444e-07 -1.11287e-08 2.35859e-07 -9.06219e-09 1.88814e-07 -3.97358e-08 1.55601e-07 -5.22221e-08 2.04936e-07 -7.213e-08 3.78612e-07 -1.38554e-07 4.12327e-07 -2.37756e-07 2.03439e-07 -2.87127e-07 4.76394e-08 -3.35394e-07 4.97518e-08 -3.42212e-07 -4.87789e-08 -3.04154e-07 -1.36008e-07 -3.37301e-07 -1.79484e-07 -3.59265e-07 -1.72666e-07 -4.076e-07 -1.23923e-07 -4.35978e-07 -1.48235e-07 -4.33076e-07 -1.88874e-07 -4.00192e-07 -2.4089e-07 -3.52768e-07 -2.75399e-07 -2.96297e-07 -2.68248e-07 -2.49758e-07 -2.0314e-07 -2.0036e-07 -2.02448e-07 -1.06172e-07 -2.04779e-07 -1.9301e-07 -6.13344e-08 6.3354e-08 -1.18299e-07 2.78736e-08 -1.6718e-07 6.40043e-08 -2.3101e-07 1.22793e-07 -3.54904e-07 1.62473e-07 -4.69949e-07 1.03077e-07 -5.3533e-07 4.78e-08 -5.77804e-07 1.15339e-08 -6.26821e-07 1.41606e-08 -6.57697e-07 6.22825e-08 -6.5292e-07 1.16347e-07 -5.91109e-07 1.41881e-07 -4.75487e-07 1.62333e-07 -3.30291e-07 1.85097e-07 -1.70837e-07 1.92765e-07 -5.44725e-08 2.02595e-07 2.8717e-09 2.0509e-07 2.3396e-08 2.15303e-07 1.95422e-09 2.10209e-07 -3.17187e-08 1.89249e-07 -3.73743e-08 2.10585e-07 -1.07328e-08 3.5198e-07 -6.97979e-08 4.71381e-07 -2.46367e-07 3.79988e-07 -3.13237e-07 1.14509e-07 -2.55138e-07 -8.34842e-09 -1.25648e-07 -1.7827e-07 -5.72411e-08 -2.04417e-07 -1.44563e-07 -9.21648e-08 -2.16426e-07 -1.00804e-07 -2.88961e-07 -5.13962e-08 -3.56615e-07 -8.05847e-08 -3.8064e-07 -1.64849e-07 -3.43156e-07 -2.78368e-07 -2.96211e-07 -3.22346e-07 -2.70704e-07 -2.93765e-07 -2.25873e-07 -2.47972e-07 -1.78271e-07 -2.50056e-07 -1.09056e-07 -2.74e-07 -2.70375e-07 6.47954e-11 6.32995e-08 -2.81198e-08 5.60803e-08 -5.86739e-08 9.45756e-08 -7.89409e-08 1.43072e-07 -1.45387e-07 2.28921e-07 -2.50437e-07 2.08123e-07 -3.60109e-07 1.57476e-07 -4.59423e-07 1.10854e-07 -5.222e-07 7.69594e-08 -5.27225e-07 6.73478e-08 -4.83833e-07 7.29725e-08 -4.14921e-07 7.29445e-08 -3.31398e-07 7.88138e-08 -2.42914e-07 9.66375e-08 -1.22794e-07 7.26302e-08 -2.96007e-08 1.09418e-07 4.87047e-08 1.26817e-07 9.6874e-08 1.67138e-07 8.85205e-08 2.18542e-07 3.86514e-08 2.39097e-07 3.04096e-08 2.1882e-07 1.03649e-07 2.7874e-07 1.65718e-07 4.09297e-07 1.08617e-07 4.37054e-07 -2.953e-08 2.52644e-07 -7.72505e-08 3.93695e-08 -1.51152e-07 -1.04369e-07 -2.25294e-07 -1.30275e-07 -2.0831e-07 -1.09144e-07 -1.805e-07 -1.28603e-07 -9.40434e-08 -1.37844e-07 -7.3677e-08 -1.00952e-07 -1.23968e-07 -1.1455e-07 -1.80996e-07 -2.21328e-07 -2.06128e-07 -2.97214e-07 -2.07274e-07 -2.92622e-07 -1.84014e-07 -2.71218e-07 -1.43111e-07 -2.90942e-07 -8.59059e-08 -3.31193e-07 -3.09053e-07 9.68166e-09 5.36212e-08 -3.04311e-09 6.87972e-08 -4.65156e-09 9.61793e-08 1.77549e-08 1.20673e-07 6.74162e-08 1.79264e-07 8.47742e-08 1.90764e-07 7.18908e-08 1.70359e-07 3.58974e-08 1.46847e-07 -1.18957e-08 1.24739e-07 -5.05259e-08 1.05948e-07 -7.20048e-08 9.44186e-08 -7.87999e-08 7.9725e-08 -6.83082e-08 6.83207e-08 -3.15821e-08 5.99009e-08 -2.60112e-09 4.36063e-08 5.49405e-08 5.18217e-08 1.20144e-07 6.16008e-08 1.89099e-07 9.82018e-08 2.53752e-07 1.53886e-07 2.48572e-07 2.44258e-07 1.97108e-07 2.70265e-07 2.03335e-07 2.725e-07 3.35203e-07 2.77431e-07 4.68504e-07 3.03753e-07 4.72393e-07 2.4875e-07 3.53466e-07 1.58292e-07 2.27602e-07 2.14994e-08 1.3504e-07 -3.77023e-08 1.03508e-07 -7.76115e-08 7.7919e-08 -1.03011e-07 8.25466e-08 -1.42463e-07 1.27053e-07 -1.45453e-07 1.5662e-07 -1.44113e-07 1.10558e-07 -1.75258e-07 2.47253e-08 -2.11377e-07 -3.0623e-08 -2.37269e-07 -4.52683e-08 -2.56573e-07 -4.45303e-08 -2.91679e-07 -4.95731e-08 -3.26155e-07 -3.54128e-07 -6.40149e-09 6.00406e-08 -2.07386e-08 8.31688e-08 -1.72088e-08 9.26755e-08 6.95353e-10 1.0278e-07 6.25226e-08 1.17433e-07 1.25706e-07 1.2757e-07 1.83664e-07 1.1239e-07 2.31067e-07 9.94465e-08 2.54391e-07 1.01444e-07 2.5574e-07 1.04634e-07 2.6006e-07 9.01074e-08 2.68222e-07 7.15577e-08 2.71261e-07 6.52932e-08 2.78223e-07 5.29408e-08 2.81072e-07 4.07396e-08 2.9117e-07 4.16995e-08 3.03634e-07 4.91305e-08 3.33903e-07 6.79476e-08 3.80069e-07 1.07727e-07 4.25708e-07 1.98603e-07 4.32953e-07 2.62987e-07 4.35487e-07 2.69934e-07 4.45768e-07 2.67135e-07 4.89751e-07 2.59764e-07 4.97638e-07 2.40869e-07 4.74445e-07 1.81501e-07 4.0018e-07 9.57753e-08 3.40285e-07 2.22004e-08 2.94943e-07 -3.2262e-08 2.69536e-07 -7.7597e-08 2.40469e-07 -1.13387e-07 2.26749e-07 -1.31721e-07 2.35685e-07 -1.5303e-07 2.39682e-07 -1.79235e-07 2.26206e-07 -1.97889e-07 2.01646e-07 -2.12696e-07 1.69362e-07 -2.24283e-07 1.1925e-07 -2.4156e-07 7.33341e-08 -2.80239e-07 -3.40491e-07 -2.20473e-09 6.22333e-08 -5.22749e-09 8.61633e-08 -4.03359e-10 8.78468e-08 1.36838e-08 8.87005e-08 6.65414e-08 6.45841e-08 1.45488e-07 4.86337e-08 2.21786e-07 3.60948e-08 2.78914e-07 4.23105e-08 3.18385e-07 6.19633e-08 3.63665e-07 5.93436e-08 4.23595e-07 3.01555e-08 4.55523e-07 3.96003e-08 4.4835e-07 7.24682e-08 4.24703e-07 7.66162e-08 4.11599e-07 5.38607e-08 4.12177e-07 4.11113e-08 4.17667e-07 4.36146e-08 4.23368e-07 6.22291e-08 4.24598e-07 1.06498e-07 4.33615e-07 1.89597e-07 4.45425e-07 2.51179e-07 4.58389e-07 2.56964e-07 4.74965e-07 2.50548e-07 4.96888e-07 2.37824e-07 5.15542e-07 2.22204e-07 5.11389e-07 1.85655e-07 4.71704e-07 1.35472e-07 4.19589e-07 7.43332e-08 3.96852e-07 -9.50557e-09 3.88192e-07 -6.89217e-08 3.70379e-07 -9.55615e-08 3.51121e-07 -1.12451e-07 3.36362e-07 -1.38257e-07 3.20992e-07 -1.63854e-07 2.99798e-07 -1.76685e-07 2.78048e-07 -1.90937e-07 2.55355e-07 -2.01591e-07 2.20945e-07 -2.07159e-07 1.73284e-07 -2.32596e-07 -2.87362e-07 5.39061e-08 8.3524e-09 8.43689e-08 5.57268e-08 8.07863e-08 9.14404e-08 1.19916e-07 4.95716e-08 1.87242e-07 -2.74531e-09 2.70969e-07 -3.51059e-08 3.29465e-07 -2.24217e-08 3.60033e-07 1.17249e-08 3.72359e-07 4.9644e-08 3.91736e-07 3.99876e-08 4.08376e-07 1.35213e-08 4.17957e-07 3.00072e-08 4.08746e-07 8.16631e-08 4.04392e-07 8.09752e-08 4.02601e-07 5.56583e-08 4.14582e-07 2.91277e-08 4.25526e-07 3.26567e-08 4.24962e-07 6.27762e-08 3.99876e-07 1.31573e-07 3.88497e-07 2.00972e-07 3.99865e-07 2.39807e-07 4.1683e-07 2.39999e-07 4.3689e-07 2.30491e-07 4.55114e-07 2.19605e-07 4.69171e-07 2.08154e-07 4.71827e-07 1.83005e-07 4.56645e-07 1.5066e-07 4.39708e-07 9.12796e-08 4.182e-07 1.20133e-08 3.92756e-07 -4.34621e-08 3.75951e-07 -7.87343e-08 3.68223e-07 -1.047e-07 3.57575e-07 -1.27594e-07 3.40866e-07 -1.47135e-07 3.23901e-07 -1.59709e-07 2.98984e-07 -1.66008e-07 2.68497e-07 -1.71093e-07 2.37316e-07 -1.75966e-07 2.02057e-07 -1.97315e-07 -2.34127e-07 6.91305e-09 1.41651e-09 3.45155e-08 2.81155e-08 9.2121e-08 3.38405e-08 1.36917e-07 4.7701e-09 1.60052e-07 -2.58696e-08 1.65415e-07 -4.04602e-08 1.77799e-07 -3.48106e-08 2.11062e-07 -2.15484e-08 2.68688e-07 -7.97765e-09 3.22674e-07 -1.39777e-08 3.5444e-07 -1.82367e-08 3.77443e-07 6.98847e-09 4.02927e-07 5.61448e-08 4.09831e-07 7.40597e-08 4.00497e-07 6.50025e-08 3.97027e-07 3.26093e-08 3.83432e-07 4.62582e-08 3.37644e-07 1.08565e-07 2.90806e-07 1.78411e-07 2.6209e-07 2.29688e-07 2.58364e-07 2.43529e-07 2.67483e-07 2.30874e-07 2.99318e-07 1.98651e-07 3.3111e-07 1.87813e-07 3.56564e-07 1.82707e-07 3.69601e-07 1.69979e-07 3.77125e-07 1.43148e-07 3.79715e-07 8.87004e-08 3.65381e-07 2.63565e-08 3.45816e-07 -2.38858e-08 3.30454e-07 -6.33557e-08 3.22368e-07 -9.65949e-08 3.17738e-07 -1.22953e-07 3.11193e-07 -1.40588e-07 3.01453e-07 -1.4997e-07 2.87394e-07 -1.51954e-07 2.6398e-07 -1.47683e-07 2.36507e-07 -1.48505e-07 2.02165e-07 -1.62977e-07 -1.8663e-07 -9.63671e-09 1.10603e-08 1.68572e-08 1.60122e-09 6.41638e-08 -1.34729e-08 9.93781e-08 -3.04556e-08 1.18473e-07 -4.49513e-08 1.35132e-07 -5.71035e-08 1.54804e-07 -5.4484e-08 1.82887e-07 -4.9647e-08 2.20074e-07 -4.51749e-08 2.56208e-07 -5.01017e-08 2.8665e-07 -4.86622e-08 3.04924e-07 -1.12754e-08 3.29183e-07 3.18779e-08 3.38801e-07 6.44321e-08 3.26005e-07 7.77979e-08 2.89891e-07 6.87323e-08 2.29415e-07 1.06739e-07 1.368e-07 2.0118e-07 8.74788e-08 2.27727e-07 1.07401e-07 2.09761e-07 1.3057e-07 2.20355e-07 1.44969e-07 2.16467e-07 1.50626e-07 1.92986e-07 1.68362e-07 1.70072e-07 1.98355e-07 1.52713e-07 2.33484e-07 1.34855e-07 2.71184e-07 1.05456e-07 2.97762e-07 6.2131e-08 3.11396e-07 1.27276e-08 3.17165e-07 -2.96519e-08 3.20028e-07 -6.6213e-08 3.19635e-07 -9.61919e-08 3.15215e-07 -1.1852e-07 3.07717e-07 -1.33079e-07 2.97925e-07 -1.40175e-07 2.84816e-07 -1.38847e-07 2.68357e-07 -1.31219e-07 2.47066e-07 -1.27226e-07 2.11532e-07 -1.27464e-07 -1.35265e-07 4.90442e-09 6.16089e-09 2.41866e-08 -1.76619e-08 4.9828e-08 -3.9135e-08 7.31662e-08 -5.38042e-08 9.55713e-08 -6.7359e-08 1.07563e-07 -6.90923e-08 1.1495e-07 -6.18692e-08 1.18641e-07 -5.33427e-08 1.31096e-07 -5.7632e-08 1.44285e-07 -6.3282e-08 1.47732e-07 -5.20939e-08 1.56631e-07 -2.0157e-08 1.79833e-07 8.68597e-09 2.01633e-07 4.26307e-08 2.10586e-07 6.88383e-08 1.65283e-07 1.1403e-07 9.05149e-08 1.81505e-07 4.58552e-08 2.45836e-07 3.18072e-08 2.41769e-07 5.87536e-08 1.82816e-07 9.52315e-08 1.83885e-07 1.18533e-07 1.93173e-07 1.34248e-07 1.77271e-07 1.54371e-07 1.49942e-07 1.86498e-07 1.20575e-07 2.31149e-07 9.01936e-08 2.79554e-07 5.70439e-08 3.20077e-07 2.16032e-08 3.49698e-07 -1.68974e-08 3.70481e-07 -5.04402e-08 3.8105e-07 -7.67863e-08 3.79864e-07 -9.50084e-08 3.67998e-07 -1.06652e-07 3.51744e-07 -1.16822e-07 3.33394e-07 -1.21819e-07 3.10309e-07 -1.15759e-07 2.85485e-07 -1.06393e-07 2.56175e-07 -9.79031e-08 2.17507e-07 -8.87819e-08 -9.65613e-08 6.71589e-09 -5.81199e-10 1.72918e-08 -2.82348e-08 2.54399e-08 -4.73305e-08 2.93341e-08 -5.77004e-08 3.08027e-08 -6.88231e-08 2.98898e-08 -6.81761e-08 2.91396e-08 -6.11175e-08 3.2557e-08 -5.67666e-08 3.57066e-08 -6.07933e-08 4.23955e-08 -6.99789e-08 5.74984e-08 -6.71963e-08 7.74207e-08 -4.007e-08 9.40356e-08 -7.91366e-09 9.86871e-08 3.79952e-08 1.02424e-07 6.51105e-08 8.58294e-08 1.30626e-07 6.54027e-08 2.01929e-07 6.40388e-08 2.47194e-07 6.86188e-08 2.37181e-07 7.99949e-08 1.71436e-07 1.12801e-07 1.51079e-07 1.50915e-07 1.55065e-07 1.90481e-07 1.37708e-07 2.32469e-07 1.07951e-07 2.77447e-07 7.55891e-08 3.23175e-07 4.44556e-08 3.64355e-07 1.58554e-08 3.96972e-07 -1.10192e-08 4.14763e-07 -3.46939e-08 4.2113e-07 -5.6812e-08 4.20028e-07 -7.56905e-08 4.11624e-07 -8.6608e-08 3.96361e-07 -9.1392e-08 3.76769e-07 -9.72333e-08 3.51846e-07 -9.6899e-08 3.20993e-07 -8.48992e-08 2.88989e-07 -7.43903e-08 2.53959e-07 -6.28656e-08 2.14649e-07 -4.94448e-08 -5.2493e-08 4.6226e-09 -5.19211e-09 7.24203e-09 -3.08501e-08 6.6182e-09 -4.67301e-08 4.00228e-09 -5.50912e-08 -1.81519e-09 -6.30063e-08 -5.05325e-09 -6.49309e-08 -1.01495e-08 -5.60057e-08 -8.70211e-09 -5.82024e-08 -4.05122e-09 -6.54464e-08 -2.36246e-09 -7.16817e-08 -3.24162e-09 -6.63338e-08 1.04813e-08 -5.38032e-08 3.60702e-08 -3.35037e-08 6.12503e-08 1.28232e-08 7.40119e-08 5.23616e-08 9.32823e-08 1.11368e-07 1.1999e-07 1.7523e-07 1.62772e-07 2.04414e-07 2.00686e-07 1.99262e-07 2.12671e-07 1.59445e-07 2.33319e-07 1.3043e-07 2.73207e-07 1.1518e-07 3.13392e-07 9.75286e-08 3.48616e-07 7.27326e-08 3.78532e-07 4.56754e-08 4.02823e-07 2.01618e-08 4.22027e-07 -3.35278e-09 4.34837e-07 -2.38352e-08 4.40472e-07 -4.03358e-08 4.39384e-07 -5.57331e-08 4.31733e-07 -6.80495e-08 4.16684e-07 -7.15656e-08 3.96051e-07 -7.07625e-08 3.66273e-07 -6.74573e-08 3.30745e-07 -6.13774e-08 2.91989e-07 -4.61488e-08 2.52064e-07 -3.44694e-08 2.17329e-07 -2.81437e-08 1.9421e-07 -2.633e-08 -2.18995e-08 2.72421e-09 -7.89741e-09 2.6952e-09 -3.08445e-08 2.9293e-10 -4.43038e-08 -5.45213e-09 -4.93521e-08 -1.50451e-08 -5.34311e-08 -2.3075e-08 -5.69102e-08 -2.73455e-08 -5.17306e-08 -3.00839e-08 -5.54532e-08 -3.09942e-08 -6.45299e-08 -3.56065e-08 -6.70702e-08 -3.88621e-08 -6.30825e-08 -3.79798e-08 -5.46879e-08 -3.0019e-08 -4.14616e-08 -4.36021e-09 -1.28267e-08 3.38573e-08 1.41558e-08 8.52614e-08 5.99764e-08 1.55658e-07 1.04845e-07 2.23226e-07 1.36855e-07 2.69548e-07 1.52944e-07 2.91023e-07 1.37971e-07 3.05878e-07 1.15575e-07 3.24933e-07 9.61265e-08 3.47688e-07 7.47773e-08 3.70472e-07 4.99512e-08 3.90797e-07 2.53487e-08 4.06692e-07 4.26101e-09 4.21245e-07 -1.79157e-08 4.32766e-07 -3.53676e-08 4.36399e-07 -4.39803e-08 4.29524e-07 -4.8868e-08 4.12208e-07 -5.07414e-08 3.85189e-07 -4.45506e-08 3.51182e-07 -3.67566e-08 3.13109e-07 -2.93801e-08 2.74406e-07 -2.26646e-08 2.32981e-07 -4.71429e-09 1.84199e-07 1.43215e-08 1.5919e-07 -3.12961e-09 1.35958e-07 -3.10291e-09 2.35475e-09 2.46223e-09 -1.0349e-08 4.34888e-09 -3.27777e-08 5.08965e-09 -4.5022e-08 3.95803e-09 -4.82267e-08 -3.01076e-09 -4.64859e-08 -1.64571e-08 -4.34853e-08 -2.49697e-08 -4.32292e-08 -3.05813e-08 -4.98431e-08 -3.78057e-08 -5.73015e-08 -4.46638e-08 -6.0204e-08 -4.97899e-08 -5.79442e-08 -5.30463e-08 -5.14164e-08 -5.32319e-08 -4.1261e-08 -4.01283e-08 -2.59174e-08 -1.74696e-08 -8.49431e-09 2.38436e-08 1.86668e-08 8.11814e-08 4.75072e-08 1.4248e-07 7.55541e-08 1.9863e-07 9.67891e-08 2.34358e-07 1.02235e-07 2.58154e-07 9.17728e-08 2.77971e-07 7.63042e-08 2.96197e-07 5.65494e-08 3.14008e-07 3.21397e-08 3.30994e-07 8.36043e-09 3.46794e-07 -1.1544e-08 3.59426e-07 -3.05562e-08 3.68189e-07 -4.41388e-08 3.69927e-07 -4.57255e-08 3.61111e-07 -4.00554e-08 3.41094e-07 -3.07224e-08 3.03288e-07 -6.7385e-09 2.50049e-07 1.64903e-08 1.8816e-07 3.25143e-08 1.30901e-07 3.45998e-08 9.47396e-08 3.14535e-08 6.60006e-08 4.30604e-08 6.12773e-08 1.60116e-09 5.99888e-08 -1.81247e-09 2.59993e-08 3.2392e-09 -1.35972e-08 5.64828e-09 -3.5194e-08 6.28385e-09 -4.5656e-08 5.53986e-09 -4.74799e-08 2.41859e-09 -4.33609e-08 -5.12611e-09 -3.59381e-08 -1.64641e-08 -3.18918e-08 -2.17904e-08 -4.45208e-08 -2.7289e-08 -5.18087e-08 -3.42267e-08 -5.32708e-08 -4.16176e-08 -5.05536e-08 -4.74434e-08 -4.55863e-08 -5.01329e-08 -3.85654e-08 -4.71579e-08 -2.88881e-08 -3.98844e-08 -1.57684e-08 -2.52651e-08 4.04168e-09 -6.05635e-09 2.82892e-08 1.6457e-08 5.303e-08 5.06532e-08 6.25813e-08 8.7144e-08 6.57323e-08 1.20638e-07 5.82676e-08 1.51667e-07 4.52656e-08 1.80613e-07 2.75967e-08 2.04709e-07 8.03938e-09 2.25242e-07 -1.21745e-08 2.46187e-07 -3.24912e-08 2.66585e-07 -5.0955e-08 2.83712e-07 -6.12664e-08 2.95859e-07 -5.78706e-08 2.91873e-07 -3.60651e-08 2.65354e-07 -4.19731e-09 2.27128e-07 3.14936e-08 1.75465e-07 6.81568e-08 1.19661e-07 8.83231e-08 9.15893e-08 6.26782e-08 9.06008e-08 3.24498e-08 1.31718e-07 1.9439e-09 1.29643e-07 3.6697e-09 1.1032e-07 1.75047e-08 2.29787e-08 3.88079e-09 -1.75106e-08 6.28274e-09 -3.75639e-08 6.54636e-09 -4.59129e-08 6.37395e-09 -4.73001e-08 6.65508e-09 -4.36301e-08 3.25537e-09 -3.25281e-08 -1.17943e-08 -1.68396e-08 -1.67621e-08 -3.956e-08 -1.90211e-08 -4.95632e-08 -2.14452e-08 -5.08623e-08 -2.42942e-08 -4.7718e-08 -2.7046e-08 -4.28429e-08 -2.88394e-08 -3.67759e-08 -2.85896e-08 -2.91388e-08 -2.57062e-08 -1.86517e-08 -1.91663e-08 -2.49847e-09 -1.58271e-08 2.49496e-08 -2.67977e-08 6.39998e-08 -1.28302e-08 4.86114e-08 1.21429e-08 4.07545e-08 3.85107e-08 3.18923e-08 6.22402e-08 2.15275e-08 8.22667e-08 7.5629e-09 9.95344e-08 -9.23209e-09 1.16674e-07 -2.93142e-08 1.34454e-07 -5.02665e-08 1.51422e-07 -6.79181e-08 1.67387e-07 -7.72271e-08 1.8482e-07 -7.52986e-08 1.98735e-07 -4.99748e-08 1.79615e-07 1.49305e-08 8.49553e-08 1.26163e-07 -1.77576e-08 1.70878e-07 -6.37673e-09 7.69508e-08 1.73551e-08 3.89538e-08 3.91908e-08 1.06184e-08 5.10196e-08 -9.87125e-09 5.07005e-08 4.00183e-09 5.0939e-08 1.72984e-08 -3.3396e-08 3.60034e-09 4.82252e-09 4.3133e-09 4.06987e-09 5.54121e-09 6.29932e-09 -3.72829e-09 -4.96743e-09 -4.98874e-09 -5.72689e-09 -6.34619e-09 -6.64999e-09 -6.28478e-09 -4.54806e-09 -1.10965e-09 5.23605e-09 5.50538e-09 -2.68914e-08 -2.23245e-08 -8.55641e-09 3.40419e-09 1.27481e-08 1.96488e-08 2.56447e-08 3.08138e-08 3.58143e-08 4.28593e-08 5.63798e-08 7.90033e-08 1.13949e-07 1.33722e-07 2.7227e-08 -1.37035e-07 -8.63457e-08 -2.86491e-08 7.35144e-09 2.81607e-08 6.15775e-08 1.17218e-07 ) ; boundaryField { inlet { type calculated; value uniform -2e-07; } inletWall { type calculated; value uniform 0; } bottleWall { type calculated; value uniform 0; } atmosphere { type calculated; value nonuniform List<scalar> 80 ( -1.03824e-07 5.03008e-08 1.05366e-07 1.73712e-07 5.48189e-07 2.40729e-07 6.52677e-08 4.98078e-08 4.14811e-08 4.51664e-08 5.17301e-08 7.5165e-08 7.26043e-08 -2.84913e-08 -4.5177e-08 -4.35755e-08 -3.64319e-08 -2.62795e-08 -1.13566e-08 4.65255e-08 2.54646e-07 9.34663e-08 -3.99524e-08 -5.36043e-08 -4.11249e-08 -2.05409e-08 -3.44389e-09 1.68108e-08 3.636e-08 5.05384e-08 6.3508e-08 7.54179e-08 8.54239e-08 9.37574e-08 9.90812e-08 1.01597e-07 1.01691e-07 9.65909e-08 8.42467e-08 9.51423e-08 -2.11253e-08 -3.88123e-08 -4.54327e-08 -4.70791e-08 -4.51116e-08 -3.32836e-08 -6.7991e-09 -3.83037e-08 -4.95273e-08 -5.01175e-08 -4.71016e-08 -4.25488e-08 -3.71522e-08 -3.08827e-08 -2.20903e-08 -8.83711e-09 2.46924e-08 9.64104e-08 4.40567e-08 2.69946e-08 1.99351e-08 1.21837e-08 6.61527e-10 -1.52273e-08 -3.44804e-08 -5.52623e-08 -7.49565e-08 -9.0739e-08 -9.7912e-08 -8.49106e-08 -4.83584e-09 2.3266e-07 3.35141e-07 2.62609e-08 -1.87452e-08 -2.53885e-08 -3.06804e-08 -2.94217e-08 -3.83387e-08 -1.1512e-07 ) ; } frontAndBack { type empty; value nonuniform List<scalar> 0(); } } // ************************************************************************* //
[ "shivamshahi12@gmail.com" ]
shivamshahi12@gmail.com
c6304719d014ce0b3a1832ca4743ac74f55e5d78
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/FWCore/Services/test/test_catch2_ExternalRandomNumberGeneratorService.cc
bd9cac3180438555a4a56d095c59231caf01dc34
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
C++
false
false
1,948
cc
#include "FWCore/Services/interface/ExternalRandomNumberGeneratorService.h" #include "FWCore/Utilities/interface/StreamID.h" #include "CLHEP/Random/JamesRandom.h" #include "CLHEP/Random/RanecuEngine.h" #include "CLHEP/Random/MixMaxRng.h" //#define CATCH_CONFIG_MAIN #include "catch.hpp" namespace { void test(CLHEP::HepRandomEngine& iRand, CLHEP::HepRandomEngine& iEngine) { REQUIRE(iRand.flat() == iEngine.flat()); REQUIRE(iRand.flat() == iEngine.flat()); REQUIRE(iRand.flat() == iEngine.flat()); REQUIRE(iRand.flat() == iEngine.flat()); } } // namespace TEST_CASE("Test ExternalRandomNumberGeneratorService", "[externalrandomnumbergeneratorservice]") { SECTION("JamesRandom") { edm::ExternalRandomNumberGeneratorService service; CLHEP::HepJamesRandom rand(12345); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); //advance the one to see how it works rand.flat(); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); } SECTION("RanecuEngine") { edm::ExternalRandomNumberGeneratorService service; CLHEP::RanecuEngine rand(12345); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); //advance the one to see how it works rand.flat(); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); } SECTION("MixMaxRng") { edm::ExternalRandomNumberGeneratorService service; CLHEP::MixMaxRng rand(12345); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); //advance the one to see how it works rand.flat(); service.setState(rand.put(), rand.getSeed()); test(rand, service.getEngine(edm::StreamID::invalidStreamID())); } }
[ "chrisdjones15@gmail.com" ]
chrisdjones15@gmail.com
c9d3c858ae09c7b04438d1be9ad164ee0fb2bab9
39a75fe56c2dac6bb7e4e211cbb7217eb2637b48
/AnalogReadSerial/AnalogReadSerial.ino
f43ecc40dcf973277f40663c83afb1ae81237aca
[]
no_license
avmangu/EE-3-CAR
1f9c27629f08e81158ee6dd754cd1479fd079825
23c67a2be3a9cdf0a343e288f6b3304bb5c002fd
refs/heads/master
2020-03-21T04:16:21.440486
2018-06-21T00:34:16
2018-06-21T00:34:16
138,100,209
0
0
null
null
null
null
UTF-8
C++
false
false
757
ino
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Graphical representation is available using serial plotter (Tools > Serial Plotter menu) Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability }
[ "you@example.com" ]
you@example.com
3d4cea9a27e5106920c203a2dc023212f9adb568
0451550657cdd3cad37dc2060af0ff15ecfd96a9
/fskjsdjfhjsdf.cpp
7772130bb7c5a05835870589532711183150dc3c
[]
no_license
elasticaqanet/qanet2.76
cc8882addde0a42d57a9ffc71fdb6d1782327c22
076a9758dc03cc373dc3dcd2bce3df9e5796ffc4
refs/heads/master
2023-04-27T14:45:27.035801
2023-04-20T01:03:22
2023-04-20T01:03:22
72,026,749
0
0
null
2023-04-20T01:03:23
2016-10-26T17:21:35
C++
UTF-8
C++
false
false
40
cpp
sfsdfsdfsdfsd sd f sdf sdf s df1432434
[ "noreply@github.com" ]
noreply@github.com
862e96c5fec0966a6f2cdd98a89e70dfefdeb345
5cd24f65c050a99a02e3ca4936236cfee6c310ca
/python/bindings/mac_controller_python.cc
2f2fb7d646b25e9f17043178bd360c58bd53aadd
[]
no_license
ant-uni-bremen/gr-tacmac
509297f12833269513883b54ba5335eb3e4251b2
ff2a08e8184dfaf4893f3e485a26da97c27ba3be
refs/heads/main
2023-06-21T19:32:45.633012
2023-01-11T11:31:01
2023-01-11T11:31:01
250,314,414
0
0
null
2023-06-13T09:23:08
2020-03-26T16:38:43
C++
UTF-8
C++
false
false
1,681
cc
/* * Copyright 2020 Free Software Foundation, Inc. * * This file is part of GNU Radio * * SPDX-License-Identifier: GPL-3.0-or-later * */ /***********************************************************************************/ /* This file is automatically generated using bindtool and can be manually edited */ /* The following lines can be configured to regenerate this file during cmake */ /* If manual edits are made, the following tags should be modified accordingly. */ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(mac_controller.h) */ /* BINDTOOL_HEADER_FILE_HASH(a43d09271ae74415d25bad7e23d34d01) */ /***********************************************************************************/ #include <pybind11/complex.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> namespace py = pybind11; #include <tacmac/mac_controller.h> // pydoc.h is automatically generated in the build directory #include <mac_controller_pydoc.h> void bind_mac_controller(py::module& m) { using mac_controller = ::gr::tacmac::mac_controller; py::class_<mac_controller, gr::sync_block, gr::block, gr::basic_block, std::shared_ptr<mac_controller>>(m, "mac_controller", D(mac_controller)) .def(py::init(&mac_controller::make), py::arg("destination_id"), py::arg("source_id"), py::arg("mtu_size"), D(mac_controller, make)) ; }
[ "demel@ant.uni-bremen.de" ]
demel@ant.uni-bremen.de
349d1543b0942b34e3f53b85470ce05e85eaeee6
1fba4d7e5a6d9a09753fb4df439184871a8085dd
/include/Camera.h
7b861a04836149f278b5dcfdbe46ac3c6b5ddb0e
[]
no_license
rcedermalm/OpenGL-template
b9e550737869811fefc4b4d12620950590cb588c
828ac43e53f6ab824a9214bcf31b901808a657b6
refs/heads/master
2020-04-03T22:52:04.865951
2018-10-31T20:18:37
2018-10-31T20:18:37
155,611,930
1
0
null
null
null
null
UTF-8
C++
false
false
4,310
h
#include <glm.hpp> #include <gtc/matrix_transform.hpp> #include <vector> // Defines several possible options for camera movement. Used as abstraction to stay away from window-system specific input methods enum Camera_Movement { FORWARD, BACKWARD, LEFT, RIGHT }; // Default camera values const float YAW = -90.0f; const float PITCH = 0.0f; const float SPEED = 2.5f; const float SENSITIVITY = 0.1f; const float ZOOM = 45.0f; // An abstract camera class that processes input and calculates the corresponding Euler Angles, Vectors and Matrices for use in OpenGL class Camera { public: // Camera Attributes glm::vec3 Position; glm::vec3 Front; glm::vec3 Up; glm::vec3 Right; glm::vec3 WorldUp; // Euler Angles float Yaw; float Pitch; // Camera options float MovementSpeed; float MouseSensitivity; float Zoom; // Constructor with vectors Camera(glm::vec3 position = glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3 up = glm::vec3(0.0f, 1.0f, 0.0f), float yaw = YAW, float pitch = PITCH) : Front(glm::vec3(0.0f, 0.0f, -1.0f)), MovementSpeed(SPEED), MouseSensitivity(SENSITIVITY), Zoom(ZOOM) { Position = position; WorldUp = up; Yaw = yaw; Pitch = pitch; updateCameraVectors(); } // Constructor with scalar values Camera(float posX, float posY, float posZ, float upX, float upY, float upZ, float yaw, float pitch) : Front(glm::vec3(0.0f, 0.0f, -1.0f)), MovementSpeed(SPEED), MouseSensitivity(SENSITIVITY), Zoom(ZOOM) { Position = glm::vec3(posX, posY, posZ); WorldUp = glm::vec3(upX, upY, upZ); Yaw = yaw; Pitch = pitch; updateCameraVectors(); } // Returns the view matrix calculated using Euler Angles and the LookAt Matrix glm::mat4 GetViewMatrix() { return glm::lookAt(Position, Position + Front, Up); } // Processes input received from any keyboard-like input system. Accepts input parameter in the form of camera defined ENUM (to abstract it from windowing systems) void ProcessKeyboard(Camera_Movement direction, float deltaTime) { float velocity = MovementSpeed * deltaTime; if (direction == FORWARD) Position += Front * velocity; if (direction == BACKWARD) Position -= Front * velocity; if (direction == LEFT) Position -= Right * velocity; if (direction == RIGHT) Position += Right * velocity; } // Processes input received from a mouse input system. Expects the offset value in both the x and y direction. void ProcessMouseMovement(float xoffset, float yoffset, GLboolean constrainPitch = true) { xoffset *= MouseSensitivity; yoffset *= MouseSensitivity; Yaw += xoffset; Pitch += yoffset; // Make sure that when pitch is out of bounds, screen doesn't get flipped if (constrainPitch) { if (Pitch > 89.0f) Pitch = 89.0f; if (Pitch < -89.0f) Pitch = -89.0f; } // Update Front, Right and Up Vectors using the updated Euler angles updateCameraVectors(); } // Processes input received from a mouse scroll-wheel event. Only requires input on the vertical wheel-axis void ProcessMouseScroll(float yoffset) { if (Zoom >= 1.0f && Zoom <= 45.0f) Zoom -= yoffset; if (Zoom <= 1.0f) Zoom = 1.0f; if (Zoom >= 45.0f) Zoom = 45.0f; } private: // Calculates the front vector from the Camera's (updated) Euler Angles void updateCameraVectors() { // Calculate the new Front vector glm::vec3 front; front.x = cos(glm::radians(Yaw)) * cos(glm::radians(Pitch)); front.y = sin(glm::radians(Pitch)); front.z = sin(glm::radians(Yaw)) * cos(glm::radians(Pitch)); Front = glm::normalize(front); // Also re-calculate the Right and Up vector Right = glm::normalize(glm::cross(Front, WorldUp)); // Normalize the vectors, because their length gets closer to 0 the more you look up or down which results in slower movement. Up = glm::normalize(glm::cross(Right, Front)); } };
[ "rebce973@student.liu.se" ]
rebce973@student.liu.se
cb0e1891ba54668cf969c5d9f46ac9c437223878
0562cf42a0680a32fd3a6a3e272f30c12a494b89
/proto/LcGradLinearDGToFiniteVolumeUpdater.cpp
e5868475981ea48b1ca5afb4b8a7aa397b17afc3
[]
no_license
ammarhakim/gkeyll1
70131876e4a68851a548e4d45e225498911eb2b6
59da9591106207e22787d72b9c2f3e7fbdc1a7e4
refs/heads/master
2020-09-08T05:23:47.974889
2019-02-06T18:09:18
2019-02-06T18:09:18
221,027,635
0
0
null
null
null
null
UTF-8
C++
false
false
2,525
cpp
/** * @file LcGradLinearDGToFiniteVolumeUpdater.cpp * * @brief Updater to integrate nodal DG/CG field over complete domain */ // config stuff #ifdef HAVE_CONFIG_H # include <config.h> #endif // lucee includes #include <LcGlobals.h> #include <LcGradLinearDGToFiniteVolumeUpdater.h> // loki includes #include <loki/Singleton.h> namespace Lucee { template <> const char *GradLinearDGToFiniteVolumeUpdater<1>::id = "GradLinearDGToFiniteVolume1D"; template <> const char *GradLinearDGToFiniteVolumeUpdater<2>::id = "GradLinearDGToFiniteVolume2D"; template <> const char *GradLinearDGToFiniteVolumeUpdater<3>::id = "GradLinearDGToFiniteVolume3D"; template <unsigned NDIM> GradLinearDGToFiniteVolumeUpdater<NDIM>::GradLinearDGToFiniteVolumeUpdater() : Lucee::UpdaterIfc() { } template <unsigned NDIM> void GradLinearDGToFiniteVolumeUpdater<NDIM>::readInput(Lucee::LuaTable& tbl) { Lucee::UpdaterIfc::readInput(tbl); // component to copy component = 0; if (tbl.hasNumber("component")) component = tbl.getNumber("component"); } template <unsigned NDIM> Lucee::UpdaterStatus GradLinearDGToFiniteVolumeUpdater<NDIM>::update(double t) { if (NDIM>1) throw Lucee::Except("GradLinearDGToFiniteVolumeUpdater::update: Only works in 1D at present!"); const Lucee::StructuredGridBase<NDIM>& grid = this->getGrid<Lucee::StructuredGridBase<NDIM> >(); const Lucee::Field<NDIM, double>& dgFld = this->getInp<Lucee::Field<NDIM, double> >(0); Lucee::Field<NDIM, double>& fvFld = this->getOut<Lucee::Field<NDIM, double> >(0); double dx1 = 1/grid.getDx(0); Lucee::ConstFieldPtr<double> dgPtr = dgFld.createConstPtr(); Lucee::FieldPtr<double> fvPtr = fvFld.createPtr(); Lucee::Region<NDIM, int> localRgn = grid.getLocalRegion(); for (int i=localRgn.getLower(0); i<localRgn.getUpper(0); ++i) { fvFld.setPtr(fvPtr, i); dgFld.setPtr(dgPtr, i); fvPtr[component] = dx1*(dgPtr[1]-dgPtr[0]); // simple central differences } return Lucee::UpdaterStatus(); } template <unsigned NDIM> void GradLinearDGToFiniteVolumeUpdater<NDIM>::declareTypes() { this->appendInpVarType(typeid(Lucee::Field<NDIM, double>)); this->appendOutVarType(typeid(Lucee::Field<NDIM, double>)); } // instantiations template class Lucee::GradLinearDGToFiniteVolumeUpdater<1>; template class Lucee::GradLinearDGToFiniteVolumeUpdater<2>; template class Lucee::GradLinearDGToFiniteVolumeUpdater<3>; }
[ "eshi@pppl.gov" ]
eshi@pppl.gov
98c8cf66c2c31625412fc66c37fbac0b60222279
fb7e3dceb34e5a0844e114d8e55c61d94edb5ce5
/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_infinite_corruptor.cpp
52b71928578346e7bef416367664d5dbd67ecfaa
[]
no_license
osleyder85/BFA
12a6821d237bdeb61e862736bbf625abd3730a46
0ea542c730f8834fa250e03a9d590a547b696c9b
refs/heads/main
2023-08-25T14:09:21.647282
2021-01-17T06:30:26
2021-01-17T06:30:26
303,239,655
0
1
null
null
null
null
UTF-8
C++
false
false
3,816
cpp
/* * Copyright (C) 2020 BfaCore * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "ScriptMgr.h" #include "culling_of_stratholme.h" #include "ScriptedCreature.h" enum Spells { SPELL_CORRUPTING_BLIGHT = 60588, SPELL_VOID_STRIKE = 60590, SPELL_CORRUPTION_OF_TIME_CHANNEL = 60422, SPELL_CORRUPTION_OF_TIME_TARGET = 60451 }; enum Yells { SAY_AGGRO = 0, SAY_DEATH = 1, SAY_FAIL = 2 }; enum Events { EVENT_CORRUPTING_BLIGHT = 1, EVENT_VOID_STRIKE }; class boss_infinite_corruptor : public CreatureScript { public: boss_infinite_corruptor() : CreatureScript("boss_infinite_corruptor") { } struct boss_infinite_corruptorAI : public BossAI { boss_infinite_corruptorAI(Creature* creature) : BossAI(creature, DATA_INFINITE) { } void Reset() override { _Reset(); if (Creature* guardian = me->FindNearestCreature(NPC_GUARDIAN_OF_TIME, 100.0f)) { DoCast(nullptr, SPELL_CORRUPTION_OF_TIME_CHANNEL, false); guardian->CastSpell(guardian, SPELL_CORRUPTION_OF_TIME_TARGET, false); } } void EnterCombat(Unit* /*who*/) override { Talk(SAY_AGGRO); _EnterCombat(); events.ScheduleEvent(EVENT_CORRUPTING_BLIGHT, 7000); events.ScheduleEvent(EVENT_VOID_STRIKE, 5000); } void JustDied(Unit* /*killer*/) override { Talk(SAY_DEATH); _JustDied(); if (Creature* guardian = me->FindNearestCreature(NPC_GUARDIAN_OF_TIME, 100.0f)) { guardian->RemoveAurasDueToSpell(SPELL_CORRUPTION_OF_TIME_TARGET); guardian->DespawnOrUnsummon(5000); } if (Creature* rift = me->FindNearestCreature(NPC_TIME_RIFT, 100.0f)) rift->DespawnOrUnsummon(); } void ExecuteEvent(uint32 eventId) override { switch (eventId) { case EVENT_CORRUPTING_BLIGHT: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 60.0f, true)) DoCast(target, SPELL_CORRUPTING_BLIGHT); events.ScheduleEvent(EVENT_CORRUPTING_BLIGHT, 17000); break; case EVENT_VOID_STRIKE: DoCastVictim(SPELL_VOID_STRIKE); events.ScheduleEvent(EVENT_VOID_STRIKE, 5000); break; default: break; } } }; CreatureAI* GetAI(Creature* creature) const override { return GetCullingOfStratholmeAI<boss_infinite_corruptorAI>(creature); } }; void AddSC_boss_infinite_corruptor() { new boss_infinite_corruptor(); }
[ "70058901+CrimsonDespair@users.noreply.github.com" ]
70058901+CrimsonDespair@users.noreply.github.com
63d9e880e5fb529550e435e401aa657bb7f270dd
5bf83e970431dbc123da48bcd9a009b01f4f72ef
/src/opencv/build/modules/imgproc/smooth.simd_declarations.hpp
2af79b326278698eff5eab2872c443a0ead39b5d
[]
no_license
ZeyadIbrahim1/rplidar
2094dc7873d9dba0606a1e010802399d01ed22f3
b9b100d4fdd434e8dd8952fbf534730effc58eae
refs/heads/master
2022-12-10T04:59:07.733125
2020-08-31T18:56:13
2020-08-31T18:56:13
291,355,812
0
0
null
null
null
null
UTF-8
C++
false
false
390
hpp
#define CV_CPU_SIMD_FILENAME "/home/fayo/test/src/opencv/modules/imgproc/src/smooth.simd.hpp" #define CV_CPU_DISPATCH_MODE SSE4_1 #include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp" #define CV_CPU_DISPATCH_MODE AVX2 #include "opencv2/core/private/cv_cpu_include_simd_declarations.hpp" #define CV_CPU_DISPATCH_MODES_ALL AVX2, SSE4_1, BASELINE #undef CV_CPU_SIMD_FILENAME
[ "zeyadibrahim212@gmail.com" ]
zeyadibrahim212@gmail.com
896c1f9584fdd412fca89428b29c1d0a9d0edf14
c475e087a0471e1a983e4cb55b50a021f359b42b
/cellular_potts_polarity_motion.cpp
2cae461a0da05f1b5fe3f3d33d2d4c418705b16e
[]
no_license
kmatsu3/Cellular_Potts
a64df38950cc037f34c95151ebc0eb17177888b4
e7c6ea55c23e090b1859b3f6224267bfae79e551
refs/heads/master
2021-06-24T12:29:39.980384
2021-01-08T03:32:13
2021-01-08T03:32:13
194,646,509
0
0
null
null
null
null
UTF-8
C++
false
false
13,517
cpp
#include "cellular_potts_state.hpp" void polarity_motion_class::initialize_polarities( const model_parameters_cellular_potts_class & model, const cell_system_class & cell_system, const site_system_class & site_system, const std::vector<double> & input_polarities, const std::vector<long long int> & input_cell_total_positions, const std::vector<long long int> & input_cell_volumes, const std::vector<long long int> & input_cell_origins ) { // long int cell_index; int direction_index; // for(cell_index=0;cell_index<number_of_cells;cell_index++) { // work_vector_double_1=cell_system.calculate_cell_position( model, site_system, input_cell_origins, input_cell_total_positions, input_cell_volumes, cell_index ); // for(direction_index=0;direction_index<space_dimension;direction_index++) { memorized_positions[cell_index*space_dimension+direction_index] =work_vector_double_1[direction_index]; }; // }; }; // void polarity_motion_class::get_displacements( const model_parameters_cellular_potts_class & model, const cell_system_class & cell_system, const site_system_class & site_system, const std::vector<long long int> & input_cell_total_positions, const std::vector<long long int> & input_cell_volumes, const std::vector<long long int> & input_cell_origins, std::vector<double> & cell_displacements ) { long int cell_index; int component_index; /* Calculate Cell positions with a origin set at a site in cell*/ for(cell_index=0;cell_index<number_of_cells;cell_index++) { // work_vector_double_1=cell_system.calculate_cell_position( model, site_system, input_cell_origins, input_cell_total_positions, input_cell_volumes, cell_index ); for(component_index=0;component_index<space_dimension;component_index++) { cell_displacements[cell_index*space_dimension+component_index] =work_vector_double_1[component_index]; }; }; // for(cell_index=0;cell_index<number_of_cells;cell_index++) { for(component_index=0;component_index<space_dimension;component_index++) { cell_displacements[cell_index*space_dimension+component_index] =cell_displacements[cell_index*space_dimension+component_index] -memorized_positions[cell_index*space_dimension+component_index]; }; }; }; // void polarity_motion_class::update_polarities( const model_parameters_cellular_potts_class & model, const cell_system_class & cell_system, const site_system_class & site_system, const std::vector<long long int> & input_cell_total_positions, const std::vector<long long int> & input_cell_volumes, const std::vector<long long int> & input_cell_origins, const std::vector<double> & adhesion_field, std::vector<double> & polarities ) { // std::string message=""; // std::vector<double> work_vector_local_double(space_dimension); /* Calculate Cell positions with a origin set at a site in cell*/ for(long int cell_index=0;cell_index<number_of_cells;cell_index++) { // work_vector_local_double=cell_system.calculate_cell_position( model, site_system, input_cell_origins, input_cell_total_positions, input_cell_volumes, cell_index ); for(int component_index=0;component_index<space_dimension;component_index++) { work_vector_double[cell_index*space_dimension+component_index] =work_vector_local_double[component_index]; }; }; // for(long int cell_index=0;cell_index<number_of_cells;cell_index++) { // debug //if(cell_index==43) // for(int component_index=0;component_index<space_dimension;component_index++) { difference_polarities[cell_index*space_dimension+component_index] =(work_vector_double[cell_index*space_dimension+component_index] -memorized_positions[cell_index*space_dimension+component_index]) /persistent_time[cell_types[cell_index]] +adhesion_sensitivity[cell_types[cell_index]] *adhesion_field[cell_index*space_dimension+component_index]; // if(cell_index==43)message+= io_method.double_to_string(difference_polarities[cell_index*space_dimension+component_index])+','; //if(cell_index==43)message+= io_method.double_to_string(adhesion_field[cell_index*space_dimension+component_index])+','; }; // debug //if(cell_index==43) //{ // for(int direction_index=0; // direction_index<space_dimension; // direction_index++) // { // if(std::isnan(difference_polarities[cell_index*space_dimension+direction_index])) // io_method.error_output("B0"+io_method.longint_to_string(direction_index),"",message); // } // debug // for(int direction_index=0; // direction_index<space_dimension; // direction_index++) // { // if(std::isnan(adhesion_field[cell_index*space_dimension+direction_index])) // / io_method.error_output("B1"+io_method.longint_to_string(direction_index),"",message); // } // for(int direction_index=0; // direction_index<space_dimension; // direction_index++) // if(std::isnan(difference_polarities[cell_index*space_dimension+direction_index])) // { // message = io_method.longint_to_string(cell_index)+','; // message+= io_method.int_to_string(direction_index)+','; // message+= io_method.double_to_string(difference_polarities[cell_index*space_dimension+direction_index]); // message+= io_method.double_to_string(adhesion_field[cell_index*space_dimension+direction_index]); // io_method.standard_output(message); // }; //}; // debug }; // for(long int cell_index=0;cell_index<number_of_cells;cell_index++) { for(int component_index=0;component_index<space_dimension;component_index++) { // work_vector_double_1[component_index]=polarities[cell_index*space_dimension+component_index]; work_vector_double_2[component_index]=difference_polarities[cell_index*space_dimension+component_index]; // }; // projection_to_parpendicular_direction =std::inner_product( work_vector_double_1.begin(), work_vector_double_1.end(), work_vector_double_2.begin(), 0.0 )/ std::inner_product( work_vector_double_1.begin(), work_vector_double_1.end(), work_vector_double_1.begin(), 0.0 ); // for(int component_index=0;component_index<space_dimension;component_index++) { // difference_polarities[cell_index*space_dimension+component_index] =difference_polarities[cell_index*space_dimension+component_index] -projection_to_parpendicular_direction *polarities[cell_index*space_dimension+component_index]; // }; }; // // fprintf(stderr,"bug is in hereafter"); // if(space_dimension!=2) { for(long int cell_index=0;cell_index<number_of_cells;cell_index++) { for(int component_index=0;component_index<space_dimension;component_index++) { // work_vector_double_1[component_index]=polarities[cell_index*space_dimension+component_index] +difference_polarities[cell_index*space_dimension+component_index]; // }; // fprintf(stderr,"(%f,%f,%f)::" // ,polarities[cell_index*space_dimension+0] // ,polarities[cell_index*space_dimension+1] // ,polarities[cell_index*space_dimension+2] // ); // fprintf(stderr,"(%f,%f,%f)::" // ,work_vector_double_1[0] // ,work_vector_double_1[1] // ,work_vector_double_1[2] // ); work_vector_double_2=tool.normalized_vector(work_vector_double_1); // debug //fprintf(stderr,"(%f,%f,%f)/(%f,%f)\n" // ,work_vector_double_2[0]/work_vector_double_1[0] // ,work_vector_double_2[1]/work_vector_double_1[1] // ,work_vector_double_2[2]/work_vector_double_1[2] // ,tool.norm(work_vector_double_1) // ,tool.norm(work_vector_double_2) // ); // debug for(int component_index=0;component_index<space_dimension;component_index++) { // polarities[cell_index*space_dimension+component_index] =work_vector_double_2[component_index]; // }; }; } else { // for(cell_index=0;cell_index<number_of_cells;cell_index++) // { // fprintf( // stderr, // "(%ld,%f,%f)\n", // cell_index, // polarities[cell_index*2+0]+difference_polarities[cell_index*2+0], // polarities[cell_index*2+1]+difference_polarities[cell_index*2+1] // ); // } for(long int cell_index=0;cell_index<number_of_cells;cell_index++) { for(int component_index=0;component_index<space_dimension;component_index++) { // work_vector_double_1[component_index]=polarities[cell_index*space_dimension+component_index]; work_vector_double_2[component_index]=difference_polarities[cell_index*space_dimension+component_index]; // }; angle=tool.norm(work_vector_double_2) /tool.norm(work_vector_double_1) *external_product_sign(work_vector_double_1,work_vector_double_2); work_vector_double_1[0] =polarities[cell_index*space_dimension+0]*cos(angle) -polarities[cell_index*space_dimension+1]*sin(angle); work_vector_double_1[1] =polarities[cell_index*space_dimension+0]*sin(angle) +polarities[cell_index*space_dimension+1]*cos(angle); polarities[cell_index*space_dimension+0]= work_vector_double_1[0]; polarities[cell_index*space_dimension+1]= work_vector_double_1[1]; }; }; // // for(long int cell_index=0;cell_index<number_of_cells;cell_index++) // { // fprintf(stderr,"(%ld,%f,%f)\n",cell_index,polarities[cell_index*2],polarities[cell_index*2+1]); // } }; // /* const std::vector<double> polarity_motion_class:: rotation_2d( const std::vector<double> vectors, const std::vector<double> difference_vectors, const long int array_size ) const { std::vector<double> return_vector(vectors.size(),0.0); long int vector_index; std::vector<double> work; for (vector_index=0;vector_index<array_size;vector_index++) { rotation_angles[vector_index] =vectors[vector_index*2+1]*difference_vectors[vector_index*2+2] -vectors[vector_index*2+2]*difference_vectors[vector_index*2+1]; rotation_angles[vector_index] =rotation_angles[vector_index]/fabs(rotation_angles[vector_index]) *sqrt(difference_vectors[vector_index*2+1]*difference_vectors[vector_index*2+1] +difference_vectors[vector_index*2+2]*difference_vectors[vector_index*2+2]); return_vector[vector_index*2+1]=cos(rotation_angles[vector_index]) -sin(rotation_angles[vector_index]); return_vector[vector_index*2+2]=sin(rotation_angles[vector_index]) +cos(rotation_angles[vector_index]); } return return_vector; }; */ // inline double polarity_motion_class::external_product_sign( const std::vector<double> & vector_1, const std::vector<double> & vector_2 ) { // double external_product_12=0.0; if(space_dimension==2) { external_product_12 =vector_1[0]*vector_2[1]-vector_1[1]*vector_2[0]; } else { io_cellular_potts io_method; io_method.error_output( "state_system_class", "product_sign", "due to under construction!" ); } return copysign(1.0,external_product_12); // }; // polarity_motion_class::polarity_motion_class( const model_parameters_cellular_potts_class & model, const cell_system_class & cell_system, const type_system_class & cell_type_system ) { long int cell_index; space_dimension=model.get_space_dimension(); number_of_cells=model.get_number_of_cells(); number_of_cell_types=model.get_number_of_cell_types(); int direction_index; // for(direction_index=0;direction_index<space_dimension;direction_index++) { work_vector_double_1.push_back(0.0); work_vector_double_2.push_back(0.0); }; // number_of_cells=model.get_number_of_cells(); // cell_types.clear(); for(cell_index=0;cell_index<number_of_cells;cell_index++) { // rotaion_angles.push_back(0.0); cell_types.push_back(cell_system.get_type(cell_index)); for(direction_index=0;direction_index<space_dimension;direction_index++) { work_vector_double.push_back(0.0); memorized_positions.push_back(0.0); difference_polarities.push_back(0.0); // rotation_axes.push_back(0.0); }; }; // number_of_cell_types=model.get_number_of_cell_types(); // persistent_time.clear(); adhesion_sensitivity.clear(); int type_index; for(type_index=0;type_index<number_of_cell_types;type_index++) { persistent_time.push_back(0.0); adhesion_sensitivity.push_back(0.0); }; cell_type_system.get_persistent_times(persistent_time); cell_type_system.get_adhesion_sensitivities(adhesion_sensitivity); // };
[ "kmatsu@cp.cmc.osaka-u.ac.jp" ]
kmatsu@cp.cmc.osaka-u.ac.jp
0c116ba0669eefa598d39151930da5b0dd560f5a
21ede326b6cfcf5347ca6772d392d3acca80cfa0
/chrome/browser/web_applications/policy/web_app_policy_constants.h
de5c1df3db89e28c84454dec8058efe672666764
[ "BSD-3-Clause" ]
permissive
csagan5/kiwi
6eaab0ab4db60468358291956506ad6f889401f8
eb2015c28925be91b4a3130b3c2bee2f5edc91de
refs/heads/master
2020-04-04T17:06:54.003121
2018-10-24T08:20:01
2018-10-24T08:20:01
156,107,399
2
0
null
null
null
null
UTF-8
C++
false
false
654
h
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_WEB_APPLICATIONS_POLICY_WEB_APP_POLICY_CONSTANTS_H_ #define CHROME_BROWSER_WEB_APPLICATIONS_POLICY_WEB_APP_POLICY_CONSTANTS_H_ namespace web_app { // Keys and values for the WebAppInstallForceList preference. extern const char kUrlKey[]; extern const char kLaunchTypeKey[]; extern const char kLaunchTypeWindowValue[]; extern const char kLaunchTypeTabValue[]; } // namespace web_app #endif // CHROME_BROWSER_WEB_APPLICATIONS_POLICY_WEB_APP_POLICY_CONSTANTS_H_
[ "team@geometry.ee" ]
team@geometry.ee
ac49afb04ba75e5ea6887c65368d89fa4fa9ffbb
5a6659e3c7966b3e7114dbc0208fb1ce3f9b00e7
/Rendu/Exercice2_photoresistor_/Exercice2_photoresistor_.ino
2fd4fa9e20871e6139eacc75192f513be2166920
[]
no_license
IoTClassroom/hei-2018-2019-lab-sigfox-renaux-romain
08f3f3e334e90c5b502ebab0c2135180140de4f6
3a76ecbad67a9b0b51ee790f71414387b6ba2e83
refs/heads/master
2020-04-06T23:27:03.424496
2018-11-16T15:48:22
2018-11-16T15:48:22
157,869,445
0
0
null
null
null
null
UTF-8
C++
false
false
2,388
ino
//Set to 0 if you don't need to see the messages in the console #define DEBUG 1 //Message buffer uint8_t msg[12]; // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BUILTIN, OUTPUT); if(DEBUG){ Serial.begin(9600); } // open Wisol communication Serial1.begin(9600); delay(100); getID(); delay(100); getPAC(); } // the loop function runs over and over again forever void loop() { msg[0]=0xC0; msg[1]=0xFF; msg[2]=0xEE; sendMessage(msg, 3); // In the ETSI zone, due to the reglementation, an object cannot emit more than 1% of the time hourly // So, 1 hour = 3600 sec // 1% of 3600 sec = 36 sec // A Sigfox message takes 6 seconds to emit // 36 sec / 6 sec = 6 messages per hours -> 1 every 10 minutes delay(10*60*1000); } void blink(){ digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); } //Get Sigfox ID String getID(){ String id = ""; char output; Serial1.print("AT$I=10\r"); while (!Serial1.available()){ blink(); } while(Serial1.available()){ output = Serial1.read(); id += output; delay(10); } if(DEBUG){ Serial.println("Sigfox Device ID: "); Serial.println(id); } return id; } //Get PAC number String getPAC(){ String pac = ""; char output; Serial1.print("AT$I=11\r"); while (!Serial1.available()){ blink(); } while(Serial1.available()){ output = Serial1.read(); pac += "X"; delay(10); } if(DEBUG){ Serial.println("PAC number: "); Serial.println(pac); } return pac; } //Send Sigfox Message void sendMessage(uint8_t msg[], int size){ String status = ""; char output; Serial1.print("AT$SF="); for(int i= 0;i<size;i++){ Serial1.print(String(msg[i], HEX)); if(DEBUG){ Serial.print("Byte:"); Serial.println(msg[i], HEX); } } Serial1.print("\r"); while (!Serial1.available()){ blink(); } while(Serial1.available()){ output = (char)Serial1.read(); status += output; delay(10); } if(DEBUG){ Serial.println(); Serial.print("Status \t"); Serial.println(status); } }
[ "arthur.renaux@hei.yncrea.fr" ]
arthur.renaux@hei.yncrea.fr
5d3fbc3216da7e6c5c90728f22806d051d11b187
2083070b7799082a084e3094e386de8d29dbfe27
/compil/src/generator/cpp/format/initialization.h
5faa0db39a8202b3cb03a3011fdca22b5bdcc0a6
[]
no_license
ggeorgiev/compil
939a8320ad14e0d4d6fd86ce9b29c57bd3f068b0
42b91209c65a11a935b81a64cb15337c9501baa4
refs/heads/master
2021-01-10T21:01:24.235578
2014-06-29T02:47:17
2014-06-29T02:47:17
2,500,018
0
0
null
null
null
null
UTF-8
C++
false
false
4,996
h
// CompIL - Component Interface Language // Copyright 2011 George Georgiev. 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. // * The name of George Georgiev can not be used to endorse or // promote products derived from this software without specific prior // written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 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. // Author: george.georgiev@hotmail.com (George Georgiev) // // Boost C++ Smart Pointers #include <boost/make_shared.hpp> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #ifndef __GENERATOR_SELF_GENERATOR_CPP_FORMAT_INITIALIZATION_COMPIL_H_ #define __GENERATOR_SELF_GENERATOR_CPP_FORMAT_INITIALIZATION_COMPIL_H_ #include "constructor_name.h" #include "initialization.h" #include "parameter_value.h" #include "variable_name.h" namespace cpp { namespace frm { class Initialization { public: // Default constructor Initialization (); // Destructor /*lax*/ ~Initialization (); // Getter method for the data field constructorName const ConstructorNameSPtr& constructorName () const; // Setter method for the data field constructorName Initialization& set_constructorName(const ConstructorNameSPtr& constructorName); // Store operator for the data field constructorName Initialization& operator<< (const ConstructorNameSPtr& constructorName); // Getter method for the data field variableName const VariableNameSPtr& variableName () const; // Setter method for the data field variableName Initialization& set_variableName (const VariableNameSPtr& variableName); // Store operator for the data field variableName Initialization& operator<< (const VariableNameSPtr& variableName); // Getter method for the data field parameter const ParameterValueSPtr& parameter () const; // Setter method for the data field parameter Initialization& set_parameter (const ParameterValueSPtr& parameter); // Store operator for the data field parameter Initialization& operator<< (const ParameterValueSPtr& parameter); private: // variable for the data field constructorName ConstructorNameSPtr mConstructorName; // variable for the data field variableName VariableNameSPtr mVariableName; // variable for the data field parameter ParameterValueSPtr mParameter; }; // Reference store operator for the data field constructorName const InitializationSPtr& operator<<(const InitializationSPtr& , const ConstructorNameSPtr& ); // Reference store operator for the data field variableName const InitializationSPtr& operator<<(const InitializationSPtr& , const VariableNameSPtr& ); // Reference store operator for the data field parameter const InitializationSPtr& operator<<(const InitializationSPtr& , const ParameterValueSPtr& ); inline InitializationSPtr initializationRef() { return boost::make_shared<Initialization>(); } } } #else // __GENERATOR_SELF_GENERATOR_CPP_FORMAT_INITIALIZATION_COMPIL_H_ namespace cpp { namespace frm { // Forward declarations class Initialization; typedef Initialization* InitializationRPtr; typedef boost::shared_ptr<Initialization> InitializationSPtr; typedef boost::shared_ptr<const Initialization> InitializationSCPtr; typedef boost::weak_ptr<Initialization> InitializationWPtr; } } #endif // __GENERATOR_SELF_GENERATOR_CPP_FORMAT_INITIALIZATION_COMPIL_H_
[ "george.georgiev@hotmail.com" ]
george.georgiev@hotmail.com
a59bd0c9ccd1201d281d6cc7039e81dd40751375
527739ed800e3234136b3284838c81334b751b44
/include/RED4ext/Types/generated/anim/CurvePathControllersSetup.hpp
33fafa08a951a7598f5bbb9e8fd899b0e033dbfd
[ "MIT" ]
permissive
0xSombra/RED4ext.SDK
79ed912e5b628ef28efbf92d5bb257b195bfc821
218b411991ed0b7cb7acd5efdddd784f31c66f20
refs/heads/master
2023-07-02T11:03:45.732337
2021-04-15T16:38:19
2021-04-15T16:38:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
608
hpp
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/CName.hpp> namespace RED4ext { namespace anim { struct CurvePathControllersSetup { static constexpr const char* NAME = "animCurvePathControllersSetup"; static constexpr const char* ALIAS = NAME; CName name; // 00 CName startControllerName; // 08 CName mainControllerName; // 10 CName stopControllerName; // 18 }; RED4EXT_ASSERT_SIZE(CurvePathControllersSetup, 0x20); } // namespace anim } // namespace RED4ext
[ "expired6978@gmail.com" ]
expired6978@gmail.com
805d837b776c4ffe097f5a1994c07babf5373e5a
87192091631c8f22ef6dc97975d11decb5676edb
/test_for_exec/test_for_CLMutex_SharePThread/test.cpp
fd20888ba50b9a11c0e9efc9aace65a7c7bdcdd3
[]
no_license
BlackWaters/Linux-API-Kernel-Code
92e684bd7b5eb89be0616c76881a1a53f645b653
24d0131aaa53f9f1a132b55eb83c886ecafe9539
refs/heads/master
2020-04-26T12:51:41.994149
2019-04-16T07:23:36
2019-04-16T07:23:36
173,563,280
0
0
null
null
null
null
UTF-8
C++
false
false
1,085
cpp
#include <iostream> #include <fcntl.h> #include "LibExecutive.h" using namespace std; int count = 100000; static void *thread_for_shared_mutex_bypthread(void *arg) { long *pg = (long *)arg; for(int i = 0; i < count; i++) { CLMutex mutex("mutex_for_CLMutex_SharedMutexByPthread", MUTEX_USE_SHARED_PTHREAD); CLCriticalSection cs(&mutex); (*pg) = (*pg) + 1; } return 0; } int main(int argc, char* argv[]) { if(!CLLibExecutiveInitializer::Initialize().IsSuccess()) { cout << "in test initialize error" << endl; return 0; } try { CLSharedMemory *psm = new CLSharedMemory("test_for_CLMutex_SharedMutexByPthread", 8); long *pg = (long *)(psm->GetAddress()); pthread_t tid; pthread_create(&tid, 0, thread_for_shared_mutex_bypthread, pg); thread_for_shared_mutex_bypthread(pg); pthread_join(tid, 0); delete psm; throw CLStatus(0, 0); } catch(CLStatus& s) { { CLEvent event("test_for_event_auto"); event.Set(); } if(!CLLibExecutiveInitializer::Destroy().IsSuccess()) cout << "in test destroy error" << endl; } return 0; }
[ "lilin@uestc.edu.cn" ]
lilin@uestc.edu.cn
5a5f767451f043659e4cd6417e846b982cb9b11f
95cdafa634c175d6aaa0cada4638001503767a8f
/freertos/packet/can_packet/ps_packet_can_rtos.hpp
a4d7a0b7d3511972ea5a9f298f5cadb468f38407
[]
no_license
wda2945/Plumbing
4c3dd0aedb0c3fd90ee1c187132a1dd31b1291d1
fb527962c39056829dc07f5341525704c95eb4b7
refs/heads/master
2021-01-20T09:51:34.234351
2017-08-28T06:47:26
2017-08-28T06:47:26
101,612,736
0
1
null
null
null
null
UTF-8
C++
false
false
1,300
hpp
// // ps_packet_can_rtos.hpp // RobotFramework // // Created by Martin Lane-Smith on 5/19/16. // Copyright © 2016 Martin Lane-Smith. All rights reserved. // #ifndef ps_packet_can_rtos_hpp #define ps_packet_can_rtos_hpp #include <map> #include "packet/can_packet/ps_packet_can_module.hpp" #include "ps_config.h" #define _SUPPRESS_PLIB_WARNING #define _DISABLE_OPENADC10_CONFIGPORT_WARNING #include <plib.h> #define CHANNELS_IN_USE (TRANSMIT_CHANNELS + RECEIVE_CHANNELS) #define BUFFER_SIZE (((TRANSMIT_CHANNELS * TRANSMIT_FIFO) + (RECEIVE_CHANNELS * RECEIVE_FIFO)) * 4) //words class ps_packet_can_rtos : public ps_packet_can_module { public: ps_packet_can_rtos(CAN_MODULE _can); ~ps_packet_can_rtos(); //specify the mask to apply to all filters int can_set_filter_mask(can_address_t mask) override; //send a packet ps_result_enum can_send_packet(can_packet_t *packet, int priority) override; protected: //associate a channel with a filter address pattern int add_can_filter(can_address_t address) override; //wait for received packet can_packet_t *get_next_can_packet() override; uint32_t can_buffer[BUFFER_SIZE]; CAN_MODULE myModule; int next_receive_channel {0}; }; #endif /* ps_packet_can_rtos_hpp */
[ "mlanesmith@yahoo.com" ]
mlanesmith@yahoo.com
522fa44b5278e09f6e855c428145cdbc229eb9f4
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/chrome/common/channel_info.h
221573dba8b4d29e3b4f98c213ca5b9d21deef86
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
C++
false
false
2,779
h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_COMMON_CHANNEL_INFO_H_ #define CHROME_COMMON_CHANNEL_INFO_H_ #include <string> #include "build/build_config.h" namespace base { class Environment; } namespace version_info { enum class Channel; } namespace chrome { // Returns a version string to be displayed in "About Chromium" dialog. std::string GetVersionString(); // Returns a human-readable modifier for the version string. For a branded // build, this modifier is the channel ("canary", "dev", or "beta", but "" // for stable). On Windows, this may be modified with additional information // after a hyphen. For multi-user installations, it will return "canary-m", // "dev-m", "beta-m", and for a stable channel multi-user installation, "m". // In branded builds, when the channel cannot be determined, "unknown" will // be returned. In unbranded builds, the modifier is usually an empty string // (""), although on Linux, it may vary in certain distributions. // GetChannelName() is intended to be used for display purposes. // To simply test the channel, use GetChannel(). std::string GetChannelName(); // Returns the channel for the installation. In branded builds, this will be // version_info::Channel::{STABLE,BETA,DEV,CANARY}. In unbranded builds, or // in branded builds when the channel cannot be determined, this will be // version_info::Channel::UNKNOWN. version_info::Channel GetChannel(); #if defined(OS_MACOSX) // Maps the name of the channel to version_info::Channel, always returning // Channel::UNKNOWN for unbranded builds. For branded builds defaults to // Channel::STABLE, if channel is empty, else matches the name and returns // {STABLE,BETA,DEV,CANARY, UNKNOWN}. version_info::Channel GetChannelByName(const std::string& channel); // Returns whether this is a side-by-side capable copy of Chromium. For // unbranded builds, this is always true. For branded builds, this may not be // true for old copies of beta and dev channels that share the same user data // dir as the stable channel. bool IsSideBySideCapable(); #endif #if defined(OS_POSIX) // Returns a channel-specific suffix to use when constructing the path of the // default user data directory, allowing multiple channels to run side-by-side. // In the stable channel and in unbranded builds, this returns the empty string. std::string GetChannelSuffixForDataDir(); #endif #if defined(OS_LINUX) && !defined(OS_CHROMEOS) // Returns the channel-specific filename of the desktop shortcut used to launch // the browser. std::string GetDesktopName(base::Environment* env); #endif } // namespace chrome #endif // CHROME_COMMON_CHANNEL_INFO_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
274b5c7ce30a62fed75a9da14d93399074e19d88
bb95cdcbe30fc2883fb97c6476f35f9abb3d45d1
/Test 1 Revision/Extra/Linked List/demo2.cpp
e0970b33b61e1a5ea8f8db9e51d9106de49f19e6
[]
no_license
hwennnn/DSA-Practical
e82196bde0d00129931cc9b6d062e0a1aadb2ca5
6c663a4b1c5dead6eed405167564bbf747a0047f
refs/heads/main
2023-02-11T06:55:25.103654
2021-01-03T14:50:17
2021-01-03T14:50:17
306,692,353
0
0
null
null
null
null
UTF-8
C++
false
false
304
cpp
#include "List.h" typedef char ItemType; using namespace std; // g++ --std=c++17 demo2.cpp List.cpp -o ./output.out && ./output.out int main() { List *nameList = new List; nameList->add('a'); nameList->add('b'); nameList->add('c'); cout << nameList->retrieveLength2() << endl; }
[ "whman63@gmail.com" ]
whman63@gmail.com
1f57f232017dc9ae380c0fc83e7a433410112b25
5ec24c3062a57b63337659c4f9ee9eb4144ba248
/catkin_ws/src/smc_grippers/src/smcService.cpp
40a483307f8b9ebbc5ca6ee4494d85a1f1f87fde
[]
no_license
luismeier/VT2_ROS
29eb7306454b3012fc7da9f177726d0f22b3dd96
3dadf4d0e0719126804afe1c0bd29843a3492173
refs/heads/master
2022-12-08T07:24:33.236700
2020-08-26T16:46:22
2020-08-26T16:46:22
87,046,075
1
0
null
null
null
null
UTF-8
C++
false
false
1,876
cpp
#include <smc_grippers/smcService.h> smcService::smcService() { } smcService::~smcService() { } /* bool smcService::gripperCallback(smc_grippers::gripper_service::Request &req, smc_grippers::gripper_service::Response &res) { gripper->enable(); int pos = req.position; gripper->setTargetPosition(pos); gripper->disable(); return 1; } bool smcService::pressCallback(smc_grippers::press_service::Request &req, smc_grippers::press_service::Response &res) { press->enable(); int pos = req.position; press->setTargetPosition(pos); press->disable(); return 1; } bool smcService::BgripperCallback(smc_grippers::Bgripper_service::Request &req, smc_grippers::Bgripper_service::Response &res) { Bgripper->enable(); int pos = req.position; Bgripper->setTargetPosition(pos); Bgripper->disable(); return 1; } */ int main(int argc, char **argv) { ros::init(argc, argv, "smcService"); ros::NodeHandle nh; ros::AsyncSpinner spinner(0); // Define Multithreadedspinner spinner.start(); smcService ss; // Advertising all Services /* ros::ServiceServer gripperService = nh.advertiseService("/smcService/gripper", &smcService::gripperCallback, &ss); ros::ServiceServer BgripperService = nh.advertiseService("/smcService/3bGripper", &smcService::BgripperCallback, &ss); ros::ServiceServer pressService = nh.advertiseService("/smcService/press", &smcService::pressCallback, &ss); */ // Establish ethercat Communication EtherCAT etherCAT("10.0.0.2"); CoE coe(etherCAT, 0.005); try { SMCServoJXCE1 gripper(etherCAT, coe, 0x0000); /* SMCServoJXCE1 press(etherCAT, coe, 0xFFFF); SMCServoJXCE1 Bgripper(etherCAT, coe, 0xFFFE); */ } catch (exception &e) { std::cout << e.what() << endl; } ros::waitForShutdown(); return 0; }
[ "meierluis@hotmail.de" ]
meierluis@hotmail.de
3b99eba445374dfd7c7d3a29fbc5906d6b1797bb
64b008ca7d2f2291e7a0094a3f9f22db48099168
/ios/versioned-react-native/ABI37_0_0/ReactNative/ReactCommon/turbomodule/core/platform/android/ABI37_0_0JavaTurboModule.h
1a5bd45e62e14cf06c22260290add25b2c92d13b
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
kojoYeboah53i/expo
bb971d566cd54750030dc431030a8d3045adff82
75d1b44ed4c4bbd05d7ec109757a017628c43415
refs/heads/master
2021-05-19T04:19:26.747650
2020-03-31T05:05:26
2020-03-31T05:05:26
251,520,515
5
0
NOASSERTION
2020-03-31T06:37:14
2020-03-31T06:37:13
null
UTF-8
C++
false
false
2,156
h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include <unordered_set> #include <ABI37_0_0ReactCommon/ABI37_0_0TurboModule.h> #include <ABI37_0_0ReactCommon/ABI37_0_0TurboModuleUtils.h> #include <fb/fbjni.h> #include <ABI37_0_0jsi/ABI37_0_0jsi.h> #include <ABI37_0_0React/jni/JCallback.h> namespace ABI37_0_0facebook { namespace ABI37_0_0React { struct JTurboModule : jni::JavaClass<JTurboModule> { static auto constexpr kJavaDescriptor = "Lcom/facebook/ABI37_0_0React/turbomodule/core/interfaces/TurboModule;"; }; class JSI_EXPORT JavaTurboModule : public TurboModule { public: JavaTurboModule( const std::string &name, jni::alias_ref<JTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker); jsi::Value invokeJavaMethod( jsi::Runtime &runtime, TurboModuleMethodValueKind valueKind, const std::string &methodName, const std::string &methodSignature, const jsi::Value *args, size_t count); /** * This dtor must be called from the JS Thread, since it accesses * callbackWrappers_, which createJavaCallbackFromJSIFunction also accesses * from the JS Thread. */ virtual ~JavaTurboModule(); private: jni::global_ref<JTurboModule> instance_; std::unordered_set<std::shared_ptr<CallbackWrapper>> callbackWrappers_; /** * This method must be called from the JS Thread, since it accesses * callbackWrappers_. */ jni::local_ref<JCxxCallbackImpl::JavaPart> createJavaCallbackFromJSIFunction( jsi::Function &function, jsi::Runtime &rt, std::shared_ptr<JSCallInvoker> jsInvoker); std::vector<jvalue> convertJSIArgsToJNIArgs( JNIEnv *env, jsi::Runtime &rt, std::string methodName, std::vector<std::string> methodArgTypes, const jsi::Value *args, size_t count, std::shared_ptr<JSCallInvoker> jsInvoker, TurboModuleMethodValueKind valueKind); }; } // namespace ABI37_0_0React } // namespace ABI37_0_0facebook
[ "noreply@github.com" ]
noreply@github.com
2d51e894effeed41fba5ccb5d8b0111932353841
dc980bbd2bd6078f1e49004afcc710a89ed12565
/src/qt/intro.h
75266af5c24e97121c05be460922e1f536a278c9
[ "MIT" ]
permissive
frankjardel/isocoin
c21408225399b33f941c303d0e66e0db264a03c2
36e3ce6d64839a37c45b6e17aedfb2238c3a5257
refs/heads/master
2020-03-28T10:11:59.484529
2019-07-17T17:06:11
2019-07-17T17:06:11
148,090,292
0
0
null
null
null
null
UTF-8
C++
false
false
1,969
h
// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef ISOCOIN_QT_INTRO_H #define ISOCOIN_QT_INTRO_H #include <QDialog> #include <QMutex> #include <QThread> static const bool DEFAULT_CHOOSE_DATADIR = false; class FreespaceChecker; namespace interfaces { class Node; } namespace Ui { class Intro; } /** Introduction screen (pre-GUI startup). Allows the user to choose a data directory, in which the wallet and block chain will be stored. */ class Intro : public QDialog { Q_OBJECT public: explicit Intro(QWidget *parent = 0); ~Intro(); QString getDataDirectory(); void setDataDirectory(const QString &dataDir); /** * Determine data directory. Let the user choose if the current one doesn't exist. * * @returns true if a data directory was selected, false if the user cancelled the selection * dialog. * * @note do NOT call global GetDataDir() before calling this function, this * will cause the wrong path to be cached. */ static bool pickDataDirectory(interfaces::Node& node); /** * Determine default data directory for operating system. */ static QString getDefaultDataDirectory(); Q_SIGNALS: void requestCheck(); void stopThread(); public Q_SLOTS: void setStatus(int status, const QString &message, quint64 bytesAvailable); private Q_SLOTS: void on_dataDirectory_textChanged(const QString &arg1); void on_ellipsisButton_clicked(); void on_dataDirDefault_clicked(); void on_dataDirCustom_clicked(); private: Ui::Intro *ui; QThread *thread; QMutex mutex; bool signalled; QString pathToCheck; void startThread(); void checkPath(const QString &dataDir); QString getPathToCheck(); friend class FreespaceChecker; }; #endif // ISOCOIN_QT_INTRO_H
[ "jardelfrank42@gmail.com" ]
jardelfrank42@gmail.com
1f4ff5754728c9a445ede0067a5be34b6b51e2fc
150f7430e94049e7210fc079d4cd447c7854197f
/Map Editor/Map Editor/SideBar.h
9534faff50073b3969fd6d2239d9e5db1dbd57ca
[]
no_license
ferrolho/allegro-rakos
b3bb4865201ef12a31e48ba912bc7edcb82faf85
8a5970e6c64bfeadcef090841904b120c6e43fe2
refs/heads/master
2021-01-25T08:32:22.316690
2014-05-18T01:34:50
2014-05-18T01:34:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,003
h
#pragma once #include "stdIncludes.h" #include "Button.h" #include "SideBarTileSet.h" class SideBar { public: SideBar(ALLEGRO_BITMAP **tileSet, unsigned int numberOfTiles); void InitializeButtons(); void Update(string &MapBeingEdited, string &tileSetPath, vector<vector<int> > &worldMap, vector<vector<int> > &worldMapLevel2); void Draw(); unsigned int X() { return x; } unsigned int Y() { return y; } unsigned int Width() { return width; } unsigned int Height() { return height; } bool DraggingIsEnabled() { return dragging; } SideBarTileSet *GetTileSet() { return tileSet; } ~SideBar(void); private: unsigned int x, y; unsigned int width, height; bool displayingTilesNotMobs; bool dragging; SideBarTileSet *tileSet; unsigned int spaceBetweenButtons; vector<Button*> buttons; Button *Tiles; Button *Mobs; Button *PreviousPage; Button *NextPage; Button *EditMap; Button *DragMap; Button *IncreaseMapWidth; Button *IncreaseMapHeight; Button *Save; Button *Quit; };
[ "henriqueferrolho@gmail.com" ]
henriqueferrolho@gmail.com
ce93d3a9823c97cdb2b1bde2f2cb800866ebfc12
bf266e522372e3270e378a53416cf14a84ad0c20
/Libraries/Base/Source/List.cc
fb75854a3e13e6459eda5e626fb48d9edfd3852d
[ "BSD-2-Clause" ]
permissive
hung0913208/Base
fc725a083f487f741a86b9e9ba71f55c86437837
420b4ce8e08f9624b4e884039218ffd233b88335
refs/heads/master
2022-12-31T02:26:39.257392
2020-09-11T03:44:39
2020-09-11T03:49:28
263,223,894
0
2
null
null
null
null
UTF-8
C++
false
false
17,187
cc
#include <Atomic.h> #include <List.h> #include <Logcat.h> #include <Vertex.h> #include <iostream> #include <thread> #define DEV 0 #define IMMUTABLE 0 #define SWITCHING -1 #define REUSEABLE -2 #define ALLOCATED -3 using TimeSpec = struct timespec; namespace Base { namespace Internal { void Idle(TimeSpec *spec); Int Random(Int min, Int max); } // namespace Internal List::List #if NDEBUG (Int retry) { #else (Int retry, Bool dumpable) { _Dumpable = dumpable; #endif ABI::Memset(_Head, 0, 2 * sizeof(Node *)); _Count = 0; _Size[0] = 0; _Size[1] = 0; _Head[1] = Allocate(None); _Head[0] = Allocate(None); _Last = Allocate(None); /* @NOTE: since these nodes are immutable so it should be best to set their * index as zero to avoid accessing */ _Head[0]->Index = 0; _Last->Index = 0; /* @NOTE: these nodes are set to be immutable so we could avoid * unexpected behaviour causes */ _Head[0]->State = False; _Last->State = False; /* @NOTE: do this would help our list to be linkeable and easy to detach or * attach without consuming so much CPU */ _Head[0]->Next = _Last; _Last->Prev[0] = _Head[0]; /* @NOTE: here is the explanation of how the nodes connect each-other: * - We have 2 node A and B, A->Next --> B while B->Prev[0] --> A while * A->PNext --> &(B->Next) and B->PPrev --> &(A->Prev[0]). For more detail * please check the image below. * * +---------------+ +---------------+ * | A | | B | * | | | | * | | | | * ----|Prev&<-+ |<----|Prev&<-+ |<--- * | | | | | | * --->| | &Next|---->| | &Next|---- * | | ^ | | | ^ | * -------+ | +-------------+ | +--------- * | | | | | | | | * |PNext | PPrev| |PNext | PPrev| * +-------|----|--+ +-------|----|--+ * | | | | * ------------+ +----------------+ +------- * * - With this designation, it can be easily to remove a node on parallel * using our atomic operators. To do that, we just use MCOPY to write Next * to PNext and Prev[0] to PPrev. Doing that would cause rewrite the * parameters Next of the previous node and Prev[0] of the next node * respectively and the middle node will be detached before we do removing it. * * - When a node is deleted, it doesn't actually remove from our list. Instead * this node will be moved to deleted stack so we could reuse it later. When * it happens, we will see the node's structure is changed like this. * * +-------------+ +--------------+ * | A | | B | * | | | | * | | | | * ----|Prev[1] |<----|Prev[1] |<--- * | | | | * | | | | * | | | | * | | | | * | | | | * | | | | * +-------------+ +--------------+ * * - Since we use dynamic queue to manage reuseable nodes, we only need one * pointer to indicate where is the queue's head and one pointer for queue's * tail. Queue should be a better solution since we can reuse dead nodes * so we could reduce using malloc/free too much. This design intends to * overcome the race condition issue when a node is going to be deleted, it * could be accessed by so many thread at the same time. If we delete this * node during handling accessing on another threads. * ------------------------------------------------------------------------ */ _Head[0]->PPrev = &_Last->Prev[0]; _Last->PNext = &_Head[0]->Next; if (retry > 0) { _Retry = retry; } else { _Retry = 1; // 10 * std::thread::hardware_concurrency(); } } List::~List() { /* @NOTE: this destructor is unsafe since it's call by os and we can't * control it. The user should know that their thread should be done * before this method is called. Everything is handled easily by WatchStopper * but i can't control daemon threads since they are out of my scope */ Node *node = _Head[1]->Prev[0]; while (node != _Head[1]) { Node *temp{node}; node = node->Prev[0]; delete temp; } delete _Head[1]; } void List::Idle(Long nanosec) { TimeSpec spec{.tv_sec = 0, .tv_nsec = nanosec}; Internal::Idle(&spec); } ULong List::Size(Bool type) { return _Size[type]; } Int List::Exist(ULong key) { ErrorCodeE error = ENoError; Node *node = None; if ((node = Access(key, True, &error))) { goto done; } return error == ENotFound ? 0 : -error; done: return 1; } Int List::Exist(Void *pointer) { ErrorCodeE error = IndexOf(pointer, None); if (error) { return error == ENotFound ? 0 : -error; } else { return 1; } } ErrorCodeE List::IndexOf(Void *pointer, ULong *result) { ErrorCodeE error = ENoError; Node *node = None; if ((node = Access(pointer, &error))) { if (result) { *result = node->Index; } } else { node = None; } return error; } Long List::Add(Void *pointer, Int retry) { Node *node{None}; ULong result{0}; Long nsec{1}; node = Allocate(pointer); #if !DEV do { #endif if ((result = Attach(node))) { INC(&_Size[0]); goto finish; } #if !DEV if (retry > 0) { retry--; } /* @NOTE: normally, we don't need this solution to cooldown our CPU but i * put it here to make everything slow abit so the CPU will have enough * time to handle everything with the hope that adding will work if we wait * enough time, when everything slow enough */ List::Idle((nsec = (nsec * Internal::Random(1, 10) % ULong(100)))); } while (retry != 0); #endif #if !NDEBUG if (_Dumpable) { ABI::KillMe(); } #endif WRITE_ONCE(node->State, False); finish: return result; } ErrorCodeE List::Add(ULong index, Void *pointer, Int retry) { ErrorCodeE error{EDoNothing}; Node *node{None}; Long nsec{1}; node = Allocate(pointer); node->Index = index; #if !DEV do { #endif ULong result = Attach(node, &error); if (result) { INC(&_Size[0]); goto finish; } #if !DEV if (error != EDoAgain) { break; } if (retry > 0) { retry--; } /* @NOTE: normally, we don't need this solution to cooldown our CPU but i * put it here to make everything slow abit so the CPU will have enough * time to handle everything with the hope that adding will work if we wait * enough time, when everything slow enough */ List::Idle((nsec = (nsec * Internal::Random(1, 10) % ULong(100)))); } while (retry != 0); #endif #if !NDEBUG if (_Dumpable) { ABI::KillMe(); } #endif WRITE_ONCE(node->State, False); finish: return error; } Long List::Attach(Node *node, ErrorCodeE *error) { Int retry = _Retry; ULong result = 0; /* @NOTE: as i have said before, the node could be detached and reattach again * using this function. During this time, the node's index is defined so we * don't need to check it. We should make sure that its head and last are same * with our list to make sure it's created by our list. */ if (node->Index == 0) { node->Index = INC(&_Count); } else if (node->PHead != &_Head[0]) { return -1; // <-- We detect a wrong node which isn't created by this list } else if (!error || *error != ENotFound) { /* @NOTE: this tricky way helps to reduce the number of using method Access * which might causes heavy load to the List itself with the asumption that * we never add same key to the list or add same key but on different * threads which might cause unexpected behavious. * Anyway, don't do thing without thinking since i can't cover everything * while keep everything works with high performance */ if (Access(node->Index, True, error)) { return 0; } } result = node->Index; /* @NOTE: request adding our node to the end of our list, this should be done * after several attempts or we should return 0 so we could request user wait * a bit more since the CPU is on highload and couldn't handle our request * gently in a limit time */ #if !DEV while (retry > 0) { #endif Node *last = node; retry--; /* @NOTE: here is the theory of how to build this list with the RCU * mechanism: * * +------+ +------+ * | head | | last | <- While this guy will become the normal node * +------+ +------+ * ^ | ^ | * | | | | +------+ * | v | | | wait | <- this guy will become the `last` node * ........ | | +------+ * ^ | | | * | | | | * | v | | * +------+ | | * | node | ---+ | * +------+ | * ^ | * +------------+ * * - The node `wait` will become the new `last` node while the old `last` * node will turn into a normal node with small swaping here. This would * make everything run faster while maintaining the chain stable. * - The _Head and _Last can't be deleted so we could use them as starting * point easily. They will be deleted by the List's destructor only * * ---------------------------------------------------------------------- */ /* @NOTE: build our new `last` node on parallel, since it's still a local * node so we don't need to care anyone touch it when we are prepare this * node */ last->Index = 0; last->Next = None; last->Prev[0] = _Last; last->State = False; last->PPrev = None; last->PNext = &_Last->Next; if (CMPXCHG(&_Last->Index, 0, result)) { Node *curr = _Last; /* @NOTE: replicate data of our new node to the current `last` node so we * could easy control adding new node to our list while keep our chain * stable, even if we are dealing with the high-loaded systems */ WRITE_ONCE(_Last->Ptr, last->Ptr); WRITE_ONCE(_Last->PPrev, &last->Prev[0]); WRITE_ONCE(_Last->Next, last); WRITE_ONCE(_Last->State, True); /* @NOTE: everything is done now, we instruct to every node to know that * now we are applying the new `last` node while the old one will be used * as a normal node */ if (!CMPXCHG(&_Last, curr, last)) { Bug(EBadLogic, "Can't announce a new `last` node"); } #if !DEV } else { goto again; #endif } if (error) { *error = ENoError; } return result; #if !DEV again: BARRIER(); } #endif return 0; } List::Node *List::Detach(Node *node) { if (node && !CMP(&node, _Head[0]) && !CMP(&node, _Last)) { auto next = node->Next; auto prev = node->Prev[0]; auto pprev = node->PPrev; auto pnext = node->PNext; if (next) { WRITE_ONCE(*pnext, next); } if (prev) { WRITE_ONCE(*pprev, prev); } WRITE_ONCE(next->PNext, pnext); WRITE_ONCE(prev->PPrev, pprev); } return node; } List::Node *List::Detach(ULong index) { Node *node = None; Long nsec = 1; #if !DEV for (auto retry = _Retry; retry > 0; --retry) { #endif if ((node = Access(index, true))) { return Detach(node); #if !DEV break; } Idle((nsec = (nsec * Internal::Random(1, 10) % ULong(100)))); #endif } return None; } Bool List::Del(ULong index, Void *ptr, ErrorCodeE *code, Bool failable) { ErrorCodeE error = ENoError; Node *node = None; if (index == 0) { return False; } /* @NOTE: This is my theory of how to delete a node. When a node is deleted, * this node will be moved to the second queue. We will use backing pointers * to handle this. * * +------+ * | head | <-- This node should be created but we don't use it. * +------+ * | ^ * | . +------+ * v +.........| wait | * ........ +------+ * | ^ * | . * v . * +------+ . * | last |...........+ <-- This link happens during a deleted node is mocked * +------+ to this list. This node is effected when we update * the pointer _Head[1] * * - These deleted nodes still allow another threads to be pass throught since * we only use pointer Prev[0] while method `Access` only use pointer Next * ------------------------------------------------------------------------ */ if ((node = Access(index, True, failable ? code : (&error)))) { if (ptr == node->Ptr) { if (!Detach(node)) { if (code) { *code = BadAccess("can't detach node as it should be").code(); } goto reattach; } else { goto preserve; } } } fail: #if !NDEBUG if (_Dumpable || failable) { if (error || (code && *code) || failable) { ABI::KillMe(); } } #endif return False; reattach: if (UNLIKELY(Attach(node), Long(node->Index))) { Bug(EBadLogic, "Can't reattach node"); } goto fail; preserve: DEC(&_Size[0]); return True; } List::Node *List::Access(ULong &number, Bool is_index, ErrorCodeE *code) { Node *node{_Head[0]}; while ((!is_index && number > 0) || (is_index && number != READ_ONCE(node->Index))) { /* @NOTE: try to consult the permision to the next node within a certain * attempts, hopfully we can gain it before the */ node = READ_ONCE(node->Next); if (CMP(&node, _Last)) { if (code) { *code = ENotFound; } goto fail; } if (!is_index) { --number; } } /* @NOTE: we have the right node recently so now able update the real * priviledge of this node */ return node; fail: return None; } List::Node *List::Access(Void *pointer, ErrorCodeE *code) { Node *node{_Head[0]}; while (node && node->Ptr != pointer) { /* @NOTE: try to consult the permision to the next node within a certain * attempts, hopfully we can gain it before the*/ if (node->Next && !CMP(&node->Next, _Last)) { /* @NOTE: try to acquire the next one, we are inquired to do that * so we could gain the priviledge to manipulate this node before * the timeout excess */ goto done; } else { if (code) { *code = ENotFound; } goto fail; } done: node = node->Next; } /* @NOTE: we have the right node recently so now able update the real * priviledge of this node */ if (node) { return node; } fail: return None; } List::Node *List::Allocate(Void *pointer) { Node *result = _Head[1] ? _Head[1]->Prev[1] : None; if (result) { while (!CMP(&result, _Head[1])) { Node *next = result ? result->Prev[1] : None; if (!next) { break; } else if (CMPXCHG(&result->State, False, True)) { goto finish; } else { BARRIER(); } result = result->Prev[1]; } } result = new Node(pointer, &_Head[0], &_Last); INC(&_Size[1]); /* @NOTE: even if we face high-loaded issue, we can't face any crash * because we are maintaining a circuling queue so we might at least * hiting to the _Head before the node is fully switch to the newest * dead node. Like this: * * +------+ * | head |<-+ <- This node should be created but we don't use it. * +------+ | * | | * | | * v | * ........ | <- Even if switching is slow, we still safe becasue * | | these threads will hit back to the head which is * | | never killed, i call it a backing link. * v | * +------+ | * | last |--+ * +------+ * . +-----------+ * +.........>| switching | * +-----------+ * * - The backing link will be configured after the last node is fully * switched so in theory there is no exception here and we would see * the circular queue is expanded, even if we are dealing with high * loaded issues. * * -------------------------------------------------------------------- */ if (_Head[1]) { result->Prev[1] = _Head[1]; WRITE_ONCE(*_Head[1]->PNext, result); } finish: result->Ptr = pointer; result->PHead = &_Head[0]; result->PLast = &_Last; result->Index = 0; if (!_Head[1]) { _Head[1] = result; /* @NOTE: by default, this node should be Imutable so user can't use it */ _Head[1]->Index = 0; _Head[1]->State = False; /* @NOTE: do this would make a circular queue so we can prevent from * touching undefined addresses */ _Head[1]->Prev[0] = _Head[1]; _Head[1]->Next = _Head[1]; _Head[1]->PPrev = &_Head[1]->Prev[0]; _Head[1]->PNext = &_Head[1]->Next; } return result; } } // namespace Base
[ "hung0913208@gmail.com" ]
hung0913208@gmail.com
9ad5a4dd89527a19e815ace0bf981ce3ac006566
8236f500ddcd7250557412938a66f96040e9489a
/Code/Maple/src/Scene/Entity/EntityGroup.h
7455dee9e88c07494734d5be6b2907172c907ebb
[]
no_license
colorstheforce/MapleEngine
9a449b356d31372a7f972a3be4d949bf45639952
cceb9c7f852e19e249e2159c025fe4f327c18044
refs/heads/main
2023-08-19T01:37:41.207387
2021-09-23T16:18:37
2021-09-23T16:18:37
422,219,600
1
0
null
null
null
null
UTF-8
C++
false
false
2,245
h
////////////////////////////////////////////////////////////////////////////// // This file is part of the Maple Game Engine // ////////////////////////////////////////////////////////////////////////////// #pragma once #include "Scene/Entity/Entity.h" #include "Engine/Core.h" namespace Maple { template<typename T> class EntityView { class iterator; public: EntityView(Scene* scene) : scene(scene), view(scene->getRegistry().view<T>()) { } inline auto operator[](int32_t i) { MAPLE_ASSERT(i < view.size(), "Index out of range on Entity View"); return Entity(view[i], scene); } inline auto empty() const { return view.empty(); } inline auto size() const { return view.size(); } inline auto front() { return Entity(view[0], scene); } private: class iterator : public std::iterator<std::output_iterator_tag, Entity> { public: explicit iterator(EntityView<T>& view, size_t index = 0) :view(view) , nIndex(index) { } Entity operator*() const { return view[int32_t(nIndex)]; } iterator& operator++() { nIndex++; return *this; } iterator operator++(int) { return ++(*this); } bool operator!=(const iterator& rhs) const { return nIndex != rhs.nIndex; } private: size_t nIndex = 0; EntityView<T>& view; }; Scene* scene = nullptr; entt::basic_view<entt::entity, entt::exclude_t<>, T> view; public: iterator begin(); iterator end(); }; template<typename T> typename EntityView<T>::iterator EntityView<T>::begin() { return EntityView<T>::iterator(*this, 0); }; template<typename T> typename EntityView<T>::iterator EntityView<T>::end() { return EntityView<T>::iterator(*this, Size()); }; template<typename... Components> class EntityGroup { public: EntityGroup(Scene* scene) : scene(scene) , group(scene->GetRegistry().group<Components...>()) { } inline auto operator[](int i) { MAPLE_ASSERT(i < Size(), "Index out of range on Entity View"); return Entity(group[i], scene); } inline auto size() const { return group.size(); } inline auto front() { return Entity(group[0], scene); } private: Scene* scene = nullptr; entt::group<Components...> group; }; };
[ "zhunbeifang2@outlook.com" ]
zhunbeifang2@outlook.com
d7294437589b39963bae4abe6e4e148d055fda22
24004e1c3b8005af26d5890091d3c207427a799e
/Win32/NXOPEN/NXOpen/Formboard_FormboardLayoutBuilder.hxx
495d5c664cd81294532d07fa88cebe28b834e13e
[]
no_license
15831944/PHStart
068ca6f86b736a9cc857d7db391b2f20d2f52ba9
f79280bca2ec7e5f344067ead05f98b7d592ae39
refs/heads/master
2022-02-20T04:07:46.994182
2019-09-29T06:15:37
2019-09-29T06:15:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,109
hxx
#ifndef NXOpen_FORMBOARD_FORMBOARDLAYOUTBUILDER_HXX_INCLUDED #define NXOpen_FORMBOARD_FORMBOARDLAYOUTBUILDER_HXX_INCLUDED //-------------------------------------------------------------------------- // Header for C++ interface to JA API //-------------------------------------------------------------------------- // // Source File: // Formboard_FormboardLayoutBuilder.ja // // Generated by: // apiwrap // // WARNING: // This file is automatically generated - do not edit by hand // #ifdef _MSC_VER #pragma once #endif #include <NXOpen/NXDeprecation.hxx> #include <vector> #include <NXOpen/NXString.hxx> #include <NXOpen/Callback.hxx> #include <NXOpen/Builder.hxx> #include <NXOpen/Expression.hxx> #include <NXOpen/Formboard_FormboardLayoutBuilder.hxx> #include <NXOpen/SelectObject.hxx> #include <NXOpen/libnxopencpp_formboard_exports.hxx> #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4996) #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif namespace NXOpen { namespace Formboard { class FormboardLayoutBuilder; } class Builder; class Expression; namespace Formboard { class LayoutLengthOptions; } class Point; namespace Routing { class SelectControlPoint; } namespace Formboard { class _FormboardLayoutBuilderBuilder; class FormboardLayoutBuilderImpl; /** Class that performs the "layout" of Formboard geometry. Creates all geometry chosen by the user to flatten into a drawing and orients the geometry to match the criteria specified in this builder class. This builder must only be instantiated and used after the harnesses have been specified and stored using the @link Formboard::FormboardManager::StoreHarnessesToFlatten Formboard::FormboardManager::StoreHarnessesToFlatten@endlink method. <br> To create a new instance of this class, use @link Formboard::FormboardManager::CreateLayoutBuilder Formboard::FormboardManager::CreateLayoutBuilder@endlink <br> <br> Created in NX7.5.0. <br> */ class NXOPENCPP_FORMBOARDEXPORT FormboardLayoutBuilder : public Builder { /** Selection method for the set of segments that define the main run of the formboard geometry. */ public: enum MainRunType { MainRunTypeLongest/** Path of longest wire. */, MainRunTypeThickest/** Path of longest wire contained within the thickest bundle. */, MainRunTypeUserSelection/** Manual selection of path. */ }; /** Methods for determining which angles to apply at each branch of the Formboard. */ public: enum BranchAngle { BranchAngleAsDesigned/** Use the angle equal to the 3D angle of the branch in the 3D harness. */, BranchAngleStandardAngles/** Apply a standard angle to the branch, the level of the branch determines which angle to apply. */, BranchAngleMaximumAngles/** Apply the largest possible angle values at every branch to force the harness to spread out. */, BranchAngleRandomAngles/** Randomly choose an angle for each branch. */ }; /** Shape option for the branches. */ public: enum BranchShape { BranchShapeStraight/** Each branch forms a straight line. */, BranchShapeAngled/** Branch becomes angled at each location that forms a new branch. */ }; private: FormboardLayoutBuilderImpl * m_formboardlayoutbuilder_impl; private: friend class _FormboardLayoutBuilderBuilder; protected: FormboardLayoutBuilder(); public: ~FormboardLayoutBuilder(); /**Returns the main run method. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Formboard::FormboardLayoutBuilder::MainRunType MainRunMethod ( ); /**Sets the main run method. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void SetMainRunMethod ( NXOpen::Formboard::FormboardLayoutBuilder::MainRunType mainRunType /** mainruntype */ ); /**Returns the start of the main run. Contains the starting control point that defines the main run of the Formboard if the @link Formboard::FormboardLayoutBuilder::MainRunType Formboard::FormboardLayoutBuilder::MainRunType@endlink is @link Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Routing::SelectControlPoint * MainRunStartSelection ( ); /**Returns the end of the main run. Contains the ending control point that defines the main run of the Formboard if the @link Formboard::FormboardLayoutBuilder::MainRunType Formboard::FormboardLayoutBuilder::MainRunType@endlink is @link Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Routing::SelectControlPoint * MainRunEndSelection ( ); /**Returns the flag that determines whether the main run is "reversed" or not. If true then the direction and order of the main run path is reversed. The end of the main run becomes the start and vice-versa. The list of path segments is not modified or re-ordered, only the order in which the path segments is evaluated when laying out the geometry. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: bool ReverseMainRun ( ); /**Sets the flag that determines whether the main run is "reversed" or not. If true then the direction and order of the main run path is reversed. The end of the main run becomes the start and vice-versa. The list of path segments is not modified or re-ordered, only the order in which the path segments is evaluated when laying out the geometry. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void SetReverseMainRun ( bool reverseMainRun /** reversemainrun */ ); /**Returns the main run origin. The location in modeling space of the start of the main run. The layout operation translates the main run such that it start RCP is located at this location. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Point * MainRunOrigin ( ); /**Sets the main run origin. The location in modeling space of the start of the main run. The layout operation translates the main run such that it start RCP is located at this location. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void SetMainRunOrigin ( NXOpen::Point * mainRunOrigin /** mainrunorigin */ ); /**Returns the length options for the layout operation. The length options only have any effect if this is the first time that the Formboard geometry is being created in the drawing. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Formboard::LayoutLengthOptions * LengthOptions ( ); /**Returns the branch angle type. Specifies how the layout algorithm determines the angle between each child branch and its parent branch. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle BranchAngleMethod ( ); /**Sets the branch angle type. Specifies how the layout algorithm determines the angle between each child branch and its parent branch. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void SetBranchAngleMethod ( NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle branchAngle /** branchangle */ ); /**Returns the primary standard angle. The layout algorithm snaps the angle of the branch to a multiple of this angle. Only used when the @link Formboard::FormboardLayoutBuilder::BranchAngleMethod Formboard::FormboardLayoutBuilder::BranchAngleMethod@endlink is @link Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Expression * PrimaryStandardAngle ( ); /**Returns the secondary standard angle. The layout algorithm snaps the angle of the branch to a multiple of this angle when all multiples of the primary angle have been used. Only used when the @link Formboard::FormboardLayoutBuilder::BranchAngle Formboard::FormboardLayoutBuilder::BranchAngle@endlink is @link Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Expression * SecondaryStandardAngle ( ); /**Returns the tertiary standard angle. The layout algorithm snaps the angle of the branch to a multiple of this angle when all multiples of the primary and secondary angles have been used. Only used when the @link Formboard::FormboardLayoutBuilder::BranchAngle Formboard::FormboardLayoutBuilder::BranchAngle@endlink is @link Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Expression * TertiaryStandardAngle ( ); /**Returns the minimum random angle. Used when @link Formboard::FormboardLayoutBuilder::BranchAngle Formboard::FormboardLayoutBuilder::BranchAngle@endlink is @link Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Expression * MinimumRandomAngle ( ); /**Returns the maximum random angle. Used when @link Formboard::FormboardLayoutBuilder::BranchAngle Formboard::FormboardLayoutBuilder::BranchAngle@endlink is @link Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles@endlink . <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Expression * MaximumRandomAngle ( ); /**Returns the branch shape type. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: NXOpen::Formboard::FormboardLayoutBuilder::BranchShape BranchShapeType ( ); /**Sets the branch shape type. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void SetBranchShapeType ( NXOpen::Formboard::FormboardLayoutBuilder::BranchShape branchShape /** branchshape */ ); /** Creates the initial set of formboard geometry using the current default values stored in the builder. This geometry is necessary for the UI to allow the user to see and select formboard geometry, for example to define a Main Run. Does nothing if the work part already contains formboard geometry. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void CreateDefaultGeometry ( ); /** Updates the orientation and placement of the formboard geometry to match the current set of layout options stored within the builder. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void UpdateLayout ( ); /** Translates the formboard geometry so that it matches the new main run origin, this is a more lightweight operation than the full UpdateLayout operation. The assumption here is that the only change to the builder is with the main run origin. <br> Created in NX7.5.0. <br> <br> License requirements : routing_harness ("Routing Harness") */ public: void TranslateToNewOrigin ( ); }; } } #ifdef _MSC_VER #pragma warning(pop) #endif #ifdef __GNUC__ #ifndef NX_NO_GCC_DEPRECATION_WARNINGS #pragma GCC diagnostic warning "-Wdeprecated-declarations" #endif #endif #undef EXPORTLIBRARY #endif
[ "1075087594@qq.com" ]
1075087594@qq.com
b1fe5d751d3098af2a1a61743b053ff046f307a3
f271c46bb77d70c81354f550b3004976541ba12b
/src/Label.cpp
25053e83a39306dcd9d84c5f62ea2891cde451ec
[]
no_license
yearling/YYUI
4baa2b2f5a7cb0a61120a0404e9ed3afe7c4e73f
3984776c5878f48851c4e7814789d403a15b1114
refs/heads/master
2021-01-10T01:06:10.881411
2015-06-10T12:40:34
2015-06-10T12:40:34
36,545,444
0
0
null
null
null
null
UTF-8
C++
false
false
13,660
cpp
#include "YUI.h" #include "Label.h" #include "UIUtility.h" #include <atlconv.h> #include "ControlUI.h" #include "ControlManager.h" #include "WindowProperty.h" #include "Canvas2D.h" namespace YUI { Label::Label() :m_uTextStyle(DT_VCENTER) ,m_dwTextColor(0) ,m_dwDisabledTextColor(0) ,m_bShowHtml(false) ,m_EnableEffect(false) ,m_TransShadow(60) ,m_TransText(168) ,m_TransShadow1(60) ,m_TransText1(168) ,m_hAlign(DT_LEFT) ,m_vAlign(DT_CENTER) ,m_dwTextColor1(-1) ,m_dwTextShadowColorA(0xff000000) ,m_dwTextShadowColorB(-1) ,m_GradientAngle(0) ,m_EnabledStroke(false) ,m_TransStroke(255) ,m_dwStrokeColor(0) ,m_EnabledShadow(false) ,m_GradientLength(0) { ::ZeroMemory(&m_rcTextPadding, sizeof(m_rcTextPadding)); AddHander(); } Label::~Label() { } LPCTSTR Label::GetClass() const { return _T("LabelUI"); } void Label::SetTextStyle(UINT uStyle) { m_uTextStyle = uStyle; Invalidate(); } UINT Label::GetTextStyle() const { return m_uTextStyle; } void Label::SetTextColor(DWORD dwTextColor) { m_dwTextColor = dwTextColor; Invalidate(); } DWORD Label::GetTextColor() const { return m_dwTextColor; } void Label::SetDisabledTextColor(DWORD dwTextColor) { m_dwDisabledTextColor = dwTextColor; Invalidate(); } DWORD Label::GetDisabledTextColor() const { return m_dwDisabledTextColor; } void Label::SetFont(const YString &fontid) { m_Fontid = fontid; Invalidate(); } YString Label::GetFont() const { return m_Fontid; } YUI::YYRECT Label::GetTextPadding() const { return m_rcTextPadding; } void Label::SetTextPadding(YYRECT rc) { m_rcTextPadding = rc; Invalidate(); } bool Label::IsShowHtml() { return m_bShowHtml; } void Label::SetShowHtml(bool bShowHtml /*= true*/) { if( m_bShowHtml == bShowHtml ) return; m_bShowHtml = bShowHtml; Invalidate(); } YUI::YYSIZE Label::EstimateSize(YYSIZE szAvailable) { //if( m_cXYFixed.cy == 0 ) return YSize(m_cXYFixed.cx, m_pManager->GetFontInfo((HFONT)_ttoi(GetFont().c_str()))->m_tm.tmHeight + 4); return ControlUI::EstimateSize(szAvailable); } void Label::SetAttribute(const std::string &strName, const std::string& strValue) { LPCSTR pstrName = strName.c_str(); LPCSTR pstrValue = strValue.c_str(); if( strcmp(pstrName, ("align")) == 0 ) { if( strstr(pstrValue, ("left")) != NULL ) { m_uTextStyle &= ~(DT_CENTER | DT_RIGHT | DT_VCENTER | DT_SINGLELINE); m_uTextStyle |= DT_LEFT; } if( strstr(pstrValue, ("center")) != NULL ) { m_uTextStyle &= ~(DT_LEFT | DT_RIGHT ); m_uTextStyle |= DT_CENTER; } if( strstr(pstrValue, ("right")) != NULL ) { m_uTextStyle &= ~(DT_LEFT | DT_CENTER | DT_VCENTER | DT_SINGLELINE); m_uTextStyle |= DT_RIGHT; } if( strstr(pstrValue, ("top")) != NULL ) { m_uTextStyle &= ~(DT_BOTTOM | DT_VCENTER | DT_VCENTER); m_uTextStyle |= (DT_TOP | DT_SINGLELINE); } if( strstr(pstrValue, ("vcenter")) != NULL ) { m_uTextStyle &= ~(DT_TOP | DT_BOTTOM ); m_uTextStyle |= (DT_CENTER | DT_VCENTER | DT_SINGLELINE); } if( strstr(pstrValue, ("bottom")) != NULL ) { m_uTextStyle &= ~(DT_TOP | DT_VCENTER | DT_VCENTER); m_uTextStyle |= (DT_BOTTOM | DT_SINGLELINE); } } else if( strcmp(pstrName, ("endellipsis")) == 0 ) { if( strcmp(pstrValue, ("true")) == 0 ) m_uTextStyle |= DT_END_ELLIPSIS; else m_uTextStyle &= ~DT_END_ELLIPSIS; } else if( strcmp(pstrName, ("font")) == 0 ) SetFont(UTF8ToGBK(pstrValue)); else if( strcmp(pstrName, ("textcolor")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetTextColor(clrColor); } else if( strcmp(pstrName, ("disabledtextcolor")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetDisabledTextColor(clrColor); } else if( strcmp(pstrName, ("textpadding")) == 0 ) { YYRECT rcTextPadding ; LPSTR pstr = NULL; rcTextPadding.left = (float)strtol(pstrValue, &pstr, 10); assert(pstr); rcTextPadding.top = (float)strtol(pstr + 1, &pstr, 10); assert(pstr); rcTextPadding.right = (float)strtol(pstr + 1, &pstr, 10); assert(pstr); rcTextPadding.bottom = (float)strtol(pstr + 1, &pstr, 10); assert(pstr); SetTextPadding(rcTextPadding); } else if( strcmp(pstrName, ("showhtml")) == 0 ) SetShowHtml(strcmp(pstrValue, ("true")) == 0); else if( strcmp(pstrName, ("enabledeffect")) == 0 ) SetEnabledEffect(strcmp(pstrValue, ("true")) == 0); else if( strcmp(pstrName, ("rhaa")) == 0 ) SetTextRenderingHintAntiAlias((float)atoi(pstrValue)); else if( strcmp(pstrName, ("transshadow")) == 0 ) SetTransShadow((float)atoi(pstrValue)); else if( strcmp(pstrName, ("transtext")) == 0 ) SetTransText((float)atoi(pstrValue)); else if( strcmp(pstrName, ("transshadow1")) == 0 ) SetTransShadow1((float)atoi(pstrValue)); else if( strcmp(pstrName, ("transtext1")) == 0 ) SetTransText1((float)atoi(pstrValue)); else if( strcmp(pstrName, ("gradientangle")) == 0 ) SetGradientAngle((float)atoi(pstrValue)); else if( strcmp(pstrName, ("enabledstroke")) == 0 ) SetEnabledStroke(strcmp(pstrValue, ("true")) == 0); else if( strcmp(pstrName, ("enabledshadow")) == 0 ) SetEnabledShadow(strcmp(pstrValue, ("true")) == 0); else if( strcmp(pstrName, ("transstroke")) == 0 ) SetTransStroke((float)atoi(pstrValue)); else if( strcmp(pstrName, ("gradientlength")) == 0 ) SetGradientLength((float)atoi(pstrValue)); else if( strcmp(pstrName, ("shadowoffset")) == 0 ){ LPSTR pstr = NULL; float offsetx = (float)strtol(pstrValue, &pstr, 10); assert(pstr); float offsety = (float)strtol(pstr + 1, &pstr, 10); assert(pstr); SetShadowOffset(offsetx,offsety); } else if( strcmp(pstrName, ("textcolor1")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetTextColor1(clrColor); } else if( strcmp(pstrName, ("textshadowcolora")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetTextShadowColorA(clrColor); } else if( strcmp(pstrName, ("textshadowcolorb")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetTextShadowColorB(clrColor); } else if( strcmp(pstrName, ("strokecolor")) == 0 ) { if( *pstrValue == ('#')) pstrValue = ::CharNextA(pstrValue); LPSTR pstr = NULL; DWORD clrColor = strtoul(pstrValue, &pstr, 16); SetStrokeColor(clrColor); } else ControlUI::SetAttribute(pstrName, pstrValue); } void Label::PaintText() { if( m_dwTextColor == 0 ) m_dwTextColor= m_pManager->GetWindowProperty()->GetDefaultFontColor(); if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetWindowProperty()->GetDefaultDisabledColor(); YYRECT rc = m_rcItem; rc.left += m_rcTextPadding.left; rc.right -= m_rcTextPadding.right; rc.top += m_rcTextPadding.top; rc.bottom -= m_rcTextPadding.bottom; Canvas2D canvas(m_pManager->GetHWND()); FontD2D font(_T("Verdana"),20); canvas.DrawSolidText(m_strText,font,rc,m_dwTextColor); } void Label::SetEnabledEffect(bool _EnabledEffect) { m_EnableEffect = _EnabledEffect; } bool Label::GetEnabledEffect() { return m_EnableEffect; } void Label::SetText(LPCTSTR pstrText) { if(!GetEnabledEffect()) return ControlUI::SetText(pstrText); m_TextValue = pstrText; } YUI::YString Label::GetText() const { if(!m_EnableEffect) return ControlUI::GetText(); return m_TextValue; } void Label::SetTransShadow(float _TransShadow) { m_TransShadow = _TransShadow; } float Label::GetTransShadow() { return m_TransShadow; } void Label::SetTransShadow1(float _TransShadow) { m_TransShadow1 = _TransShadow; } float Label::GetTransShadow1() { return m_TransShadow1; } void Label::SetTransText(float _TransText) { m_TransText = _TransText; } float Label::GetTransText() { return m_TransText; } void Label::SetTransText1(float _TransText) { m_TransText1 = _TransText; } float Label::GetTransText1() { return m_TransText1; } void Label::SetTransStroke(float _TransStroke) { m_TransStroke = _TransStroke; } float Label::GetTransStroke() { return m_TransStroke; } void Label::SetGradientLength(float _GradientLength) { m_GradientLength = _GradientLength; } float Label::GetGradientLength() { return m_GradientLength; } void Label::SetTextRenderingHintAntiAlias(float _TextRenderingHintAntiAlias) { if(_TextRenderingHintAntiAlias < 0 || _TextRenderingHintAntiAlias > 5) _TextRenderingHintAntiAlias = 0; //m_TextRenderingHintAntiAlias = (TextRenderingHint)extRenderingHintAntiAlias; } float Label::GetTextRenderingHintAntiAlias() { //return m_TextRenderingHintAntiAlias; return 1; } void Label::SetShadowOffset(float _offset,float _angle) { if(_angle > 180 || _angle < -180) return; YYRECT rc = m_rcItem; if(_angle >= 0 && _angle <= 180) rc.top -= _offset; else if(_angle > -180 && _angle < 0) rc.top += _offset; if(_angle > -90 && _angle <= 90) rc.left -= _offset; else if( _angle > 90 || _angle < -90) rc.left += _offset; m_ShadowOffset.top = (float)rc.top; m_ShadowOffset.left = (float)rc.left; } YYRECT Label::GetShadowOffset() { return m_ShadowOffset; } void Label::SetTextColor1(DWORD extColor1) { m_dwTextColor1 = extColor1; } DWORD Label::GetTextColor1() { return m_dwTextColor1; } void Label::SetTextShadowColorA(DWORD extShadowColorA) { m_dwTextShadowColorA = extShadowColorA; } DWORD Label::GetTextShadowColorA() { return m_dwTextShadowColorA; } void Label::SetTextShadowColorB(DWORD extShadowColorB) { m_dwTextShadowColorB = extShadowColorB; } DWORD Label::GetTextShadowColorB() { return m_dwTextShadowColorB; } void Label::SetStrokeColor(DWORD _StrokeColor) { m_dwStrokeColor = _StrokeColor; } DWORD Label::GetStrokeColor() { return m_dwStrokeColor; } void Label::SetGradientAngle(float _SetGradientAngle) { m_GradientAngle = _SetGradientAngle; } float Label::GetGradientAngle() { return m_GradientAngle; } void Label::SetEnabledStroke(bool _EnabledStroke) { m_EnabledStroke = _EnabledStroke; } bool Label::GetEnabledStroke() { return m_EnabledStroke; } void Label::SetEnabledShadow(bool _EnabledShadowe) { m_EnabledShadow = _EnabledShadowe; } bool Label::GetEnabledShadow() { return m_EnabledShadow; } void Label::AddHander() { m_LabelMsgHandler.SetSuccessor(&m_ControlMsgHandler); m_LabelMsgHandler.AddEntry(UIMSG_SETFOCUS,[&](const MsgWrap &msg) { m_bFocused = true; Invalidate(); }); m_LabelMsgHandler.AddEntry(UIMSG_KILLFOCUS,[&](const MsgWrap &msg) { m_bFocused = false; Invalidate(); }); } void Label::HandleMsg(const MsgWrap & msg) throw() { m_LabelMsgHandler.HandleMsg(msg); } }
[ "yearlingwes@gmail.com" ]
yearlingwes@gmail.com
4a5e9041e573cb4a67c6020bdffed80205531575
48d5dbf4475448f5df6955f418d7c42468d2a165
/SDK/SoT_HarbourFramework_functions.cpp
da7aebaa088366f31e9164ee5acf729d6c1c2131
[]
no_license
Outshynd/SoT-SDK-1
80140ba84fe9f2cdfd9a402b868099df4e8b8619
8c827fd86a5a51f3d4b8ee34d1608aef5ac4bcc4
refs/heads/master
2022-11-21T04:35:29.362290
2020-07-10T14:50:55
2020-07-10T14:50:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
359
cpp
// Sea of Thieves (1.4.16) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_HarbourFramework_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "53855178+Shat-sky@users.noreply.github.com" ]
53855178+Shat-sky@users.noreply.github.com
382765a5fac379a4d65614af712678b223cb5d66
d75ec2ceb9d1a3fc9e4f5d79212e9dc0c739fd7a
/InterviewBit/Two Pointers/3 Sum.cpp
5c7456b5a9b1651774c7b8174a026f68fb16bdae
[]
no_license
aryan-harsh/DS-Algo-Codes
bc949d1c3a77d53c8c73804b0a3543cb9b569c0e
e20cdd742870c8da89792543e7b4f91e2b43ac0f
refs/heads/master
2023-02-12T13:57:51.656903
2020-12-09T23:33:24
2020-12-09T23:33:24
138,578,481
5
5
null
2021-01-14T05:43:50
2018-06-25T10:16:44
C++
UTF-8
C++
false
false
782
cpp
#define ll long long int int Solution::threeSumClosest(vector<int> &A, int B) { int n = A.size(); sort(A.begin(), A.end()); ll sum = 0, sumt = 0; ll diff = LLONG_MAX; bool flag=true; for (int i = 0; i < n && flag; i++) { int l = i + 1, r = n - 1; while (l < r) { sumt = 1LL * A[i] + A[l] + A[r]; if (llabs(sumt - B) < diff) { diff = llabs(sumt - B); sum = sumt; } if (sumt < B) { l++; } else if(sumt > B) { r--; } else { flag=false; break; } } } return sum; }
[ "mishraprateekaries@gmail.com" ]
mishraprateekaries@gmail.com
70e505669d7d79211dceb37ae154688e82dc92ed
1e1b3f702bdf6c0544ae27a321c8ebe605434ee4
/Chapter6/Sample124/FileDlgDemo/FileDlgDemoDlg.cpp
f98f9f435e7ef4ae4b55f7d63eb667c2ec7d5c7b
[]
no_license
Aque1228556367/Visual_Cpp_By_Example
63e3d67e734b7d95385a329e4a1641e7b1727084
41f903d8c9938e7800d89fcff31b182bfc1c4f45
refs/heads/master
2021-03-12T20:36:56.780300
2015-05-08T02:05:46
2015-05-08T02:05:46
35,171,152
2
2
null
null
null
null
GB18030
C++
false
false
4,766
cpp
// FileDlgDemoDlg.cpp : implementation file // #include "stdafx.h" #include "FileDlgDemo.h" #include "FileDlgDemoDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CFileDlgDemoDlg dialog CFileDlgDemoDlg::CFileDlgDemoDlg(CWnd* pParent /*=NULL*/) : CDialog(CFileDlgDemoDlg::IDD, pParent) { //{{AFX_DATA_INIT(CFileDlgDemoDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CFileDlgDemoDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CFileDlgDemoDlg) DDX_Control(pDX, IDC_EDIT1, m_ctlEdit); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CFileDlgDemoDlg, CDialog) //{{AFX_MSG_MAP(CFileDlgDemoDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_FILE, OnFile) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CFileDlgDemoDlg message handlers BOOL CFileDlgDemoDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control } void CFileDlgDemoDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CFileDlgDemoDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CFileDlgDemoDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } void CFileDlgDemoDlg::OnFile() { // TODO: Add your control notification handler code here CString szFilters="MyType Files (*.my)|*.my|All Files (*.*)|*.*||"; //定义文件过滤器 //创建打开文件对话框对象,默认的文件扩展名为 ".my". CFileDialog fileDlg (TRUE, "my", "*.my",OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, szFilters, this); //调用DoModal()函数显示打开文件对话框 if( fileDlg.DoModal ()==IDOK ) { CString pathName = fileDlg.GetPathName(); // 进行文件的相关操作 m_ctlEdit.SetWindowText(pathName); //将当前窗口的标题设置为打开文件的名字 CString fileName = fileDlg.GetFileTitle (); SetWindowText(fileName); } }
[ "1228556367@qq.com" ]
1228556367@qq.com
1c5aa081e27ae54454dbb28dd2a777886384ed78
a33b7e5815f6ac385ca9c455754e0c0b6efd0829
/函数/f1.cpp
af0351fc53f27fa5904ce4ab7168433a0fc9f23f
[]
no_license
yangdongzju1976/c_language
aa557f2e99e1adc93cb9c8181110516a55ea3fa0
3037097d66d23ac41a3de62e026cbce939b0ecc4
refs/heads/master
2023-02-22T08:08:25.074619
2021-01-31T09:39:20
2021-01-31T09:39:20
334,620,019
0
0
null
null
null
null
GB18030
C++
false
false
558
cpp
#include <stdio.h> #include "windows.h" void print_star(); int main(int argc, char *argv[]) { system("color 70"); //1.库函数 printf("1.库函数调用\n"); printf("\tHello, world\n\t"); //2.自定义函数 printf("\t2.自定义函数调用\n"); print_star(); printf("\n\tHello, world\n"); print_star(); printf("\n\n"); //3.循环调用自定义函数 printf("\t3.循环调用自定义函数\n"); for (int i=0; i<10;i++ ) { print_star(); printf("\n"); } return 0; } void print_star() { printf("*******************************"); }
[ "66078117@qq.com" ]
66078117@qq.com
811320debd7677aaf7b755a9d176a30821e54e41
dfcd5648f59de3c83dd75df0a77132d9be7e9599
/utils/print.cpp
8a6d45a5f8d5718c8cd0f46640531d4893ff95fa
[]
no_license
denbilyk/altaris-hw-avr
0b06ed8caa3830da369d6f973dec397c1f60ec7a
a8e4fe4ff3195a219cfe63eda2c3b91c11184353
HEAD
2016-09-06T18:05:12.481980
2016-02-16T14:18:50
2016-02-16T14:18:50
41,568,452
0
0
null
null
null
null
UTF-8
C++
false
false
4,228
cpp
// // Created by Denis Bilyk on 8/23/15. // #include "print.h" /* default implementation: may be overridden */ size_t Print::write(const uint8_t *buffer, size_t size) { size_t n = 0; while (size--) { n += write(*buffer++); } return n; } size_t Print::print(const char str[]) { return write(str); } size_t Print::print(char c) { return write(c); } size_t Print::print(unsigned char b, int base) { return print((unsigned long) b, base); } size_t Print::print(int n, int base) { return print((long) n, base); } size_t Print::print(unsigned int n, int base) { return print((unsigned long) n, base); } size_t Print::print(long n, int base) { if (base == 0) { return write(n); } else if (base == 10) { if (n < 0) { int t = print('-'); n = -n; return printNumber(n, 10) + t; } return printNumber(n, 10); } else { return printNumber(n, base); } } size_t Print::print(unsigned long n, int base) { if (base == 0) return write(n); else return printNumber(n, base); } size_t Print::print(double n, int digits) { return printFloat(n, digits); } size_t Print::print(String &string) { return print(string.c_str()); } size_t Print::print(const String &string) { return print(string.c_str()); } size_t Print::println(void) { size_t n = print('\r'); n += print('\n'); return n; } size_t Print::println(const char c[]) { size_t n = print(c); n += println(); return n; } size_t Print::println(char c) { size_t n = print(c); n += println(); return n; } size_t Print::println(unsigned char b, int base) { size_t n = print(b, base); n += println(); return n; } size_t Print::println(int num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(unsigned int num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(unsigned long num, int base) { size_t n = print(num, base); n += println(); return n; } size_t Print::println(double num, int digits) { size_t n = print(num, digits); n += println(); return n; } // Private Methods ///////////////////////////////////////////////////////////// size_t Print::printNumber(unsigned long n, uint8_t base) { char buf[8 * sizeof(long) + 1]; // Assumes 8-bit chars plus zero byte. char *str = &buf[sizeof(buf) - 1]; *str = '\0'; // prevent crash if called with base == 1 if (base < 2) base = 10; do { unsigned long m = n; n /= base; char c = m - base * n; *--str = c < 10 ? c + '0' : c + 'A' - 10; } while (n); return write(str); } size_t Print::printFloat(double number, uint8_t digits) { size_t n = 0; if (isnan(number)) return print("nan"); if (isinf(number)) return print("inf"); if (number > 4294967040.0) return print("ovf"); // constant determined empirically if (number < -4294967040.0) return print("ovf"); // constant determined empirically // Handle negative numbers if (number < 0.0) { n += print('-'); number = -number; } // Round correctly so that print(1.999, 2) prints as "2.00" double rounding = 0.5; for (uint8_t i = 0; i < digits; ++i) rounding /= 10.0; number += rounding; // Extract the integer part of the number and print it unsigned long int_part = (unsigned long) number; double remainder = number - (double) int_part; n += print(int_part); // Print the decimal point, but only if there are digits beyond if (digits > 0) { n += print("."); } // Extract digits from the remainder one at a time while (digits-- > 0) { remainder *= 10.0; int toPrint = int(remainder); n += print(toPrint); remainder -= toPrint; } return n; } size_t Print::println(String &string) { return println(string.c_str()); } size_t Print::println(const String &string) { return println(string.c_str()); }
[ "denis.bilyk@bonial.com" ]
denis.bilyk@bonial.com
2101a4e995e07f979a852da2bcf4abcffc90ea28
447be6d71898f33ebbf3b71db8c4fdaaf670bc0b
/source/libraries/DistMesh/triangulation.cpp
a60fea4f129bee6b02c3f0b04d4298cf4d3788f0
[]
no_license
CST-Modelling-Tools/TonatiuhPP
35bc1b6f4067364875471a5be99053df01df5883
664250e8ef38e7d6dab3ed35d6fab7f732edec19
refs/heads/master
2023-04-13T03:12:14.843634
2022-08-26T12:09:02
2022-08-26T12:09:02
380,948,961
3
2
null
null
null
null
UTF-8
C++
false
false
3,054
cpp
// -------------------------------------------------------------------- // This file is part of libDistMesh. // // libDistMesh 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. // // libDistMesh 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 libDistMesh. If not, see <http://www.gnu.org/licenses/>. // // Copyright (C) 2015 Patrik Gebhardt // Contact: patrik.gebhardt@rub.de // -------------------------------------------------------------------- #include <stdio.h> //// qhull library used to calculate delaunay triangulation //extern "C" { // #define qh_QHimport // #include <qhull/qhull_a.h> //} #include "DistMesh/distmesh.h" #include "DistMesh/triangulation.h" #include "DistMesh/delaunator.h" Eigen::ArrayXXi distmesh::triangulation::delaunay( Eigen::Ref<Eigen::ArrayXXd const> const points) { std::vector<double> coords; for (int n = 0; n < points.rows(); ++n) { coords.push_back(points(n, 0)); coords.push_back(points(n, 1)); } delaunator::Delaunator d(coords); int nMax = d.triangles.size()/3; Eigen::ArrayXXi triangulation(nMax, 3); for (int n = 0; n < nMax; ++n) { triangulation(n, 0) = d.triangles[3*n]; triangulation(n, 1) = d.triangles[3*n + 1]; triangulation(n, 2) = d.triangles[3*n + 2]; } return triangulation; // // reset qhull // if (qh_qh) { // qh_save_qhull(); // } // // convert points array to row major format // Eigen::Array<double, Eigen::Dynamic, Eigen::Dynamic, // Eigen::RowMajor> pointsRowMajor = points; // // calculate delaunay triangulation // std::string flags = "qhull d Qt Qbb Qc Qz"; // qh_new_qhull(points.cols(), points.rows(), pointsRowMajor.data(), False, // (char*)flags.c_str(), nullptr, stderr); // qh_triangulate(); // // count all upper delaunay facets // unsigned facetCount = 0; // facetT* facet; // FORALLfacets { // if (!facet->upperdelaunay) { // facetCount++; // } // } // // extract point ids from delaunay triangulation // Eigen::ArrayXXi triangulation(facetCount, points.cols() + 1); // unsigned facetId = 0; // unsigned vertexId = 0; // vertexT* vertex, **vertexp; // FORALLfacets { // vertexId = 0; // if (!facet->upperdelaunay) { // qh_setsize(facet->vertices); // FOREACHvertex_(facet->vertices) { // triangulation(facetId, vertexId) = qh_pointid(vertex->point); // vertexId++; // } // facetId++; // } // } // return triangulation; }
[ "v.grigoriev@cyi.ac.cy" ]
v.grigoriev@cyi.ac.cy
310666c321aa7fe083b0d18df23e2202a3123360
9239ce416eb9dd4eb0a80fa1e7edc9cd4dcc8821
/Graphics/Group.hpp
aa17f55e4334f86e5ccaf9d6b799fba08f3f10c4
[]
no_license
GKaszewski/Brick-Engine
c7b49ee171d432dff28439dcc0d885af71763201
4055c71cd06e54877a3755d680bc13fc567cd26d
refs/heads/master
2022-06-13T14:28:38.119529
2021-08-14T14:11:25
2021-08-14T14:11:25
228,939,536
0
0
null
null
null
null
UTF-8
C++
false
false
490
hpp
#pragma once #include <SFML/Graphics.hpp> #include <vector> #include <functional> class Group : public sf::Drawable { public: Group(); virtual ~Group() = default; virtual void draw(sf::RenderTarget & target, sf::RenderStates states) const; const sf::Drawable& operator[](std::size_t index); std::size_t push_back(const sf::Drawable & drawable); const sf::Drawable& pop_back(); private: std::vector<std::reference_wrapper<const sf::Drawable>> m_drawables; };
[ "gabrielkaszewski@gmail.com" ]
gabrielkaszewski@gmail.com
fd4710ae5ee982fc7281cb44ebbde8dc4ae14dfd
63b62d6a788a31c5585e581ba2cb4f04fce00bc3
/random_upperlower.cpp
0d39d2bb823312d25be6beb5a31ec1426dcdc2cb
[]
no_license
divyansingh/CPP-sample
345bca7881bc60ce69b6f8521393692cf4e0464b
42b3d3bf56cd78ecb769d6b4acdf04202a89096c
refs/heads/master
2020-08-06T21:42:44.575331
2019-11-02T07:44:49
2019-11-02T07:44:49
213,166,928
0
0
null
null
null
null
UTF-8
C++
false
false
344
cpp
#include<iostream> using namespace std; int main() { char ch; cin>>ch; if(ch>='a'&&ch<='z') { cout<<"lowecase"; } else if(ch>='A'&&ch<='Z') { cout<<"UPPERCASE"; } else { cout<<"Invalid"; } return 0; }
[ "divyansingh.21@gmail.com" ]
divyansingh.21@gmail.com
2b48703f5095146f9d661460ddf257714abde083
43ac944cedfd4976e905f99236b024df1c8e6426
/socket/sockClient/process/sockCient_test.cpp
778d40de21eb1e1100a0aff37a25785166799e0c
[]
no_license
eason826/jni
5498339b8a9ff71f4df365e6029409fcac3dc330
9712d721cbf44804f0eb335598756027d4640652
refs/heads/master
2021-01-21T12:35:36.304091
2019-07-01T15:30:05
2019-07-01T15:30:05
102,088,291
0
0
null
null
null
null
UTF-8
C++
false
false
151
cpp
#include "SockClient.h" int main(int argc,char **argv) { SockClient *client = new SockClient(PORTNUM,(char*)"192.168.53.108"); client->Process(); }
[ "liyuxiangwhu@126.com" ]
liyuxiangwhu@126.com
c42d1bed944d75674a7b5605d95a449d004535bd
938929b6eeba99ed3bc0ffe358150910640822f8
/src/wowmodelviewer/app.h
8ad28981f9ec5d6a01da4c60c95c81c96cb5e8bc
[]
no_license
freadblangks/wowmodelviewer-1
eb20dbadda53855f98b31cec4db664cf5aa918ac
57cde0652e4e2656f880ad5ae0c26b81c9747ad2
refs/heads/master
2023-03-15T19:02:05.091765
2017-12-09T13:20:56
2017-12-09T13:20:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,346
h
#ifndef APP_H #define APP_H #include <wx/wxprec.h> #ifndef WX_PRECOMP #include <wx/wx.h> #endif #ifndef _WINDOWS #include "../../bin_support/Icons/wmv.xpm" #endif // headers #include "util.h" #include "globalvars.h" #include "modelviewer.h" #include "logger/Logger.h" // vars static wxString langNames[] = { wxT("English"), wxT("Korean"), wxT("French"), wxT("German"), wxT("Simplified Chinese"), wxT("Traditional Chinese"), wxT("Spanish (EU)"), wxT("Spanish (Latin American)"), wxT("Russian"), }; static const wxLanguage langIds[] = { wxLANGUAGE_ENGLISH, wxLANGUAGE_KOREAN, wxLANGUAGE_FRENCH, wxLANGUAGE_GERMAN, wxLANGUAGE_CHINESE_SIMPLIFIED, wxLANGUAGE_CHINESE_TRADITIONAL, wxLANGUAGE_SPANISH, wxLANGUAGE_SPANISH, wxLANGUAGE_RUSSIAN, }; class WowModelViewApp : public wxApp { public: virtual bool OnInit(); virtual int OnExit(); virtual void OnUnhandledException(); virtual void OnFatalException(); void setInterfaceLocale(); //virtual bool OnExceptionInMainLoop(); //virtual void HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& event) const ; void LoadSettings(); void SaveSettings(); ModelViewer *frame; wxLocale locale; bool useNewCamera; }; void searchMPQs(bool firstTime); #endif
[ "Jeromnimo@localhost" ]
Jeromnimo@localhost
a31fbebdc285dce550e395185b4cf4345ec06bcd
26ba18f15532023552cf9523feb84a317b47beb0
/JUCE/modules/juce_box2d/box2d/Dynamics/b2Body.cpp
dbc8beabbd74b7fc82002cb9d515e217ce3e8432
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-only", "ISC", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
Ultraschall/ultraschall-soundboard
d3fdaf92061f9eacc65351b7b4bc937311f9e7fc
8a7a538831d8dbf7689b47611d218560762ae869
refs/heads/main
2021-12-14T20:19:24.170519
2021-03-17T22:34:11
2021-03-17T22:34:11
27,304,678
27
3
MIT
2021-02-16T20:49:08
2014-11-29T14:36:19
C++
UTF-8
C++
false
false
11,238
cpp
/* * Copyright (c) 2006-2007 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #include "b2Body.h" #include "b2Fixture.h" #include "b2World.h" #include "Contacts/b2Contact.h" #include "Joints/b2Joint.h" b2Body::b2Body(const b2BodyDef* bd, b2World* world) { b2Assert(bd->position.IsValid()); b2Assert(bd->linearVelocity.IsValid()); b2Assert(b2IsValid(bd->angle)); b2Assert(b2IsValid(bd->angularVelocity)); b2Assert(b2IsValid(bd->angularDamping) && bd->angularDamping >= 0.0f); b2Assert(b2IsValid(bd->linearDamping) && bd->linearDamping >= 0.0f); m_flags = 0; if (bd->bullet) { m_flags |= e_bulletFlag; } if (bd->fixedRotation) { m_flags |= e_fixedRotationFlag; } if (bd->allowSleep) { m_flags |= e_autoSleepFlag; } if (bd->awake) { m_flags |= e_awakeFlag; } if (bd->active) { m_flags |= e_activeFlag; } m_world = world; m_xf.p = bd->position; m_xf.q.Set(bd->angle); m_sweep.localCenter.SetZero(); m_sweep.c0 = m_xf.p; m_sweep.c = m_xf.p; m_sweep.a0 = bd->angle; m_sweep.a = bd->angle; m_sweep.alpha0 = 0.0f; m_jointList = NULL; m_contactList = NULL; m_prev = NULL; m_next = NULL; m_linearVelocity = bd->linearVelocity; m_angularVelocity = bd->angularVelocity; m_linearDamping = bd->linearDamping; m_angularDamping = bd->angularDamping; m_gravityScale = bd->gravityScale; m_force.SetZero(); m_torque = 0.0f; m_sleepTime = 0.0f; m_type = bd->type; if (m_type == b2_dynamicBody) { m_mass = 1.0f; m_invMass = 1.0f; } else { m_mass = 0.0f; m_invMass = 0.0f; } m_I = 0.0f; m_invI = 0.0f; m_userData = bd->userData; m_fixtureList = NULL; m_fixtureCount = 0; } b2Body::~b2Body() { // shapes and joints are destroyed in b2World::Destroy } void b2Body::SetType(b2BodyType type) { b2Assert(m_world->IsLocked() == false); if (m_world->IsLocked() == true) { return; } if (m_type == type) { return; } m_type = type; ResetMassData(); if (m_type == b2_staticBody) { m_linearVelocity.SetZero(); m_angularVelocity = 0.0f; m_sweep.a0 = m_sweep.a; m_sweep.c0 = m_sweep.c; SynchronizeFixtures(); } SetAwake(true); m_force.SetZero(); m_torque = 0.0f; // Since the body type changed, we need to flag contacts for filtering. for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { f->Refilter(); } } b2Fixture* b2Body::CreateFixture(const b2FixtureDef* def) { b2Assert(m_world->IsLocked() == false); if (m_world->IsLocked() == true) { return NULL; } b2BlockAllocator* allocator = &m_world->m_blockAllocator; void* memory = allocator->Allocate(sizeof(b2Fixture)); b2Fixture* fixture = new (memory) b2Fixture; fixture->Create(allocator, this, def); if (m_flags & e_activeFlag) { b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; fixture->CreateProxies(broadPhase, m_xf); } fixture->m_next = m_fixtureList; m_fixtureList = fixture; ++m_fixtureCount; fixture->m_body = this; // Adjust mass properties if needed. if (fixture->m_density > 0.0f) { ResetMassData(); } // Let the world know we have a new fixture. This will cause new contacts // to be created at the beginning of the next time step. m_world->m_flags |= b2World::e_newFixture; return fixture; } b2Fixture* b2Body::CreateFixture(const b2Shape* shape, float32 density) { b2FixtureDef def; def.shape = shape; def.density = density; return CreateFixture(&def); } void b2Body::DestroyFixture(b2Fixture* fixture) { b2Assert(m_world->IsLocked() == false); if (m_world->IsLocked() == true) { return; } b2Assert(fixture->m_body == this); // Remove the fixture from this body's singly linked list. b2Assert(m_fixtureCount > 0); b2Fixture** node = &m_fixtureList; bool found = false; while (*node != NULL) { if (*node == fixture) { *node = fixture->m_next; found = true; break; } node = &(*node)->m_next; } // You tried to remove a shape that is not attached to this body. b2Assert(found); juce::ignoreUnused (found); // Destroy any contacts associated with the fixture. b2ContactEdge* edge = m_contactList; while (edge) { b2Contact* c = edge->contact; edge = edge->next; b2Fixture* fixtureA = c->GetFixtureA(); b2Fixture* fixtureB = c->GetFixtureB(); if (fixture == fixtureA || fixture == fixtureB) { // This destroys the contact and removes it from // this body's contact list. m_world->m_contactManager.Destroy(c); } } b2BlockAllocator* allocator = &m_world->m_blockAllocator; if (m_flags & e_activeFlag) { b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; fixture->DestroyProxies(broadPhase); } fixture->Destroy(allocator); fixture->m_body = NULL; fixture->m_next = NULL; fixture->~b2Fixture(); allocator->Free(fixture, sizeof(b2Fixture)); --m_fixtureCount; // Reset the mass data. ResetMassData(); } void b2Body::ResetMassData() { // Compute mass data from shapes. Each shape has its own density. m_mass = 0.0f; m_invMass = 0.0f; m_I = 0.0f; m_invI = 0.0f; m_sweep.localCenter.SetZero(); // Static and kinematic bodies have zero mass. if (m_type == b2_staticBody || m_type == b2_kinematicBody) { m_sweep.c0 = m_xf.p; m_sweep.c = m_xf.p; m_sweep.a0 = m_sweep.a; return; } b2Assert(m_type == b2_dynamicBody); // Accumulate mass over all fixtures. b2Vec2 localCenter = b2Vec2_zero; for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { if (f->m_density == 0.0f) { continue; } b2MassData massData; f->GetMassData(&massData); m_mass += massData.mass; localCenter += massData.mass * massData.center; m_I += massData.I; } // Compute center of mass. if (m_mass > 0.0f) { m_invMass = 1.0f / m_mass; localCenter *= m_invMass; } else { // Force all dynamic bodies to have a positive mass. m_mass = 1.0f; m_invMass = 1.0f; } if (m_I > 0.0f && (m_flags & e_fixedRotationFlag) == 0) { // Center the inertia about the center of mass. m_I -= m_mass * b2Dot(localCenter, localCenter); b2Assert(m_I > 0.0f); m_invI = 1.0f / m_I; } else { m_I = 0.0f; m_invI = 0.0f; } // Move center of mass. b2Vec2 oldCenter = m_sweep.c; m_sweep.localCenter = localCenter; m_sweep.c0 = m_sweep.c = b2Mul(m_xf, m_sweep.localCenter); // Update center of mass velocity. m_linearVelocity += b2Cross(m_angularVelocity, m_sweep.c - oldCenter); } void b2Body::SetMassData(const b2MassData* massData) { b2Assert(m_world->IsLocked() == false); if (m_world->IsLocked() == true) { return; } if (m_type != b2_dynamicBody) { return; } m_invMass = 0.0f; m_I = 0.0f; m_invI = 0.0f; m_mass = massData->mass; if (m_mass <= 0.0f) { m_mass = 1.0f; } m_invMass = 1.0f / m_mass; if (massData->I > 0.0f && (m_flags & b2Body::e_fixedRotationFlag) == 0) { m_I = massData->I - m_mass * b2Dot(massData->center, massData->center); b2Assert(m_I > 0.0f); m_invI = 1.0f / m_I; } // Move center of mass. b2Vec2 oldCenter = m_sweep.c; m_sweep.localCenter = massData->center; m_sweep.c0 = m_sweep.c = b2Mul(m_xf, m_sweep.localCenter); // Update center of mass velocity. m_linearVelocity += b2Cross(m_angularVelocity, m_sweep.c - oldCenter); } bool b2Body::ShouldCollide(const b2Body* other) const { // At least one body should be dynamic. if (m_type != b2_dynamicBody && other->m_type != b2_dynamicBody) { return false; } // Does a joint prevent collision? for (b2JointEdge* jn = m_jointList; jn; jn = jn->next) { if (jn->other == other) { if (jn->joint->m_collideConnected == false) { return false; } } } return true; } void b2Body::SetTransform(const b2Vec2& position, float32 angle) { b2Assert(m_world->IsLocked() == false); if (m_world->IsLocked() == true) { return; } m_xf.q.Set(angle); m_xf.p = position; m_sweep.c = b2Mul(m_xf, m_sweep.localCenter); m_sweep.a = angle; m_sweep.c0 = m_sweep.c; m_sweep.a0 = angle; b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { f->Synchronize(broadPhase, m_xf, m_xf); } m_world->m_contactManager.FindNewContacts(); } void b2Body::SynchronizeFixtures() { b2Transform xf1; xf1.q.Set(m_sweep.a0); xf1.p = m_sweep.c0 - b2Mul(xf1.q, m_sweep.localCenter); b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { f->Synchronize(broadPhase, xf1, m_xf); } } void b2Body::SetActive(bool flag) { b2Assert(m_world->IsLocked() == false); if (flag == IsActive()) { return; } if (flag) { m_flags |= e_activeFlag; // Create all proxies. b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { f->CreateProxies(broadPhase, m_xf); } // Contacts are created the next time step. } else { m_flags &= ~e_activeFlag; // Destroy all proxies. b2BroadPhase* broadPhase = &m_world->m_contactManager.m_broadPhase; for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { f->DestroyProxies(broadPhase); } // Destroy the attached contacts. b2ContactEdge* ce = m_contactList; while (ce) { b2ContactEdge* ce0 = ce; ce = ce->next; m_world->m_contactManager.Destroy(ce0->contact); } m_contactList = NULL; } } void b2Body::Dump() { int32 bodyIndex = m_islandIndex; b2Log("{\n"); b2Log(" b2BodyDef bd;\n"); b2Log(" bd.type = b2BodyType(%d);\n", m_type); b2Log(" bd.position.Set(%.15lef, %.15lef);\n", m_xf.p.x, m_xf.p.y); b2Log(" bd.angle = %.15lef;\n", m_sweep.a); b2Log(" bd.linearVelocity.Set(%.15lef, %.15lef);\n", m_linearVelocity.x, m_linearVelocity.y); b2Log(" bd.angularVelocity = %.15lef;\n", m_angularVelocity); b2Log(" bd.linearDamping = %.15lef;\n", m_linearDamping); b2Log(" bd.angularDamping = %.15lef;\n", m_angularDamping); b2Log(" bd.allowSleep = bool(%d);\n", m_flags & e_autoSleepFlag); b2Log(" bd.awake = bool(%d);\n", m_flags & e_awakeFlag); b2Log(" bd.fixedRotation = bool(%d);\n", m_flags & e_fixedRotationFlag); b2Log(" bd.bullet = bool(%d);\n", m_flags & e_bulletFlag); b2Log(" bd.active = bool(%d);\n", m_flags & e_activeFlag); b2Log(" bd.gravityScale = %.15lef;\n", m_gravityScale); b2Log(" bodies[%d] = m_world->CreateBody(&bd);\n", m_islandIndex); b2Log("\n"); for (b2Fixture* f = m_fixtureList; f; f = f->m_next) { b2Log(" {\n"); f->Dump(bodyIndex); b2Log(" }\n"); } b2Log("}\n"); }
[ "daniel@lindenfelser.de" ]
daniel@lindenfelser.de
261e78bfe94562bb28641a250aa716b1c682362f
543ac50e0a15fb89e75808ecc50a0b74d229382b
/include/CppMonad/Class/Monoid.hpp
3bb943fed11d7ece41414a23b7f097b02c99b494
[ "MIT" ]
permissive
303248153/CppMonad
0848d36e472f32ebf5358ff2f86a2c77035d558f
e3171fa83a230663f41fb5872f1bcc22f1309a11
refs/heads/master
2021-08-29T14:25:13.812833
2017-12-14T03:46:59
2017-12-14T03:46:59
103,738,770
3
0
null
null
null
null
UTF-8
C++
false
false
195
hpp
#pragma once namespace CppMonad { template <class T> struct Monoid { static T mempty() { return T(); } }; template <class T> static T mempty() { return Monoid<T>::mempty(); } }
[ "303248153@qq.com" ]
303248153@qq.com
82ab04da0fc7febf64c883d80438bb8ac7b5a11d
2b8b8c680165cdf5539af31232ae08e480fe0a12
/ConsoleApplication2/person.cpp
507bd5820d9bd3484737a8df14f8e2a3b55dc9f8
[]
no_license
PandemicProject/Pandemic
545e4e04fe9cad75fe2fe05e3d7429e7d7c98521
3d7f58cebf08aba64818295010befe3dd31e1b4e
refs/heads/master
2022-09-03T02:26:52.992794
2020-05-24T14:40:14
2020-05-24T14:40:14
258,185,451
0
0
null
null
null
null
GB18030
C++
false
false
5,891
cpp
#include "person.h" #include <random> #include <graphics.h> using namespace std; default_random_engine e; //position in quarantine zone uniform_int_distribution<int> xPos(0, 600); uniform_int_distribution<int> yPos(640, 800); //degree of cooperation (stay in quarantine) uniform_int_distribution<int> cooperation(0, 9); //die or recover uniform_int_distribution<int> state(0, 9); //move uniform_int_distribution<int> step(-20, 20); //init normal_distribution<double> normal(300, 100); uniform_int_distribution<int> cond(0, 1999); uniform_int_distribution<int> lurkDay(2, 14); uniform_int_distribution<int> disturbance(-5, 5); //随机扰动 const int WINDOW = 600; extern int population, healthy, exposed, infected, dead, quarantine, threshold; extern int bedTotal, bedConsumption, hospitalResponse; extern double moveWill, broadRate; extern bool quarantineCommandOn; extern Person pool[2000]; //判断坐标是否超出边界 bool Check(int x, int y) { return (x > (WINDOW - 5) || y > (WINDOW - 5)); } void _Move(int *arr, int flag) { //判断是否死亡或隔离 if (flag) { return; } int dx = 0, dy = 0; do { dx = lround(step(e) * moveWill); dy = lround(step(e) * moveWill); } while (Check(*arr + dx, *(arr + 1) + dy)); *arr += dx; *(arr + 1) += dy; return; } void InitPerson() { int _x = 0, _y = 0; for (int i = 0; i < 2000; i++) { //initialize people's position do { _x = lround(normal(e)); _y = lround(normal(e)); } while (Check(_x, _y)); Person p = { {_x, _y}, 0, 0.2, 0, lurkDay(e), 0, 0, 0, 0, 0, 10 + disturbance(e), _Move }; //PARAMETER: deathRate, recoverThreshold pool[i] = p; } //initialize infected and exposed people int initCount; initCount = infected; while (initCount--) { int index = cond(e); if (pool[index].condition != 2) { pool[index].condition = 2; } else { initCount++; } } initCount = exposed; while (initCount--) { int index = cond(e); if (pool[index].condition != 2 && pool[index].condition != 1) { pool[index].condition = 1; } else { initCount++; } } } /*change the condition to "exposed" if a healthy person physically contacts an exposed or an infected person closely*/ void Contact() { double distance; int i, j, tmp; uniform_int_distribution<int> uniform(0, 9); for (i = 0; i < population - 1; i++) { //不考虑死亡/隔离的人 if (pool[i].condition == 3 || pool[i].quarantine == 1) { continue; } for (j = i + 1; j < population; j++) { distance = sqrt(pow((pool[i].position[0] - pool[j].position[0]), 2) + pow((pool[i].position[1] - pool[j].position[1]), 2)); //distance between two people if (distance <= threshold) { if (pool[i].condition == 0) { if (pool[j].condition == 1 || pool[j].condition == 2) { tmp = uniform(e); if (tmp <= 10 * broadRate) { pool[i].condition = 1; exposed++; healthy--; } } } else if (pool[j].condition == 0) { if (pool[i].condition == 1 || pool[i].condition == 2) { tmp = uniform(e); if (tmp <= 10 * broadRate) { pool[j].condition = 1; exposed++; healthy--; } } } } } } return; } //from exposed to infected void UpdateLurk(Person *person) { person->lurkDayCnt++; if (person->lurkDayCnt == person->lurkThreshold) { person->condition = 2; person->lurkDayCnt = 0; person->infectedDayCnt = 0; exposed--; infected++; } } //some people recover and are discharged from the hospital void UpdateInHospital(Person *person) { if (person->inHospital) { person->hospitalReceptionCnt++; } } void UpdateInfected(Person *person) { person->infectedDayCnt++; } //of all infected people void UpdateDeathAndRecovery(Person *person) { int flag; uniform_int_distribution<int> uniform(0, 999); flag = uniform(e); if (!person->inHospital) { if (person->infectedDayCnt >= person->recoverThreshold) { if (flag < 1000 * person->deathRate) //die { person->condition = 3; dead++; infected--; } else //recover { person->condition = 0; person->infectedDayCnt = 0; healthy++; infected--; //康复后不再隔离 if (person->quarantine) { person->quarantine = 0; quarantine--; } } } } else { if (person->hospitalReceptionCnt >= person->outOfHospitalThreshold) { if (flag < 1000 * person->deathRate) { person->condition = 3; dead++; infected--; } else { person->condition = 0; person->inHospital = 0; person->quarantine = 0; person->infectedDayCnt = 0; person->hospitalReceptionCnt = 0; quarantine--; healthy++; infected--; } bedConsumption--; } } } //infected people are recepted into the hospital void HospitalReception(Person *p) { int flag; if ((p->infectedDayCnt >= hospitalResponse && bedConsumption < bedTotal) && !p->inHospital) //入院条件 { flag = state(e); if (flag < 2) //重症 { p->outOfHospitalThreshold = 25; p->deathRate *= 2; //PARAMETER } else //轻症 { p->outOfHospitalThreshold = 14; } bedConsumption++; if (!p->quarantine) //exclude those who are already kept in quarantine { quarantine++; p->quarantine = 1; } p->inHospital = 1; p->deathRate /= 5; //PARAMETER } } void Quarantine(bool commandOn, Person *person) { if (!commandOn) //解除隔离 { if (person->quarantine && !person->inHospital) { person->quarantine = 0; quarantine--; } } else { int flag = 0; if (person->quarantine) { return; } if (!person->inHospital) //infected but not recepted into hospital { flag = cooperation(e); //90% of these people will stay in quarantine under the "quarantine" command //PARAMETER if (flag < 9) { person->quarantine = 1; quarantine++; } } } }
[ "gyr19@mails.tsinghua.edu.cn" ]
gyr19@mails.tsinghua.edu.cn
c8ad83d7167c3eca7950e5c9ef29460e51c25b56
40f252876075a7b3687553f27a696d9a10096fae
/1124 Raffle for Weibo Followers (20分).cpp
4417afa90d055e00daae80b0f08d22d4015e5b57
[]
no_license
yifang0-0/pat-
12f972b436f8257e3d5d28afddd8dcd60c96bdf4
a1b949954b519e234ea84002ce579b958dd01838
refs/heads/master
2022-12-13T20:40:16.083696
2020-09-02T05:25:29
2020-09-02T05:25:29
287,754,174
0
0
null
null
null
null
UTF-8
C++
false
false
892
cpp
//14:47-15:16 #include <map> #include <set> #include <vector> #include <iostream> #include <string> #include <stdio.h> using namespace std; //M (≤ 1000), N and S // being the total number of forwards, //the skip number of winners //the index of the first winner (the indices start from 1). int main(){ int m,n,s; string name; cin>>m>>n>>s; // map<string,int>mapinfo; set<string>setinfo; vector<string>vecinfo; for(int i=0;i<m;i++){ cin>>name; vecinfo.push_back(name); } int count=0; int i=0; i=s-1; while(i<vecinfo.size()){ if(setinfo.find(vecinfo[i])!=setinfo.end()){ i+=1; continue; } else{ cout<<vecinfo[i]<<endl; setinfo.insert(vecinfo[i]); i+=(n); count++; } } if(count==0) cout<<"Keep going..."<<endl; }
[ "51746239+yifang0-0@users.noreply.github.com" ]
51746239+yifang0-0@users.noreply.github.com
fac1510d259ed93105fb5d28ada9c1dc6839eaaa
34382bac2cd600407e0873cf73e1babd6a3149ad
/leq2020/0710/F.cpp
8502d048244dc0d0ba4055e1b5d8d6d92a664cc9
[]
no_license
windring/CppAlgorithms
a5a2f199e04e66db2dc5e4b8e7b01fad07747b03
3a1489c07bf363cf730c446828515065733fe484
refs/heads/master
2021-01-02T09:19:03.702868
2020-10-21T04:46:01
2020-10-21T04:46:01
99,191,191
0
0
null
2020-10-21T04:46:02
2017-08-03T04:37:57
C++
UTF-8
C++
false
false
1,380
cpp
#include <bits/stdc++.h> using namespace std; const int len=1e4+4; int n,m,k; set<int> link[len]; int maxlen[len]; vector<int> childs[len]; int works[len]; bool red[len]; void sink(int i,int j){ maxlen[i]=max(maxlen[i],j); if(link[i].size()!=1)return; red[i]=true; int next=*(link[i].begin()); link[next].erase(i); childs[next].push_back(i); sink(next,maxlen[i]+1); } void solve(){ int a,b; cin>>n>>m>>k; memset(red,0,sizeof(red)); memset(works,0,sizeof(works)); memset(maxlen,0,sizeof(maxlen)); for(int i=0;i<n;i++){ childs[i].clear(); link[i].clear(); } for(int i=0;i<m;i++){ cin>>a>>b; a--;b--; link[a].insert(b); link[b].insert(a); } for(int i=0;i<n;i++){ if(link[i].size()>1)continue; if(maxlen[i]>0)continue; sink(i,1); } int willSink=0; for(int i=0;i<n;i++){ if(red[i]){ works[willSink++]=i; } } sort(works,works+willSink,[&](const int &l,const int &r){return maxlen[l]<maxlen[r];}); for(int now=willSink-1;now>=0&&k>0;now--){ int i=works[now]; if(maxlen[i]==0)continue; k--; int d=maxlen[i]; willSink-=d; for(d--;;d--){ maxlen[i]=0; if(d==0)break; int j; for(j=0;maxlen[childs[i][j]]!=d;j++); i=childs[i][j]; } } cout<<willSink<<endl; } int main(){ int cases; cin>>cases; while(cases--)solve(); return 0; }
[ "baitieyi@163.com" ]
baitieyi@163.com
cf4a4cec446d267eab775263588156fd9400cdf5
6f49cc2d5112a6b97f82e7828f59b201ea7ec7b9
/wdbecmbd/CrdWdbeMod/QryWdbeModMge1NSignal_blks.cpp
40399a48377c699c1e5a7443756d6ee342fe6eb5
[ "MIT" ]
permissive
mpsitech/wdbe-WhizniumDBE
d3702800d6e5510e41805d105228d8dd8b251d7a
89ef36b4c86384429f1e707e5fa635f643e81240
refs/heads/master
2022-09-28T10:27:03.683192
2022-09-18T22:04:37
2022-09-18T22:04:37
282,705,449
5
0
null
null
null
null
UTF-8
C++
false
false
6,805
cpp
/** * \file QryWdbeModMge1NSignal_blks.cpp * job handler for job QryWdbeModMge1NSignal (implementation of blocks) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE using namespace std; using namespace Sbecore; using namespace Xmlio; /****************************************************************************** class QryWdbeModMge1NSignal::StatApp ******************************************************************************/ void QryWdbeModMge1NSignal::StatApp::writeJSON( Json::Value& sup , string difftag , const uint firstcol , const uint jnumFirstdisp , const uint ncol , const uint ndisp ) { if (difftag.length() == 0) difftag = "StatAppQryWdbeModMge1NSignal"; Json::Value& me = sup[difftag] = Json::Value(Json::objectValue); me["firstcol"] = firstcol; me["jnumFirstdisp"] = jnumFirstdisp; me["ncol"] = ncol; me["ndisp"] = ndisp; }; void QryWdbeModMge1NSignal::StatApp::writeXML( xmlTextWriter* wr , string difftag , bool shorttags , const uint firstcol , const uint jnumFirstdisp , const uint ncol , const uint ndisp ) { if (difftag.length() == 0) difftag = "StatAppQryWdbeModMge1NSignal"; string itemtag; if (shorttags) itemtag = "Si"; else itemtag = "StatitemAppQryWdbeModMge1NSignal"; xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str()); writeUintAttr(wr, itemtag, "sref", "firstcol", firstcol); writeUintAttr(wr, itemtag, "sref", "jnumFirstdisp", jnumFirstdisp); writeUintAttr(wr, itemtag, "sref", "ncol", ncol); writeUintAttr(wr, itemtag, "sref", "ndisp", ndisp); xmlTextWriterEndElement(wr); }; /****************************************************************************** class QryWdbeModMge1NSignal::StatShr ******************************************************************************/ QryWdbeModMge1NSignal::StatShr::StatShr( const uint ntot , const uint jnumFirstload , const uint nload ) : Block() { this->ntot = ntot; this->jnumFirstload = jnumFirstload; this->nload = nload; mask = {NTOT, JNUMFIRSTLOAD, NLOAD}; }; void QryWdbeModMge1NSignal::StatShr::writeJSON( Json::Value& sup , string difftag ) { if (difftag.length() == 0) difftag = "StatShrQryWdbeModMge1NSignal"; Json::Value& me = sup[difftag] = Json::Value(Json::objectValue); me["ntot"] = ntot; me["jnumFirstload"] = jnumFirstload; me["nload"] = nload; }; void QryWdbeModMge1NSignal::StatShr::writeXML( xmlTextWriter* wr , string difftag , bool shorttags ) { if (difftag.length() == 0) difftag = "StatShrQryWdbeModMge1NSignal"; string itemtag; if (shorttags) itemtag = "Si"; else itemtag = "StatitemShrQryWdbeModMge1NSignal"; xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str()); writeUintAttr(wr, itemtag, "sref", "ntot", ntot); writeUintAttr(wr, itemtag, "sref", "jnumFirstload", jnumFirstload); writeUintAttr(wr, itemtag, "sref", "nload", nload); xmlTextWriterEndElement(wr); }; set<uint> QryWdbeModMge1NSignal::StatShr::comm( const StatShr* comp ) { set<uint> items; if (ntot == comp->ntot) insert(items, NTOT); if (jnumFirstload == comp->jnumFirstload) insert(items, JNUMFIRSTLOAD); if (nload == comp->nload) insert(items, NLOAD); return(items); }; set<uint> QryWdbeModMge1NSignal::StatShr::diff( const StatShr* comp ) { set<uint> commitems; set<uint> diffitems; commitems = comm(comp); diffitems = {NTOT, JNUMFIRSTLOAD, NLOAD}; for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it); return(diffitems); }; /****************************************************************************** class QryWdbeModMge1NSignal::StgIac ******************************************************************************/ QryWdbeModMge1NSignal::StgIac::StgIac( const uint jnum , const uint jnumFirstload , const uint nload ) : Block() { this->jnum = jnum; this->jnumFirstload = jnumFirstload; this->nload = nload; mask = {JNUM, JNUMFIRSTLOAD, NLOAD}; }; bool QryWdbeModMge1NSignal::StgIac::readJSON( const Json::Value& sup , bool addbasetag ) { clear(); bool basefound; const Json::Value& me = [&]{if (!addbasetag) return sup; return sup["StgIacQryWdbeModMge1NSignal"];}(); basefound = (me != Json::nullValue); if (basefound) { if (me.isMember("jnum")) {jnum = me["jnum"].asUInt(); add(JNUM);}; if (me.isMember("jnumFirstload")) {jnumFirstload = me["jnumFirstload"].asUInt(); add(JNUMFIRSTLOAD);}; if (me.isMember("nload")) {nload = me["nload"].asUInt(); add(NLOAD);}; }; return basefound; }; bool QryWdbeModMge1NSignal::StgIac::readXML( xmlXPathContext* docctx , string basexpath , bool addbasetag ) { clear(); bool basefound; if (addbasetag) basefound = checkUclcXPaths(docctx, basexpath, basexpath, "StgIacQryWdbeModMge1NSignal"); else basefound = checkXPath(docctx, basexpath); string itemtag = "StgitemIacQryWdbeModMge1NSignal"; if (basefound) { if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "jnum", jnum)) add(JNUM); if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "jnumFirstload", jnumFirstload)) add(JNUMFIRSTLOAD); if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "nload", nload)) add(NLOAD); }; return basefound; }; void QryWdbeModMge1NSignal::StgIac::writeJSON( Json::Value& sup , string difftag ) { if (difftag.length() == 0) difftag = "StgIacQryWdbeModMge1NSignal"; Json::Value& me = sup[difftag] = Json::Value(Json::objectValue); me["jnum"] = jnum; me["jnumFirstload"] = jnumFirstload; me["nload"] = nload; }; void QryWdbeModMge1NSignal::StgIac::writeXML( xmlTextWriter* wr , string difftag , bool shorttags ) { if (difftag.length() == 0) difftag = "StgIacQryWdbeModMge1NSignal"; string itemtag; if (shorttags) itemtag = "Si"; else itemtag = "StgitemIacQryWdbeModMge1NSignal"; xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str()); writeUintAttr(wr, itemtag, "sref", "jnum", jnum); writeUintAttr(wr, itemtag, "sref", "jnumFirstload", jnumFirstload); writeUintAttr(wr, itemtag, "sref", "nload", nload); xmlTextWriterEndElement(wr); }; set<uint> QryWdbeModMge1NSignal::StgIac::comm( const StgIac* comp ) { set<uint> items; if (jnum == comp->jnum) insert(items, JNUM); if (jnumFirstload == comp->jnumFirstload) insert(items, JNUMFIRSTLOAD); if (nload == comp->nload) insert(items, NLOAD); return(items); }; set<uint> QryWdbeModMge1NSignal::StgIac::diff( const StgIac* comp ) { set<uint> commitems; set<uint> diffitems; commitems = comm(comp); diffitems = {JNUM, JNUMFIRSTLOAD, NLOAD}; for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it); return(diffitems); };
[ "aw@mpsitech.com" ]
aw@mpsitech.com
18291a08c768ad2a7b662954a1c0ccbfd1607dbc
fb656ab415f3b5ca54c3fa20a3318aaaeef9d92c
/src/ai/GameLogic.cpp
8f085276752f0150912191112b865c7a0cb04bc8
[]
no_license
xieren58/doudizhu-1
da30e82977dd59af882bb53e37f250327e1841c5
5e623158bfe2d3e1e4293087eb9c2f8903c65060
refs/heads/master
2020-07-10T22:27:46.219618
2014-05-10T15:21:06
2014-05-10T15:21:06
null
0
0
null
null
null
null
GB18030
C++
false
false
289,525
cpp
#include "StdAfx.h" #include "GameLogic.h" ////////////////////////////////////////////////////////////////////////// //静态变量 //扑克数据 const BYTE CGameLogic::m_cbCardData[FULL_COUNT]= { 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D, //方块 A - K 0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D, //梅花 A - K 0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D, //红桃 A - K 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D, //黑桃 A - K 0x4E,0x4F, }; //扑克数据 const BYTE CGameLogic::m_cbHpCardData[FULL_COUNT]= { 0x01,0x11,0x21,0x31,0x02,0x12,0x22,0x32,0x03,0x13,0x23,0x33, 0x04,0x14,0x24,0x34,0x05,0x15,0x25,0x35,0x06,0x16,0x26,0x36, 0x07,0x17,0x27,0x37,0x08,0x18,0x28,0x38,0x09,0x19,0x29,0x39, 0x0A,0x1A,0x2A,0x3A,0x0B,0x1B,0x2B,0x3B,0x0C,0x1C,0x2C,0x3C, 0x0D,0x1D,0x2D, 0x3D,0x4E,0x4F, }; const BYTE CGameLogic::m_cbGoodcardData[GOOD_CARD_COUTN]= { 0x01,0x02, 0x11,0x12, 0x21,0x22, 0x31,0x32, 0x4E,0x4F, 0x07,0x08,0x09, 0x17,0x18,0x19, 0x27,0x28,0x29, 0x37,0x38,0x39, 0x0A,0x0B,0x0C,0x0D, 0x1A,0x1B,0x1C,0x1D, 0x2A,0x2B,0x2C,0x2D, 0x3A,0x3B,0x3C,0x3D }; ////////////////////////////////////////////////////////////////////////// //构造函数 CGameLogic::CGameLogic() { //AI变量 m_lBankerOutCardCount = 0 ; } //析构函数 CGameLogic::~CGameLogic() { #ifdef _CHECK_DUG file.Close() ; #endif } //获取类型 BYTE CGameLogic::GetCardType(const BYTE cbCardData[], BYTE cbCardCount) { if ( IsHaveChangeThree( cbCardData,cbCardCount ) ) { BYTE byTempCard[18] = {0}; CopyMemory(byTempCard,cbCardData,sizeof(BYTE)*cbCardCount); SortCardList(byTempCard,cbCardCount,ST_ORDER); if ( cbCardCount == 5 ) //判断是否深水炸弹或者深水火箭 { BYTE byCountCard[18] = {0}; for ( int i=0; i<cbCardCount; i++ ) { byCountCard[GetCardLogicValue(byTempCard[i])]++; } for ( int i=0; i<18; i++ ) { if ( 4 == byCountCard[i] ) { return CT_SHEN_BOMBCARD; } } } if ( cbCardCount == 3 ) { if ( byTempCard[0] == 0x4F && byTempCard[1] == 0x4e && byTempCard[2] == 0x03 ) { return CT_SHEN_MISSILE_CARD; } } } if ( !IsHaveChangeThree(cbCardData,cbCardCount) || 1 == cbCardCount ) { return GetNoShanThreeCardType(cbCardData,cbCardCount); } BYTE byCardType[14] ={0}; BYTE byCountCardType; BYTE byCardThreeData[18] = {0}; if ( GetShanCardType(cbCardData,cbCardCount,byCardType,byCountCardType,byCardThreeData) ) { return byCardType[0]; } return CT_ERROR; } //没有听用的牌型 add by ljl 2010-10-18 BYTE CGameLogic::GetNoShanThreeCardType(const BYTE cbCardData[], BYTE cbCardCount) { //简单牌型 switch (cbCardCount) { case 0: //空牌 { return CT_ERROR; } case 1: //单牌 { return CT_SINGLE; } case 2: //对牌火箭 { //牌型判断 if ((cbCardData[0]==0x4F)&&(cbCardData[1]==0x4E)) return CT_MISSILE_CARD; if (GetCardLogicValue(cbCardData[0])==GetCardLogicValue(cbCardData[1])) return CT_DOUBLE; return CT_ERROR; } } //分析扑克 tagAnalyseResult AnalyseResult; if(!AnalysebCardData(cbCardData,cbCardCount,AnalyseResult)) return CT_ERROR ; //四牌判断 if (AnalyseResult.cbFourCount>0) { //牌型判断 if ((AnalyseResult.cbFourCount==1)&&(cbCardCount==4)) return CT_BOMB_CARD; // if ((AnalyseResult.cbFourCount==1)&&(AnalyseResult.cbSignedCount==2)&&(cbCardCount==6)) return CT_FOUR_LINE_TAKE_ONE; if ((AnalyseResult.cbFourCount==1)&&(AnalyseResult.cbSignedCount==2)&&(cbCardCount==6)) return CT_FOUR_LINE_TAKE_ONE; if ((AnalyseResult.cbFourCount==1)&&(AnalyseResult.cbDoubleCount==2)&&(cbCardCount==8)) return CT_FOUR_LINE_TAKE_TWO; return CT_ERROR; } //三牌判断 if (AnalyseResult.cbThreeCount>0) { //三条类型 if(AnalyseResult.cbThreeCount==1 && cbCardCount==3) return CT_THREE ; //连牌判断 if (AnalyseResult.cbThreeCount>1) { //变量定义 BYTE cbCardData=AnalyseResult.cbThreeCardData[0]; BYTE cbFirstLogicValue=GetCardLogicValue(cbCardData); //错误过虑 if (cbFirstLogicValue>=15) return CT_ERROR; //连牌判断 for (BYTE i=1;i<AnalyseResult.cbThreeCount;i++) { BYTE cbCardData=AnalyseResult.cbThreeCardData[i*3]; if (cbFirstLogicValue!=(GetCardLogicValue(cbCardData)+i)) return CT_ERROR; } } //牌形判断 // if (AnalyseResult.cbThreeCount*3==cbCardCount) return CT_THREE_LINE; if(AnalyseResult.cbThreeCount>1 && (AnalyseResult.cbThreeCount*3==cbCardCount || AnalyseResult.cbThreeCount*4==cbCardCount || ((AnalyseResult.cbThreeCount*5==cbCardCount)&&(AnalyseResult.cbDoubleCount==AnalyseResult.cbThreeCount)))) return CT_THREE_LINE; if (AnalyseResult.cbThreeCount*4==cbCardCount) return CT_THREE_LINE_TAKE_ONE; if ((AnalyseResult.cbThreeCount*5==cbCardCount)&&(AnalyseResult.cbDoubleCount==AnalyseResult.cbThreeCount)) return CT_THREE_LINE_TAKE_TWO; return CT_ERROR; } //两张类型 if (AnalyseResult.cbDoubleCount>=3) { //变量定义 BYTE cbCardData=AnalyseResult.cbDoubleCardData[0]; BYTE cbFirstLogicValue=GetCardLogicValue(cbCardData); //错误过虑 if (cbFirstLogicValue>=15) return CT_ERROR; //连牌判断 for (BYTE i=1;i<AnalyseResult.cbDoubleCount;i++) { BYTE cbCardData=AnalyseResult.cbDoubleCardData[i*2]; if (cbFirstLogicValue!=(GetCardLogicValue(cbCardData)+i)) return CT_ERROR; } //二连判断 if ((AnalyseResult.cbDoubleCount*2)==cbCardCount) return CT_DOUBLE_LINE; return CT_ERROR; } //单张判断 if ((AnalyseResult.cbSignedCount>=5)&&(AnalyseResult.cbSignedCount==cbCardCount)) { //变量定义 BYTE cbCardData=AnalyseResult.cbSignedCardData[0]; BYTE cbFirstLogicValue=GetCardLogicValue(cbCardData); //错误过虑 if (cbFirstLogicValue>=15) return CT_ERROR; //连牌判断 for (BYTE i=1;i<AnalyseResult.cbSignedCount;i++) { BYTE cbCardData=AnalyseResult.cbSignedCardData[i]; if (cbFirstLogicValue!=(GetCardLogicValue(cbCardData)+i)) return CT_ERROR; } return CT_SINGLE_LINE; } return CT_ERROR; } //是否有听用3 add by ljl 2010-10-18 bool CGameLogic::IsHaveChangeThree(const BYTE cbCardData[],BYTE cbCardCount) { for ( int i=0; i<cbCardCount; i++ ) { if ( 3 == GetCardLogicValue(cbCardData[i]) ) { return true; } } return false; } //add by ljl 2010-10-18 //得到听用3在哪个位置,在保证有听用三的情况下使用,方便变牌 BYTE CGameLogic::GetWeiZhiChangeThree( const BYTE cbCardData[], BYTE cbCardCount) { for ( int i=0; i<cbCardCount; i++ ) { if ( 3 == GetCardLogicValue(cbCardData[i]) ) { return i; } } return 255; } //有听用的牌型 bool CGameLogic::GetShanCardType( const BYTE cbCardData[], BYTE cbCardCount,BYTE byType[], BYTE &byCountType ,BYTE byThreeCardData[] ) { int iGetChangThree = GetWeiZhiChangeThree(cbCardData,cbCardCount); if ( 255 == iGetChangThree ) { return CT_ERROR; } byCountType = 0; BYTE byCardTypeSham = CT_ERROR; BYTE cbTempCardData[16] = {0}; for ( int i=37; i<=48; i++ ) { ::CopyMemory(cbTempCardData,cbCardData,sizeof(BYTE)*cbCardCount); cbTempCardData[iGetChangThree] = m_cbCardData[i]; byCardTypeSham = GetNoShanThreeCardType(cbTempCardData,cbCardCount); if ( byCardTypeSham != CT_ERROR ) { byThreeCardData[byCountType] = m_cbCardData[i]; byType[byCountType++] = byCardTypeSham; } } if ( byCountType >= 1 ) { return true; } return false; } //排列扑克 void CGameLogic::SortCardList(BYTE cbCardData[], BYTE cbCardCount, BYTE cbSortType) { //数目过虑 if (cbCardCount==0) return; //转换数值 BYTE cbSortValue[MAX_COUNT]; for (BYTE i=0;i<cbCardCount;i++) cbSortValue[i]=GetCardLogicValue(cbCardData[i]); //排序操作 bool bSorted=true; BYTE cbThreeCount,cbLast=cbCardCount-1; do { bSorted=true; for (BYTE i=0;i<cbLast;i++) { if ((cbSortValue[i]<cbSortValue[i+1])|| ((cbSortValue[i]==cbSortValue[i+1])&&(cbCardData[i]<cbCardData[i+1]))) { //交换位置 cbThreeCount=cbCardData[i]; cbCardData[i]=cbCardData[i+1]; cbCardData[i+1]=cbThreeCount; cbThreeCount=cbSortValue[i]; cbSortValue[i]=cbSortValue[i+1]; cbSortValue[i+1]=cbThreeCount; bSorted=false; } } cbLast--; } while(bSorted==false); //数目排序 if (cbSortType==ST_COUNT) { //分析扑克 BYTE cbIndex=0; tagAnalyseResult AnalyseResult; AnalysebCardData(cbCardData,cbCardCount,AnalyseResult); //拷贝四牌 CopyMemory(&cbCardData[cbIndex],AnalyseResult.cbFourCardData,sizeof(BYTE)*AnalyseResult.cbFourCount*4); cbIndex+=AnalyseResult.cbFourCount*4; //拷贝三牌 CopyMemory(&cbCardData[cbIndex],AnalyseResult.cbThreeCardData,sizeof(BYTE)*AnalyseResult.cbThreeCount*3); cbIndex+=AnalyseResult.cbThreeCount*3; //拷贝对牌 CopyMemory(&cbCardData[cbIndex],AnalyseResult.cbDoubleCardData,sizeof(BYTE)*AnalyseResult.cbDoubleCount*2); cbIndex+=AnalyseResult.cbDoubleCount*2; //拷贝单牌 CopyMemory(&cbCardData[cbIndex],AnalyseResult.cbSignedCardData,sizeof(BYTE)*AnalyseResult.cbSignedCount); cbIndex+=AnalyseResult.cbSignedCount; } return; } //得到好牌 void CGameLogic::GetGoodCardData(BYTE cbGoodCardData[NORMAL_COUNT]) { //混乱准备 BYTE cbCardData[CountArray(m_cbGoodcardData)]; BYTE cbCardBuffer[CountArray(m_cbGoodcardData)]; CopyMemory(cbCardData,m_cbGoodcardData,sizeof(m_cbGoodcardData)); static long int dwRandCount=0L; srand(GetTickCount()+dwRandCount++); //混乱扑克 BYTE cbRandCount=0,cbPosition=0; BYTE cbBufferCount=CountArray(m_cbGoodcardData); do { cbPosition=rand()%(cbBufferCount-cbRandCount); cbCardBuffer[cbRandCount++]=cbCardData[cbPosition]; cbCardData[cbPosition]=cbCardData[cbBufferCount-cbRandCount]; } while (cbRandCount<cbBufferCount); //复制好牌 CopyMemory(cbGoodCardData, cbCardBuffer, NORMAL_COUNT) ; } //删除好牌 bool CGameLogic::RemoveGoodCardData(BYTE cbGoodcardData[NORMAL_COUNT], BYTE cbGoodCardCount, BYTE cbCardData[FULL_COUNT], BYTE cbCardCount) { //检验数据 ASSERT(cbGoodCardCount<=cbCardCount); if(cbGoodCardCount>cbCardCount) return false ; //定义变量 BYTE cbDeleteCount=0,cbTempCardData[FULL_COUNT]; if (cbCardCount>CountArray(cbTempCardData)) return false; CopyMemory(cbTempCardData,cbCardData,cbCardCount*sizeof(cbCardData[0])); //置零扑克 for (BYTE i=0;i<cbGoodCardCount;i++) { for (BYTE j=0;j<cbCardCount;j++) { if (cbGoodcardData[i]==cbTempCardData[j]) { cbDeleteCount++; cbTempCardData[j]=0; break; } } } ASSERT(cbDeleteCount==cbGoodCardCount) ; if (cbDeleteCount!=cbGoodCardCount) return false; //清理扑克 BYTE cbCardPos=0; for (BYTE i=0;i<cbCardCount;i++) { if (cbTempCardData[i]!=0) cbCardData[cbCardPos++]=cbTempCardData[i]; } return true; } //混乱扑克 void CGameLogic::RandCardList(BYTE cbCardBuffer[], BYTE cbBufferCount) { #ifdef DDZ_HP //混乱准备 BYTE cbCardData[CountArray(m_cbCardData)]; CopyMemory(cbCardData,m_cbHpCardData,sizeof(m_cbCardData)); static long int dwRandCount=0L; srand(GetTickCount()+dwRandCount++); BYTE bBombNum[GAME_PLAYER]; ZeroMemory(bBombNum,sizeof(bBombNum)); bBombNum[0]=rand()%3+1; bBombNum[1]=rand()%3+1; bBombNum[2]=rand()%3+1; BYTE cbRandCount=0,cbPosition=0; BYTE cbBombNum=0; BYTE cbNum=0; for(BYTE n=0; n<GAME_PLAYER; n++) { cbRandCount=0; for(BYTE i=0; i<bBombNum[n]; i++) { cbPosition=rand()%(13-cbBombNum); cbBombNum++; for(BYTE j=0; j<4; j++) { cbNum++; cbCardBuffer[(cbRandCount++)+n*17]=cbCardData[cbPosition*4+j]; cbCardData[cbPosition*4+j]=cbCardData[cbBufferCount-cbNum-2];//-2 排除大小王 } } } cbCardData[cbBufferCount-cbNum-1]=cbCardData[cbBufferCount-1];//加进大小王 cbCardData[cbBufferCount-cbNum-2]=cbCardData[cbBufferCount-2]; for(BYTE i=0; i<GAME_PLAYER; i++) { BYTE cbCardNum=NORMAL_COUNT*(i+1); if(i==GAME_PLAYER-1) cbCardNum+=3; for(BYTE j=bBombNum[i]*4+NORMAL_COUNT*i; j<cbCardNum; j++) { cbPosition=rand()%(cbBufferCount-cbNum); cbCardBuffer[j]=cbCardData[cbPosition]; cbNum++; cbCardData[cbPosition]=cbCardData[cbBufferCount-cbNum]; } } #else //混乱准备 BYTE cbCardData[CountArray(m_cbCardData)]; CopyMemory(cbCardData,m_cbCardData,sizeof(m_cbCardData)); static long int dwRandCount=0L; srand(GetTickCount()+dwRandCount++); //混乱扑克 BYTE cbRandCount=0,cbPosition=0/*,id=0*/; do { cbPosition=rand()%(cbBufferCount-cbRandCount); cbCardBuffer[cbRandCount++]=cbCardData[cbPosition]; cbCardData[cbPosition]=cbCardData[cbBufferCount-cbRandCount]; /*cbCardData[cbPosition]=cbCardData[id/4+1+(id%4)*13]; id++;*/ } while (cbRandCount<cbBufferCount); #endif return; } //删除扑克 bool CGameLogic::RemoveCard(const BYTE cbRemoveCard[], BYTE cbRemoveCount, BYTE cbCardData[], BYTE cbCardCount) { //检验数据 ASSERT(cbRemoveCount<=cbCardCount); if(cbRemoveCount>cbCardCount) return false ; //定义变量 BYTE cbDeleteCount=0,cbTempCardData[MAX_COUNT]; if (cbCardCount>CountArray(cbTempCardData)) return false; CopyMemory(cbTempCardData,cbCardData,cbCardCount*sizeof(cbCardData[0])); //置零扑克 for (BYTE i=0;i<cbRemoveCount;i++) { for (BYTE j=0;j<cbCardCount;j++) { if (cbRemoveCard[i]==cbTempCardData[j]) { cbDeleteCount++; cbTempCardData[j]=0; break; } } } if (cbDeleteCount!=cbRemoveCount) return false; //清理扑克 BYTE cbCardPos=0; for (BYTE i=0;i<cbCardCount;i++) { if (cbTempCardData[i]!=0) cbCardData[cbCardPos++]=cbTempCardData[i]; } return true; } //有效判断 bool CGameLogic::IsValidCard(BYTE cbCardData) { //获取属性 BYTE cbCardColor=GetCardColor(cbCardData); BYTE cbCardValue=GetCardValue(cbCardData); //有效判断 if ((cbCardData==0x4E)||(cbCardData==0x4F)) return true; if ((cbCardColor<=0x30)&&(cbCardValue>=0x01)&&(cbCardValue<=0x0D)) return true; return false; } //逻辑数值 BYTE CGameLogic::GetCardLogicValue(BYTE cbCardData) { //扑克属性 BYTE cbCardColor=GetCardColor(cbCardData); BYTE cbCardValue=GetCardValue(cbCardData); #ifdef _DEBUG if(cbCardValue<=0 || cbCardValue>(MASK_VALUE&0x4f)) return 0 ; #endif //ASSERT(cbCardValue>0 && cbCardValue<=(MASK_VALUE&0x4f)) ; //转换数值 if (cbCardColor==0x40) return cbCardValue+2; return (cbCardValue<=2)?(cbCardValue+13):cbCardValue; } //对比扑克 bool CGameLogic::CompareCard(const BYTE cbFirstCard[], const BYTE cbNextCard[], BYTE cbFirstCount, BYTE cbNextCount) { //获取类型 BYTE cbNextType=GetCardType(cbNextCard,cbNextCount); BYTE cbFirstType=GetCardType(cbFirstCard,cbFirstCount); //类型判断 if (cbNextType==CT_ERROR) return false; if (cbNextType==CT_SHEN_MISSILE_CARD) return true; if (cbFirstType==CT_SHEN_MISSILE_CARD) { return false ; } ////炸弹判断 //if ((cbFirstType!=CT_BOMB_CARD)&&(cbNextType==CT_BOMB_CARD)) return true; //if ((cbFirstType==CT_BOMB_CARD)&&(cbNextType!=CT_BOMB_CARD)) return false; if ((cbFirstType!=CT_SHEN_BOMBCARD)&&(cbNextType==CT_SHEN_BOMBCARD)) return true; if ((cbFirstType==CT_SHEN_BOMBCARD)&&(cbNextType!=CT_SHEN_BOMBCARD)) { return false; } if ((cbFirstType!=CT_MISSILE_CARD) && (cbNextType==CT_MISSILE_CARD)) return true; if ((cbFirstType==CT_MISSILE_CARD)&&(cbNextType!=CT_MISSILE_CARD)) { return false; } if ((cbFirstType!=CT_BOMB_CARD) && (cbNextType==CT_BOMB_CARD)) return true; if ((cbFirstType==CT_BOMB_CARD)&&(cbNextType!=CT_BOMB_CARD)) { return false; } //规则判断 if ((cbFirstType!=cbNextType)||(cbFirstCount!=cbNextCount)) { return false; } //开始对比 switch (cbNextType) { case CT_SINGLE: case CT_DOUBLE: case CT_THREE: case CT_SINGLE_LINE: case CT_DOUBLE_LINE: case CT_BOMB_CARD: case CT_SHEN_MISSILE_CARD: { //获取数值 BYTE cbNextLogicValue=GetCardLogicValue(cbNextCard[0]); BYTE cbFirstLogicValue=GetCardLogicValue(cbFirstCard[0]); //对比扑克 return cbNextLogicValue>cbFirstLogicValue; } case CT_THREE_LINE: case CT_THREE_LINE_TAKE_ONE: case CT_THREE_LINE_TAKE_TWO: { //分析扑克 tagAnalyseResult NextResult; tagAnalyseResult FirstResult; AnalysebCardData(cbNextCard,cbNextCount,NextResult); AnalysebCardData(cbFirstCard,cbFirstCount,FirstResult); //获取数值 BYTE cbNextLogicValue=GetCardLogicValue(NextResult.cbThreeCardData[0]); BYTE cbFirstLogicValue=GetCardLogicValue(FirstResult.cbThreeCardData[0]); //对比扑克 return cbNextLogicValue>cbFirstLogicValue; } case CT_FOUR_LINE_TAKE_ONE: case CT_FOUR_LINE_TAKE_TWO: { //分析扑克 tagAnalyseResult NextResult; tagAnalyseResult FirstResult; AnalysebCardData(cbNextCard,cbNextCount,NextResult); AnalysebCardData(cbFirstCard,cbFirstCount,FirstResult); //获取数值 BYTE cbNextLogicValue=GetCardLogicValue(NextResult.cbFourCardData[0]); BYTE cbFirstLogicValue=GetCardLogicValue(FirstResult.cbFourCardData[0]); //对比扑克 return cbNextLogicValue>cbFirstLogicValue; } } return false; } //分析扑克 bool CGameLogic::AnalysebCardData(const BYTE cbCardData[], BYTE cbCardCount, tagAnalyseResult & AnalyseResult) { //设置结果 ZeroMemory(&AnalyseResult,sizeof(AnalyseResult)); //扑克分析 for (BYTE i=0;i<cbCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbCardData[i]); if(cbLogicValue<=0) return false; //搜索同牌 for (BYTE j=i+1;j<cbCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbCardData[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } //设置结果 switch (cbSameCount) { case 1: //单张 { BYTE cbIndex=AnalyseResult.cbSignedCount++; AnalyseResult.cbSignedCardData[cbIndex*cbSameCount]=cbCardData[i]; break; } case 2: //两张 { BYTE cbIndex=AnalyseResult.cbDoubleCount++; AnalyseResult.cbDoubleCardData[cbIndex*cbSameCount]=cbCardData[i]; AnalyseResult.cbDoubleCardData[cbIndex*cbSameCount+1]=cbCardData[i+1]; break; } case 3: //三张 { BYTE cbIndex=AnalyseResult.cbThreeCount++; AnalyseResult.cbThreeCardData[cbIndex*cbSameCount]=cbCardData[i]; AnalyseResult.cbThreeCardData[cbIndex*cbSameCount+1]=cbCardData[i+1]; AnalyseResult.cbThreeCardData[cbIndex*cbSameCount+2]=cbCardData[i+2]; break; } case 4: //四张 { BYTE cbIndex=AnalyseResult.cbFourCount++; AnalyseResult.cbFourCardData[cbIndex*cbSameCount]=cbCardData[i]; AnalyseResult.cbFourCardData[cbIndex*cbSameCount+1]=cbCardData[i+1]; AnalyseResult.cbFourCardData[cbIndex*cbSameCount+2]=cbCardData[i+2]; AnalyseResult.cbFourCardData[cbIndex*cbSameCount+3]=cbCardData[i+3]; break; } } //设置索引 i+=cbSameCount-1; } return true; } //随机扑克 BYTE CGameLogic::GetRandomCard(void) { static long int dwRandCount=0L; srand(GetTickCount()+dwRandCount++); size_t cbIndex = rand()%(sizeof(m_cbCardData)) ; return m_cbCardData[cbIndex] ; } //查找某张牌在哪个位置 int CGameLogic::GetCardCueID(const BYTE cbCardData[],BYTE cbCardCount,BYTE byFindData) { for ( int i=0; i<cbCardCount; i++ ) { if ( cbCardData[i] == byFindData ) { return i; } } return 255; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////以下为AI函数 //出牌搜索 bool CGameLogic::SearchOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, const BYTE cbTurnCardData[], BYTE cbTurnCardCount, WORD wOutCardUser, WORD wMeChairID, tagOutCardResult & OutCardResult) { //玩家判断 WORD wUndersideOfBanker = (m_wBankerUser+1)%GAME_PLAYER ; //地主下家 WORD wUpsideOfBanker = (wUndersideOfBanker+1)%GAME_PLAYER ; //地主上家 //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; //先出牌 if(cbTurnCardCount==0) { //地主出牌 if(wMeChairID==m_wBankerUser) BankerOutCard(cbHandCardData, cbHandCardCount, OutCardResult) ; //地主下家 else if(wMeChairID==wUndersideOfBanker) UndersideOfBankerOutCard(cbHandCardData, cbHandCardCount,wMeChairID, OutCardResult) ; //地主上家 else if(wMeChairID==wUpsideOfBanker) UpsideOfBankerOutCard(cbHandCardData, cbHandCardCount, wMeChairID, OutCardResult) ; //错误 ID else ASSERT(false) ; } //压牌 else { //地主出牌 if(wMeChairID==m_wBankerUser) BankerOutCard(cbHandCardData, cbHandCardCount, wOutCardUser, cbTurnCardData, cbTurnCardCount, OutCardResult) ; //地主下家 else if(wMeChairID==wUndersideOfBanker) UndersideOfBankerOutCard(cbHandCardData, cbHandCardCount, wOutCardUser, cbTurnCardData, cbTurnCardCount, OutCardResult) ; //地主上家 else if(wMeChairID==wUpsideOfBanker) UpsideOfBankerOutCard(cbHandCardData, cbHandCardCount, wOutCardUser, cbTurnCardData, cbTurnCardCount, OutCardResult) ; //错误 ID else ASSERT(false) ; //反春天判断 if (GetCardType(m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser]) != CT_ERROR && m_lBankerOutCardCount == 1 && (OutCardResult.cbCardCount <= 0 || !CompareCard(cbTurnCardData, OutCardResult.cbResultCard , cbTurnCardCount , OutCardResult.cbCardCount))) { //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌类型 AnalyseOutCardType(cbHandCardData,cbHandCardCount,cbTurnCardData,cbTurnCardCount, CardTypeResult) ; BYTE cbOutCardType = GetCardType(cbTurnCardData, cbTurnCardCount) ; if (CardTypeResult[cbOutCardType].cbCardTypeCount > 0 && cbOutCardType != CT_THREE) { BYTE cbIndex = CardTypeResult[cbOutCardType].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[cbOutCardType].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; } //出炸弹 else if (CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0) { BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; } else if (CardTypeResult[CT_MISSILE_CARD].cbCardTypeCount > 0) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4F ; OutCardResult.cbResultCard[1] = 0x4E ; } } //春天判断 if (GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser]) != CT_ERROR && (OutCardResult.cbCardCount <= 0 || !CompareCard(cbTurnCardData, OutCardResult.cbResultCard , cbTurnCardCount , OutCardResult.cbCardCount)) && m_cbUserCardCount[(1 + m_wBankerUser) % GAME_PLAYER] == NORMAL_COUNT && m_cbUserCardCount[(2 + m_wBankerUser) % GAME_PLAYER] == NORMAL_COUNT) { //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌类型 AnalyseOutCardType(cbHandCardData,cbHandCardCount,cbTurnCardData,cbTurnCardCount, CardTypeResult) ; BYTE cbOutCardType = GetCardType(cbTurnCardData, cbTurnCardCount) ; if (CardTypeResult[cbOutCardType].cbCardTypeCount > 0 && cbOutCardType != CT_THREE) { BYTE cbIndex = CardTypeResult[cbOutCardType].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[cbOutCardType].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; } //出炸弹 else if (CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0) { BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; } else if (CardTypeResult[CT_MISSILE_CARD].cbCardTypeCount > 0) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4F ; OutCardResult.cbResultCard[1] = 0x4E ; } } } //出牌次数 if (m_wBankerUser == wMeChairID && OutCardResult.cbCardCount > 0) ++m_lBankerOutCardCount ; return true ; } //分析炸弹 void CGameLogic::GetAllBomCard(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE cbBomCardData[], BYTE &cbBomCardCount) { BYTE cbTmpCardData[MAX_COUNT] ; CopyMemory(cbTmpCardData, cbHandCardData, cbHandCardCount) ; //大小排序 SortCardList(cbTmpCardData, cbHandCardCount, ST_ORDER); cbBomCardCount = 0 ; if(cbHandCardCount<2) return ; //双王炸弹 if(0x4F==cbTmpCardData[0] && 0x4E==cbTmpCardData[1]) { cbBomCardData[cbBomCardCount++] = cbTmpCardData[0] ; cbBomCardData[cbBomCardCount++] = cbTmpCardData[1] ; } //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCardData[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCardData[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(4==cbSameCount) { cbBomCardData[cbBomCardCount++] = cbTmpCardData[i] ; cbBomCardData[cbBomCardCount++] = cbTmpCardData[i+1] ; cbBomCardData[cbBomCardCount++] = cbTmpCardData[i+2] ; cbBomCardData[cbBomCardCount++] = cbTmpCardData[i+3] ; } //设置索引 i+=cbSameCount-1; } } //分析顺子 void CGameLogic::GetAllLineCard(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE cbLineCardData[], BYTE &cbLineCardCount) { BYTE cbTmpCard[MAX_COUNT] ; CopyMemory(cbTmpCard, cbHandCardData, cbHandCardCount) ; //大小排序 SortCardList(cbTmpCard, cbHandCardCount, ST_ORDER) ; cbLineCardCount = 0 ; //数据校验 if(cbHandCardCount<5) return ; BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) {cbFirstCard = i ; break ;} BYTE cbSingleLineCard[12] ; BYTE cbSingleLineCount=0 ; BYTE cbLeftCardCount = cbHandCardCount ; bool bFindSingleLine = true ; //连牌判断 while (cbLeftCardCount>=5 && bFindSingleLine) { cbSingleLineCount=1 ; bFindSingleLine = false ; BYTE cbLastCard = cbTmpCard[cbFirstCard] ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCard[cbFirstCard] ; for (BYTE i=cbFirstCard+1; i<cbLeftCardCount; i++) { BYTE cbCardData=cbTmpCard[i]; //连续判断 if (1!=(GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbCardData)) && GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbTmpCard[i] ; if(cbSingleLineCount<5) { cbSingleLineCount = 1 ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCard[i] ; continue ; } else break ; } //同牌判断 else if(GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbCardData ; cbSingleLineCard[cbSingleLineCount] = cbCardData ; ++cbSingleLineCount ; } } //保存数据 if(cbSingleLineCount>=5) { if(!RemoveCard(cbSingleLineCard, cbSingleLineCount, cbTmpCard, cbLeftCardCount)) return; memcpy(cbLineCardData+cbLineCardCount , cbSingleLineCard, sizeof(BYTE)*cbSingleLineCount) ; cbLineCardCount += cbSingleLineCount ; cbLeftCardCount -= cbSingleLineCount ; bFindSingleLine = true ; } } } //分析三条 void CGameLogic::GetAllThreeCard(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE cbThreeCardData[], BYTE &cbThreeCardCount) { BYTE cbTmpCardData[MAX_COUNT] ; CopyMemory(cbTmpCardData, cbHandCardData, cbHandCardCount) ; //大小排序 SortCardList(cbTmpCardData, cbHandCardCount, ST_ORDER); cbThreeCardCount = 0 ; //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCardData[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCardData[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(cbSameCount>=3) { cbThreeCardData[cbThreeCardCount++] = cbTmpCardData[i] ; cbThreeCardData[cbThreeCardCount++] = cbTmpCardData[i+1] ; cbThreeCardData[cbThreeCardCount++] = cbTmpCardData[i+2] ; } //设置索引 i+=cbSameCount-1; } } //分析对子 void CGameLogic::GetAllDoubleCard(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE cbDoubleCardData[], BYTE &cbDoubleCardCount) { BYTE cbTmpCardData[MAX_COUNT] ; CopyMemory(cbTmpCardData, cbHandCardData, cbHandCardCount) ; //大小排序 SortCardList(cbTmpCardData, cbHandCardCount, ST_ORDER); cbDoubleCardCount = 0 ; //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCardData[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCardData[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(cbSameCount>=2) { cbDoubleCardData[cbDoubleCardCount++] = cbTmpCardData[i] ; cbDoubleCardData[cbDoubleCardCount++] = cbTmpCardData[i+1] ; } //设置索引 i+=cbSameCount-1; } } //分析单牌 void CGameLogic::GetAllSingleCard(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE cbSingleCardData[], BYTE &cbSingleCardCount) { cbSingleCardCount =0 ; BYTE cbTmpCardData[MAX_COUNT] ; CopyMemory(cbTmpCardData, cbHandCardData, cbHandCardCount) ; //大小排序 SortCardList(cbTmpCardData, cbHandCardCount, ST_ORDER); //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCardData[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCardData[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(cbSameCount==1) { cbSingleCardData[cbSingleCardCount++] = cbTmpCardData[i] ; } //设置索引 i+=cbSameCount-1; } } //分析出牌 void CGameLogic::AnalyseOutCardType(BYTE const cbHandCardData[], BYTE const cbHandCardCount, tagOutCardTypeResult CardTypeResult[12+1]) { ZeroMemory(CardTypeResult, sizeof(CardTypeResult[0])*12) ; BYTE cbTmpCardData[MAX_COUNT] ; //保留扑克,防止分析时改变扑克 BYTE cbReserveCardData[MAX_COUNT] ; CopyMemory(cbReserveCardData, cbHandCardData, cbHandCardCount) ; SortCardList(cbReserveCardData, cbHandCardCount, ST_ORDER) ; CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; //单牌类型 for(BYTE i=0; i<cbHandCardCount; ++i) { BYTE Index = CardTypeResult[CT_SINGLE].cbCardTypeCount ; CardTypeResult[CT_SINGLE].cbCardType = CT_SINGLE ; CardTypeResult[CT_SINGLE].cbCardData[Index][0] = cbTmpCardData[i] ; CardTypeResult[CT_SINGLE].cbEachHandCardCount[Index] = 1 ; CardTypeResult[CT_SINGLE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_SINGLE].cbCardTypeCount<MAX_TYPE_COUNT) ; } //对牌类型 { BYTE cbDoubleCardData[MAX_COUNT] ; BYTE cbDoubleCardcount=0; GetAllDoubleCard(cbTmpCardData, cbHandCardCount, cbDoubleCardData, cbDoubleCardcount) ; for(BYTE i=0; i<cbDoubleCardcount; i+=2) { BYTE Index = CardTypeResult[CT_DOUBLE].cbCardTypeCount ; CardTypeResult[CT_DOUBLE].cbCardType = CT_DOUBLE ; CardTypeResult[CT_DOUBLE].cbCardData[Index][0] = cbDoubleCardData[i] ; CardTypeResult[CT_DOUBLE].cbCardData[Index][1] = cbDoubleCardData[i+1] ; CardTypeResult[CT_DOUBLE].cbEachHandCardCount[Index] = 2 ; CardTypeResult[CT_DOUBLE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_DOUBLE].cbCardTypeCount<MAX_TYPE_COUNT) ; } } //三条类型 { BYTE cbThreeCardData[MAX_COUNT]; BYTE cbThreeCardCount=0 ; GetAllThreeCard(cbTmpCardData, cbHandCardCount, cbThreeCardData, cbThreeCardCount) ; for(BYTE i=0; i<cbThreeCardCount; i+=3) { BYTE Index = CardTypeResult[CT_THREE].cbCardTypeCount ; CardTypeResult[CT_THREE].cbCardType = CT_THREE ; CardTypeResult[CT_THREE].cbCardData[Index][0] = cbThreeCardData[i] ; CardTypeResult[CT_THREE].cbCardData[Index][1] = cbThreeCardData[i+1] ; CardTypeResult[CT_THREE].cbCardData[Index][2] = cbThreeCardData[i+2] ; CardTypeResult[CT_THREE].cbEachHandCardCount[Index] = 3 ; CardTypeResult[CT_THREE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_THREE].cbCardTypeCount<MAX_TYPE_COUNT) ; } } //炸弹类型 { BYTE cbFourCardData[MAX_COUNT]; BYTE cbFourCardCount=0 ; if(cbHandCardCount>=2 && 0x4F==cbTmpCardData[0] && 0x4E==cbTmpCardData[1]) { BYTE Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount ; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][0] = cbTmpCardData[0] ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][1] = cbTmpCardData[1] ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 2 ; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++ ; GetAllBomCard(cbTmpCardData+2, cbHandCardCount-2, cbFourCardData, cbFourCardCount) ; } else GetAllBomCard(cbTmpCardData, cbHandCardCount, cbFourCardData, cbFourCardCount) ; for (BYTE i=0; i<cbFourCardCount; i+=4) { BYTE Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount ; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][0] = cbFourCardData[i] ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][1] = cbFourCardData[i+1] ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][2] = cbFourCardData[i+2] ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][3] = cbFourCardData[i+3] ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 4 ; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount<MAX_TYPE_COUNT) ; } } //单连类型 { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) { if(GetCardLogicValue(cbTmpCardData[i])<15) { cbFirstCard = i ; break ; } } BYTE cbSingleLineCard[12] ; BYTE cbSingleLineCount=1 ; BYTE cbLeftCardCount = cbHandCardCount ; bool bFindSingleLine = true ; //连牌判断 while (cbLeftCardCount>=5 && bFindSingleLine) { cbSingleLineCount=1 ; bFindSingleLine = false ; BYTE cbLastCard = cbTmpCardData[cbFirstCard] ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCardData[cbFirstCard] ; for (BYTE i=cbFirstCard+1; i<cbLeftCardCount; i++) { BYTE cbCardData=cbTmpCardData[i]; //连续判断 if (1!=(GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbCardData)) && GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbTmpCardData[i] ; //是否合法 if(cbSingleLineCount<5) { cbSingleLineCount = 1 ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCardData[i] ; continue ; } else break ; } //同牌判断 else if(GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbCardData ; cbSingleLineCard[cbSingleLineCount] = cbCardData ; ++cbSingleLineCount ; } } BYTE cbTempCard[20]={0}; CopyMemory(cbTempCard,cbSingleLineCard,sizeof(BYTE)*cbSingleLineCount); SortCardList(cbTempCard, cbSingleLineCount, ST_ORDER); //保存数据 if(cbSingleLineCount>=5 && GetCardType(cbTempCard,cbSingleLineCount)==CT_SINGLE_LINE) { BYTE Index ; //所有连牌 int nStart = 0 ; //从大到小 nStart = cbSingleLineCount - 5 ; while ( 0 < nStart ) { Index = CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount ; BYTE cbThisLineCount = cbSingleLineCount-nStart ; CardTypeResult[CT_SINGLE_LINE].cbCardType = CT_SINGLE_LINE ; CopyMemory(CardTypeResult[CT_SINGLE_LINE].cbCardData[Index], cbSingleLineCard, sizeof(BYTE)*(cbThisLineCount)); CardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[Index] = cbThisLineCount; CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount<MAX_TYPE_COUNT) ; nStart-- ; } //从小到大 nStart = cbSingleLineCount - 5; while ( 0 <= nStart ) { Index = CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount ; BYTE cbThisLineCount = cbSingleLineCount-nStart ; CardTypeResult[CT_SINGLE_LINE].cbCardType = CT_SINGLE_LINE ; CopyMemory(CardTypeResult[CT_SINGLE_LINE].cbCardData[Index], cbSingleLineCard+nStart, sizeof(BYTE)*(cbThisLineCount)); CardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[Index] = cbThisLineCount; CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount<MAX_TYPE_COUNT) ; nStart-- ; } if(RemoveCard(cbSingleLineCard, cbSingleLineCount, cbTmpCardData, cbLeftCardCount)==true) { cbLeftCardCount -= cbSingleLineCount ; bFindSingleLine = true ; } } } } //对连类型 { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; //连牌判断 BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCardData[i])<15) {cbFirstCard = i ; break ;} BYTE cbLeftCardCount = cbHandCardCount-cbFirstCard ; bool bFindDoubleLine = true ; BYTE cbDoubleLineCount = 0 ; BYTE cbDoubleLineCard[24] ; //开始判断 while (cbLeftCardCount>=6 && bFindDoubleLine) { BYTE cbLastCard = cbTmpCardData[cbFirstCard] ; BYTE cbSameCount = 1 ; cbDoubleLineCount = 0 ; bFindDoubleLine=false ; for(BYTE i=cbFirstCard+1 ; i<cbLeftCardCount+cbFirstCard ; ++i) { //搜索同牌 while (GetCardLogicValue(cbLastCard)==GetCardLogicValue(cbTmpCardData[i]) && i<cbLeftCardCount+cbFirstCard) { ++cbSameCount; ++i ; } BYTE cbLastDoubleCardValue ; if(cbDoubleLineCount>0) cbLastDoubleCardValue = GetCardLogicValue(cbDoubleLineCard[cbDoubleLineCount-1]) ; //重新开始 if((cbSameCount<2 || (cbDoubleLineCount>0 && (cbLastDoubleCardValue-GetCardLogicValue(cbLastCard))!=1)) && i<=cbLeftCardCount+cbFirstCard) { if(cbDoubleLineCount>=6) break ; //回退 if(cbSameCount>=2) i-=cbSameCount ; cbLastCard = cbTmpCardData[i] ; cbDoubleLineCount = 0 ; } //保存数据 else if(cbSameCount>=2) { cbDoubleLineCard[cbDoubleLineCount] = cbTmpCardData[i-cbSameCount] ; cbDoubleLineCard[cbDoubleLineCount+1] = cbTmpCardData[i-cbSameCount+1] ; cbDoubleLineCount += 2 ; //结尾判断 if(i==(cbLeftCardCount+cbFirstCard-2)) if((GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbTmpCardData[i]))==1 && (GetCardLogicValue(cbTmpCardData[i])==GetCardLogicValue(cbTmpCardData[i+1]))) { cbDoubleLineCard[cbDoubleLineCount] = cbTmpCardData[i] ; cbDoubleLineCard[cbDoubleLineCount+1] = cbTmpCardData[i+1] ; cbDoubleLineCount += 2 ; break ; } } cbLastCard = cbTmpCardData[i] ; cbSameCount = 1 ; } BYTE cbTempCard[20]={0}; CopyMemory(cbTempCard,cbDoubleLineCard,sizeof(BYTE)*cbDoubleLineCount); SortCardList(cbTempCard, cbDoubleLineCount, ST_ORDER); //保存数据 if(cbDoubleLineCount>=6 && GetCardType(cbTempCard,cbDoubleLineCount)==CT_DOUBLE_LINE) { BYTE Index ; //所有连牌 BYTE cbCurrentDoubleLineCount = 6 ; while ( cbCurrentDoubleLineCount < cbDoubleLineCount ) { Index = CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount ; CardTypeResult[CT_DOUBLE_LINE].cbCardType = CT_DOUBLE_LINE ; CopyMemory(CardTypeResult[CT_DOUBLE_LINE].cbCardData[Index], cbDoubleLineCard, sizeof(BYTE)*cbCurrentDoubleLineCount); CardTypeResult[CT_DOUBLE_LINE].cbEachHandCardCount[Index] = cbCurrentDoubleLineCount; CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount++ ; cbCurrentDoubleLineCount += 2 ; ASSERT(CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount<MAX_TYPE_COUNT) ; } //从小到大 if ( cbDoubleLineCount >= 6 ) { //所有连牌 int cbLeftLen = cbDoubleLineCount - 6 ; while ( cbLeftLen >= 0 ) { Index = CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount ; CardTypeResult[CT_DOUBLE_LINE].cbCardType = CT_DOUBLE_LINE ; CopyMemory(CardTypeResult[CT_DOUBLE_LINE].cbCardData[Index], cbDoubleLineCard + cbLeftLen, sizeof( BYTE ) * ( cbDoubleLineCount - cbLeftLen )); CardTypeResult[CT_DOUBLE_LINE].cbEachHandCardCount[Index] = cbDoubleLineCount - cbLeftLen; CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount++ ; cbLeftLen -= 2 ; ASSERT(CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount<MAX_TYPE_COUNT) ; } } if(RemoveCard(cbDoubleLineCard, cbDoubleLineCount, cbTmpCardData, cbFirstCard+cbLeftCardCount)==true) { bFindDoubleLine=true ; cbLeftCardCount -= cbDoubleLineCount ; } } } } //三连类型 { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; //连牌判断 BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCardData[i])<15) {cbFirstCard = i ; break ;} BYTE cbLeftCardCount = cbHandCardCount-cbFirstCard ; bool bFindThreeLine = true ; BYTE cbThreeLineCount = 0 ; BYTE cbThreeLineCard[MAX_COUNT] ; //开始判断 while (cbLeftCardCount>=6 && bFindThreeLine) { BYTE cbLastCard = cbTmpCardData[cbFirstCard] ; BYTE cbSameCount = 1 ; cbThreeLineCount = 0 ; bFindThreeLine = false ; for(BYTE i=cbFirstCard+1 ; i<cbLeftCardCount+cbFirstCard ; ++i) { //搜索同牌 while (GetCardLogicValue(cbLastCard)==GetCardLogicValue(cbTmpCardData[i]) && i<cbLeftCardCount+cbFirstCard) { ++cbSameCount; ++i ; } BYTE cbLastThreeCardValue ; if(cbThreeLineCount>0) cbLastThreeCardValue = GetCardLogicValue(cbThreeLineCard[cbThreeLineCount-1]) ; //重新开始 if((cbSameCount<3 || (cbThreeLineCount>0&&(cbLastThreeCardValue-GetCardLogicValue(cbLastCard))!=1)) && i<=cbLeftCardCount+cbFirstCard) { if(cbThreeLineCount>=6) break ; if(cbSameCount>=3) i-=cbSameCount ; cbLastCard = cbTmpCardData[i] ; cbThreeLineCount = 0 ; } //保存数据 else if(cbSameCount>=3) { cbThreeLineCard[cbThreeLineCount] = cbTmpCardData[i-cbSameCount] ; cbThreeLineCard[cbThreeLineCount+1] = cbTmpCardData[i-cbSameCount+1] ; cbThreeLineCard[cbThreeLineCount+2] = cbTmpCardData[i-cbSameCount+2] ; cbThreeLineCount += 3 ; //结尾判断 if(i==(cbLeftCardCount+cbFirstCard-3)) if((GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbTmpCardData[i]))==1 && (GetCardLogicValue(cbTmpCardData[i])==GetCardLogicValue(cbTmpCardData[i+1])) && (GetCardLogicValue(cbTmpCardData[i])==GetCardLogicValue(cbTmpCardData[i+2]))) { cbThreeLineCard[cbThreeLineCount] = cbTmpCardData[i] ; cbThreeLineCard[cbThreeLineCount+1] = cbTmpCardData[i+1] ; cbThreeLineCard[cbThreeLineCount+2] = cbTmpCardData[i+2] ; cbThreeLineCount += 3 ; break ; } } cbLastCard = cbTmpCardData[i] ; cbSameCount = 1 ; } BYTE cbTempCard[20]={0}; CopyMemory(cbTempCard,cbThreeLineCard,sizeof(BYTE)*cbThreeLineCount); SortCardList(cbTempCard, cbThreeLineCount, ST_ORDER); //保存数据 if(cbThreeLineCount>=6 && GetCardType(cbTempCard,cbThreeLineCount)==CT_THREE_LINE) { BYTE Index ; Index = CardTypeResult[CT_THREE_LINE].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE].cbCardType = CT_THREE_LINE ; CopyMemory(CardTypeResult[CT_THREE_LINE].cbCardData[Index], cbThreeLineCard, sizeof(BYTE)*cbThreeLineCount); CardTypeResult[CT_THREE_LINE].cbEachHandCardCount[Index] = cbThreeLineCount; CardTypeResult[CT_THREE_LINE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_THREE_LINE].cbCardTypeCount<MAX_TYPE_COUNT) ; if(RemoveCard(cbThreeLineCard, cbThreeLineCount, cbTmpCardData, cbFirstCard+cbLeftCardCount) ==true) { bFindThreeLine=true ; cbLeftCardCount -= cbThreeLineCount ; } } } } //三带一单 { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; BYTE cbHandThreeCard[MAX_COUNT]; BYTE cbHandThreeCount=0 ; //移除炸弹 BYTE cbAllBomCardData[MAX_COUNT] ; BYTE cbAllBomCardCount=0 ; GetAllBomCard(cbTmpCardData, cbHandCardCount, cbAllBomCardData, cbAllBomCardCount) ; RemoveCard(cbAllBomCardData, cbAllBomCardCount, cbTmpCardData, cbHandCardCount) ; GetAllThreeCard(cbTmpCardData, cbHandCardCount-cbAllBomCardCount, cbHandThreeCard, cbHandThreeCount) ; { BYTE Index ; //去掉三条 BYTE cbRemainCardData[MAX_COUNT] ; CopyMemory(cbRemainCardData, cbTmpCardData, cbHandCardCount-cbAllBomCardCount) ; BYTE cbRemainCardCount=cbHandCardCount-cbAllBomCardCount-cbHandThreeCount ; RemoveCard(cbHandThreeCard, cbHandThreeCount, cbRemainCardData, cbHandCardCount-cbAllBomCardCount) ; //三条带一张 for(BYTE i=0; i<cbHandThreeCount; i+=3) { //三条带一张 for(BYTE j=0; j<cbRemainCardCount; ++j) { BYTE cbTempCard[4]={0}; cbTempCard[0]=cbHandThreeCard[i]; cbTempCard[1]=cbHandThreeCard[i+1]; cbTempCard[2]=cbHandThreeCard[i+2]; cbTempCard[3]=cbRemainCardData[j]; if(GetCardType(cbTempCard,4)==CT_THREE_LINE_TAKE_ONE) { Index = CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardType = CT_THREE_LINE_TAKE_ONE ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index][0] = cbHandThreeCard[i] ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index][1] = cbHandThreeCard[i+1] ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index][2] = cbHandThreeCard[i+2] ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index][3] = cbRemainCardData[j] ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbEachHandCardCount[Index] = 4 ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount++ ; } } } } } //三连带单 // BYTE cbLeftThreeCardCount=cbHandThreeCount ; // bool bFindThreeLine=true ; // BYTE cbLastIndex=0 ; // if(GetCardLogicValue(cbHandThreeCard[0])==15) cbLastIndex=3 ; // while (cbLeftThreeCardCount>=6 && bFindThreeLine) // { // BYTE cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[cbLastIndex]); // BYTE cbThreeLineCard[MAX_COUNT]; // BYTE cbThreeLineCardCount=3; // cbThreeLineCard[0]=cbHandThreeCard[cbLastIndex]; // cbThreeLineCard[1]=cbHandThreeCard[cbLastIndex+1]; // cbThreeLineCard[2]=cbHandThreeCard[cbLastIndex+2]; // bFindThreeLine = false ; // for(BYTE j=3+cbLastIndex; j<cbLeftThreeCardCount; j+=3) // { // //连续判断 // if(1!=(cbLastLogicCard-(GetCardLogicValue(cbHandThreeCard[j])))) // { // cbLastIndex = j ; // if(cbLeftThreeCardCount-j>=6) bFindThreeLine = true ; // break; // } // cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[j]); // cbThreeLineCard[cbThreeLineCardCount]=cbHandThreeCard[j]; // cbThreeLineCard[cbThreeLineCardCount+1]=cbHandThreeCard[j+1]; // cbThreeLineCard[cbThreeLineCardCount+2]=cbHandThreeCard[j+2]; // cbThreeLineCardCount += 3; // } // if(cbThreeLineCardCount>3) // { // BYTE Index ; // BYTE cbRemainCard[MAX_COUNT]; // BYTE cbRemainCardCount=cbHandCardCount-cbAllBomCardCount-cbHandThreeCount ; // //移除三条(还应该移除炸弹王等) // CopyMemory(cbRemainCard, cbTmpCardData, (cbHandCardCount-cbAllBomCardCount)*sizeof(BYTE)); // RemoveCard(cbHandThreeCard, cbHandThreeCount, cbRemainCard, cbHandCardCount-cbAllBomCardCount) ; // for(BYTE start=0; start<cbThreeLineCardCount-3; start+=3) // { // //本顺数目 // BYTE cbThisTreeLineCardCount = cbThreeLineCardCount-start ; // //单牌个数 // BYTE cbSingleCardCount=(cbThisTreeLineCardCount)/3; // //单牌不够 // if(cbRemainCardCount<cbSingleCardCount) continue ; // //单牌组合 // BYTE cbComCard[5]; // BYTE cbComResCard[254][5] ; // BYTE cbComResLen=0 ; // Combination(cbComCard, 0, cbComResCard, cbComResLen, cbRemainCard, cbSingleCardCount, cbRemainCardCount, cbSingleCardCount); // for(BYTE i=0; i<cbComResLen; ++i) // { // Index = CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount ; // CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardType = CT_THREE_LINE_TAKE_ONE ; // //保存三条 // CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index], cbThreeLineCard+start, sizeof(BYTE)*cbThisTreeLineCardCount); // //保存单牌 // CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index]+cbThisTreeLineCardCount, cbComResCard[i], cbSingleCardCount) ; // CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbEachHandCardCount[Index] = cbThisTreeLineCardCount+cbSingleCardCount ; // CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount++ ; // ASSERT(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount<MAX_TYPE_COUNT) ; // } // } // //移除三连 // if(RemoveCard(cbThreeLineCard, cbThreeLineCardCount, cbHandThreeCard, cbLeftThreeCardCount)==true) // { // bFindThreeLine = true ; // cbLeftThreeCardCount -= cbThreeLineCardCount ; // } // } // } //} //三带一对 //{ //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; BYTE cbHandThreeCard[MAX_COUNT]; BYTE cbHandThreeCount=0 ; BYTE cbRemainCarData[MAX_COUNT] ; BYTE cbRemainCardCount=0 ; //抽取三条 GetAllThreeCard(cbTmpCardData, cbHandCardCount, cbHandThreeCard, cbHandThreeCount) ; //移除三条(还应该移除炸弹王等) CopyMemory(cbRemainCarData, cbTmpCardData, cbHandCardCount) ; RemoveCard(cbHandThreeCard, cbHandThreeCount, cbRemainCarData, cbHandCardCount); cbRemainCardCount = cbHandCardCount-cbHandThreeCount ; //抽取对牌 BYTE cbAllDoubleCardData[MAX_COUNT] ; BYTE cbAllDoubleCardCount=0 ; GetAllDoubleCard(cbRemainCarData, cbRemainCardCount, cbAllDoubleCardData, cbAllDoubleCardCount) ; //三条带一对 for(BYTE i=0; i<cbHandThreeCount; i+=3) { BYTE Index ; //三条带一张 for(BYTE j=0; j<cbAllDoubleCardCount; j+=2) { BYTE cbTempCard[5]={0}; cbTempCard[0]=cbHandThreeCard[i]; cbTempCard[1]=cbHandThreeCard[i+1]; cbTempCard[2]=cbHandThreeCard[i+2]; cbTempCard[3]=cbAllDoubleCardData[j]; cbTempCard[4]=cbAllDoubleCardData[j+1]; if(GetCardType(cbTempCard,5)==CT_THREE_LINE_TAKE_TWO) { Index = CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardType = CT_THREE_LINE_TAKE_TWO ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][0] = cbHandThreeCard[i] ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][1] = cbHandThreeCard[i+1] ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][2] = cbHandThreeCard[i+2] ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][3] = cbAllDoubleCardData[j] ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][4] = cbAllDoubleCardData[j+1] ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbEachHandCardCount[Index] = 5 ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount++ ; } } } // //三连带对 // BYTE cbLeftThreeCardCount=cbHandThreeCount ; // bool bFindThreeLine=true ; // BYTE cbLastIndex=0 ; // if(GetCardLogicValue(cbHandThreeCard[0])==15) cbLastIndex=3 ; // while (cbLeftThreeCardCount>=6 && bFindThreeLine) // { // BYTE cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[cbLastIndex]); // BYTE cbThreeLineCard[MAX_COUNT]; // BYTE cbThreeLineCardCount=3; // cbThreeLineCard[0]=cbHandThreeCard[cbLastIndex]; // cbThreeLineCard[1]=cbHandThreeCard[cbLastIndex+1]; // cbThreeLineCard[2]=cbHandThreeCard[cbLastIndex+2]; // bFindThreeLine=false ; // for(BYTE j=3+cbLastIndex; j<cbLeftThreeCardCount; j+=3) // { // //连续判断 // if(1!=(cbLastLogicCard-(GetCardLogicValue(cbHandThreeCard[j])))) // { // cbLastIndex = j ; // if(cbLeftThreeCardCount-j>=6) bFindThreeLine = true ; // break; // } // cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[j]); // cbThreeLineCard[cbThreeLineCardCount]=cbHandThreeCard[j]; // cbThreeLineCard[cbThreeLineCardCount+1]=cbHandThreeCard[j+1]; // cbThreeLineCard[cbThreeLineCardCount+2]=cbHandThreeCard[j+2]; // cbThreeLineCardCount += 3; // } // if(cbThreeLineCardCount>3) // { // BYTE Index ; // for(BYTE start=0; start<cbThreeLineCardCount-3; start+=3) // { // //本顺数目 // BYTE cbThisTreeLineCardCount = cbThreeLineCardCount-start ; // //对牌张数 // BYTE cbDoubleCardCount=((cbThisTreeLineCardCount)/3); // //对牌不够 // if(cbRemainCardCount<cbDoubleCardCount) continue ; // BYTE cbDoubleCardIndex[10]; //对牌下标 // for(BYTE i=0, j=0; i<cbAllDoubleCardCount; i+=2, ++j) // cbDoubleCardIndex[j]=i ; // //对牌组合 // BYTE cbComCard[5]; // BYTE cbComResCard[254][5] ; // BYTE cbComResLen=0 ; // //利用对牌的下标做组合,再根据下标提取出对牌 // Combination(cbComCard, 0, cbComResCard, cbComResLen, cbDoubleCardIndex, cbDoubleCardCount, cbAllDoubleCardCount/2, cbDoubleCardCount); // ASSERT(cbComResLen<=254) ; // for(BYTE i=0; i<cbComResLen; ++i) // { // Index = CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount ; // CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardType = CT_THREE_LINE_TAKE_TWO ; // //保存三条 // CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index], cbThreeLineCard+start, sizeof(BYTE)*cbThisTreeLineCardCount); // //保存对牌 // for(BYTE j=0, k=0; j<cbDoubleCardCount; ++j, k+=2) // { // CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][cbThisTreeLineCardCount+k] = cbAllDoubleCardData[cbComResCard[i][j]]; // CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][cbThisTreeLineCardCount+k+1] = cbAllDoubleCardData[cbComResCard[i][j]+1]; // } // CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbEachHandCardCount[Index] = cbThisTreeLineCardCount+2*cbDoubleCardCount ; // CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount++ ; // ASSERT(CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount<MAX_TYPE_COUNT) ; // } // } // //移除三连 // if(RemoveCard(cbThreeLineCard, cbThreeLineCardCount, cbHandThreeCard, cbLeftThreeCardCount)==true) // { // bFindThreeLine = true ; // cbLeftThreeCardCount -= cbThreeLineCardCount ; // } // } // } //} //四带两单 /* { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; BYTE cbFirstCard = 0 ; //去除王牌 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardColor(cbTmpCardData[i])!=0x40) {cbFirstCard = i ; break ;} BYTE cbHandAllFourCardData[MAX_COUNT] ; BYTE cbHandAllFourCardCount=0; //抽取四张 GetAllBomCard(cbTmpCardData+cbFirstCard, cbHandCardCount-cbFirstCard, cbHandAllFourCardData, cbHandAllFourCardCount) ; //移除四条 BYTE cbRemainCard[MAX_COUNT]; BYTE cbRemainCardCount=cbHandCardCount-cbHandAllFourCardCount ; CopyMemory(cbRemainCard, cbTmpCardData, cbHandCardCount*sizeof(BYTE)); RemoveCard(cbHandAllFourCardData, cbHandAllFourCardCount, cbRemainCard, cbHandCardCount) ; for(BYTE Start=0; Start<cbHandAllFourCardCount; Start += 4) { BYTE Index ; //单牌组合 BYTE cbComCard[5]; BYTE cbComResCard[254][5] ; BYTE cbComResLen=0 ; //单牌组合 Combination(cbComCard, 0, cbComResCard, cbComResLen, cbRemainCard, 2, cbRemainCardCount, 2); for(BYTE i=0; i<cbComResLen; ++i) { //不能带对 if(GetCardValue(cbComResCard[i][0])==GetCardValue(cbComResCard[i][1])) continue ; Index=CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardType = CT_FOUR_LINE_TAKE_ONE ; CopyMemory(CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index], cbHandAllFourCardData+Start, 4) ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index][4] = cbComResCard[i][0] ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index][4+1] = cbComResCard[i][1] ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbEachHandCardCount[Index] = 6 ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount<MAX_TYPE_COUNT) ; } } }*/ //四带两对 /* { //恢复扑克,防止分析时改变扑克 CopyMemory(cbTmpCardData, cbReserveCardData, cbHandCardCount) ; BYTE cbFirstCard = 0 ; //去除王牌 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardColor(cbTmpCardData[i])!=0x40) {cbFirstCard = i ; break ;} BYTE cbHandAllFourCardData[MAX_COUNT] ; BYTE cbHandAllFourCardCount=0; //抽取四张 GetAllBomCard(cbTmpCardData+cbFirstCard, cbHandCardCount-cbFirstCard, cbHandAllFourCardData, cbHandAllFourCardCount) ; //移除四条 BYTE cbRemainCard[MAX_COUNT]; BYTE cbRemainCardCount=cbHandCardCount-cbHandAllFourCardCount ; CopyMemory(cbRemainCard, cbTmpCardData, cbHandCardCount*sizeof(BYTE)); RemoveCard(cbHandAllFourCardData, cbHandAllFourCardCount, cbRemainCard, cbHandCardCount) ; for(BYTE Start=0; Start<cbHandAllFourCardCount; Start += 4) { //抽取对牌 BYTE cbAllDoubleCardData[MAX_COUNT] ; BYTE cbAllDoubleCardCount=0 ; GetAllDoubleCard(cbRemainCard, cbRemainCardCount, cbAllDoubleCardData, cbAllDoubleCardCount) ; BYTE cbDoubleCardIndex[10]; //对牌下标 for(BYTE i=0, j=0; i<cbAllDoubleCardCount; i+=2, ++j) cbDoubleCardIndex[j]=i ; //对牌组合 BYTE cbComCard[5]; BYTE cbComResCard[255][5] ; BYTE cbComResLen=0 ; //利用对牌的下标做组合,再根据下标提取出对牌 Combination(cbComCard, 0, cbComResCard, cbComResLen, cbDoubleCardIndex, 2, cbAllDoubleCardCount/2, 2); for(BYTE i=0; i<cbComResLen; ++i) { BYTE Index = CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount ; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardType = CT_FOUR_LINE_TAKE_TWO ; CopyMemory(CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index], cbHandAllFourCardData+Start, 4) ; //保存对牌 for(BYTE j=0, k=0; j<4; ++j, k+=2) { CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index][4+k] = cbAllDoubleCardData[cbComResCard[i][j]]; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index][4+k+1] = cbAllDoubleCardData[cbComResCard[i][j]+1]; } CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbEachHandCardCount[Index] = 8 ; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount<MAX_TYPE_COUNT) ; } } }*/ } //分析牌型 void CGameLogic::AnalyseOutCardType(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE const cbTurnCardData[], BYTE const cbTurnCardCount,tagOutCardTypeResult CardTypeResult[12+1]) { ZeroMemory(CardTypeResult, sizeof(CardTypeResult[0])*12) ; BYTE cbTmpCard[MAX_COUNT]; CopyMemory(cbTmpCard, cbHandCardData, cbHandCardCount) ; BYTE cbTmpTurnCard[MAX_COUNT]={0}; CopyMemory(cbTmpTurnCard, cbTurnCardData, cbTurnCardCount) ; SortCardList(cbTmpCard, cbHandCardCount, ST_ORDER) ; SortCardList(cbTmpTurnCard, cbTurnCardCount, ST_ORDER) ; BYTE cbTurnCardType = GetCardType(cbTmpTurnCard, cbTurnCardCount) ; //ASSERT(cbTurnCardType!=CT_ERROR) ; if(cbTurnCardType==CT_ERROR) return ; if(cbTurnCardType!=CT_MISSILE_CARD && cbTurnCardType!=CT_BOMB_CARD) { //双王炸弹 if(cbHandCardCount>=2 && 0x4F==cbTmpCard[0] && 0x4E==cbTmpCard[1]) { BYTE Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][0] = cbTmpCard[0] ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][1] = cbTmpCard[1] ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 2 ; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++; BYTE cbBomCardData[MAX_COUNT]; BYTE cbBomCardCount=0; GetAllBomCard(cbTmpCard+2, cbHandCardCount-2, cbBomCardData, cbBomCardCount) ; for(BYTE i=0; i<cbBomCardCount/4; ++i) { Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CopyMemory(CardTypeResult[CT_BOMB_CARD].cbCardData[Index], cbBomCardData+4*i, 4) ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 4; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++; ASSERT(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } //炸弹牌型 else { BYTE cbBomCardData[MAX_COUNT]; BYTE cbBomCardCount=0; GetAllBomCard(cbTmpCard, cbHandCardCount, cbBomCardData, cbBomCardCount) ; for(BYTE i=0; i<cbBomCardCount/4; ++i) { BYTE Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CopyMemory(CardTypeResult[CT_BOMB_CARD].cbCardData[Index], cbBomCardData+4*i, 4) ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 4; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++; ASSERT(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } } switch(cbTurnCardType) { case CT_SINGLE: //单牌类型 { for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbTmpCard[i])>GetCardLogicValue(cbTmpTurnCard[0])) { BYTE Index = CardTypeResult[CT_SINGLE].cbCardTypeCount ; CardTypeResult[CT_SINGLE].cbCardType = CT_SINGLE ; CardTypeResult[CT_SINGLE].cbCardData[Index][0] = cbTmpCard[i]; CardTypeResult[CT_SINGLE].cbEachHandCardCount[Index] = 1; CardTypeResult[CT_SINGLE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_SINGLE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } break ; } case CT_DOUBLE: //对牌类型 { //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCard[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCard[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(cbSameCount>=2 && GetCardLogicValue(cbTmpCard[i])>GetCardLogicValue(cbTmpTurnCard[0])) { BYTE Index = CardTypeResult[CT_DOUBLE].cbCardTypeCount ; CardTypeResult[CT_DOUBLE].cbCardType = CT_DOUBLE ; CardTypeResult[CT_DOUBLE].cbCardData[Index][0] = cbTmpCard[i]; CardTypeResult[CT_DOUBLE].cbCardData[Index][1] = cbTmpCard[i+1]; CardTypeResult[CT_DOUBLE].cbEachHandCardCount[Index] = 2; CardTypeResult[CT_DOUBLE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_DOUBLE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } //设置索引 i+=cbSameCount-1; } break ; } case CT_THREE: //三条类型 { //扑克分析 for (BYTE i=0;i<cbHandCardCount;i++) { //变量定义 BYTE cbSameCount=1; BYTE cbLogicValue=GetCardLogicValue(cbTmpCard[i]); //搜索同牌 for (BYTE j=i+1;j<cbHandCardCount;j++) { //获取扑克 if (GetCardLogicValue(cbTmpCard[j])!=cbLogicValue) break; //设置变量 cbSameCount++; } if(cbSameCount>=3 && GetCardLogicValue(cbTmpCard[i])>GetCardLogicValue(cbTmpTurnCard[0])) { BYTE Index = CardTypeResult[CT_THREE].cbCardTypeCount ; CardTypeResult[CT_THREE].cbCardType = CT_THREE ; CardTypeResult[CT_THREE].cbCardData[Index][0] = cbTmpCard[i]; CardTypeResult[CT_THREE].cbCardData[Index][1] = cbTmpCard[i+1]; CardTypeResult[CT_THREE].cbCardData[Index][2] = cbTmpCard[i+2]; CardTypeResult[CT_THREE].cbEachHandCardCount[Index] = 3; CardTypeResult[CT_THREE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_THREE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } //设置索引 i+=cbSameCount-1; } break ; } case CT_SINGLE_LINE: //单连类型 { BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) {cbFirstCard = i ; break ;} BYTE cbSingleLineCard[12] ; BYTE cbSingleLineCount=1 ; BYTE cbLeftCardCount = cbHandCardCount ; bool bFindSingleLine = true ; //连牌判断 while (cbLeftCardCount>=cbTurnCardCount && bFindSingleLine) { cbSingleLineCount=1 ; bFindSingleLine = false ; BYTE cbLastCard = cbTmpCard[cbFirstCard] ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCard[cbFirstCard] ; for (BYTE i=cbFirstCard+1; i<cbLeftCardCount; i++) { BYTE cbCardData=cbTmpCard[i]; //连续判断 if (1!=(GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbCardData)) && GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbTmpCard[i] ; //是否合法 if(cbSingleLineCount<cbTurnCardCount) { cbSingleLineCount = 1 ; cbSingleLineCard[cbSingleLineCount-1] = cbTmpCard[i] ; continue ; } else break ; } //同牌判断 else if(GetCardValue(cbLastCard)!=GetCardValue(cbCardData)) { cbLastCard = cbCardData ; cbSingleLineCard[cbSingleLineCount] = cbCardData ; ++cbSingleLineCount ; } } //保存数据 if(cbSingleLineCount>=cbTurnCardCount && GetCardLogicValue(cbSingleLineCard[0])>GetCardLogicValue(cbTmpTurnCard[0])) { BYTE Index ; BYTE cbStart=0 ; //所有连牌 while (GetCardLogicValue(cbSingleLineCard[cbStart])>GetCardLogicValue(cbTmpTurnCard[0]) && ((cbSingleLineCount-cbStart)>=cbTurnCardCount)) { Index = CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount ; CardTypeResult[CT_SINGLE_LINE].cbCardType = CT_SINGLE_LINE ; CopyMemory(CardTypeResult[CT_SINGLE_LINE].cbCardData[Index], cbSingleLineCard+cbStart, sizeof(BYTE)*cbTurnCardCount); CardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[Index] = cbTurnCardCount; CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount++ ; cbStart++; ASSERT(CardTypeResult[CT_SINGLE_LINE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } RemoveCard(cbSingleLineCard, cbSingleLineCount, cbTmpCard, cbLeftCardCount); cbLeftCardCount -= cbSingleLineCount ; bFindSingleLine = true ; } } break ; } case CT_DOUBLE_LINE: //对连类型 { //连牌判断 BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) {cbFirstCard = i ; break ;} BYTE cbLeftCardCount = cbHandCardCount-cbFirstCard ; bool bFindDoubleLine = true ; BYTE cbDoubleLineCount = 0 ; BYTE cbDoubleLineCard[24] ; //开始判断 while (cbLeftCardCount>=cbTurnCardCount && bFindDoubleLine) { BYTE cbLastCard = cbTmpCard[cbFirstCard] ; BYTE cbSameCount = 1 ; cbDoubleLineCount = 0 ; bFindDoubleLine=false ; for(BYTE i=cbFirstCard+1 ; i<cbLeftCardCount+cbFirstCard ; ++i) { //搜索同牌 while (GetCardValue(cbLastCard)==GetCardValue(cbTmpCard[i]) && i<cbLeftCardCount+cbFirstCard) { ++cbSameCount; ++i ; } BYTE cbLastDoubleCardValue ; if(cbDoubleLineCount>0) cbLastDoubleCardValue = GetCardLogicValue(cbDoubleLineCard[cbDoubleLineCount-1]) ; //重新开始 if((cbSameCount<2 || (cbDoubleLineCount>0 && (cbLastDoubleCardValue-GetCardLogicValue(cbLastCard))!=1)) && i<=cbLeftCardCount+cbFirstCard) { if(cbDoubleLineCount>=cbTurnCardCount) break ; if(cbSameCount>=2) i-=cbSameCount ; cbLastCard = cbTmpCard[i] ; cbDoubleLineCount = 0 ; } //保存数据 else if(cbSameCount>=2) { cbDoubleLineCard[cbDoubleLineCount] = cbTmpCard[i-cbSameCount] ; cbDoubleLineCard[cbDoubleLineCount+1] = cbTmpCard[i-cbSameCount+1] ; cbDoubleLineCount += 2 ; //结尾判断 if(i==(cbLeftCardCount+cbFirstCard-2)) if((GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbTmpCard[i]))==1 && (GetCardLogicValue(cbTmpCard[i])==GetCardLogicValue(cbTmpCard[i+1]))) { cbDoubleLineCard[cbDoubleLineCount] = cbTmpCard[i] ; cbDoubleLineCard[cbDoubleLineCount+1] = cbTmpCard[i+1] ; cbDoubleLineCount += 2 ; break ; } } cbLastCard = cbTmpCard[i] ; cbSameCount = 1 ; } //保存数据 if(cbDoubleLineCount>=cbTurnCardCount) { BYTE Index ; BYTE cbStart=0 ; //所有连牌 while (GetCardLogicValue(cbDoubleLineCard[cbStart])>GetCardLogicValue(cbTmpTurnCard[0]) && ((cbDoubleLineCount-cbStart)>=cbTurnCardCount)) { Index = CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount ; CardTypeResult[CT_DOUBLE_LINE].cbCardType = CT_DOUBLE_LINE ; CopyMemory(CardTypeResult[CT_DOUBLE_LINE].cbCardData[Index], cbDoubleLineCard+cbStart, sizeof(BYTE)*cbTurnCardCount); CardTypeResult[CT_DOUBLE_LINE].cbEachHandCardCount[Index] = cbTurnCardCount; CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount++ ; cbStart += 2; ASSERT(CardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } RemoveCard(cbDoubleLineCard, cbDoubleLineCount, cbTmpCard, cbFirstCard+cbLeftCardCount); bFindDoubleLine=true ; cbLeftCardCount -= cbDoubleLineCount ; } } break; } case CT_THREE_LINE: //三连类型 { //连牌判断 BYTE cbFirstCard = 0 ; //去除2和王 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) {cbFirstCard = i ; break ;} BYTE cbLeftCardCount = cbHandCardCount-cbFirstCard ; bool bFindThreeLine = true ; BYTE cbThreeLineCount = 0 ; BYTE cbThreeLineCard[MAX_COUNT] ; //开始判断 while (cbLeftCardCount>=cbTurnCardCount && bFindThreeLine) { BYTE cbLastCard = cbTmpCard[cbFirstCard] ; BYTE cbSameCount = 1 ; cbThreeLineCount = 0 ; bFindThreeLine = false ; for(BYTE i=cbFirstCard+1 ; i<cbLeftCardCount+cbFirstCard ; ++i) { //搜索同牌 while (GetCardValue(cbLastCard)==GetCardValue(cbTmpCard[i]) && i<cbLeftCardCount+cbFirstCard) { ++cbSameCount; ++i ; } BYTE cbLastThreeCardValue ; if(cbThreeLineCount>0) cbLastThreeCardValue = GetCardLogicValue(cbThreeLineCard[cbThreeLineCount-1]) ; //重新开始 if((cbSameCount<3 || (cbThreeLineCount>0&&(cbLastThreeCardValue-GetCardLogicValue(cbLastCard))!=1)) && i<=cbLeftCardCount+cbFirstCard) { if(cbThreeLineCount>=cbTurnCardCount) break ; if(cbSameCount>=3) i-= 3 ; cbLastCard = cbTmpCard[i] ; cbThreeLineCount = 0 ; } //保存数据 else if(cbSameCount>=3) { cbThreeLineCard[cbThreeLineCount] = cbTmpCard[i-cbSameCount] ; cbThreeLineCard[cbThreeLineCount+1] = cbTmpCard[i-cbSameCount+1] ; cbThreeLineCard[cbThreeLineCount+2] = cbTmpCard[i-cbSameCount+2] ; cbThreeLineCount += 3 ; //结尾判断 if(i==(cbLeftCardCount+cbFirstCard-3)) if((GetCardLogicValue(cbLastCard)-GetCardLogicValue(cbTmpCard[i]))==1 && (GetCardLogicValue(cbTmpCard[i])==GetCardLogicValue(cbTmpCard[i+1])) && (GetCardLogicValue(cbTmpCard[i])==GetCardLogicValue(cbTmpCard[i+2]))) { cbThreeLineCard[cbThreeLineCount] = cbTmpCard[i] ; cbThreeLineCard[cbThreeLineCount+1] = cbTmpCard[i+1] ; cbThreeLineCard[cbThreeLineCount+2] = cbTmpCard[i+2] ; cbThreeLineCount += 3 ; break ; } } cbLastCard = cbTmpCard[i] ; cbSameCount = 1 ; } //保存数据 if(cbThreeLineCount>=cbTurnCardCount) { BYTE Index ; BYTE cbStart=0 ; //所有连牌 while (GetCardLogicValue(cbThreeLineCard[cbStart])>GetCardLogicValue(cbTmpTurnCard[0]) && ((cbThreeLineCount-cbStart)>=cbTurnCardCount)) { Index = CardTypeResult[CT_THREE_LINE].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE].cbCardType = CT_THREE_LINE ; CopyMemory(CardTypeResult[CT_THREE_LINE].cbCardData[Index], cbThreeLineCard+cbStart, sizeof(BYTE)*cbTurnCardCount); CardTypeResult[CT_THREE_LINE].cbEachHandCardCount[Index] = cbTurnCardCount; CardTypeResult[CT_THREE_LINE].cbCardTypeCount++ ; cbStart += 3; ASSERT(CardTypeResult[CT_THREE_LINE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } RemoveCard(cbThreeLineCard, cbThreeLineCount, cbTmpCard, cbFirstCard+cbLeftCardCount); bFindThreeLine=true ; cbLeftCardCount -= cbThreeLineCount ; } } break; } case CT_THREE_LINE_TAKE_ONE://三带一单 { BYTE cbTurnThreeCard[MAX_COUNT]; BYTE cbTurnThreeCount=0; BYTE cbHandThreeCard[MAX_COUNT]; BYTE cbHandThreeCount=0 ; BYTE cbSingleCardCount=cbTurnCardCount/4; //移除炸弹 BYTE cbAllBomCardData[MAX_COUNT] ; BYTE cbAllBomCardCount=0 ; GetAllBomCard(cbTmpCard, cbHandCardCount, cbAllBomCardData, cbAllBomCardCount) ; RemoveCard(cbAllBomCardData, cbAllBomCardCount, cbTmpCard, cbHandCardCount); //三条扑克 GetAllThreeCard(cbTmpTurnCard, cbTurnCardCount, cbTurnThreeCard, cbTurnThreeCount) ; BYTE cbFirstCard = 0 ; //去除2和王 if(cbTurnThreeCount>3) for(BYTE i=0 ; i<cbHandCardCount-cbAllBomCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) { cbFirstCard = i ; break ; } GetAllThreeCard(cbTmpCard+cbFirstCard, cbHandCardCount-cbFirstCard-cbAllBomCardCount, cbHandThreeCard, cbHandThreeCount) ; if(cbHandThreeCount<cbTurnThreeCount || (cbHandThreeCount>0&&GetCardLogicValue(cbHandThreeCard[0])<GetCardLogicValue(cbTurnThreeCard[0]))) return ; for(BYTE i=0; i<cbHandThreeCount; i+=3) { BYTE cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[i]); BYTE cbThreeLineCard[MAX_COUNT]; BYTE cbThreeLineCardCount=3; cbThreeLineCard[0]=cbHandThreeCard[i]; cbThreeLineCard[1]=cbHandThreeCard[i+1]; cbThreeLineCard[2]=cbHandThreeCard[i+2]; for(BYTE j=i+3; j<cbHandThreeCount; j+=3) { //连续判断 if(1!=(cbLastLogicCard-(GetCardLogicValue(cbHandThreeCard[j]))) || cbThreeLineCardCount==cbTurnThreeCount) break; cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[j]); cbThreeLineCard[cbThreeLineCardCount]=cbHandThreeCard[j]; cbThreeLineCard[cbThreeLineCardCount+1]=cbHandThreeCard[j+1]; cbThreeLineCard[cbThreeLineCardCount+2]=cbHandThreeCard[j+2]; cbThreeLineCardCount += 3; } if(cbThreeLineCardCount==cbTurnThreeCount && GetCardLogicValue(cbThreeLineCard[0])>GetCardLogicValue(cbTurnThreeCard[0])) { BYTE Index ; BYTE cbRemainCard[MAX_COUNT]; CopyMemory(cbRemainCard, cbTmpCard, (cbHandCardCount-cbAllBomCardCount)*sizeof(BYTE)); RemoveCard(cbThreeLineCard, cbTurnThreeCount, cbRemainCard, (cbHandCardCount-cbAllBomCardCount)); //单牌组合 BYTE cbComCard[5]; BYTE cbComResCard[254][5] ; BYTE cbComResLen=0 ; Combination(cbComCard, 0, cbComResCard, cbComResLen, cbRemainCard, cbSingleCardCount, (cbHandCardCount-cbAllBomCardCount)-cbTurnThreeCount, cbSingleCardCount); for(BYTE i=0; i<cbComResLen; ++i) { Index = CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardType = CT_THREE_LINE_TAKE_ONE; //保存三条 CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index], cbThreeLineCard, sizeof(BYTE)*cbTurnThreeCount); //保存单牌 CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardData[Index]+cbTurnThreeCount, cbComResCard[i], cbSingleCardCount) ; ASSERT(cbTurnThreeCount+cbSingleCardCount==cbTurnCardCount) ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbEachHandCardCount[Index] = cbTurnCardCount ; CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_THREE_LINE_TAKE_ONE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } } break; } case CT_THREE_LINE_TAKE_TWO://三带一对 { BYTE cbTurnThreeCard[MAX_COUNT]; BYTE cbTurnThreeCount=0; BYTE cbHandThreeCard[MAX_COUNT]; BYTE cbHandThreeCount=0 ; BYTE cbDoubleCardCount=cbTurnCardCount/5; //三条扑克 GetAllThreeCard(cbTmpTurnCard, cbTurnCardCount, cbTurnThreeCard, cbTurnThreeCount) ; BYTE cbFirstCard = 0 ; //去除2和王 if(cbTurnThreeCount>3) for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardLogicValue(cbTmpCard[i])<15) {cbFirstCard = i ; break ;} GetAllThreeCard(cbTmpCard+cbFirstCard, cbHandCardCount-cbFirstCard, cbHandThreeCard, cbHandThreeCount) ; if(cbHandThreeCount<cbTurnThreeCount || (cbHandThreeCount>0&&GetCardLogicValue(cbHandThreeCard[0])<GetCardLogicValue(cbTurnThreeCard[0]))) return ; for(BYTE i=0; i<cbHandThreeCount; i+=3) { BYTE cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[i]); BYTE cbThreeLineCard[MAX_COUNT]; BYTE cbThreeLineCardCount=3; cbThreeLineCard[0]=cbHandThreeCard[i]; cbThreeLineCard[1]=cbHandThreeCard[i+1]; cbThreeLineCard[2]=cbHandThreeCard[i+2]; for(BYTE j=i+3; j<cbHandThreeCount; j+=3) { //连续判断 if(1!=(cbLastLogicCard-(GetCardLogicValue(cbHandThreeCard[j]))) || cbThreeLineCardCount==cbTurnThreeCount) break; cbLastLogicCard=GetCardLogicValue(cbHandThreeCard[j]); cbThreeLineCard[cbThreeLineCardCount]=cbHandThreeCard[j]; cbThreeLineCard[cbThreeLineCardCount+1]=cbHandThreeCard[j+1]; cbThreeLineCard[cbThreeLineCardCount+2]=cbHandThreeCard[j+2]; cbThreeLineCardCount += 3; } if(cbThreeLineCardCount==cbTurnThreeCount && GetCardLogicValue(cbThreeLineCard[0])>GetCardLogicValue(cbTurnThreeCard[0])) { BYTE Index ; BYTE cbRemainCard[MAX_COUNT]; CopyMemory(cbRemainCard, cbTmpCard, cbHandCardCount*sizeof(BYTE)); RemoveCard(cbThreeLineCard, cbTurnThreeCount, cbRemainCard, cbHandCardCount); BYTE cbAllDoubleCardData[MAX_COUNT] ; BYTE cbAllDoubleCardCount=0 ; GetAllDoubleCard(cbRemainCard, cbHandCardCount-cbTurnThreeCount, cbAllDoubleCardData, cbAllDoubleCardCount) ; BYTE cbDoubleCardIndex[10]; //对牌下标 for(BYTE i=0, j=0; i<cbAllDoubleCardCount; i+=2, ++j) cbDoubleCardIndex[j]=i ; //对牌组合 BYTE cbComCard[5]; BYTE cbComResCard[254][5] ; BYTE cbComResLen=0 ; //利用对牌的下标做组合,再根据下标提取出对牌 Combination(cbComCard, 0, cbComResCard, cbComResLen, cbDoubleCardIndex, cbDoubleCardCount, cbAllDoubleCardCount/2, cbDoubleCardCount); for(BYTE i=0; i<cbComResLen; ++i) { Index = CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardType = CT_THREE_LINE_TAKE_TWO ; //保存三条 CopyMemory(CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index], cbThreeLineCard, sizeof(BYTE)*cbTurnThreeCount); //保存对牌 for(BYTE j=0, k=0; j<cbDoubleCardCount; ++j, k+=2) { CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][cbTurnThreeCount+k] = cbAllDoubleCardData[cbComResCard[i][j]]; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardData[Index][cbTurnThreeCount+k+1] = cbAllDoubleCardData[cbComResCard[i][j]+1]; } ASSERT(cbTurnThreeCount+cbDoubleCardCount*2==cbTurnCardCount) ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbEachHandCardCount[Index] = cbTurnCardCount ; CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_THREE_LINE_TAKE_TWO].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } } break; } case CT_FOUR_LINE_TAKE_ONE://四带两单 { BYTE cbFirstCard = 0 ; //去除王牌 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardColor(cbTmpCard[i])!=0x40) {cbFirstCard = i ; break ;} BYTE cbHandAllFourCardData[MAX_COUNT] ; BYTE cbHandAllFourCardCount=0; BYTE cbTurnAllFourCardData[MAX_COUNT]; BYTE cbTurnAllFourCardCount=0; //抽取四张 GetAllBomCard(cbTmpCard+cbFirstCard, cbHandCardCount-cbFirstCard, cbHandAllFourCardData, cbHandAllFourCardCount) ; GetAllBomCard(cbTmpTurnCard, cbTurnCardCount, cbTurnAllFourCardData, cbTurnAllFourCardCount) ; if(cbHandAllFourCardCount>0 && GetCardLogicValue(cbHandAllFourCardData[0])<GetCardLogicValue(cbTurnAllFourCardData[0])) return ; BYTE cbCanOutFourCardData[MAX_COUNT] ; BYTE cbCanOutFourCardCount=0 ; //可出的牌 for(BYTE i=0; i<cbHandAllFourCardCount; i+=4) { if(GetCardLogicValue(cbHandAllFourCardData[i])>GetCardLogicValue(cbTurnAllFourCardData[0])) { cbCanOutFourCardData[cbCanOutFourCardCount] = cbHandAllFourCardData[i] ; cbCanOutFourCardData[cbCanOutFourCardCount+1] = cbHandAllFourCardData[i+1] ; cbCanOutFourCardData[cbCanOutFourCardCount+2] = cbHandAllFourCardData[i+2] ; cbCanOutFourCardData[cbCanOutFourCardCount+3] = cbHandAllFourCardData[i+3] ; cbCanOutFourCardCount += 4 ; } } if((cbHandCardCount-cbCanOutFourCardCount) < (cbTurnCardCount-cbTurnAllFourCardCount)) return ; BYTE cbRemainCard[MAX_COUNT]; CopyMemory(cbRemainCard, cbTmpCard, cbHandCardCount*sizeof(BYTE)); RemoveCard(cbCanOutFourCardData, cbCanOutFourCardCount, cbRemainCard, cbHandCardCount); for(BYTE Start=0; Start<cbCanOutFourCardCount; Start += 4) { BYTE Index ; //单牌组合 BYTE cbComCard[5]; BYTE cbComResCard[254][5] ; BYTE cbComResLen=0 ; //单牌组合 Combination(cbComCard, 0, cbComResCard, cbComResLen, cbRemainCard, 2, cbHandCardCount-cbCanOutFourCardCount, 2); for(BYTE i=0; i<cbComResLen; ++i) { //不能带对 if(GetCardValue(cbComResCard[i][0])==GetCardValue(cbComResCard[i][1])) continue ; Index=CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardType = CT_FOUR_LINE_TAKE_ONE ; CopyMemory(CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index], cbCanOutFourCardData+Start, 4) ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index][4] = cbComResCard[i][0] ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardData[Index][4+1] = cbComResCard[i][1] ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbEachHandCardCount[Index] = 6 ; CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_FOUR_LINE_TAKE_ONE].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } break; } case CT_FOUR_LINE_TAKE_TWO://四带两对 { BYTE cbFirstCard = 0 ; //去除王牌 for(BYTE i=0 ; i<cbHandCardCount ; ++i) if(GetCardColor(cbTmpCard[i])!=0x40) {cbFirstCard = i ; break ;} BYTE cbHandAllFourCardData[MAX_COUNT] ; BYTE cbHandAllFourCardCount=0; BYTE cbTurnAllFourCardData[MAX_COUNT]; BYTE cbTurnAllFourCardCount=0; //抽取四张 GetAllBomCard(cbTmpCard+cbFirstCard, cbHandCardCount-cbFirstCard, cbHandAllFourCardData, cbHandAllFourCardCount) ; GetAllBomCard(cbTmpTurnCard, cbTurnCardCount, cbTurnAllFourCardData, cbTurnAllFourCardCount) ; if(cbHandAllFourCardCount>0 && GetCardLogicValue(cbHandAllFourCardData[0])<GetCardLogicValue(cbTurnAllFourCardData[0])) return ; BYTE cbCanOutFourCardData[MAX_COUNT] ; BYTE cbCanOutFourCardCount=0 ; //可出的牌 for(BYTE i=0; i<cbHandAllFourCardCount; i+=4) { if(GetCardLogicValue(cbHandAllFourCardData[i])>GetCardLogicValue(cbTurnAllFourCardData[0])) { cbCanOutFourCardData[cbCanOutFourCardCount] = cbHandAllFourCardData[i] ; cbCanOutFourCardData[cbCanOutFourCardCount+1] = cbHandAllFourCardData[i+1] ; cbCanOutFourCardData[cbCanOutFourCardCount+2] = cbHandAllFourCardData[i+2] ; cbCanOutFourCardData[cbCanOutFourCardCount+3] = cbHandAllFourCardData[i+3] ; cbCanOutFourCardCount += 4 ; } } if((cbHandCardCount-cbCanOutFourCardCount) < (cbTurnCardCount-cbTurnAllFourCardCount)) return ; BYTE cbRemainCard[MAX_COUNT]; CopyMemory(cbRemainCard, cbTmpCard, cbHandCardCount*sizeof(BYTE)); RemoveCard(cbCanOutFourCardData, cbCanOutFourCardCount, cbRemainCard, cbHandCardCount); for(BYTE Start=0; Start<cbCanOutFourCardCount; Start += 4) { BYTE cbAllDoubleCardData[MAX_COUNT] ; BYTE cbAllDoubleCardCount=0 ; GetAllDoubleCard(cbRemainCard, cbHandCardCount-cbCanOutFourCardCount, cbAllDoubleCardData, cbAllDoubleCardCount) ; BYTE cbDoubleCardIndex[10]; //对牌下标 for(BYTE i=0, j=0; i<cbAllDoubleCardCount; i+=2, ++j) cbDoubleCardIndex[j]=i ; //对牌组合 BYTE cbComCard[5]; BYTE cbComResCard[254][5] ; BYTE cbComResLen=0 ; //利用对牌的下标做组合,再根据下标提取出对牌 Combination(cbComCard, 0, cbComResCard, cbComResLen, cbDoubleCardIndex, 2, cbAllDoubleCardCount/2, 2); for(BYTE i=0; i<cbComResLen; ++i) { BYTE Index = CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount ; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardType = CT_FOUR_LINE_TAKE_TWO ; CopyMemory(CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index], cbCanOutFourCardData+Start, 4) ; //保存对牌 for(BYTE j=0, k=0; j<4; ++j, k+=2) { CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index][4+k] = cbAllDoubleCardData[cbComResCard[i][j]]; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardData[Index][4+k+1] = cbAllDoubleCardData[cbComResCard[i][j]+1]; } CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbEachHandCardCount[Index] = 8 ; CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_FOUR_LINE_TAKE_TWO].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } break; } case CT_BOMB_CARD: //炸弹类型 { BYTE cbAllBomCardData[MAX_COUNT] ; BYTE cbAllBomCardCount=0 ; GetAllBomCard(cbTmpCard, cbHandCardCount, cbAllBomCardData, cbAllBomCardCount) ; BYTE cbFirstBom=0 ; BYTE Index ; if(cbAllBomCardCount>0 && cbAllBomCardData[0]==0x4F) { Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount ; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][0] = 0x4F ; CardTypeResult[CT_BOMB_CARD].cbCardData[Index][1] = 0x4E ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 2 ; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount<=MAX_TYPE_COUNT) ; cbFirstBom=2; } for(BYTE i=cbFirstBom; i<cbAllBomCardCount; i+=4) { if(GetCardLogicValue(cbAllBomCardData[i])>GetCardLogicValue(cbTmpTurnCard[0])) { Index = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount ; CardTypeResult[CT_BOMB_CARD].cbCardType = CT_BOMB_CARD ; CopyMemory(CardTypeResult[CT_BOMB_CARD].cbCardData[Index], cbAllBomCardData+i, 4) ; CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index] = 4 ; CardTypeResult[CT_BOMB_CARD].cbCardTypeCount++ ; ASSERT(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount<=MAX_TYPE_COUNT) ; } } break; } case CT_MISSILE_CARD: //火箭类型 { //没有比火箭更大的牌了 break; } default: ASSERT(false) ; break; } } /******************************************************************** 函数名:Combination 参数: cbCombineCardData:存储单个的组合结果 cbResComLen:已得到的组合长度,开始调用时此参数为0 cbResultCardData:存储所有的组合结果 cbResCardLen:cbResultCardData的第一下标的长度,组合结果的个数 cbSrcCardData:需要做组合的数据 cbSrcLen:cbSrcCardData的数据数目 cbCombineLen2,cbCombineLen1:组合的长度,开始调用时两者相等。 *********************************************************************/ //组合算法 void CGameLogic::Combination(BYTE cbCombineCardData[], BYTE cbResComLen, BYTE cbResultCardData[100][5], BYTE &cbResCardLen,BYTE cbSrcCardData[] , BYTE cbCombineLen1, BYTE cbSrcLen, const BYTE cbCombineLen2) { if( cbResComLen == cbCombineLen2 ) { CopyMemory(&cbResultCardData[cbResCardLen], cbCombineCardData, cbResComLen) ; ++cbResCardLen ; ASSERT(cbResCardLen<255) ; } else { if(cbCombineLen1 >= 1 && cbSrcLen > 0 && (cbSrcLen+1) >= 0 ){ cbCombineCardData[cbCombineLen2-cbCombineLen1] = cbSrcCardData[0]; ++cbResComLen ; Combination(cbCombineCardData,cbResComLen, cbResultCardData, cbResCardLen, cbSrcCardData+1,cbCombineLen1-1, cbSrcLen-1, cbCombineLen2); --cbResComLen; Combination(cbCombineCardData,cbResComLen, cbResultCardData, cbResCardLen, cbSrcCardData+1,cbCombineLen1, cbSrcLen-1, cbCombineLen2); } } } //排列算法 void CGameLogic::Permutation(BYTE *list, int m, int n, BYTE result[][4], BYTE &len) { int j,temp; if(m == n){ for(j = 0; j < n; j++) result[len][j]=list[j]; len++ ; } else{ for(j = m; j < n; j++){ temp = list[m] ; list[m] = list[j]; list[j] = temp ; Permutation(list,m+1,n,result,len); temp = list[m] ; list[m] = list[j]; list[j] = temp ; } } } //单牌个数 BYTE CGameLogic::AnalyseSinleCardCount(BYTE const cbHandCardData[], BYTE const cbHandCardCount, BYTE const cbWantOutCardData[], BYTE const cbWantOutCardCount, BYTE cbSingleCardData[]) { //参数判断 ASSERT(cbHandCardCount>0) ; if(cbHandCardCount<=0) return MAX_COUNT + 5 ; BYTE cbRemainCard[MAX_COUNT] ; BYTE cbRemainCardCount=0 ; CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; SortCardList(cbRemainCard, cbHandCardCount, ST_ORDER) ; //移除扑克 if(cbWantOutCardCount!=0) RemoveCard(cbWantOutCardData, cbWantOutCardCount, cbRemainCard, cbHandCardCount); cbRemainCardCount = cbHandCardCount-cbWantOutCardCount ; //函数指针 typedef void (CGameLogic::*pGetAllCardFun)(BYTE const [], BYTE const , BYTE[], BYTE &); //指针数组 pGetAllCardFun GetAllCardFunArray[4] ; GetAllCardFunArray[0] = &CGameLogic::GetAllBomCard ; //炸弹函数 GetAllCardFunArray[1] = &CGameLogic::GetAllLineCard ; //顺子函数 GetAllCardFunArray[2] = &CGameLogic::GetAllThreeCard ; //三条函数 GetAllCardFunArray[3] = &CGameLogic::GetAllDoubleCard ; //对子函数 //指针数组下标 BYTE cbIndexArray[4] = {0,1,2,3} ; //排列结果 BYTE cbPermutationRes[24][4] ; BYTE cbLen=0 ; //计算排列 Permutation(cbIndexArray, 0, 4, cbPermutationRes, cbLen) ; ASSERT(cbLen==24) ; if(cbLen!=24) return MAX_COUNT + 5 ; //单牌数目 BYTE cbMinSingleCardCount = MAX_COUNT + 5 ; //计算最小值 for(BYTE i=0; i<24; ++i) { //保留数据 BYTE cbTmpCardData[MAX_COUNT] ; BYTE cbTmpCardCount = cbRemainCardCount ; CopyMemory(cbTmpCardData, cbRemainCard, cbRemainCardCount) ; for(BYTE j=0; j<4; ++j) { BYTE Index = cbPermutationRes[i][j] ; //校验下标 ASSERT(Index>=0 && Index<4) ; if(Index<0 || Index>=4) return MAX_COUNT + 5 ; pGetAllCardFun pTmpGetAllCardFun = GetAllCardFunArray[Index] ; //提取扑克 BYTE cbGetCardData[MAX_COUNT] ; BYTE cbGetCardCount=0 ; //成员函数 ((*this).*pTmpGetAllCardFun)(cbTmpCardData, cbTmpCardCount, cbGetCardData, cbGetCardCount) ; //删除扑克 if(cbGetCardCount!=0) RemoveCard(cbGetCardData, cbGetCardCount, cbTmpCardData, cbTmpCardCount); cbTmpCardCount -= cbGetCardCount ; } //计算单牌 BYTE cbSingleCard[MAX_COUNT] ; BYTE cbSingleCardCount=0 ; GetAllSingleCard(cbTmpCardData, cbTmpCardCount, cbSingleCard, cbSingleCardCount) ; if(cbMinSingleCardCount> cbSingleCardCount) { cbMinSingleCardCount = cbSingleCardCount ; //保存单牌 if(cbSingleCardData!=NULL) { CopyMemory(cbSingleCardData, cbSingleCard, cbSingleCardCount) ; } } } //带大牌判断 if (cbWantOutCardCount > 0) { //出牌类型 BYTE cbCardType = GetCardType(cbWantOutCardData, cbWantOutCardCount) ; if (cbCardType == CT_THREE_LINE_TAKE_ONE || cbCardType == CT_THREE_LINE_TAKE_TWO) for (BYTE i = 3; i < cbWantOutCardCount; ++i) { if (GetCardLogicValue(cbWantOutCardData[i]) >= 14) cbMinSingleCardCount += 3 ; } } //拆三条判断 if ( GetCardType(cbWantOutCardData, cbWantOutCardCount) == CT_DOUBLE ) { BYTE cbAllThreeCardData[MAX_COUNT], cbAllThreeCount ; BYTE cbAllLineCardData[MAX_COUNT], cbAllLineCount ; GetAllThreeCard(cbHandCardData, cbHandCardCount, cbAllThreeCardData, cbAllThreeCount) ; GetAllLineCard( cbHandCardData, cbHandCardCount, cbAllLineCardData, cbAllLineCount ) ; BYTE cbThreeCardValue = 0 ; for ( BYTE i = 0; i < cbAllThreeCount; ++i) for ( BYTE j = 0; j < cbWantOutCardCount; ++j) if ( GetCardLogicValue(cbWantOutCardData[j]) == GetCardLogicValue(cbAllThreeCardData[i]) ) { cbThreeCardValue = GetCardValue( cbWantOutCardData[j] ) ; break ; } //是否有连牌 bool bInLineCard = false ; for ( BYTE cbLineCardIndex = 0; cbLineCardIndex < cbAllLineCount; ++cbLineCardIndex ) if ( GetCardValue( cbAllLineCardData[cbLineCardIndex] ) == cbThreeCardValue ) { bInLineCard = true ; break ; } if ( !bInLineCard && cbThreeCardValue != 0 ) cbMinSingleCardCount += 2 ; } //拆炸判断 if(cbWantOutCardCount!=0) { //炸弹扑克 BYTE cbBombCard[MAX_COUNT] ; BYTE cbBombCardCount=0; GetAllBomCard(cbHandCardData, cbHandCardCount, cbBombCard, cbBombCardCount) ; //出牌类型 BYTE cbCardType = GetCardType(cbWantOutCardData, cbWantOutCardCount) ; if(cbBombCardCount>0 && cbCardType<CT_BOMB_CARD) { //寻找相同 for(BYTE i = GetCardColor(cbBombCard[0]) == 4 ? 2 : 0; i<cbBombCardCount; i += 4) for(BYTE j=0; j<cbWantOutCardCount; ++j) { if(GetCardValue( cbBombCard[i] ) == GetCardValue( cbWantOutCardData[j] ) && GetCardLogicValue(cbWantOutCardData[j])<15 && cbCardType!=CT_SINGLE_LINE && cbCardType!=CT_DOUBLE_LINE) return MAX_COUNT + 5 ; //不拆炸弹 else if ( GetCardValue( cbBombCard[i] ) == GetCardValue( cbWantOutCardData[j] ) && GetCardLogicValue(cbWantOutCardData[j])<15 && ( cbCardType == CT_SINGLE_LINE || cbCardType == CT_DOUBLE_LINE) ) cbMinSingleCardCount += 2 ; //不拆炸弹 } //多个炸弹判断 if (cbCardType == CT_SINGLE_LINE) { BYTE cbBombCount = 0 ; for (BYTE i = GetCardColor(cbBombCard[0]) == 4 ? 2 : 0; i < cbBombCardCount; i += 4) for (BYTE j=0; j < cbWantOutCardCount; ++j) if ( GetCardValue( cbBombCard[i] ) == GetCardValue( cbWantOutCardData[j] ) ) ++cbBombCount ; if (cbBombCount >= 2) return MAX_COUNT ; //不拆炸弹 //三条个数 tagAnalyseResult AnalyseResult; AnalysebCardData(cbHandCardData, cbHandCardCount,AnalyseResult) ; BYTE cbThreeCount = 0 ; for (BYTE i = 0; i < AnalyseResult.cbThreeCount; ++i) for (BYTE j = 0; j < cbWantOutCardCount; ++j) if (GetCardValue(cbWantOutCardData[j]) == GetCardValue(AnalyseResult.cbThreeCardData[3 * i])) ++cbThreeCount ; if (cbThreeCount + cbBombCount >= 2) return MAX_COUNT + 5 ; } } } return cbMinSingleCardCount ; } //设置扑克 void CGameLogic::SetUserCard(WORD wChairID, BYTE cbCardData[], BYTE cbCardCount) { CopyMemory(m_cbAllCardData[wChairID], cbCardData, cbCardCount*sizeof(BYTE)) ; m_cbUserCardCount[wChairID] = cbCardCount ; //排列扑克 SortCardList(m_cbAllCardData[wChairID], cbCardCount, ST_ORDER) ; } //设置底牌 void CGameLogic::SetBackCard(WORD wChairID, BYTE cbBackCardData[], BYTE cbCardCount) { BYTE cbTmpCount = m_cbUserCardCount[wChairID] ; CopyMemory(m_cbAllCardData[wChairID]+cbTmpCount, cbBackCardData, cbCardCount*sizeof(BYTE)) ; m_cbUserCardCount[wChairID] += cbCardCount ; //排列扑克 SortCardList(m_cbAllCardData[wChairID], m_cbUserCardCount[wChairID], ST_ORDER) ; } //设置庄家 void CGameLogic::SetBanker(WORD wBanker) { m_wBankerUser = wBanker ; m_lBankerOutCardCount = 0 ; } //叫牌扑克 void CGameLogic::SetLandScoreCardData(BYTE cbCardData[], BYTE cbCardCount) { ASSERT(cbCardCount==MAX_COUNT) ; if(cbCardCount!=MAX_COUNT) return ; CopyMemory(m_cbLandScoreCardData, cbCardData, cbCardCount*sizeof(BYTE)) ; //排列扑克 SortCardList(m_cbLandScoreCardData, cbCardCount, ST_ORDER) ; } //删除扑克 void CGameLogic::RemoveUserCardData(WORD wChairID, BYTE cbRemoveCardData[], BYTE cbRemoveCardCount) { bool bSuccess = RemoveCard(cbRemoveCardData, cbRemoveCardCount, m_cbAllCardData[wChairID], m_cbUserCardCount[wChairID]) ; ASSERT(bSuccess) ; if(!bSuccess) return; m_cbUserCardCount[wChairID] -= cbRemoveCardCount ; } //地主出牌(先出牌) void CGameLogic::BankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, tagOutCardResult & OutCardResult) { //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; BYTE cbLineCard[MAX_COUNT] ; BYTE cbThreeLineCard[MAX_COUNT] ; BYTE cbDoubleLineCard[MAX_COUNT] ; BYTE cbLineCardCount; BYTE cbThreeLineCardCount ; BYTE cbDoubleLineCount ; GetAllLineCard(cbHandCardData, cbHandCardCount, cbLineCard, cbLineCardCount) ; GetAllThreeCard(cbHandCardData, cbHandCardCount, cbThreeLineCard, cbThreeLineCardCount) ; GetAllDoubleCard(cbHandCardData, cbHandCardCount, cbDoubleLineCard, cbDoubleLineCount) ; WORD wUndersideOfBanker = (m_wBankerUser+1)%GAME_PLAYER ; //地主下家 WORD wUpsideOfBanker = (wUndersideOfBanker+1)%GAME_PLAYER ; //地主上家 //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { if(TestOutAllCard(m_wBankerUser, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], true)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; else if ( 15 == GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 2; else if ( 15 < GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 3; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; if (cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //对王和两单 if ( cbHandCardCount == 4 && GetCardLogicValue(cbHandCardData[1]) == 16 && m_cbUserCardCount[wUndersideOfBanker] == 1 && GetCardLogicValue(cbHandCardData[2]) < GetCardLogicValue(m_cbAllCardData[wUndersideOfBanker][0])) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[2] ; return ; } //四带牌型判断 if ( AnalyseFourCardType(cbHandCardData, cbHandCardCount, m_cbAllCardData[wUndersideOfBanker], m_cbUserCardCount[wUndersideOfBanker], OutCardResult ) ) { return ; } //对王和两单 if ( cbHandCardCount == 4 && GetCardLogicValue(cbHandCardData[1]) == 16 && m_cbUserCardCount[wUpsideOfBanker] == 1 && GetCardLogicValue(cbHandCardData[2]) < GetCardLogicValue(m_cbAllCardData[wUpsideOfBanker][0])) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[2] ; return ; } //四带牌型判断 if ( AnalyseFourCardType(cbHandCardData, cbHandCardCount, m_cbAllCardData[wUpsideOfBanker], m_cbUserCardCount[wUpsideOfBanker], OutCardResult ) ) { return ; } //如果只剩顺牌和单只,则先出顺 { if(cbLineCardCount+1==cbHandCardCount && CT_SINGLE==GetCardType(cbLineCard, cbLineCardCount)) { OutCardResult.cbCardCount = cbLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbLineCard, cbLineCardCount) ; } else if(cbThreeLineCardCount+1==cbHandCardCount && CT_THREE_LINE==GetCardType(cbThreeLineCard, cbThreeLineCardCount)) { OutCardResult.cbCardCount = cbThreeLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbThreeLineCard, cbThreeLineCardCount) ; } else if(cbDoubleLineCount+1==cbHandCardCount && CT_DOUBLE_LINE==GetCardType(cbDoubleLineCard, cbDoubleLineCount)) { OutCardResult.cbCardCount = cbDoubleLineCount ; CopyMemory(OutCardResult.cbResultCard, cbDoubleLineCard, cbDoubleLineCount) ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && GetCardType(cbHandCardData+2, cbHandCardCount-2) !=CT_FOUR_LINE_TAKE_ONE && GetCardType(cbHandCardData+2, cbHandCardCount-2) !=CT_FOUR_LINE_TAKE_TWO) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; } if(OutCardResult.cbCardCount>0) { return ; } } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //只剩一手牌 else if(CT_ERROR!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_ONE!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_TWO!=GetCardType(cbHandCardData, cbHandCardCount)) { OutCardResult.cbCardCount = cbHandCardCount ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount) ; return ; } //只剩一张和一手 if(cbHandCardCount>=2) { //上家扑克 tagOutCardTypeResult UpsideCanOutCardType1[13] ; ZeroMemory(UpsideCanOutCardType1, sizeof(UpsideCanOutCardType1)) ; tagOutCardTypeResult UpsideCanOutCardType2[13] ; ZeroMemory(UpsideCanOutCardType2, sizeof(UpsideCanOutCardType2)) ; //下家扑克 tagOutCardTypeResult UndersideCanOutCardType1[13] ; ZeroMemory(UndersideCanOutCardType1, sizeof(UndersideCanOutCardType1)) ; tagOutCardTypeResult UndersideCanOutCardType2[13] ; ZeroMemory(UndersideCanOutCardType2, sizeof(UndersideCanOutCardType2)) ; BYTE cbFirstHandCardType = GetCardType(cbHandCardData, cbHandCardCount-1) ; BYTE cbSecondHandCardType = GetCardType(cbHandCardData+1, cbHandCardCount-1) ; //是否有炸 BYTE cbAllBombCardData[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCardData, cbAllBombCount) ; //没有炸弹 if (cbAllBombCount <= 0 && cbFirstHandCardType!=CT_THREE_LINE_TAKE_ONE && cbFirstHandCardType!=CT_THREE_LINE_TAKE_TWO) { if(CT_ERROR!=cbFirstHandCardType && cbFirstHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbFirstHandCardType!= CT_FOUR_LINE_TAKE_TWO) { AnalyseOutCardType(m_cbAllCardData[wUpsideOfBanker], m_cbUserCardCount[wUpsideOfBanker], cbHandCardData, cbHandCardCount-1, UpsideCanOutCardType1) ; AnalyseOutCardType(m_cbAllCardData[wUndersideOfBanker], m_cbUserCardCount[wUndersideOfBanker], cbHandCardData, cbHandCardCount-1, UndersideCanOutCardType1) ; } if(CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO) { AnalyseOutCardType(m_cbAllCardData[wUpsideOfBanker], m_cbUserCardCount[wUpsideOfBanker], cbHandCardData+1, cbHandCardCount-1, UpsideCanOutCardType2) ; AnalyseOutCardType(m_cbAllCardData[wUndersideOfBanker], m_cbUserCardCount[wUndersideOfBanker], cbHandCardData+1, cbHandCardCount-1, UndersideCanOutCardType2) ; } if(cbSecondHandCardType!=CT_ERROR && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && UpsideCanOutCardType2[cbSecondHandCardType].cbCardTypeCount==0 && UndersideCanOutCardType2[cbSecondHandCardType].cbCardTypeCount==0 && UpsideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0 && UndersideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } if(cbFirstHandCardType!=CT_ERROR && cbFirstHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbFirstHandCardType!= CT_FOUR_LINE_TAKE_TWO && UpsideCanOutCardType1[cbFirstHandCardType].cbCardTypeCount==0 && UndersideCanOutCardType1[cbFirstHandCardType].cbCardTypeCount==0 && UpsideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0 && UndersideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount-1) ; return ; } if(GetCardLogicValue(cbHandCardData[0])>=GetCardLogicValue(m_cbAllCardData[wUpsideOfBanker][0]) && GetCardLogicValue(cbHandCardData[0])>=GetCardLogicValue(m_cbAllCardData[wUndersideOfBanker][0]) && CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && UpsideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0 && UndersideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[0] ; return ; } if(CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && UpsideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0 && UndersideCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } } //还有炸弹 else { //除去炸后的牌 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0 ; CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; if(!RemoveCard(cbAllBombCardData, cbAllBombCount, cbRemainCard, cbRemainCount)) return ; cbRemainCount -= cbAllBombCount ; if (GetCardType(cbRemainCard, cbRemainCount) != CT_ERROR) { OutCardResult.cbCardCount = cbRemainCount ; CopyMemory(OutCardResult.cbResultCard, cbRemainCard, cbRemainCount) ; return ; } } } { { //分析扑克 tagOutCardTypeResult MeOutCardTypeResult[13] ; ZeroMemory(MeOutCardTypeResult, sizeof(MeOutCardTypeResult)) ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, MeOutCardTypeResult) ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //除炸弹外的牌 for(BYTE cbCardType=CT_DOUBLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = MeOutCardTypeResult[cbCardType] ; //相同牌型,相同长度,单连,对连等相同牌型可能长度不一样 BYTE cbThisHandCardCount = MAX_COUNT ; //上家扑克 tagOutCardTypeResult UpsideOutCardTypeResult[13] ; ZeroMemory(UpsideOutCardTypeResult, sizeof(UpsideOutCardTypeResult)) ; //下家扑克 tagOutCardTypeResult UndersideOutCardTypeResult[13] ; ZeroMemory(UndersideOutCardTypeResult, sizeof(UndersideOutCardTypeResult)) ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //拆三条判断 if ( cbCardType == CT_DOUBLE ) { tagAnalyseResult AnalyseResult ; ZeroMemory( &AnalyseResult, sizeof( AnalyseResult ) ) ; AnalysebCardData( cbHandCardData, cbHandCardCount, AnalyseResult ) ; if ( AnalyseResult.cbSignedCount + AnalyseResult.cbThreeCount * 3 == cbHandCardCount ) { bool bContinue = false ; for ( BYTE cbThreeIndex = 0; cbThreeIndex < AnalyseResult.cbThreeCount; ++cbThreeIndex ) if ( GetCardValue( tmpCardResult.cbCardData[i][0] ) == GetCardValue( AnalyseResult.cbThreeCardData[3 * cbThreeIndex] ) ) { bContinue = true ; break ; } if ( bContinue ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; //重新分析 if(tmpCardResult.cbEachHandCardCount[i]!=cbThisHandCardCount) { cbThisHandCardCount = tmpCardResult.cbEachHandCardCount[i] ; AnalyseOutCardType(m_cbAllCardData[wUpsideOfBanker], m_cbUserCardCount[wUpsideOfBanker], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,UpsideOutCardTypeResult) ; AnalyseOutCardType(m_cbAllCardData[wUndersideOfBanker], m_cbUserCardCount[wUndersideOfBanker], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,UndersideOutCardTypeResult) ; } BYTE cbMaxValue=0 ; BYTE Index = 0 ; //针对顺子,三条的大牌 BYTE cbCurrentCardType = GetCardType(tmpCardResult.cbCardData[i], cbThisHandCardCount) ; if (cbThisHandCardCount != cbHandCardCount && cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 ) ) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], cbThisHandCardCount, cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= cbThisHandCardCount ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && cbThisHandCardCount <=5 || cbCurrentCardType == CT_SINGLE_LINE && cbThisHandCardCount <= 6 && cbCurrentLargestLogicCard >= 12 || cbCurrentCardType >= CT_DOUBLE_LINE && cbCurrentCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && cbThisHandCardCount <= 8)) { //暂时不出 if ( cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } //针对大对(不可先出) if (cbCardType == CT_DOUBLE && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11) { BYTE cbAllSingleCardData[MAX_COUNT], cbAllSingleCount ; cbAllSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbAllSingleCardData) ; if (cbAllSingleCount >= 2 && GetCardLogicValue(cbAllSingleCardData[cbAllSingleCount-2]) < 10) continue ; } //敌方可以压住牌 if(UpsideOutCardTypeResult[cbCardType].cbCardTypeCount>0 || UndersideOutCardTypeResult[cbCardType].cbCardTypeCount>0) { //上家跑掉 if(UpsideOutCardTypeResult[cbCardType].cbEachHandCardCount[0] > 0 && m_cbUserCardCount[wUpsideOfBanker]<=UpsideOutCardTypeResult[cbCardType].cbEachHandCardCount[0]+1) continue ; //下家跑掉 if(UndersideOutCardTypeResult[cbCardType].cbEachHandCardCount[0] > 0 && m_cbUserCardCount[wUndersideOfBanker]<=UndersideOutCardTypeResult[cbCardType].cbEachHandCardCount[0]+1) continue ; //自己不可以再拿回牌权 //if(UpsideOutCardTypeResult[cbCardType].cbCardTypeCount > 0 && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < GetCardLogicValue(UpsideOutCardTypeResult[cbCardType].cbCardData[0][0]) || // UpsideOutCardTypeResult[cbCardType].cbCardTypeCount > 0 && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < GetCardLogicValue(UpsideOutCardTypeResult[cbCardType].cbCardData[0][0])) // continue ; } //是否有大牌 if(tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount) { bool bHaveLargeCard=false ; for(BYTE j=0; j<tmpCardResult.cbEachHandCardCount[i]; ++j) { if(GetCardLogicValue(tmpCardResult.cbCardData[i][j])>=15) bHaveLargeCard=true ; if(cbCardType!=CT_SINGLE_LINE && cbCardType!=CT_DOUBLE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][0])==14) bHaveLargeCard=true ; } if(bHaveLargeCard) continue ; } //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour>=AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0)+3 && (m_cbUserCardCount[wUndersideOfBanker]>=4 && m_cbUserCardCount[wUpsideOfBanker]>=4)) cbMinSingleCountInFour=MAX_COUNT ; if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,MeOutCardTypeResult[cbMinCardType].cbCardData[Index],MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //还没有找到适合的牌则从大出到小 if(OutCardResult.cbCardCount<=0 && (m_cbUserCardCount[wUndersideOfBanker] == 1 || m_cbUserCardCount[wUpsideOfBanker] == 1)) { //只有一张牌时不能放走 if(MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount>0) { BYTE Index=MAX_COUNT ; for(BYTE i=0; i<MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount; ++i) { if((m_cbUserCardCount[wUndersideOfBanker] == 1 && GetCardLogicValue(MeOutCardTypeResult[CT_SINGLE].cbCardData[i][0])>=GetCardLogicValue(m_cbAllCardData[wUndersideOfBanker][0])) || (m_cbUserCardCount[wUpsideOfBanker] == 1 && GetCardLogicValue(MeOutCardTypeResult[CT_SINGLE].cbCardData[i][0])>=GetCardLogicValue(m_cbAllCardData[wUpsideOfBanker][0]))) { Index=i ; } else break ; } if(MAX_COUNT!=Index) { OutCardResult.cbCardCount = MeOutCardTypeResult[CT_SINGLE].cbEachHandCardCount[Index] ; CopyMemory(OutCardResult.cbResultCard, MeOutCardTypeResult[CT_SINGLE].cbCardData[Index], OutCardResult.cbCardCount) ; return ; } } } } } BYTE cbFirstCard=0 ; //过滤王和2 for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])<15) { cbFirstCard = i ; break ; } if(cbFirstCard<cbHandCardCount-1) AnalyseOutCardType(cbHandCardData+cbFirstCard, cbHandCardCount-cbFirstCard, CardTypeResult) ; else AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //除炸弹外的牌 for(BYTE cbCardType=CT_SINGLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = CardTypeResult[cbCardType] ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //闲家可以走掉 if ( CompareCard(tmpCardResult.cbCardData[i], m_cbAllCardData[wUndersideOfBanker], tmpCardResult.cbEachHandCardCount[i], m_cbUserCardCount[wUndersideOfBanker]) || CompareCard(tmpCardResult.cbCardData[i], m_cbAllCardData[wUpsideOfBanker], tmpCardResult.cbEachHandCardCount[i],m_cbUserCardCount[wUpsideOfBanker])) continue ; //针对顺子,三条的大牌 if ( tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount && cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i]-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 )) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i], cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= tmpCardResult.cbEachHandCardCount[i] ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && tmpCardResult.cbEachHandCardCount[i] <=5 || cbCardType == CT_SINGLE_LINE && tmpCardResult.cbEachHandCardCount[i] <= 6 && cbCurrentLargestLogicCard >= 12 || cbCardType >= CT_DOUBLE_LINE && cbCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && tmpCardResult.cbEachHandCardCount[i] <= 8)) { //暂时不出 if ( cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i] - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,CardTypeResult[cbMinCardType].cbCardData[Index],CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //如果只剩炸弹 else if (CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0) { //BYTE Index=0 ; //BYTE cbLogicCardValue = GetCardLogicValue(0x4F)+1 ; ////最小炸弹 //for(BYTE i=0; i<CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; ++i) // if(cbLogicCardValue>GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0])) // { // cbLogicCardValue = GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0]) ; // Index = i ; // } // //设置变量 // OutCardResult.cbCardCount=CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]; // CopyMemory(OutCardResult.cbResultCard,CardTypeResult[CT_BOMB_CARD].cbCardData[Index],CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]*sizeof(BYTE)); // return ; } BYTE cbAllSingleCardData[MAX_COUNT], cbAllSingleCardCount ; cbAllSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbAllSingleCardData) ; if ( cbAllSingleCardCount > 0 ) { //如果都没有搜索到就出最小的一张 if ( ( 1 == m_cbUserCardCount[wUndersideOfBanker] || 1 == m_cbUserCardCount[wUpsideOfBanker] ) && cbAllSingleCardCount >= 2 ) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbAllSingleCardData[cbAllSingleCardCount-2] ; } else { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbAllSingleCardData[cbAllSingleCardCount-1] ; } return ; } //如果都没有搜索到就出最小的一张 OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[cbHandCardCount-1] ; return ; } //地主出牌(后出牌) void CGameLogic::BankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, WORD wOutCardUser, const BYTE cbTurnCardData[], BYTE cbTurnCardCount, tagOutCardResult & OutCardResult) { //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌类型 BYTE cbOutCardType = GetCardType(cbTurnCardData,cbTurnCardCount) ; AnalyseOutCardType(cbHandCardData,cbHandCardCount,cbTurnCardData,cbTurnCardCount, CardTypeResult) ; WORD wUndersideUser = (m_wBankerUser+1)%GAME_PLAYER ; WORD wUpsideUser = (wUndersideUser+1)%GAME_PLAYER ; //只剩炸弹 if(cbHandCardCount==CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] && (cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[0][0])>GetCardLogicValue(cbTurnCardData[0]))) { OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData, OutCardResult.cbCardCount) ; return ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbHandCardData+2, cbHandCardCount-2)) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //炸弹和一手 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0; BYTE cbAllBombCard[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCard, cbAllBombCount) ; //出炸判断 if(cbAllBombCount>0) { //剩余扑克 CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; RemoveCard(cbAllBombCard, cbAllBombCount, cbRemainCard, cbRemainCount); cbRemainCount -= cbAllBombCount ; if(CT_ERROR != GetCardType(cbRemainCard, cbRemainCount) || (2==cbRemainCount && GetCardLogicValue(cbRemainCard[0])>GetCardLogicValue(m_cbAllCardData[wUndersideUser][0]) && GetCardLogicValue(cbRemainCard[0])>GetCardLogicValue(m_cbAllCardData[wUpsideUser][0]))) { if((cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(cbAllBombCard[0])>GetCardLogicValue(cbTurnCardData[0])) && ( CardTypeResult[cbOutCardType].cbCardTypeCount <= 0 || CT_ERROR != GetCardType(cbRemainCard, cbRemainCount) ) ) { //双王炸弹 if(GetCardColor(cbAllBombCard[0])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //分析闲家牌 BYTE cbUnderSideBankerAllBombCard[MAX_COUNT], cbUnderSideBankerAllBombCardCount ; GetAllBomCard( m_cbAllCardData[wUndersideUser], m_cbUserCardCount[wUndersideUser], cbUnderSideBankerAllBombCard, cbUnderSideBankerAllBombCardCount) ; BYTE cbUpSideBankerAllBombCard[MAX_COUNT], cbUpSideBankerAllBombCardCount ; GetAllBomCard( m_cbAllCardData[wUpsideUser], m_cbUserCardCount[wUpsideUser], cbUpSideBankerAllBombCard, cbUpSideBankerAllBombCardCount) ; if ( !CompareCard( cbTurnCardData, cbRemainCard, cbTurnCardCount, cbRemainCount) || ( cbUnderSideBankerAllBombCardCount <= 0 && cbUpSideBankerAllBombCardCount )|| ( GetCardLogicValue( cbAllBombCard[0] ) > GetCardLogicValue( cbUnderSideBankerAllBombCard[0] ) && GetCardLogicValue( cbAllBombCard[0] ) > GetCardLogicValue( cbUpSideBankerAllBombCard[0] )) ) { OutCardResult.cbCardCount = 4 ; CopyMemory(OutCardResult.cbResultCard, cbAllBombCard, 4) ; return ; } } } } } //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { if(TestOutAllCard(m_wBankerUser, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], false)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; //不出炸弹 //BYTE cbWantOutCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //if (CardTypeResult[cbOutCardType].cbCardTypeCount > 0 && cbOutCardType < CT_BOMB_CARD && cbWantOutCardType >= CT_BOMB_CARD) continue ; if (cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //取出四个最小单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbMinSingleCountInFour=MAX_COUNT ; //可出扑克(这里已经过滤掉炸弹了) tagOutCardTypeResult const &CanOutCard = CardTypeResult[cbOutCardType] ; for(BYTE i=0; i<CanOutCard.cbCardTypeCount; ++i) { //最小单牌 BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,CanOutCard.cbCardData[i], CanOutCard.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; break ; } } } for(BYTE i=0; i<4; ++i) if(cbMinSingleCountInFour>cbMinSingleCardCount[i]) cbMinSingleCountInFour = cbMinSingleCardCount[i] ; //原始单牌数 BYTE cbOriginSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,NULL,0) ; if(CanOutCard.cbCardTypeCount>0 && cbMinSingleCountInFour < MAX_COUNT) { BYTE cbMinLogicCardValue = GetCardLogicValue(0x4F)+1 ; bool bFindCard = false ; BYTE cbCanOutIndex=0 ; for(BYTE i=0; i<4; ++i) { BYTE Index = cbIndex[i] ; if((cbMinSingleCardCount[i]<cbOriginSingleCardCount+3) && (cbMinSingleCardCount[i]<=cbMinSingleCountInFour || cbMinSingleCardCount[i]<=cbMinSingleCountInFour+1 && CanOutCard.cbCardType >= CT_THREE_LINE_TAKE_ONE && CanOutCard.cbCardType <= CT_THREE_LINE_TAKE_TWO ) && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0])) { //针对大牌 bool bNoLargeCard = true ; //当出牌玩家手上牌数大于4,而且出的是小于K的牌而且不是出牌手上的最大牌时,不能出2去打 if(m_cbUserCardCount[wOutCardUser]>=4 && cbHandCardCount>=5 && CanOutCard.cbEachHandCardCount[Index]>=2 && GetCardLogicValue(CanOutCard.cbCardData[Index][0])>=15 && GetCardLogicValue(cbTurnCardData[0])<13 && (wOutCardUser==wUndersideUser&&GetCardLogicValue(cbTurnCardData[0])<GetCardLogicValue(m_cbAllCardData[wUndersideUser][0]) || wOutCardUser==wUpsideUser&&GetCardLogicValue(cbTurnCardData[0])<GetCardLogicValue(m_cbAllCardData[wUpsideUser][0])) && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard=false ; //搜索有没有大牌(针对飞机带翅膀后面的带牌) for(BYTE k=3; k<CanOutCard.cbEachHandCardCount[Index]; ++k) { if(GetCardLogicValue(CanOutCard.cbCardData[Index][k])>=15 && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard = false ; } if(bNoLargeCard) { bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } } if(bFindCard) { //最大牌 BYTE cbLargestLogicCard ; if(wOutCardUser==wUndersideUser) cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[wUndersideUser][0]) ; else if(wOutCardUser==wUpsideUser) cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[wUpsideUser][0]) ; bool bCanOut=true ; //王只压2 if(GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard) { if(GetCardColor(CanOutCard.cbCardData[cbCanOutIndex][0])==0x40 && GetCardLogicValue(cbTurnCardData[0])<=14 && cbHandCardCount>5) { bCanOut = false ; } } //双王判断 if(GetCardLogicValue(CanOutCard.cbCardData[cbCanOutIndex][0])>=16 && cbHandCardCount>=2 && cbHandCardData[0]==0x4F && cbHandCardData[1]==0x4E) { bool bOutMissileCard = false ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(cbRemainCardData, 2, cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= 2 ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutMissileCard = true; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && GetCardLogicValue(cbRemainCardData[0])>=14) bOutMissileCard = true; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CanOutCard.cbCardData[cbCanOutIndex], CanOutCard.cbEachHandCardCount[cbCanOutIndex]) ; if(cbSingleCardCount<=1 && GetCardLogicValue(cbRemainCardData[0])>=11) bOutMissileCard = true; //还有小牌 if (GetCardLogicValue(cbRemainCardData[0]) <= 10 && CT_ERROR == GetCardType(cbRemainCardData, cbRemainCardCount) && (GetCardLogicValue(m_cbAllCardData[(1+m_wBankerUser) % GAME_PLAYER][0]) > 10 || GetCardLogicValue(m_cbAllCardData[(2+m_wBankerUser) % GAME_PLAYER][0]) > 10)) bOutMissileCard = false ; //火箭扑克 if(bOutMissileCard) { //优先其他炸弹 BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], OutCardResult.cbCardCount) ; return ; } } if(bCanOut) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } } if(cbOutCardType==CT_SINGLE) { //闲家的最大牌 BYTE cbLargestLogicCard ; if(wOutCardUser==wUndersideUser) cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[wUndersideUser][0]) ; else if(wOutCardUser==wUpsideUser) cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[wUpsideUser][0]) ; if(GetCardLogicValue(cbTurnCardData[0])==14 || GetCardLogicValue(cbTurnCardData[0])>=cbLargestLogicCard || (GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard-1) || (wOutCardUser==wUndersideUser&&m_cbUserCardCount[wUndersideUser]<=5 || wOutCardUser==wUpsideUser&&m_cbUserCardCount[wUpsideUser]<=5)) { //取一张大于等于2而且要比闲家出的牌大的牌, BYTE cbIndex=MAX_COUNT ; for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])>GetCardLogicValue(cbTurnCardData[0]) && GetCardLogicValue(cbHandCardData[i])>=15) { cbIndex = i ; } if(cbIndex!=MAX_COUNT) { //设置变量 OutCardResult.cbCardCount=1; OutCardResult.cbResultCard[0] = cbHandCardData[cbIndex] ; return ; } } } BYTE cbMinSingleCount=MAX_COUNT ; BYTE Index=0 ; for(BYTE i=0; i<CardTypeResult[cbOutCardType].cbCardTypeCount; ++i) { BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbOutCardType].cbCardData[i], CardTypeResult[cbOutCardType].cbEachHandCardCount[i]) ; if(cbMinSingleCount>=cbTmpCount) { cbMinSingleCount = cbTmpCount ; Index = i ; } } //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbOutCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[Index], OutCardResult.cbCardCount) ; return ; } //还要考虑炸弹 if(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount>0) { tagOutCardTypeResult const &BomCard = CardTypeResult[CT_BOMB_CARD] ; BYTE cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[0][0]) ; BYTE Index = 0 ; for(BYTE i=0; i<BomCard.cbCardTypeCount; ++i) { if(cbMinLogicValue>GetCardLogicValue(BomCard.cbCardData[i][0])) { cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[i][0]) ; Index = i ; } } bool bOutBomb=false ; //另一闲家 //WORD wOtherUser=INVALID_CHAIR ; //for(WORD wUser=0; wUser<GAME_PLAYER; ++wUser) // if(wUser!=wOutCardUser && wUser!=m_wBankerUser) wOtherUser=wOtherUser ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(BomCard.cbCardData[Index], BomCard.cbEachHandCardCount[Index], cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= BomCard.cbEachHandCardCount[Index] ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutBomb = true ; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]) ; if(cbSingleCardCount==0 && GetCardLogicValue(cbRemainCardData[0]) > GetCardLogicValue(m_cbAllCardData[wUpsideUser == wOutCardUser ? wUndersideUser : wUpsideUser][0])) bOutBomb = true ; //只剩一手 BYTE cbRemainCardType = GetCardType(m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser]) ; if(cbRemainCardType>CT_ERROR && cbRemainCardType<CT_FOUR_LINE_TAKE_ONE && GetCardLogicValue(m_cbAllCardData[wOutCardUser][0])<15 && cbSingleCardCount < 2 && (GetCardLogicValue(cbRemainCardData[0]) >= GetCardLogicValue(m_cbAllCardData[wUndersideUser][0]) && GetCardLogicValue(cbRemainCardData[0]) >= GetCardLogicValue(m_cbAllCardData[wUpsideUser][0]))) bOutBomb = true ; //反春天 if (cbRemainCardType != CT_ERROR && m_lBankerOutCardCount == 1) bOutBomb = true ; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && (cbRemainLargestCard!=GetCardLogicValue(BomCard.cbCardData[Index][0])) && cbRemainLargestCard>GetCardLogicValue(m_cbAllCardData[wOutCardUser][0]) && cbRemainLargestCard > 14) bOutBomb = true ; //分析扑克 tagAnalyseResult AnalyseResult ; AnalysebCardData(cbRemainCardData, cbRemainCardCount, AnalyseResult) ; if (m_cbUserCardCount[wOutCardUser] == 1 && (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4 + 1 >= cbRemainCardCount)) bOutBomb = true ; //设置变量 if(bOutBomb) { OutCardResult.cbCardCount=BomCard.cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]*sizeof(BYTE)); } return ; } return ; } //地主上家(先出牌) void CGameLogic::UpsideOfBankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, WORD wMeChairID, tagOutCardResult & OutCardResult) { //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; //地主只有一张,从大到小出牌 if (m_cbUserCardCount[m_wBankerUser] == 1) { BYTE cbSingleCardData[MAX_COUNT] ; BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbSingleCardData) ; //只剩单牌 if (cbSingleCardCount == cbHandCardCount) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[0] ; return ; } } //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; BYTE cbLineCard[MAX_COUNT] ; BYTE cbThreeLineCard[MAX_COUNT] ; BYTE cbDoubleLineCard[MAX_COUNT] ; BYTE cbLineCardCount; BYTE cbThreeLineCardCount ; BYTE cbDoubleLineCount ; GetAllLineCard(cbHandCardData, cbHandCardCount, cbLineCard, cbLineCardCount) ; GetAllThreeCard(cbHandCardData, cbHandCardCount, cbThreeLineCard, cbThreeLineCardCount) ; GetAllDoubleCard(cbHandCardData, cbHandCardCount, cbDoubleLineCard, cbDoubleLineCount) ; //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { WORD wMeChairID = (m_wBankerUser+2)%GAME_PLAYER ; if(TestOutAllCard(wMeChairID, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], true)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; else if ( 15 == GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 2; else if ( 15 < GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 3; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; if(cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //对王和两单 if ( cbHandCardCount == 4 && GetCardLogicValue(cbHandCardData[1]) == 16 && m_cbUserCardCount[m_wBankerUser] == 1 && GetCardLogicValue(cbHandCardData[2]) < GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[2] ; return ; } //四带牌型判断 if ( AnalyseFourCardType(cbHandCardData, cbHandCardCount, m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], OutCardResult ) ) { return ; } //如果有顺牌和单只或一对,而且单只或对比地主的小,则先出顺 { if(cbLineCardCount+1==cbHandCardCount && CT_SINGLE==GetCardType(cbLineCard, cbLineCardCount)) { OutCardResult.cbCardCount = cbLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbLineCard, cbLineCardCount) ; } else if(cbThreeLineCardCount+1==cbHandCardCount && CT_THREE_LINE==GetCardType(cbThreeLineCard, cbThreeLineCardCount)) { OutCardResult.cbCardCount = cbThreeLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbThreeLineCard, cbThreeLineCardCount) ; } else if(cbDoubleLineCount+1==cbHandCardCount && CT_DOUBLE_LINE==GetCardType(cbDoubleLineCard, cbDoubleLineCount)) { OutCardResult.cbCardCount = cbDoubleLineCount ; CopyMemory(OutCardResult.cbResultCard, cbDoubleLineCard, cbDoubleLineCount) ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbHandCardData+2, cbHandCardCount-2)) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; } if(OutCardResult.cbCardCount>0) { return ; } } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //只剩一手牌 else if(CT_ERROR!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_ONE!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_TWO!=GetCardType(cbHandCardData, cbHandCardCount)) { OutCardResult.cbCardCount = cbHandCardCount ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount) ; return ; } //只剩一张和一手 if(cbHandCardCount>=2) { //地主扑克 tagOutCardTypeResult BankerCanOutCardType1[13] ; ZeroMemory(BankerCanOutCardType1, sizeof(BankerCanOutCardType1)) ; tagOutCardTypeResult BankerCanOutCardType2[13] ; ZeroMemory(BankerCanOutCardType2, sizeof(BankerCanOutCardType2)) ; BYTE cbFirstHandCardType = GetCardType(cbHandCardData, cbHandCardCount-1) ; BYTE cbSecondHandCardType = GetCardType(cbHandCardData+1, cbHandCardCount-1) ; //是否有炸 BYTE cbAllBombCardData[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCardData, cbAllBombCount) ; //没有炸弹 if (cbAllBombCount <= 0 && cbFirstHandCardType!=CT_THREE_LINE_TAKE_ONE && cbFirstHandCardType!=CT_THREE_LINE_TAKE_TWO) { //地主可以出的牌 if(cbFirstHandCardType!=CT_ERROR) AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbHandCardData, cbHandCardCount-1, BankerCanOutCardType1) ; if(cbSecondHandCardType!=CT_ERROR) AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbHandCardData+1, cbHandCardCount-1, BankerCanOutCardType2) ; if(cbSecondHandCardType!=CT_ERROR && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[cbSecondHandCardType].cbCardTypeCount==0 && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } if(cbFirstHandCardType!=CT_ERROR && cbFirstHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbFirstHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType1[cbFirstHandCardType].cbCardTypeCount==0 && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount-1) ; return ; } if(GetCardLogicValue(cbHandCardData[0])>=GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) && CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[0] ; return ; } if(CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } } //还有炸弹 else { //除去炸后的牌 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0 ; CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; RemoveCard(cbAllBombCardData, cbAllBombCount, cbRemainCard, cbRemainCount); cbRemainCount -= cbAllBombCount ; if (GetCardType(cbRemainCard, cbRemainCount) != CT_ERROR) { OutCardResult.cbCardCount = cbRemainCount ; CopyMemory(OutCardResult.cbResultCard, cbRemainCard, cbRemainCount) ; return ; } } } //对牌接牌判断 WORD wFriendID = (m_wBankerUser + 1) % GAME_PLAYER ; if (1 == m_cbUserCardCount[m_wBankerUser] && cbHandCardCount >= 2 && m_cbUserCardCount[wFriendID] >= 2) { tagAnalyseResult MeAnalyseResult ; ZeroMemory(&MeAnalyseResult, sizeof(MeAnalyseResult)) ; //分析扑克 AnalysebCardData(cbHandCardData, cbHandCardCount, MeAnalyseResult) ; tagAnalyseResult FriendAnalyseResult ; ZeroMemory(&FriendAnalyseResult, sizeof(FriendAnalyseResult)) ; //分析扑克 AnalysebCardData(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID], FriendAnalyseResult) ; //对牌判断 if ((m_cbUserCardCount[wFriendID] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || m_cbUserCardCount[wFriendID] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) && MeAnalyseResult.cbDoubleCount > 0 && FriendAnalyseResult.cbDoubleCount > 0) { //最小对子 BYTE cbMeLeastDoubleCardLogic = GetCardLogicValue(MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-2]) ; //最大对子 BYTE cbFriendLargestDoublecardLogic = GetCardLogicValue(FriendAnalyseResult.cbDoubleCardData[0]) ; //出对判断 if (cbMeLeastDoubleCardLogic < 14 && cbMeLeastDoubleCardLogic < cbFriendLargestDoublecardLogic) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-2] ; OutCardResult.cbResultCard[1] = MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-1] ; return ; } } } //下家为地主,而且地主扑克少于5张 // if(m_cbUserCardCount[m_wBankerUser]<=5) { //分析扑克 tagOutCardTypeResult MeOutCardTypeResult[13] ; ZeroMemory(MeOutCardTypeResult, sizeof(MeOutCardTypeResult)) ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, MeOutCardTypeResult) ; //对家扑克 WORD wFriendID ; for(WORD wChairID=0; wChairID<GAME_PLAYER; ++wChairID) if(wChairID!=m_wBankerUser && wMeChairID!=wChairID) wFriendID = wChairID ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //分析地主对牌 BYTE cbBankerDoubleCardData[MAX_COUNT], cbBankerDoubleCardCount ; GetAllDoubleCard(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbBankerDoubleCardData, cbBankerDoubleCardCount) ; //除炸弹外的牌 for(BYTE cbCardType=CT_DOUBLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = MeOutCardTypeResult[cbCardType] ; //相同牌型,相同长度,单连,对连等相同牌型可能长度不一样 BYTE cbThisHandCardCount = MAX_COUNT ; //地主扑克 tagOutCardTypeResult BankerCanOutCard[13] ; ZeroMemory(BankerCanOutCard, sizeof(BankerCanOutCard)) ; tagOutCardTypeResult FriendOutCardTypeResult[13] ; ZeroMemory(FriendOutCardTypeResult, sizeof(FriendOutCardTypeResult)) ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //拆三条判断 if ( cbCardType == CT_DOUBLE ) { tagAnalyseResult AnalyseResult ; ZeroMemory( &AnalyseResult, sizeof( AnalyseResult ) ) ; AnalysebCardData( cbHandCardData, cbHandCardCount, AnalyseResult ) ; if ( AnalyseResult.cbSignedCount + AnalyseResult.cbThreeCount * 3 == cbHandCardCount ) { bool bContinue = false ; for ( BYTE cbThreeIndex = 0; cbThreeIndex < AnalyseResult.cbThreeCount; ++cbThreeIndex ) if ( GetCardValue( tmpCardResult.cbCardData[i][0] ) == GetCardValue( AnalyseResult.cbThreeCardData[3 * cbThreeIndex] ) ) { bContinue = true ; break ; } if ( bContinue ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; //拦截对牌 if (cbCardType == CT_DOUBLE && cbBankerDoubleCardCount > 0 && GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) < 10 && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) < GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) >= 10 && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < 14) continue ; //重新分析 if(tmpCardResult.cbEachHandCardCount[i]!=cbThisHandCardCount) { cbThisHandCardCount = tmpCardResult.cbEachHandCardCount[i] ; AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,BankerCanOutCard) ; AnalyseOutCardType(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,FriendOutCardTypeResult) ; } BYTE cbMaxValue=0 ; BYTE Index = 0 ; //针对顺子,三条的大牌 BYTE cbCurrentCardType = GetCardType(tmpCardResult.cbCardData[i], cbThisHandCardCount) ; if (cbThisHandCardCount != cbHandCardCount && cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 )) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], cbThisHandCardCount, cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= cbThisHandCardCount ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && cbThisHandCardCount <=5 || cbCurrentCardType == CT_SINGLE_LINE && cbThisHandCardCount <= 6 && cbCurrentLargestLogicCard >= 12 || cbCurrentCardType >= CT_DOUBLE_LINE && cbCurrentCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && cbThisHandCardCount <= 8)) { //暂时不出 if ( cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } //地主可以压牌,而且队友不可以压地主 if((BankerCanOutCard[cbCardType].cbCardTypeCount>0&&FriendOutCardTypeResult[cbCardType].cbCardTypeCount==0) || (BankerCanOutCard[cbCardType].cbCardTypeCount>0 && FriendOutCardTypeResult[cbCardType].cbCardTypeCount>0 && GetCardLogicValue(FriendOutCardTypeResult[cbCardType].cbCardData[0][0])<=GetCardLogicValue(BankerCanOutCard[cbCardType].cbCardData[0][0]))) { //地主跑掉 if( BankerCanOutCard[cbCardType].cbEachHandCardCount[0] > 0 && m_cbUserCardCount[m_wBankerUser]<=BankerCanOutCard[cbCardType].cbEachHandCardCount[0]+1) continue ; //自己不可以再拿回牌权 if(GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < GetCardLogicValue(BankerCanOutCard[cbCardType].cbCardData[0][0]) && BankerCanOutCard[cbCardType].cbCardTypeCount > 0) continue ; } //是否有大牌 if(tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount) { bool bHaveLargeCard=false ; for(BYTE j=0; j<tmpCardResult.cbEachHandCardCount[i]; ++j) if(GetCardLogicValue(tmpCardResult.cbCardData[i][j])>=15) bHaveLargeCard=true ; if(cbCardType!=CT_SINGLE_LINE && cbCardType!=CT_DOUBLE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][0])==14) bHaveLargeCard=true ; if(bHaveLargeCard) continue ; } //地主是否可以走掉,这里都没有考虑炸弹 if(tmpCardResult.cbEachHandCardCount[i]==m_cbUserCardCount[m_wBankerUser] && cbCardType==GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser]) && GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])>GetCardLogicValue(tmpCardResult.cbCardData[i][0])) continue ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour>=AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0)+3 && m_cbUserCardCount[m_wBankerUser]>4) cbMinSingleCountInFour=MAX_COUNT ; if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,MeOutCardTypeResult[cbMinCardType].cbCardData[Index],MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //如果地主扑克少于5,还没有找到适合的牌则从大出到小 if(OutCardResult.cbCardCount<=0 && m_cbUserCardCount[m_wBankerUser]<=5) { //只有一张牌时不能放地主走 if(m_cbUserCardCount[m_wBankerUser]==1 && MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount>0) { BYTE Index=MAX_COUNT ; for(BYTE i=0; i<MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount; ++i) { if(GetCardLogicValue(MeOutCardTypeResult[CT_SINGLE].cbCardData[i][0])>=GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) { Index=i ; } else break ; } if(MAX_COUNT!=Index) { OutCardResult.cbCardCount = MeOutCardTypeResult[CT_SINGLE].cbEachHandCardCount[Index] ; CopyMemory(OutCardResult.cbResultCard, MeOutCardTypeResult[CT_SINGLE].cbCardData[Index], OutCardResult.cbCardCount) ; return ; } } } } BYTE cbFirstCard=0 ; //过滤王和2 for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])<15) { cbFirstCard = i ; break ; } if(cbFirstCard<cbHandCardCount-1) AnalyseOutCardType(cbHandCardData+cbFirstCard, cbHandCardCount-cbFirstCard, CardTypeResult) ; else AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //分析地主单牌 BYTE cbBankerSingleCardData[MAX_COUNT] ; BYTE cbBankerSingleCardCount=AnalyseSinleCardCount(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], NULL, 0, cbBankerSingleCardData) ; BYTE cbBankerSingleCardLogic = 0 ; if(cbBankerSingleCardCount>=2 && GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-2])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-2]) ; else if(cbBankerSingleCardCount>=2 && GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1]) ; else if(cbBankerSingleCardCount>0 && GetCardLogicValue(cbBankerSingleCardData[0])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[0]) ; //分析地主对牌 BYTE cbBankerDoubleCardData[MAX_COUNT], cbBankerDoubleCardCount ; GetAllDoubleCard(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbBankerDoubleCardData, cbBankerDoubleCardCount) ; //除炸弹外的牌 for(BYTE cbCardType=CT_SINGLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = CardTypeResult[cbCardType] ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //不能放走地主小牌 if(cbCardType==CT_SINGLE && cbBankerSingleCardCount > 0 && GetCardLogicValue(tmpCardResult.cbCardData[i][0])<cbBankerSingleCardLogic) continue ; //拦截对牌 if (cbCardType == CT_DOUBLE && cbBankerDoubleCardCount > 0 && GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) < 10 && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) < GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) >= 10 && GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < 14) continue ; //针对顺子,三条的大牌 if ( tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount && cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i]-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 )) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i], cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= tmpCardResult.cbEachHandCardCount[i] ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && tmpCardResult.cbEachHandCardCount[i] <=5 || cbCardType == CT_SINGLE_LINE && tmpCardResult.cbEachHandCardCount[i] <= 6 && cbCurrentLargestLogicCard >= 12 || cbCardType >= CT_DOUBLE_LINE && cbCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && tmpCardResult.cbEachHandCardCount[i] <= 8)) { //暂时不出 if ( cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i] - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,CardTypeResult[cbMinCardType].cbCardData[Index],CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //如果只剩炸弹 else if (CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0) { //BYTE Index=0 ; //BYTE cbLogicCardValue = GetCardLogicValue(0x4F)+1 ; ////最小炸弹 //for(BYTE i=0; i<CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; ++i) // if(cbLogicCardValue>GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0])) // { // cbLogicCardValue = GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0]) ; // Index = i ; // } // //设置变量 // OutCardResult.cbCardCount=CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]; // CopyMemory(OutCardResult.cbResultCard,CardTypeResult[CT_BOMB_CARD].cbCardData[Index],CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]*sizeof(BYTE)); // return ; } BYTE cbAllSingleCardData[MAX_COUNT], cbAllSingleCardCount ; cbAllSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbAllSingleCardData) ; if ( cbAllSingleCardCount > 0 ) { //如果都没有搜索到就出最小的一张 if ( 1 == m_cbUserCardCount[m_wBankerUser] ) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbAllSingleCardData[0] ; } else { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbAllSingleCardData[cbAllSingleCardCount-1] ; } return ; } //如果都没有搜索到就出最小的一张 OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[cbHandCardCount-1] ; return ; } //地主上家(后出牌) void CGameLogic::UpsideOfBankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, WORD wOutCardUser, const BYTE cbTurnCardData[], BYTE cbTurnCardCount, tagOutCardResult & OutCardResult) { //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; //出牌类型 BYTE cbOutCardType = GetCardType(cbTurnCardData, cbTurnCardCount) ; //地主只有一张,从大到小出牌 if (m_cbUserCardCount[m_wBankerUser] == 1 && wOutCardUser != m_wBankerUser && CT_SINGLE == cbOutCardType) { BYTE cbSingleCardData[MAX_COUNT] ; BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbSingleCardData) ; WORD wFriendID = (m_wBankerUser+1) % GAME_PLAYER ; WORD wMeID = (wFriendID+1) % GAME_PLAYER ; BYTE cbFriendLargestLogicCard = GetCardLogicValue(m_cbAllCardData[wFriendID][0]) ; BYTE cbMeLargestLogicCard = GetCardLogicValue(cbHandCardData[0]) ; BYTE cbTurnLogicCard = GetCardLogicValue(cbTurnCardData[0]) ; //只剩单牌(人性化处理) if (cbSingleCardCount == cbHandCardCount && cbFriendLargestLogicCard > cbTurnLogicCard && cbMeLargestLogicCard > cbTurnLogicCard) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[0] ; return ; } } //搜索可出牌 tagOutCardTypeResult BankerOutCardTypeResult[13] ; ZeroMemory(BankerOutCardTypeResult, sizeof(BankerOutCardTypeResult)) ; AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], BankerOutCardTypeResult) ; AnalyseOutCardType(cbHandCardData,cbHandCardCount,cbTurnCardData,cbTurnCardCount, CardTypeResult) ; //只剩炸弹 if(cbHandCardCount==CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] && (cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[0][0])>GetCardLogicValue(cbTurnCardData[0]))) { OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData, OutCardResult.cbCardCount) ; return ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbHandCardData+2, cbHandCardCount-2)) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //炸弹和一手 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0; BYTE cbAllBombCard[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCard, cbAllBombCount) ; //出炸判断 if(cbAllBombCount>0 && m_wBankerUser==wOutCardUser) { //剩余扑克 CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; RemoveCard(cbAllBombCard, cbAllBombCount, cbRemainCard, cbRemainCount); cbRemainCount -= cbAllBombCount ; if(CT_ERROR != GetCardType(cbRemainCard, cbRemainCount) || (2==cbRemainCount && GetCardLogicValue(cbRemainCard[0])>GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]))) { if((cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(cbAllBombCard[0])>GetCardLogicValue(cbTurnCardData[0])) && ( CardTypeResult[cbOutCardType].cbCardTypeCount <= 0 || CT_ERROR != GetCardType(cbRemainCard, cbRemainCount)) ) { //双王炸弹 if(GetCardColor(cbAllBombCard[0])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //分析地主牌 BYTE cbBankerAllBombCard[MAX_COUNT], cbBankerAllBombCardCount ; GetAllBomCard( m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbBankerAllBombCard, cbBankerAllBombCardCount) ; if ( !CompareCard( cbTurnCardData, cbRemainCard, cbTurnCardCount, cbRemainCount) || cbBankerAllBombCardCount <= 0 || GetCardLogicValue( cbAllBombCard[0] ) > GetCardLogicValue( cbBankerAllBombCard[0] ) ) { OutCardResult.cbCardCount = 4 ; CopyMemory(OutCardResult.cbResultCard, cbAllBombCard, 4) ; return ; } } } } } //只有一手牌 if ( GetCardType(cbHandCardData, cbHandCardCount) != CT_FOUR_LINE_TAKE_ONE && GetCardType(cbHandCardData, cbHandCardCount) != CT_FOUR_LINE_TAKE_TWO && CompareCard(cbTurnCardData, cbHandCardData, cbTurnCardCount, cbHandCardCount) ) { OutCardResult.cbCardCount = cbHandCardCount ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount) ; return ; } //对牌接牌判断 if (1 == m_cbUserCardCount[m_wBankerUser] && cbHandCardCount >= 2 && cbOutCardType == CT_DOUBLE) { tagAnalyseResult AnalyseResult ; ZeroMemory(&AnalyseResult, sizeof(AnalyseResult)) ; //分析扑克 AnalysebCardData(cbHandCardData, cbHandCardCount, AnalyseResult) ; //对牌判断 if (cbHandCardCount == (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4) || cbHandCardCount == (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4 + 1)) { //出对判断 for (int nIndex = AnalyseResult.cbDoubleCount-1; nIndex>=0 ; --nIndex) { if (GetCardLogicValue(AnalyseResult.cbDoubleCardData[nIndex*2]) > GetCardLogicValue(cbTurnCardData[0])) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = AnalyseResult.cbDoubleCardData[nIndex*2] ; OutCardResult.cbResultCard[1] = AnalyseResult.cbDoubleCardData[nIndex*2+1] ; return ; } } //出炸判断 if (AnalyseResult.cbFourCount > 0) { //最小炸弹 BYTE cbLestBombIndex = AnalyseResult.cbFourCount-1 ; OutCardResult.cbCardCount = 4 ; OutCardResult.cbResultCard[0] = AnalyseResult.cbFourCardData[cbLestBombIndex*4] ; OutCardResult.cbResultCard[1] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+1] ; OutCardResult.cbResultCard[2] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+2] ; OutCardResult.cbResultCard[3] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+3] ; return ; } } //分析对家 if ( wOutCardUser != m_wBankerUser ) { tagAnalyseResult FriendAnalyseResult ; ZeroMemory( &FriendAnalyseResult, sizeof( FriendAnalyseResult ) ) ; //分析扑克 AnalysebCardData( m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser], FriendAnalyseResult ) ; //对牌判断 if (m_cbUserCardCount[wOutCardUser] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || m_cbUserCardCount[wOutCardUser] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } //零下标没用 tagOutCardTypeResult FriendCardTypeResult[12+1] ; ZeroMemory( FriendCardTypeResult, sizeof( FriendCardTypeResult ) ) ; AnalyseOutCardType( m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser], FriendCardTypeResult ) ; for ( BYTE cbLineCardIdx = 0; cbLineCardIdx < FriendCardTypeResult[CT_SINGLE_LINE].cbCardTypeCount; ++cbLineCardIdx ) { //剩余扑克 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; cbRemainCardCount = m_cbUserCardCount[wOutCardUser] ; CopyMemory( cbRemainCardData, m_cbAllCardData[wOutCardUser], cbRemainCardCount ) ; RemoveCard( FriendCardTypeResult[CT_SINGLE_LINE].cbCardData[cbLineCardIdx], FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx], cbRemainCardData, cbRemainCardCount ); cbRemainCardCount -= FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx] ; //分析扑克 AnalysebCardData( cbRemainCardData, cbRemainCardCount, FriendAnalyseResult ) ; //对牌判断 if (cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } } for ( BYTE cbLineCardIdx = 0; cbLineCardIdx < FriendCardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount; ++cbLineCardIdx ) { //剩余扑克 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; cbRemainCardCount = m_cbUserCardCount[wOutCardUser] ; CopyMemory( cbRemainCardData, m_cbAllCardData[wOutCardUser], cbRemainCardCount ) ; RemoveCard( FriendCardTypeResult[CT_SINGLE_LINE].cbCardData[cbLineCardIdx], FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx], cbRemainCardData, cbRemainCardCount ) ; cbRemainCardCount -= FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx] ; //分析扑克 AnalysebCardData( cbRemainCardData, cbRemainCardCount, FriendAnalyseResult ) ; //对牌判断 if (cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } } } } //对家可否出完 if( m_wBankerUser != wOutCardUser && ! CompareCard( cbTurnCardData, m_cbAllCardData[ m_wBankerUser ], cbTurnCardCount, m_cbUserCardCount[ m_wBankerUser ] ) ) { //庄家扑克 bool bBankerCanOut = false ; tagOutCardTypeResult BankerOutCardResult[12+1] ; ZeroMemory(BankerOutCardResult, sizeof(BankerOutCardResult)) ; //分析扑克 AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbTurnCardData, cbTurnCardCount, BankerOutCardResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(BankerOutCardResult[cbCardType].cbCardTypeCount>0) bBankerCanOut = true ; if(!bBankerCanOut) { //对家ID WORD wFriendChairID = (m_wBankerUser+1)%GAME_PLAYER ; //分析扑克 tagOutCardTypeResult FriendCardTypeResult[12+1] ; ZeroMemory(FriendCardTypeResult, sizeof(FriendCardTypeResult)) ; AnalyseOutCardType(m_cbAllCardData[wFriendChairID], m_cbUserCardCount[wFriendChairID], FriendCardTypeResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(FriendCardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<FriendCardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { if(TestOutAllCard(wFriendChairID, FriendCardTypeResult[cbCardType].cbCardData[lIndex], FriendCardTypeResult[cbCardType].cbEachHandCardCount[lIndex], true)) { //不压对家 return ; } } } } } //放走对家 if (GetCardType(m_cbAllCardData[(m_wBankerUser + 1) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 1) % GAME_PLAYER]) == GetCardType(cbTurnCardData, cbTurnCardCount) && CompareCard(cbTurnCardData, m_cbAllCardData[(m_wBankerUser + 1) % GAME_PLAYER], cbTurnCardCount, m_cbUserCardCount[(m_wBankerUser + 1) % GAME_PLAYER]) && !CompareCard(cbTurnCardData, m_cbAllCardData[m_wBankerUser], cbTurnCardCount, m_cbUserCardCount[m_wBankerUser])) return ; if (CompareCard(cbTurnCardData, m_cbAllCardData[(m_wBankerUser + 1) % GAME_PLAYER], cbTurnCardCount, m_cbUserCardCount[(m_wBankerUser + 1) % GAME_PLAYER]) && !CompareCard(cbTurnCardData, m_cbAllCardData[m_wBankerUser], cbTurnCardCount, m_cbUserCardCount[m_wBankerUser])) return ; //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { WORD wMeChairID = (m_wBankerUser+2)%GAME_PLAYER ; if(TestOutAllCard(wMeChairID, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], false)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; //不出炸弹 //BYTE cbWantOutCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //if (CardTypeResult[cbOutCardType].cbCardTypeCount > 0 && cbOutCardType < CT_BOMB_CARD && cbWantOutCardType >= CT_BOMB_CARD) continue ; if(cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //如果庄家没有此牌型了则不压对家牌 if( m_cbUserCardCount[m_wBankerUser]<=5 && wOutCardUser!=m_wBankerUser && (BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount==0 || GetCardLogicValue(BankerOutCardTypeResult[cbOutCardType].cbCardData[0][0])<=GetCardLogicValue(cbTurnCardData[0])) && CardTypeResult[cbOutCardType].cbEachHandCardCount[0]!=cbHandCardCount)//不能一次出完 { //放弃出牌 return ; } //下家为地主,而且地主扑克少于5张 if(m_cbUserCardCount[m_wBankerUser]<=5 && CardTypeResult[cbOutCardType].cbCardTypeCount>0 && cbOutCardType!=CT_BOMB_CARD && ((GetCardLogicValue(cbTurnCardData[0])<12 && wOutCardUser!=m_wBankerUser && BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount>0) ||//对家出牌 (wOutCardUser==m_wBankerUser)))//地主出牌 { //防止三带等带大牌出去 BYTE Index = cbOutCardType == CT_SINGLE ? 0 : CardTypeResult[cbOutCardType].cbCardTypeCount - 1 ; //寻找可以压住地主的最小一手牌 BYTE cbThisOutTypeMinSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbOutCardType].cbCardData[0], CardTypeResult[cbOutCardType].cbEachHandCardCount[0]) ; BYTE cbBestIndex = 255 ; for(BYTE i=0; i<CardTypeResult[cbOutCardType].cbCardTypeCount; ++i) { BYTE cbTmpSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbOutCardType].cbCardData[i], CardTypeResult[cbOutCardType].cbEachHandCardCount[i]) ; if((BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount>0 && GetCardLogicValue(CardTypeResult[cbOutCardType].cbCardData[i][0])>=GetCardLogicValue(BankerOutCardTypeResult[cbOutCardType].cbCardData[0][0]) || BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount==0) && cbTmpSingleCardCount<=cbThisOutTypeMinSingleCount) { cbBestIndex = i ; cbThisOutTypeMinSingleCount = cbTmpSingleCardCount ; } if((BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount>0 && GetCardLogicValue(CardTypeResult[cbOutCardType].cbCardData[i][0])>=GetCardLogicValue(BankerOutCardTypeResult[cbOutCardType].cbCardData[0][0]) || BankerOutCardTypeResult[cbOutCardType].cbCardTypeCount==0)) Index = i ; else break ; } if(cbBestIndex!=255) { OutCardResult.cbCardCount = CardTypeResult[cbOutCardType].cbEachHandCardCount[cbBestIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[cbBestIndex], OutCardResult.cbCardCount) ; } else { OutCardResult.cbCardCount = CardTypeResult[cbOutCardType].cbEachHandCardCount[Index] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[Index], OutCardResult.cbCardCount) ; } return ; } //单牌顶牌 if (CT_SINGLE == cbOutCardType && CardTypeResult[cbOutCardType].cbCardTypeCount > 0) { BYTE cbMeSingleCardData[MAX_COUNT], cbMeSingleCardCount ; BYTE cbBankerSingleCardData[MAX_COUNT], cbBankerSingleCardCount ; //获取单牌 cbMeSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbMeSingleCardData) ; cbBankerSingleCardCount = AnalyseSinleCardCount(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], NULL, 0, cbBankerSingleCardData) ; //地主还有小牌 if (cbBankerSingleCardCount > 0 && cbMeSingleCardCount > 0 && GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1]) <= 10) { //拦截两张 if (cbBankerSingleCardCount >= 2 && GetCardValue(cbBankerSingleCardData[cbBankerSingleCardCount-2]) <= 10) { for (int nMeIndex = cbMeSingleCardCount-1; nMeIndex >=0 ; --nMeIndex) if (GetCardLogicValue(cbMeSingleCardData[nMeIndex]) > GetCardLogicValue(cbTurnCardData[0]) && GetCardLogicValue(cbMeSingleCardData[nMeIndex]) >= GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-2]) && GetCardLogicValue(cbMeSingleCardData[nMeIndex]) <= 15) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbMeSingleCardData[nMeIndex] ; return ; } } //拦截一张 for (int nMeIndex = cbMeSingleCardCount-1; nMeIndex >=0 ; --nMeIndex) if (GetCardLogicValue(cbMeSingleCardData[nMeIndex]) > GetCardLogicValue(cbTurnCardData[0]) && GetCardLogicValue(cbMeSingleCardData[nMeIndex]) >= GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1]) && GetCardLogicValue(cbMeSingleCardData[nMeIndex]) <= 15) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbMeSingleCardData[nMeIndex] ; return ; } } } //取出四个最小单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbMinSingleCountInFour=MAX_COUNT ; //可出扑克(这里已经过滤掉炸弹了) tagOutCardTypeResult const &CanOutCard = CardTypeResult[cbOutCardType] ; for(BYTE i=0; i<CanOutCard.cbCardTypeCount; ++i) { //最小单牌 BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,CanOutCard.cbCardData[i], CanOutCard.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; break ; } } } for(BYTE i=0; i<4; ++i) if(cbMinSingleCountInFour>cbMinSingleCardCount[i]) cbMinSingleCountInFour = cbMinSingleCardCount[i] ; //原始单牌数 BYTE cbOriginSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,NULL,0) ; //分析地主对牌 BYTE cbBankerDoubleCardData[MAX_COUNT], cbBankerDoubleCardCount ; GetAllDoubleCard(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbBankerDoubleCardData, cbBankerDoubleCardCount) ; //朋友出牌 bool bFriendOut = m_wBankerUser!=wOutCardUser ; if(bFriendOut) { //不拦截朋友最后一手牌 if (GetCardType(m_cbAllCardData[(1 + m_wBankerUser) % GAME_PLAYER], m_cbUserCardCount[(1 + m_wBankerUser) % GAME_PLAYER]) != CT_ERROR) return ; //在上面的TestOutAllCard中已对可出炸弹情况分析过 if(CanOutCard.cbCardTypeCount>0 && CanOutCard.cbCardType < CT_BOMB_CARD) { //分析地主单牌 BYTE cbBankerSingleCardData[MAX_COUNT] ; BYTE cbBankerSingleCardCount=AnalyseSinleCardCount(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], NULL, 0, cbBankerSingleCardData) ; BYTE cbBankerSingleCardLogic = 0 ; if(cbBankerSingleCardCount>=2 && GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-2])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-2]) ; else if(cbBankerSingleCardCount>=2 && GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[cbBankerSingleCardCount-1]) ; else if(cbBankerSingleCardCount>0 && GetCardLogicValue(cbBankerSingleCardData[0])<=10) cbBankerSingleCardLogic = GetCardLogicValue(cbBankerSingleCardData[0]) ; BYTE cbMinLogicCardValue = GetCardLogicValue(0x4F)+1 ; bool bFindCard = false ; BYTE cbCanOutIndex=0 ; for(BYTE i=0; i<4; ++i) { BYTE Index = cbIndex[i] ; //三带,和连牌不接对家牌 if ( CanOutCard.cbCardType >= CT_THREE && CanOutCard.cbCardType <= CT_MISSILE_CARD && GetCardLogicValue(CanOutCard.cbCardData[Index][0]) >= 7 && CanOutCard.cbEachHandCardCount[Index] <=5 ) continue ; //单牌拦截 bool bCanOut = false ; if(cbOutCardType==CT_SINGLE && cbBankerSingleCardCount > 0 && GetCardLogicValue(CanOutCard.cbCardData[Index][0]) >= cbBankerSingleCardLogic && GetCardLogicValue(cbTurnCardData[0]) < 14 && cbMinSingleCardCount[i] < cbOriginSingleCardCount && GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) > GetCardLogicValue(cbTurnCardData[0])) bCanOut = true ; //拦截对牌 //if (cbOutCardType == CT_DOUBLE && cbBankerDoubleCardCount > 0 && GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) < 10 && // GetCardLogicValue(CanOutCard.cbCardData[Index][0]) < GetCardLogicValue(cbBankerDoubleCardData[cbBankerDoubleCardCount-1]) && // GetCardLogicValue(CanOutCard.cbCardData[0][0]) >= 10 && GetCardLogicValue(CanOutCard.cbCardData[0][0]) < 14) continue ; //小于J的牌,或者小于K而且是散牌 if(bCanOut || ((cbMinSingleCardCount[i]<cbOriginSingleCardCount+3 && (cbMinSingleCardCount[i]<=cbMinSingleCountInFour || cbMinSingleCardCount[i]<=cbMinSingleCountInFour+1 && CanOutCard.cbCardType >= CT_THREE_LINE_TAKE_ONE && CanOutCard.cbCardType <= CT_THREE_LINE_TAKE_TWO ) && (GetCardLogicValue(CanOutCard.cbCardData[Index][0])<=11 || (cbMinSingleCardCount[i]<cbOriginSingleCardCount)&&GetCardLogicValue(CanOutCard.cbCardData[Index][0])<=13)) && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0]) && cbHandCardCount>5)) { //搜索有没有大牌(针对飞机带翅膀后面的带牌) bool bNoLargeCard = true ; for(BYTE k=3; k<CanOutCard.cbEachHandCardCount[Index]; ++k) { //有大牌而且不能一次出完 if(GetCardLogicValue(CanOutCard.cbCardData[Index][k])>=15 && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard = false ; } if(bNoLargeCard) { bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } else if(cbHandCardCount<5 && cbMinSingleCardCount[i]<cbOriginSingleCardCount+4 && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0])) { //能出王打自家的2 if ( GetCardLogicValue( CanOutCard.cbCardData[Index][0] ) >= 16 && GetCardLogicValue( cbTurnCardData[0] ) >= 15 ) continue ; bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } if(bFindCard) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } //手上少于五张牌 else if(cbHandCardCount<=5) { BYTE cbMinLogicCard = GetCardLogicValue(0x4f)+1 ; BYTE cbCanOutIndex = 0 ; for(BYTE i=0; i<4; ++i) if(cbMinSingleCardCount[i]<MAX_COUNT && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && cbMinLogicCard>GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0]) && GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0])<=14) { cbMinLogicCard = GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0]) ; cbCanOutIndex = cbIndex[i] ; } if(cbMinLogicCard != (GetCardLogicValue(0x4f)+1)) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } } return ; } else { return ; } } //地主出牌 else { if(CanOutCard.cbCardTypeCount>0) { BYTE cbMinLogicCardValue = GetCardLogicValue(0x4F)+1 ; bool bFindCard = false ; BYTE cbCanOutIndex=0 ; for(BYTE i=0; i<4; ++i) { BYTE Index = cbIndex[i] ; if((cbMinSingleCardCount[i]<cbOriginSingleCardCount+4) && (cbMinSingleCardCount[i]<=cbMinSingleCountInFour || cbMinSingleCardCount[i]<=cbMinSingleCountInFour+1 && CanOutCard.cbCardType >= CT_THREE_LINE_TAKE_ONE && CanOutCard.cbCardType <= CT_THREE_LINE_TAKE_TWO ) && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0])) { //针对大牌 bool bNoLargeCard = true ; //当地主手上牌数大于4,而且地主出的是小于K的牌而且不是地主手上的最大牌时,不能出2去打 if(m_cbUserCardCount[m_wBankerUser]>=4 && cbHandCardCount>=5 && CanOutCard.cbEachHandCardCount[Index]>=2 && GetCardLogicValue(CanOutCard.cbCardData[Index][0])>=15 && GetCardLogicValue(cbTurnCardData[0])<13 && GetCardLogicValue(cbTurnCardData[0])<GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard=false ; //搜索有没有大牌(针对飞机带翅膀后面的带牌) for(BYTE k=3; k<CanOutCard.cbEachHandCardCount[Index]; ++k) { if(GetCardLogicValue(CanOutCard.cbCardData[Index][k])>=15 && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard = false ; } if(bNoLargeCard) { bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } } if(bFindCard) { //地主的最大牌 BYTE cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) ; bool bCanOut=true ; //王只压2 if(GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard) { if(GetCardColor(CanOutCard.cbCardData[cbCanOutIndex][0])==0x40 && GetCardLogicValue(cbTurnCardData[0])<=14 && cbHandCardCount>5) { bCanOut = false ; } } //双王判断 if(GetCardLogicValue(CanOutCard.cbCardData[cbCanOutIndex][0])>=16 && cbHandCardCount>=2 && cbHandCardData[0]==0x4F && cbHandCardData[1]==0x4E) { bool bOutMissileCard = false ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(cbRemainCardData, 2, cbRemainCardData, cbRemainCardCount) ; cbRemainCardCount -= 2 ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutMissileCard = true; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && GetCardLogicValue(cbRemainCardData[0])>=14) bOutMissileCard = true; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CanOutCard.cbCardData[cbCanOutIndex], CanOutCard.cbEachHandCardCount[cbCanOutIndex]) ; if(cbSingleCardCount<=1 && GetCardLogicValue(cbRemainCardData[0])>=11) bOutMissileCard = true; //还有小牌 if (GetCardLogicValue(cbRemainCardData[0]) <= 10 && CT_ERROR == GetCardType(cbRemainCardData, cbRemainCardCount) && GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) > 10) bOutMissileCard = false ; //火箭扑克 if(bOutMissileCard) { //优先其他炸弹 BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], OutCardResult.cbCardCount) ; return ; } } if(bCanOut) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } } if(cbOutCardType==CT_SINGLE) { //地主的最大牌 BYTE cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) ; if(GetCardLogicValue(cbTurnCardData[0])==14 || GetCardLogicValue(cbTurnCardData[0])>=cbLargestLogicCard || (GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard-1) || m_cbUserCardCount[m_wBankerUser]<=5) { //取一张大于等于2而且要比地主出的牌大的牌, BYTE cbIndex=MAX_COUNT ; for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])>GetCardLogicValue(cbTurnCardData[0]) && GetCardLogicValue(cbHandCardData[i])>=15) { cbIndex = i ; } if(cbIndex!=MAX_COUNT) { //设置变量 OutCardResult.cbCardCount=1; OutCardResult.cbResultCard[0] = cbHandCardData[cbIndex] ; return ; } } } } //还要考虑炸弹 if(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount>0 /*|| (NORMAL_COUNT == cbHandCardCount&& NORMAL_COUNT == m_cbUserCardCount[(m_wBankerUser+1)%GAME_PLAYER])*/) { tagOutCardTypeResult const &BomCard = CardTypeResult[CT_BOMB_CARD] ; BYTE cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[0][0]) ; BYTE Index = 0 ; for(BYTE i=0; i<BomCard.cbCardTypeCount; ++i) { if(cbMinLogicValue>GetCardLogicValue(BomCard.cbCardData[i][0])) { cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[i][0]) ; Index = i ; } } bool bOutBomb = false ; //春天判断 if (NORMAL_COUNT == cbHandCardCount && NORMAL_COUNT == m_cbUserCardCount[(m_wBankerUser+1)%GAME_PLAYER] && CT_ERROR != GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser])) bOutBomb = true ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(BomCard.cbCardData[Index], BomCard.cbEachHandCardCount[Index], cbRemainCardData, cbRemainCardCount) ; cbRemainCardCount -= BomCard.cbEachHandCardCount[Index] ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutBomb = true ; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]) ; if(cbSingleCardCount==0 && GetCardLogicValue(cbRemainCardData[0]) > GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) bOutBomb = true ; //只剩一手 BYTE cbRemainCardType = GetCardType(m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser]) ; if(cbRemainCardType>CT_ERROR && cbRemainCardType<CT_FOUR_LINE_TAKE_ONE && GetCardLogicValue(m_cbAllCardData[wOutCardUser][0])<15 && cbSingleCardCount < 2 && (GetCardLogicValue(cbRemainCardData[0]) >= GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]))) bOutBomb = true ; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && (cbRemainLargestCard!=GetCardLogicValue(BomCard.cbCardData[Index][0])) && cbRemainLargestCard>GetCardLogicValue(m_cbAllCardData[wOutCardUser][0]) && cbRemainLargestCard > 14) bOutBomb = true ; //分析扑克 tagAnalyseResult AnalyseResult ; AnalysebCardData(cbRemainCardData, cbRemainCardCount, AnalyseResult) ; if (m_cbUserCardCount[m_wBankerUser] ==1 && (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4 + 1 >= cbRemainCardCount)) bOutBomb = true ; //设置变量 if(bOutBomb) { OutCardResult.cbCardCount=BomCard.cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]*sizeof(BYTE)); } return ; } return ; } return ; } //地主下家(先出牌) void CGameLogic::UndersideOfBankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, WORD wMeChairID,tagOutCardResult & OutCardResult) { //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; BYTE cbLineCard[MAX_COUNT] ; BYTE cbThreeLineCard[MAX_COUNT] ; BYTE cbDoubleLineCard[MAX_COUNT] ; BYTE cbLineCardCount; BYTE cbThreeLineCardCount ; BYTE cbDoubleLineCount ; GetAllLineCard(cbHandCardData, cbHandCardCount, cbLineCard, cbLineCardCount) ; GetAllThreeCard(cbHandCardData, cbHandCardCount, cbThreeLineCard, cbThreeLineCardCount) ; GetAllDoubleCard(cbHandCardData, cbHandCardCount, cbDoubleLineCard, cbDoubleLineCount) ; //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { WORD wMeChairID = (m_wBankerUser+1)%GAME_PLAYER ; if(TestOutAllCard(wMeChairID, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], true)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; else if ( 15 == GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 2; else if ( 15 < GetCardLogicValue( CardTypeResult[ cbCardType ].cbCardData[ lIndex ][ 0 ] ) ) cbTmpSingleCount += 3; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; if(cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //对王和两单 if ( cbHandCardCount == 4 && GetCardLogicValue(cbHandCardData[1]) == 16 && m_cbUserCardCount[m_wBankerUser] == 1 && GetCardLogicValue(cbHandCardData[2]) < GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[2] ; return ; } //四带牌型判断 if ( AnalyseFourCardType(cbHandCardData, cbHandCardCount, m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], OutCardResult ) ) { return ; } //如果有顺牌和单只或一对,而且单只或对比地主的小,则先出顺 { if(cbLineCardCount+1==cbHandCardCount && CT_SINGLE==GetCardType(cbLineCard, cbLineCardCount)) { OutCardResult.cbCardCount = cbLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbLineCard, cbLineCardCount) ; } else if(cbThreeLineCardCount+1==cbHandCardCount && CT_THREE_LINE==GetCardType(cbThreeLineCard, cbThreeLineCardCount)) { OutCardResult.cbCardCount = cbThreeLineCardCount ; CopyMemory(OutCardResult.cbResultCard, cbThreeLineCard, cbThreeLineCardCount) ; } else if(cbDoubleLineCount+1==cbHandCardCount && CT_DOUBLE_LINE==GetCardType(cbDoubleLineCard, cbDoubleLineCount)) { OutCardResult.cbCardCount = cbDoubleLineCount ; CopyMemory(OutCardResult.cbResultCard, cbDoubleLineCard, cbDoubleLineCount) ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbHandCardData+2, cbHandCardCount-2)) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; } if(OutCardResult.cbCardCount>0) { return ; } } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //只剩一手牌 else if(CT_ERROR!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_ONE!=GetCardType(cbHandCardData, cbHandCardCount) && CT_FOUR_LINE_TAKE_TWO!=GetCardType(cbHandCardData, cbHandCardCount)) { OutCardResult.cbCardCount = cbHandCardCount ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount) ; return ; } //只剩一张和一手 if(cbHandCardCount>=2) { //地主扑克 tagOutCardTypeResult BankerCanOutCardType1[13] ; ZeroMemory(BankerCanOutCardType1, sizeof(BankerCanOutCardType1)) ; tagOutCardTypeResult BankerCanOutCardType2[13] ; ZeroMemory(BankerCanOutCardType2, sizeof(BankerCanOutCardType2)) ; BYTE cbFirstHandCardType = GetCardType(cbHandCardData, cbHandCardCount-1) ; BYTE cbSecondHandCardType = GetCardType(cbHandCardData+1, cbHandCardCount-1) ; //是否有炸 BYTE cbAllBombCardData[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCardData, cbAllBombCount) ; //没有炸弹 if (cbAllBombCount <= 0 && cbFirstHandCardType!=CT_THREE_LINE_TAKE_ONE && cbFirstHandCardType!=CT_THREE_LINE_TAKE_TWO) { //地主可以出的牌 if(cbFirstHandCardType!=CT_ERROR) AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbHandCardData, cbHandCardCount-1, BankerCanOutCardType1) ; if(cbSecondHandCardType!=CT_ERROR) AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbHandCardData+1, cbHandCardCount-1, BankerCanOutCardType2) ; if(cbSecondHandCardType!=CT_ERROR && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[cbSecondHandCardType].cbCardTypeCount==0 && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } if(cbFirstHandCardType!=CT_ERROR && cbFirstHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbFirstHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType1[cbFirstHandCardType].cbCardTypeCount==0 && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount-1) ; return ; } if(GetCardLogicValue(cbHandCardData[0])>=GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) && CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[0] ; return ; } if(CT_ERROR!=cbSecondHandCardType && cbSecondHandCardType!=CT_FOUR_LINE_TAKE_ONE && cbSecondHandCardType!= CT_FOUR_LINE_TAKE_TWO && BankerCanOutCardType2[CT_BOMB_CARD].cbCardTypeCount==0) { OutCardResult.cbCardCount = cbHandCardCount-1 ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData+1, cbHandCardCount-1) ; return ; } } //还有炸弹 else { //除去炸后的牌 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0 ; CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; RemoveCard(cbAllBombCardData, cbAllBombCount, cbRemainCard, cbRemainCount) ; cbRemainCount -= cbAllBombCount ; if (GetCardType(cbRemainCard, cbRemainCount) != CT_ERROR) { OutCardResult.cbCardCount = cbRemainCount ; CopyMemory(OutCardResult.cbResultCard, cbRemainCard, cbRemainCount) ; return ; } } } //放走队友 WORD wFriendID = (m_wBankerUser+2)%GAME_PLAYER ; BYTE cbFriendCardType = GetCardType(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID]) ; //单张扑克 if(CT_SINGLE==cbFriendCardType) { //合法判断 ASSERT(m_cbUserCardCount[wFriendID]==1) ; if(m_cbUserCardCount[wFriendID]==1 && GetCardLogicValue(cbHandCardData[cbHandCardCount-1]) < GetCardLogicValue(m_cbAllCardData[wFriendID][0])) { OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[cbHandCardCount-1] ; return ; } } //一对扑克 else if(CT_DOUBLE==cbFriendCardType && cbDoubleLineCount>=2) { if(GetCardLogicValue(cbDoubleLineCard[cbDoubleLineCount-1]) < GetCardLogicValue(m_cbAllCardData[wFriendID][0])) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = cbDoubleLineCard[cbDoubleLineCount-2] ; OutCardResult.cbResultCard[1] = cbDoubleLineCard[cbDoubleLineCount-1] ; return ; } } //对牌接牌判断 if (1 == m_cbUserCardCount[m_wBankerUser] && cbHandCardCount >= 2 && m_cbUserCardCount[wFriendID] >= 2) { tagAnalyseResult MeAnalyseResult ; ZeroMemory(&MeAnalyseResult, sizeof(MeAnalyseResult)) ; //分析扑克 AnalysebCardData(cbHandCardData, cbHandCardCount, MeAnalyseResult) ; tagAnalyseResult FriendAnalyseResult ; ZeroMemory(&FriendAnalyseResult, sizeof(FriendAnalyseResult)) ; //分析扑克 AnalysebCardData(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID], FriendAnalyseResult) ; //对牌判断 if ((m_cbUserCardCount[wFriendID] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || m_cbUserCardCount[wFriendID] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) && MeAnalyseResult.cbDoubleCount > 0 && FriendAnalyseResult.cbDoubleCount > 0) { //最小对子 BYTE cbMeLeastDoubleCardLogic = GetCardLogicValue(MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-2]) ; //最大对子 BYTE cbFriendLargestDoublecardLogic = GetCardLogicValue(FriendAnalyseResult.cbDoubleCardData[0]) ; //出对判断 if (cbMeLeastDoubleCardLogic < 14 && cbMeLeastDoubleCardLogic < cbFriendLargestDoublecardLogic) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-2] ; OutCardResult.cbResultCard[1] = MeAnalyseResult.cbDoubleCardData[MeAnalyseResult.cbDoubleCount*2-1] ; return ; } } } //下家为地主,而且地主扑克少于5张 // if(m_cbUserCardCount[m_wBankerUser]<=5) { //分析扑克 tagOutCardTypeResult MeOutCardTypeResult[13] ; ZeroMemory(MeOutCardTypeResult, sizeof(MeOutCardTypeResult)) ; AnalyseOutCardType(cbHandCardData, cbHandCardCount, MeOutCardTypeResult) ; //对家扑克 WORD wFriendID ; for(WORD wChairID=0; wChairID<GAME_PLAYER; ++wChairID) if(wChairID!=m_wBankerUser && wMeChairID!=wChairID) wFriendID = wChairID ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //除炸弹外的牌 for(BYTE cbCardType=CT_DOUBLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = MeOutCardTypeResult[cbCardType] ; //相同牌型,相同长度,单连,对连等相同牌型可能长度不一样 BYTE cbThisHandCardCount = MAX_COUNT ; //地主扑克 tagOutCardTypeResult BankerCanOutCard[13] ; ZeroMemory(BankerCanOutCard, sizeof(BankerCanOutCard)) ; tagOutCardTypeResult FriendOutCardTypeResult[13] ; ZeroMemory(FriendOutCardTypeResult, sizeof(FriendOutCardTypeResult)) ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //拆三条判断 if ( cbCardType == CT_DOUBLE ) { tagAnalyseResult AnalyseResult ; ZeroMemory( &AnalyseResult, sizeof( AnalyseResult ) ) ; AnalysebCardData( cbHandCardData, cbHandCardCount, AnalyseResult ) ; if ( AnalyseResult.cbSignedCount + AnalyseResult.cbThreeCount * 3 == cbHandCardCount ) { bool bContinue = false ; for ( BYTE cbThreeIndex = 0; cbThreeIndex < AnalyseResult.cbThreeCount; ++cbThreeIndex ) if ( GetCardValue( tmpCardResult.cbCardData[i][0] ) == GetCardValue( AnalyseResult.cbThreeCardData[3 * cbThreeIndex] ) ) { bContinue = true ; break ; } if ( bContinue ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; //重新分析 if(tmpCardResult.cbEachHandCardCount[i]!=cbThisHandCardCount) { cbThisHandCardCount = tmpCardResult.cbEachHandCardCount[i] ; AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,BankerCanOutCard) ; AnalyseOutCardType(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID], tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i] ,FriendOutCardTypeResult) ; } BYTE cbMaxValue=0 ; BYTE Index = 0 ; //针对顺子,三条的大牌 BYTE cbCurrentCardType = GetCardType(tmpCardResult.cbCardData[i], cbThisHandCardCount) ; if (cbThisHandCardCount != cbHandCardCount && cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 )) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], cbThisHandCardCount, cbRemainCardData, cbRemainCardCount) ; cbRemainCardCount -= cbThisHandCardCount ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && cbThisHandCardCount <=5 || cbCurrentCardType == CT_SINGLE_LINE && cbThisHandCardCount <= 6 && cbCurrentLargestLogicCard >= 12 || cbCurrentCardType >= CT_DOUBLE_LINE && cbCurrentCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && cbThisHandCardCount <= 8)) { //暂时不出 if ( cbCurrentCardType >= CT_SINGLE_LINE && cbCurrentCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][cbThisHandCardCount - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCurrentCardType >= CT_THREE_LINE_TAKE_ONE && cbCurrentCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } //针对大对(不可先出) if (cbCardType == CT_DOUBLE && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11) { BYTE cbAllSingleCardData[MAX_COUNT], cbAllSingleCount ; cbAllSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbAllSingleCardData) ; if (cbAllSingleCount >= 2 && GetCardLogicValue(cbAllSingleCardData[cbAllSingleCount-2]) < 10) continue ; } //地主可以压牌,而且队友不可以压地主 if((BankerCanOutCard[cbCardType].cbCardTypeCount>0&&FriendOutCardTypeResult[cbCardType].cbCardTypeCount==0) || (BankerCanOutCard[cbCardType].cbCardTypeCount>0 && FriendOutCardTypeResult[cbCardType].cbCardTypeCount>0 && GetCardLogicValue(FriendOutCardTypeResult[cbCardType].cbCardData[0][0])<=GetCardLogicValue(BankerCanOutCard[cbCardType].cbCardData[0][0]))) { //地主跑掉 if( BankerCanOutCard[cbCardType].cbEachHandCardCount[0] > 0 && m_cbUserCardCount[m_wBankerUser]<=BankerCanOutCard[cbCardType].cbEachHandCardCount[0]+1) continue ; //自己不可以再拿回牌权 //if(GetCardLogicValue(tmpCardResult.cbCardData[0][0]) < GetCardLogicValue(BankerCanOutCard[cbCardType].cbCardData[0][0]) && // BankerCanOutCard[cbCardType].cbCardTypeCount > 0) // continue ; } //是否有大牌 if(tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount) { bool bHaveLargeCard=false ; for(BYTE j=0; j<tmpCardResult.cbEachHandCardCount[i]; ++j) if(GetCardLogicValue(tmpCardResult.cbCardData[i][j])>=15) bHaveLargeCard=true ; if(cbCardType!=CT_SINGLE_LINE && cbCardType!=CT_DOUBLE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][0])==14) bHaveLargeCard=true ; if(bHaveLargeCard) continue ; } //地主是否可以走掉,这里都没有考虑炸弹 if(tmpCardResult.cbEachHandCardCount[i]==m_cbUserCardCount[m_wBankerUser] && cbCardType==GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser]) && GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])>GetCardLogicValue(tmpCardResult.cbCardData[i][0])) continue ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour>=AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0)+3 && m_cbUserCardCount[m_wBankerUser]>4) cbMinSingleCountInFour=MAX_COUNT ; if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(MeOutCardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,MeOutCardTypeResult[cbMinCardType].cbCardData[Index],MeOutCardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //如果地主扑克少于5,还没有找到适合的牌则从大出到小 if(OutCardResult.cbCardCount<=0 && m_cbUserCardCount[m_wBankerUser]<=5) { //只有一张牌时不能放地主走 if(m_cbUserCardCount[m_wBankerUser]==1 && MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount>0) { //最小一张 BYTE Index=MAX_COUNT ; for(BYTE i=0; i<MeOutCardTypeResult[CT_SINGLE].cbCardTypeCount; ++i) { if(GetCardLogicValue(MeOutCardTypeResult[CT_SINGLE].cbCardData[i][0])>=GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) { Index=i ; } else break ; } if(MAX_COUNT!=Index) { OutCardResult.cbCardCount = MeOutCardTypeResult[CT_SINGLE].cbEachHandCardCount[Index] ; CopyMemory(OutCardResult.cbResultCard, MeOutCardTypeResult[CT_SINGLE].cbCardData[Index], OutCardResult.cbCardCount) ; return ; } } } } BYTE cbFirstCard=0 ; //过滤王和2 for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])<15) { cbFirstCard = i ; break ; } if(cbFirstCard<cbHandCardCount-1) AnalyseOutCardType(cbHandCardData+cbFirstCard, cbHandCardCount-cbFirstCard, CardTypeResult) ; else AnalyseOutCardType(cbHandCardData, cbHandCardCount, CardTypeResult) ; //计算单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbOutcardType[4]={CT_ERROR} ; BYTE cbMinValue=MAX_COUNT ; BYTE cbMinSingleCountInFour=MAX_COUNT ; BYTE cbMinCardType=CT_ERROR ; BYTE cbMinIndex=0 ; //除炸弹外的牌 for(BYTE cbCardType=CT_SINGLE; cbCardType<CT_BOMB_CARD; ++cbCardType) { tagOutCardTypeResult const &tmpCardResult = CardTypeResult[cbCardType] ; for(BYTE i=0; i<tmpCardResult.cbCardTypeCount; ++i) { //庄家可以走掉 if ( CompareCard(tmpCardResult.cbCardData[i], m_cbAllCardData[m_wBankerUser], tmpCardResult.cbEachHandCardCount[i], m_cbUserCardCount[m_wBankerUser]) ) continue ; //针对顺子,三条的大牌 if ( tmpCardResult.cbEachHandCardCount[i] != cbHandCardCount && cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE_TAKE_TWO && ( GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i]-1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-2]) || GetCardLogicValue(tmpCardResult.cbCardData[i][0]) >= 11 )) { BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; cbRemainCardCount = cbHandCardCount ; //移除扑克 RemoveCard(tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i], cbRemainCardData, cbRemainCardCount); cbRemainCardCount -= tmpCardResult.cbEachHandCardCount[i] ; //最大扑克 BYTE cbCurrentLargestLogicCard = GetCardLogicValue(tmpCardResult.cbCardData[i][0]) ; if (GetCardType(cbRemainCardData, cbRemainCardCount) == CT_ERROR && (cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && cbCurrentLargestLogicCard >= 11 && tmpCardResult.cbEachHandCardCount[i] <=5 || cbCardType == CT_SINGLE_LINE && tmpCardResult.cbEachHandCardCount[i] <= 6 && cbCurrentLargestLogicCard >= 12 || cbCardType >= CT_DOUBLE_LINE && cbCardType <= CT_THREE_LINE && cbCurrentLargestLogicCard >= 12 && tmpCardResult.cbEachHandCardCount[i] <= 8)) { //暂时不出 if ( cbCardType >= CT_SINGLE_LINE && cbCardType <= CT_THREE_LINE && GetCardLogicValue(tmpCardResult.cbCardData[i][tmpCardResult.cbEachHandCardCount[i] - 1]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; if ( cbCardType >= CT_THREE_LINE_TAKE_ONE && cbCardType <= CT_THREE_LINE_TAKE_TWO && GetCardLogicValue(tmpCardResult.cbCardData[i][0]) > GetCardLogicValue(cbHandCardData[cbHandCardCount-3]) ) continue ; } } BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, tmpCardResult.cbCardData[i], tmpCardResult.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; cbOutcardType[j] = cbCardType ; break ; } } //保存最小值 if(cbMinSingleCountInFour>=cbTmpCount) { //最小牌型 cbMinCardType = cbCardType ; //最小牌型中的最小单牌 cbMinSingleCountInFour=cbTmpCount ; //最小牌型中的最小牌 cbMinIndex=i ; } } } if(cbMinSingleCountInFour!=MAX_COUNT) { BYTE Index = cbMinIndex ; //选择最小牌 for(BYTE i=0; i<4; ++i) { if(cbOutcardType[i]==cbMinCardType && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[cbIndex[i]][0])<GetCardLogicValue(CardTypeResult[cbMinCardType].cbCardData[Index][0])) Index = cbIndex[i] ; } //对王加一只 if(cbHandCardCount==3 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //对王 else if(cbHandCardCount==2 && GetCardColor(cbHandCardData[0])==0x40 && GetCardColor(cbHandCardData[1])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,CardTypeResult[cbMinCardType].cbCardData[Index],CardTypeResult[cbMinCardType].cbEachHandCardCount[Index]*sizeof(BYTE)); return ; } ASSERT(OutCardResult.cbCardCount>0) ; return ; } //如果只剩炸弹 else if (CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0) { //BYTE Index=0 ; //BYTE cbLogicCardValue = GetCardLogicValue(0x4F)+1 ; ////最小炸弹 //for(BYTE i=0; i<CardTypeResult[CT_BOMB_CARD].cbCardTypeCount; ++i) // if(cbLogicCardValue>GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0])) // { // cbLogicCardValue = GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[i][0]) ; // Index = i ; // } // //设置变量 // OutCardResult.cbCardCount=CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]; // CopyMemory(OutCardResult.cbResultCard,CardTypeResult[CT_BOMB_CARD].cbCardData[Index],CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[Index]*sizeof(BYTE)); // return ; } BYTE cbAllSingleCardData[MAX_COUNT], cbAllSingleCardCount ; cbAllSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, NULL, 0, cbAllSingleCardData) ; if ( cbAllSingleCardCount > 0 ) { //如果都没有搜索到就出最小的一张 OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbAllSingleCardData[cbAllSingleCardCount-1] ; return ; } //如果都没有搜索到就出最小的一张 OutCardResult.cbCardCount = 1 ; OutCardResult.cbResultCard[0] = cbHandCardData[cbHandCardCount-1] ; return ; } //地主下家(后出牌) void CGameLogic::UndersideOfBankerOutCard(const BYTE cbHandCardData[], BYTE cbHandCardCount, WORD wOutCardUser, const BYTE cbTurnCardData[], BYTE cbTurnCardCount, tagOutCardResult & OutCardResult) { //初始变量 ZeroMemory(&OutCardResult, sizeof(OutCardResult)) ; //零下标没用 tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌类型 BYTE cbOutCardType = GetCardType(cbTurnCardData,cbTurnCardCount) ; //搜索可出牌 tagOutCardTypeResult BankerOutCardTypeResult[13] ; ZeroMemory(BankerOutCardTypeResult, sizeof(BankerOutCardTypeResult)) ; AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], BankerOutCardTypeResult) ; AnalyseOutCardType(cbHandCardData,cbHandCardCount,cbTurnCardData,cbTurnCardCount, CardTypeResult) ; //只剩炸弹 if(cbHandCardCount==CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] && (cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(CardTypeResult[CT_BOMB_CARD].cbCardData[0][0])>GetCardLogicValue(cbTurnCardData[0]))) { OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[0] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData, OutCardResult.cbCardCount) ; return ; } //双王炸弹和一手 else if(cbHandCardCount>2 && cbHandCardData[0]==0x4f && cbHandCardData[1]==0x4e && CT_ERROR!=GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbHandCardData+2, cbHandCardCount-2) && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbHandCardData+2, cbHandCardCount-2)) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } //炸弹和一手 BYTE cbRemainCard[MAX_COUNT], cbRemainCount=0; BYTE cbAllBombCard[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbHandCardData, cbHandCardCount, cbAllBombCard, cbAllBombCount) ; //出炸判断 if(cbAllBombCount>0 && wOutCardUser==m_wBankerUser) { //剩余扑克 CopyMemory(cbRemainCard, cbHandCardData, cbHandCardCount) ; cbRemainCount = cbHandCardCount ; RemoveCard(cbAllBombCard, cbAllBombCount, cbRemainCard, cbRemainCount) ; cbRemainCount -= cbAllBombCount ; if(CT_ERROR != GetCardType(cbRemainCard, cbRemainCount) || (2==cbRemainCount && GetCardLogicValue(cbRemainCard[0])>GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]))) { if((cbOutCardType<CT_BOMB_CARD || GetCardLogicValue(cbAllBombCard[0])>GetCardLogicValue(cbTurnCardData[0])) && ( CardTypeResult[cbOutCardType].cbCardTypeCount <= 0 || CT_ERROR != GetCardType(cbRemainCard, cbRemainCount)) ) { //双王炸弹 if(GetCardColor(cbAllBombCard[0])==0x40) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = 0x4f ; OutCardResult.cbResultCard[1] = 0x4e ; return ; } else { //分析地主牌 BYTE cbBankerAllBombCard[MAX_COUNT], cbBankerAllBombCardCount ; GetAllBomCard( m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbBankerAllBombCard, cbBankerAllBombCardCount) ; if ( !CompareCard( cbTurnCardData, cbRemainCard, cbTurnCardCount, cbRemainCount) || cbBankerAllBombCardCount <= 0 || GetCardLogicValue( cbAllBombCard[0] ) > GetCardLogicValue( cbBankerAllBombCard[0] ) ) { OutCardResult.cbCardCount = 4 ; CopyMemory(OutCardResult.cbResultCard, cbAllBombCard, 4) ; return ; } } } } } //只剩一手出炸 if ( CardTypeResult[CT_BOMB_CARD].cbCardTypeCount > 0 && GetCardType(m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER]) != CT_ERROR && GetCardType(m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER]) <= CT_DOUBLE ) { //只剩单牌 if ( GetCardType(m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER]) == CT_SINGLE ) { BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; return ; } else if ( GetCardType(m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER]) == CT_DOUBLE ) { BYTE cbAllDoubleCard[MAX_COUNT], cbAllDoubleCount ; GetAllDoubleCard(cbHandCardData, cbHandCardCount, cbAllDoubleCard, cbAllDoubleCount) ; if ( cbAllDoubleCount > 0 && GetCardLogicValue(cbAllDoubleCard[cbAllDoubleCount - 1]) <= 10) { BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; BYTE cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], cbCardCount) ; OutCardResult.cbCardCount = cbCardCount ; return ; } } } //只有一手牌 if ( GetCardType(cbHandCardData, cbHandCardCount) != CT_FOUR_LINE_TAKE_ONE && GetCardType(cbHandCardData, cbHandCardCount) != CT_FOUR_LINE_TAKE_TWO && CompareCard(cbTurnCardData, cbHandCardData, cbTurnCardCount, cbHandCardCount) ) { OutCardResult.cbCardCount = cbHandCardCount ; CopyMemory(OutCardResult.cbResultCard, cbHandCardData, cbHandCardCount) ; return ; } //对牌接牌判断 if (1 == m_cbUserCardCount[m_wBankerUser] && cbHandCardCount >= 2 && cbOutCardType == CT_DOUBLE) { tagAnalyseResult AnalyseResult ; ZeroMemory(&AnalyseResult, sizeof(AnalyseResult)) ; //分析扑克 AnalysebCardData(cbHandCardData, cbHandCardCount, AnalyseResult) ; //对牌判断 if (cbHandCardCount == (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4) || cbHandCardCount == (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4 + 1)) { //出对判断 for (int nIndex = AnalyseResult.cbDoubleCount-1; nIndex>=0 ; --nIndex) { if (GetCardLogicValue(AnalyseResult.cbDoubleCardData[nIndex*2]) > GetCardLogicValue(cbTurnCardData[0])) { OutCardResult.cbCardCount = 2 ; OutCardResult.cbResultCard[0] = AnalyseResult.cbDoubleCardData[nIndex*2] ; OutCardResult.cbResultCard[1] = AnalyseResult.cbDoubleCardData[nIndex*2+1] ; return ; } } //出炸判断 if (AnalyseResult.cbFourCount > 0) { //最小炸弹 BYTE cbLestBombIndex = AnalyseResult.cbFourCount-1 ; OutCardResult.cbCardCount = 4 ; OutCardResult.cbResultCard[0] = AnalyseResult.cbFourCardData[cbLestBombIndex*4] ; OutCardResult.cbResultCard[1] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+1] ; OutCardResult.cbResultCard[2] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+2] ; OutCardResult.cbResultCard[3] = AnalyseResult.cbFourCardData[cbLestBombIndex*4+3] ; return ; } } //分析对家 if ( wOutCardUser != m_wBankerUser ) { tagAnalyseResult FriendAnalyseResult ; ZeroMemory( &FriendAnalyseResult, sizeof( FriendAnalyseResult ) ) ; //分析扑克 AnalysebCardData( m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser], FriendAnalyseResult ) ; //对牌判断 if ( m_cbUserCardCount[wOutCardUser] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || m_cbUserCardCount[wOutCardUser] == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } //零下标没用 tagOutCardTypeResult FriendCardTypeResult[12+1] ; ZeroMemory( FriendCardTypeResult, sizeof( FriendCardTypeResult ) ) ; AnalyseOutCardType( m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser], FriendCardTypeResult ) ; for ( BYTE cbLineCardIdx = 0; cbLineCardIdx < FriendCardTypeResult[CT_SINGLE_LINE].cbCardTypeCount; ++cbLineCardIdx ) { //剩余扑克 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; cbRemainCardCount = m_cbUserCardCount[wOutCardUser] ; CopyMemory( cbRemainCardData, m_cbAllCardData[wOutCardUser], cbRemainCardCount ) ; RemoveCard( FriendCardTypeResult[CT_SINGLE_LINE].cbCardData[cbLineCardIdx], FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx], cbRemainCardData, cbRemainCardCount ) ; cbRemainCardCount -= FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx] ; //分析扑克 AnalysebCardData( cbRemainCardData, cbRemainCardCount, FriendAnalyseResult ) ; //对牌判断 if (cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } } for ( BYTE cbLineCardIdx = 0; cbLineCardIdx < FriendCardTypeResult[CT_DOUBLE_LINE].cbCardTypeCount; ++cbLineCardIdx ) { //剩余扑克 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount ; cbRemainCardCount = m_cbUserCardCount[wOutCardUser] ; CopyMemory( cbRemainCardData, m_cbAllCardData[wOutCardUser], cbRemainCardCount ) ; RemoveCard( FriendCardTypeResult[CT_SINGLE_LINE].cbCardData[cbLineCardIdx], FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx], cbRemainCardData, cbRemainCardCount ) ; cbRemainCardCount -= FriendCardTypeResult[CT_SINGLE_LINE].cbEachHandCardCount[cbLineCardIdx] ; //分析扑克 AnalysebCardData( cbRemainCardData, cbRemainCardCount, FriendAnalyseResult ) ; //对牌判断 if (cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4) || cbRemainCardCount == (FriendAnalyseResult.cbDoubleCount * 2 + FriendAnalyseResult.cbThreeCount * 3 + FriendAnalyseResult.cbFourCount * 4 + 1)) { return ; } } } } //对家可否出完 if( m_wBankerUser != wOutCardUser && ! CompareCard( cbTurnCardData, m_cbAllCardData[ m_wBankerUser ], cbTurnCardCount, m_cbUserCardCount[ m_wBankerUser ] ) ) { //庄家扑克 bool bBankerCanOut = false ; tagOutCardTypeResult BankerOutCardResult[12+1] ; ZeroMemory(BankerOutCardResult, sizeof(BankerOutCardResult)) ; //分析扑克 AnalyseOutCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser], cbTurnCardData, cbTurnCardCount, BankerOutCardResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(BankerOutCardResult[cbCardType].cbCardTypeCount>0) bBankerCanOut = true ; if(!bBankerCanOut) { //对家ID WORD wFriendChairID = (m_wBankerUser+2)%GAME_PLAYER ; //分析扑克 tagOutCardTypeResult FriendCardTypeResult[12+1] ; ZeroMemory(FriendCardTypeResult, sizeof(FriendCardTypeResult)) ; AnalyseOutCardType(m_cbAllCardData[wFriendChairID], m_cbUserCardCount[wFriendChairID], FriendCardTypeResult) ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(FriendCardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<FriendCardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { if(TestOutAllCard(wFriendChairID, FriendCardTypeResult[cbCardType].cbCardData[lIndex], FriendCardTypeResult[cbCardType].cbEachHandCardCount[lIndex], true)) { //不压对家 return ; } } } } } //放走对家 if (GetCardType(m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER]) == GetCardType(cbTurnCardData, cbTurnCardCount) && CompareCard(cbTurnCardData, m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], cbTurnCardCount, m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER])) return ; if (CompareCard(cbTurnCardData, m_cbAllCardData[(m_wBankerUser + 2) % GAME_PLAYER], cbTurnCardCount, m_cbUserCardCount[(m_wBankerUser + 2) % GAME_PLAYER])) return ; //判断可否出完 BYTE cbSingleCardCount = MAX_COUNT+CT_MISSILE_CARD ; bool bFindBestCard = false ; for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { WORD wMeChairID = (m_wBankerUser+1)%GAME_PLAYER ; if(TestOutAllCard(wMeChairID, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], false)) { //计算单牌 BYTE cbTmpSingleCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //结果判断 if (cbTmpSingleCount >= MAX_COUNT) continue ; //炸弹优先级排后 BYTE cbBombCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; if (cbBombCardType == CT_BOMB_CARD) cbTmpSingleCount += 4 ; else if (cbBombCardType == CT_MISSILE_CARD) cbTmpSingleCount += 5 ; ////改变权值 //if (cbBombCardType != CT_ERROR) cbTmpSingleCount += cbBombCardType ; //不出炸弹 //BYTE cbWantOutCardType = GetCardType(CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]) ; //if (CardTypeResult[cbOutCardType].cbCardTypeCount > 0 && cbOutCardType < CT_BOMB_CARD && cbWantOutCardType >= CT_BOMB_CARD) continue ; if(cbTmpSingleCount <= cbSingleCardCount) { //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex]*sizeof(BYTE)); cbSingleCardCount = cbTmpSingleCount ; bFindBestCard = true ; } } } } //直接返回 if (bFindBestCard) return ; //取出四个最小单牌 BYTE cbMinSingleCardCount[4] ; cbMinSingleCardCount[0]=MAX_COUNT ; cbMinSingleCardCount[1]=MAX_COUNT ; cbMinSingleCardCount[2]=MAX_COUNT ; cbMinSingleCardCount[3]=MAX_COUNT ; BYTE cbIndex[4]={0} ; BYTE cbMinSingleCountInFour=MAX_COUNT ; //可出扑克(这里已经过滤掉炸弹了) tagOutCardTypeResult const &CanOutCard = CardTypeResult[cbOutCardType] ; for(BYTE i=0; i<CanOutCard.cbCardTypeCount; ++i) { //最小单牌 BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,CanOutCard.cbCardData[i], CanOutCard.cbEachHandCardCount[i]) ; BYTE cbMaxValue=0 ; BYTE Index = 0 ; //搜索cbMinSingleCardCount[4]的最大值 for(BYTE j=0; j<4; ++j) { if(cbMinSingleCardCount[j]>=cbTmpCount) { cbMinSingleCardCount[j] = cbTmpCount ; cbIndex[j] = i ; break ; } } } for(BYTE i=0; i<4; ++i) if(cbMinSingleCountInFour>cbMinSingleCardCount[i]) cbMinSingleCountInFour = cbMinSingleCardCount[i] ; //原始单牌数 BYTE cbOriginSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount,NULL,0) ; //朋友出牌 bool bFriendOut = m_wBankerUser!=wOutCardUser ; if(bFriendOut) { //不拦截朋友最后一手牌 if (GetCardType(m_cbAllCardData[(2 + m_wBankerUser) % GAME_PLAYER], m_cbUserCardCount[(2 + m_wBankerUser) % GAME_PLAYER]) != CT_ERROR) return ; //在上面的TestOutAllCard中已对可出炸弹情况分析过 if(CanOutCard.cbCardTypeCount > 0 && CanOutCard.cbCardType < CT_BOMB_CARD && cbMinSingleCountInFour < MAX_COUNT) { BYTE cbMinLogicCardValue = GetCardLogicValue(0x4F)+1 ; bool bFindCard = false ; BYTE cbCanOutIndex=0 ; for(BYTE i=0; i<4; ++i) { BYTE Index = cbIndex[i] ; //三带,和连牌不接对家牌 if ( CanOutCard.cbCardType >= CT_THREE && CanOutCard.cbCardType <= CT_MISSILE_CARD && GetCardLogicValue(CanOutCard.cbCardData[Index][0]) >= 7 && CanOutCard.cbEachHandCardCount[Index] <=5 ) continue ; //小于J的牌,或者小于K而且是散牌 if((cbMinSingleCardCount[i]<cbOriginSingleCardCount+3 && (cbMinSingleCardCount[i]<=cbMinSingleCountInFour || cbMinSingleCardCount[i]<=cbMinSingleCountInFour+1 && CanOutCard.cbCardType >= CT_THREE_LINE_TAKE_ONE && CanOutCard.cbCardType <= CT_THREE_LINE_TAKE_TWO ) && (GetCardLogicValue(CanOutCard.cbCardData[Index][0])<=11 || (cbMinSingleCardCount[i]<cbOriginSingleCardCount)&&GetCardLogicValue(CanOutCard.cbCardData[Index][0])<=13)) && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0]) && cbHandCardCount>5) { //搜索有没有大牌(针对飞机带翅膀后面的带牌) bool bNoLargeCard = true ; for(BYTE k=3; k<CanOutCard.cbEachHandCardCount[Index]; ++k) { //有大牌而且不能一次出完 if(GetCardLogicValue(CanOutCard.cbCardData[Index][k])>=15 && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard = false ; } if(bNoLargeCard) { bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } else if(cbHandCardCount<5 && cbMinSingleCardCount[i]<cbOriginSingleCardCount+4 && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0])) { //能出王打自家的2 if ( GetCardLogicValue( CanOutCard.cbCardData[Index][0] ) >= 16 && GetCardLogicValue( cbTurnCardData[0] ) >= 15 ) continue ; bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } if(bFindCard) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } //手上少于五张牌 else if(cbHandCardCount<=5) { BYTE cbMinLogicCard = GetCardLogicValue(0x4f)+1 ; BYTE cbCanOutIndex = 0 ; for(BYTE i=0; i<4; ++i) if(cbMinSingleCardCount[i]<MAX_COUNT && cbMinSingleCardCount[i]<=cbMinSingleCountInFour && cbMinLogicCard>GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0]) && GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0])<=14) { cbMinLogicCard = GetCardLogicValue(CanOutCard.cbCardData[cbIndex[i]][0]) ; cbCanOutIndex = cbIndex[i] ; } if(cbMinLogicCard != (GetCardLogicValue(0x4f)+1)) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } } return ; } else { return ; } } //地主出牌 else { if(CanOutCard.cbCardTypeCount>0 && cbMinSingleCountInFour < MAX_COUNT) { BYTE cbMinLogicCardValue = GetCardLogicValue(0x4F)+1 ; bool bFindCard = false ; BYTE cbCanOutIndex=0 ; for(BYTE i=0; i<4; ++i) { BYTE Index = cbIndex[i] ; if((cbMinSingleCardCount[i]<cbOriginSingleCardCount+4) && (cbMinSingleCardCount[i]<=cbMinSingleCountInFour || cbMinSingleCardCount[i]<=cbMinSingleCountInFour+1 && CanOutCard.cbCardType >= CT_THREE_LINE_TAKE_ONE && CanOutCard.cbCardType <= CT_THREE_LINE_TAKE_TWO ) && cbMinLogicCardValue>GetCardLogicValue(CanOutCard.cbCardData[Index][0])) { //针对大牌 bool bNoLargeCard = true ; //当地主手上牌数大于4,而且地主出的是小于K的牌而且不是地主手上的最大牌时,不能出2去打 if(m_cbUserCardCount[m_wBankerUser]>=4 && cbHandCardCount>=5 && CanOutCard.cbEachHandCardCount[Index]>=2 && GetCardLogicValue(CanOutCard.cbCardData[Index][0])>=15 && GetCardLogicValue(cbTurnCardData[0])<13 && GetCardLogicValue(cbTurnCardData[0])<GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard=false ; //搜索有没有大牌(针对飞机带翅膀后面的带牌) for(BYTE k=3; k<CanOutCard.cbEachHandCardCount[Index]; ++k) { if(GetCardLogicValue(CanOutCard.cbCardData[Index][k])>=15 && CanOutCard.cbEachHandCardCount[Index]!=cbHandCardCount) bNoLargeCard = false ; } if(bNoLargeCard) { bFindCard = true ; cbCanOutIndex = Index ; cbMinLogicCardValue = GetCardLogicValue(CanOutCard.cbCardData[Index][0]) ; } } } if(bFindCard) { //地主的最大牌 BYTE cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) ; bool bCanOut=true ; //王只压2 if(GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard) { if(GetCardColor(CanOutCard.cbCardData[cbCanOutIndex][0])==0x40 && GetCardLogicValue(cbTurnCardData[0])<=14 && cbHandCardCount>5) { bCanOut = false ; } } //双王判断 if(GetCardLogicValue(CanOutCard.cbCardData[cbCanOutIndex][0])>=16 && cbHandCardCount>=2 && cbHandCardData[0]==0x4F && cbHandCardData[1]==0x4E) { bool bOutMissileCard = false ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(cbRemainCardData, 2, cbRemainCardData, cbRemainCardCount) ; cbRemainCardCount -= 2 ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutMissileCard = true; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && GetCardLogicValue(cbRemainCardData[0])>=14) bOutMissileCard = true; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CanOutCard.cbCardData[cbCanOutIndex], CanOutCard.cbEachHandCardCount[cbCanOutIndex]) ; if(cbSingleCardCount<=1 && GetCardLogicValue(cbRemainCardData[0])>=11) bOutMissileCard = true; //还有小牌 if (GetCardLogicValue(cbRemainCardData[0]) <= 10 && CT_ERROR == GetCardType(cbRemainCardData, cbRemainCardCount) && GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) > 10) bOutMissileCard = false ; //火箭扑克 if(bOutMissileCard) { //优先其他炸弹 BYTE cbIndex = CardTypeResult[CT_BOMB_CARD].cbCardTypeCount - 1 ; OutCardResult.cbCardCount = CardTypeResult[CT_BOMB_CARD].cbEachHandCardCount[cbIndex] ; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[CT_BOMB_CARD].cbCardData[cbIndex], OutCardResult.cbCardCount) ; return ; } } if(bCanOut) { //设置变量 OutCardResult.cbCardCount=CanOutCard.cbEachHandCardCount[cbCanOutIndex]; CopyMemory(OutCardResult.cbResultCard,CanOutCard.cbCardData[cbCanOutIndex],CanOutCard.cbEachHandCardCount[cbCanOutIndex]*sizeof(BYTE)); return ; } } if(cbOutCardType==CT_SINGLE) { //地主的最大牌 BYTE cbLargestLogicCard = GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]) ; if(GetCardLogicValue(cbTurnCardData[0])==14 || GetCardLogicValue(cbTurnCardData[0])>=cbLargestLogicCard || (GetCardLogicValue(cbTurnCardData[0])<cbLargestLogicCard-1) || m_cbUserCardCount[m_wBankerUser]<=5) { //取一张大于等于2而且要比地主出的牌大的牌, BYTE cbIndex=MAX_COUNT ; for(BYTE i=0; i<cbHandCardCount; ++i) if(GetCardLogicValue(cbHandCardData[i])>GetCardLogicValue(cbTurnCardData[0]) && GetCardLogicValue(cbHandCardData[i])>=15) { cbIndex = i ; } if(cbIndex!=MAX_COUNT) { //设置变量 OutCardResult.cbCardCount=1; OutCardResult.cbResultCard[0] = cbHandCardData[cbIndex] ; return ; } } } //当朋友不能拦截地主时 WORD wMeChairID = (m_wBankerUser+1)%GAME_PLAYER ; WORD wFriendID = (wMeChairID+1)%GAME_PLAYER ; tagOutCardTypeResult FriendCardTypeResult[13] ; ZeroMemory(FriendCardTypeResult, sizeof(FriendCardTypeResult)) ; AnalyseOutCardType(m_cbAllCardData[wFriendID], m_cbUserCardCount[wFriendID], cbTurnCardData, cbTurnCardCount, FriendCardTypeResult) ; //当朋友不能拦截地主时 if(m_cbUserCardCount[m_wBankerUser]<=4 && FriendCardTypeResult[cbOutCardType].cbCardTypeCount==0 && CardTypeResult[cbOutCardType].cbCardTypeCount>0) { BYTE cbMinSingleCount=MAX_COUNT ; BYTE Index=0 ; for(BYTE i=0; i<CardTypeResult[cbOutCardType].cbCardTypeCount; ++i) { BYTE cbTmpCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, CardTypeResult[cbOutCardType].cbCardData[i], CardTypeResult[cbOutCardType].cbEachHandCardCount[i]) ; if(cbMinSingleCount>=cbTmpCount) { cbMinSingleCount = cbTmpCount ; Index = i ; } } //设置变量 OutCardResult.cbCardCount=CardTypeResult[cbOutCardType].cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard, CardTypeResult[cbOutCardType].cbCardData[Index], OutCardResult.cbCardCount) ; return ; } } //还要考虑炸弹 if(CardTypeResult[CT_BOMB_CARD].cbCardTypeCount>0 /*|| (NORMAL_COUNT == cbHandCardCount && NORMAL_COUNT == m_cbUserCardCount[(m_wBankerUser+2)%GAME_PLAYER])*/) { tagOutCardTypeResult const &BomCard = CardTypeResult[CT_BOMB_CARD] ; BYTE cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[0][0]) ; BYTE Index = 0 ; for(BYTE i=0; i<BomCard.cbCardTypeCount; ++i) { if(cbMinLogicValue>GetCardLogicValue(BomCard.cbCardData[i][0])) { cbMinLogicValue = GetCardLogicValue(BomCard.cbCardData[i][0]) ; Index = i ; } } bool bOutBomb = false ; //春天判断 if (NORMAL_COUNT == cbHandCardCount && NORMAL_COUNT == m_cbUserCardCount[(m_wBankerUser+2)%GAME_PLAYER] && CT_ERROR != GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser])) bOutBomb = true ; //一手牌和一个炸弹 BYTE cbRemainCardData[MAX_COUNT], cbRemainCardCount=cbHandCardCount ; CopyMemory(cbRemainCardData, cbHandCardData, cbHandCardCount) ; RemoveCard(BomCard.cbCardData[Index], BomCard.cbEachHandCardCount[Index], cbRemainCardData, cbRemainCardCount) ; cbRemainCardCount -= BomCard.cbEachHandCardCount[Index] ; if(CT_ERROR!=GetCardType(cbRemainCardData, cbRemainCardCount)) bOutBomb = true ; //炸后单牌数 BYTE cbSingleCardCount = AnalyseSinleCardCount(cbHandCardData, cbHandCardCount, BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]) ; if(cbSingleCardCount==0 && GetCardLogicValue(cbRemainCardData[0]) > GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0])) bOutBomb = true ; //只剩一手 BYTE cbRemainCardType = GetCardType(m_cbAllCardData[wOutCardUser], m_cbUserCardCount[wOutCardUser]) ; if(cbRemainCardType>CT_ERROR && cbRemainCardType<CT_FOUR_LINE_TAKE_ONE && GetCardLogicValue(m_cbAllCardData[wOutCardUser][0])<15 && cbSingleCardCount < 2 && (GetCardLogicValue(cbRemainCardData[0]) >= GetCardLogicValue(m_cbAllCardData[m_wBankerUser][0]))) bOutBomb = true ; //只剩少量牌 BYTE cbRemainLargestCard = GetCardLogicValue(cbRemainCardData[0]) ; if(cbRemainCardCount<5 && cbRemainCardCount>0 && (cbRemainLargestCard!=GetCardLogicValue(BomCard.cbCardData[Index][0])) && cbRemainLargestCard>GetCardLogicValue(m_cbAllCardData[wOutCardUser][0]) && cbRemainLargestCard > 14) bOutBomb = true ; //分析扑克 tagAnalyseResult AnalyseResult ; AnalysebCardData(cbRemainCardData, cbRemainCardCount, AnalyseResult) ; if (m_cbUserCardCount[m_wBankerUser] == 1 && (AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbThreeCount * 3 + AnalyseResult.cbFourCount * 4 + 1 >= cbRemainCardCount)) bOutBomb = true ; //设置变量 if(bOutBomb) { OutCardResult.cbCardCount=BomCard.cbEachHandCardCount[Index]; CopyMemory(OutCardResult.cbResultCard,BomCard.cbCardData[Index],BomCard.cbEachHandCardCount[Index]*sizeof(BYTE)); } return ; } return ; } return ; } //叫分判断 BYTE CGameLogic::LandScore(WORD wMeChairID, BYTE cbCurrentLandScore) { //#ifdef _DEBUG // //放弃叫分 // return 255 ; //#endif //大牌数目 BYTE cbLargeCardCount = 0 ; BYTE Index=0 ; while(GetCardLogicValue(m_cbLandScoreCardData[Index++])>=15) ++cbLargeCardCount ; //单牌个数 BYTE cbSingleCardCount=AnalyseSinleCardCount(m_cbLandScoreCardData, sizeof(m_cbLandScoreCardData), NULL, 0) ; //叫两分 if(cbLargeCardCount>=4 && cbSingleCardCount<=4) return 3 ; //放弃叫分 if(cbLargeCardCount<=2 || cbCurrentLandScore>=1) return 255 ; //其他单牌 BYTE cbMinSingleCardCount=MAX_COUNT ; for(WORD wChairID=0 , i=0; wChairID<GAME_PLAYER; ++wChairID) { BYTE cbTmpSingleCardCount = AnalyseSinleCardCount(m_cbAllCardData[wChairID], NORMAL_COUNT, NULL, 0) ; if(wChairID!=wMeChairID && cbTmpSingleCardCount<cbMinSingleCardCount) cbTmpSingleCardCount=cbMinSingleCardCount ; } //叫一分 if(cbLargeCardCount>=3 && cbSingleCardCount<cbMinSingleCardCount-3) return 2 ; //放弃叫分 return 255 ; } //出牌测试 bool CGameLogic::_TestOutAllCard(WORD wTestUser, BYTE cbWantOutCardData[], BYTE cbWantOutCardCount, BYTE cbAllCardData[GAME_PLAYER][MAX_COUNT], BYTE cbUserCardCount[GAME_PLAYER], bool bFirstOutCard) { //此递归暂不可用 //return false ; //朋友ID WORD wFriendID = GAME_PLAYER ; if(wTestUser != m_wBankerUser) wFriendID = (wTestUser==((m_wBankerUser+1)%GAME_PLAYER)) ? (m_wBankerUser+2)%GAME_PLAYER : (m_wBankerUser+1)%GAME_PLAYER ; //暂时只处理少数牌 // for(WORD wUser=0; wUser<GAME_PLAYER; ++wUser) if(wFriendID!=wUser && cbUserCardCount[wUser]>10) return false ; // m_lRecCount++ ; //防止深层递归 // if(m_lRecCount>50) return false ; BYTE cbWantOutCardType = GetCardType(cbWantOutCardData, cbWantOutCardCount) ; //出完判断 if ( cbUserCardCount[wTestUser] == cbWantOutCardCount ) return true ; //出牌判断 try { for(WORD wUser=0; wUser<GAME_PLAYER; ++wUser) { if(wUser!=wTestUser && wFriendID!=wUser) { tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌分析 try { AnalyseOutCardType(cbAllCardData[wUser], cbUserCardCount[wUser], cbWantOutCardData, cbWantOutCardCount, CardTypeResult) ; } catch(...) { return false ; } for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) return false ; } } } catch(...) { return false ; } //拆炸判断 BYTE cbAllBombCard[MAX_COUNT], cbAllBombCount=0 ; GetAllBomCard(cbAllCardData[wTestUser], cbUserCardCount[wTestUser], cbAllBombCard, cbAllBombCount) ; if (cbAllBombCount > 0) { //剩余扑克 BYTE cbRemainCard[MAX_COUNT], cbRemainCardCount ; CopyMemory(cbRemainCard, cbAllCardData[wTestUser], cbUserCardCount[wTestUser]) ; cbRemainCardCount = cbUserCardCount[wTestUser] ; if(!RemoveCard(cbWantOutCardData, cbWantOutCardCount, cbRemainCard, cbRemainCardCount)) return false; cbRemainCardCount -= cbWantOutCardCount ; //愚蠢牌型 if (CT_FOUR_LINE_TAKE_ONE == cbWantOutCardType || CT_FOUR_LINE_TAKE_TWO==cbWantOutCardType) return false ; //只剩炸弹 if (cbWantOutCardType >= CT_BOMB_CARD && cbWantOutCardCount == cbUserCardCount[wTestUser]) return true ; //只剩炸弹 if (cbAllBombCount == cbUserCardCount[wTestUser] && cbWantOutCardType >= CT_BOMB_CARD) return true ; //炸弹和一手 if ( cbWantOutCardType >= CT_BOMB_CARD && GetCardType(cbRemainCard, cbRemainCardCount) != CT_ERROR && CT_FOUR_LINE_TAKE_TWO != GetCardType(cbRemainCard, cbRemainCardCount) && CT_FOUR_LINE_TAKE_ONE != GetCardType(cbRemainCard, cbRemainCardCount) ) return true ; //首出牌时不出炸弹 if (cbWantOutCardType >= CT_BOMB_CARD && bFirstOutCard) { //地主只剩一手牌 if (wTestUser != m_wBankerUser && GetCardType(m_cbAllCardData[m_wBankerUser], m_cbUserCardCount[m_wBankerUser]) == CT_ERROR) return false ; WORD wUndersideOfBanker = (m_wBankerUser+1)%GAME_PLAYER ; //地主下家 WORD wUpsideOfBanker = (wUndersideOfBanker+1)%GAME_PLAYER ; //地主上家 //闲家只剩一手牌 if (wTestUser == m_wBankerUser && GetCardType(m_cbAllCardData[wUndersideOfBanker], m_cbUserCardCount[wUndersideOfBanker]) == CT_ERROR && GetCardType(m_cbAllCardData[wUpsideOfBanker], m_cbUserCardCount[wUpsideOfBanker]) == CT_ERROR) return false ; } //拆炸判断 if (cbWantOutCardType < CT_FOUR_LINE_TAKE_ONE && cbWantOutCardType != CT_SINGLE_LINE) { for (BYTE i=0; i < cbWantOutCardCount; ++i) for (BYTE j=0; j < cbAllBombCount; ++j) { if (GetCardValue(cbAllBombCard[j]) == GetCardValue(cbWantOutCardData[i])) return false ; } } } if(cbUserCardCount[wTestUser]==0) return true ; //递归处理 try { ASSERT(cbUserCardCount[wTestUser] >= cbWantOutCardCount) ; if (cbUserCardCount[wTestUser] < cbWantOutCardCount ) return false ; if(!RemoveCard(cbWantOutCardData, cbWantOutCardCount, cbAllCardData[wTestUser], cbUserCardCount[wTestUser])) return false; cbUserCardCount[wTestUser] -= cbWantOutCardCount ; //不带大牌 if (cbWantOutCardType >= CT_THREE_LINE_TAKE_ONE && cbWantOutCardType <= CT_FOUR_LINE_TAKE_TWO && !bFirstOutCard) { bool bHaveLargeCard = false ; for (BYTE i = 3; i < cbWantOutCardCount; ++i) if (GetCardLogicValue(cbWantOutCardData[i]) >= 15) { bHaveLargeCard = true ; break ; } if (bHaveLargeCard) { for (BYTE i = 0; i < cbUserCardCount[wTestUser]; ++i) if (GetCardLogicValue(cbAllCardData[wTestUser][i]) < 15) return false ; } } } catch(...) { return false ; } if(cbUserCardCount[wTestUser]!=0) { tagOutCardTypeResult CardTypeResult[12+1] ; ZeroMemory(CardTypeResult, sizeof(CardTypeResult)) ; //出牌分析 try { AnalyseOutCardType(cbAllCardData[wTestUser], cbUserCardCount[wTestUser], CardTypeResult) ; } catch(...) { return false ; } for(BYTE cbCardType=CT_SINGLE; cbCardType<=CT_MISSILE_CARD; ++cbCardType) if(CardTypeResult[cbCardType].cbCardTypeCount>0) { for(LONG lIndex=0; lIndex<CardTypeResult[cbCardType].cbCardTypeCount; ++lIndex) { //保存数据 BYTE cbTmpCardData[GAME_PLAYER][MAX_COUNT], cbTmpCardCount[GAME_PLAYER] ; CopyMemory(cbTmpCardData, cbAllCardData, sizeof(cbTmpCardData)) ; CopyMemory(cbTmpCardCount, cbUserCardCount, sizeof(cbTmpCardCount)) ; //递归分析 try { if(_TestOutAllCard(wTestUser, CardTypeResult[cbCardType].cbCardData[lIndex], CardTypeResult[cbCardType].cbEachHandCardCount[lIndex], cbTmpCardData, cbTmpCardCount, bFirstOutCard)) return true ; } catch(...) { return false ; } } } } else return true ; return false ; } //四带牌型 bool CGameLogic::AnalyseFourCardType( BYTE const cbHandCardData[MAX_COUNT], BYTE cbHandCardCount, BYTE cbEnemyCardData[MAX_COUNT], BYTE cbEnemyCardCount, tagOutCardResult &CardResult ) { //初始变量 ZeroMemory(&CardResult, sizeof(CardResult)) ; //牌数判断 if ( cbHandCardCount < 5 ) return false ; //对方牌型分析 if ( GetCardType(cbEnemyCardData, cbEnemyCardCount) == CT_SINGLE ) { //对王判断 if ( GetCardLogicValue(cbHandCardData[1] ) < 16 ) { //分析扑克 tagAnalyseResult AnalyseResult ; AnalysebCardData(cbHandCardData, cbHandCardCount, AnalyseResult) ; //分析牌型 if ( cbHandCardCount != ( AnalyseResult.cbFourCount * 4 + AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbSignedCount ) || AnalyseResult.cbFourCount <= 0 ) return false ; //对方单牌 if ( GetCardType(cbEnemyCardData, cbEnemyCardCount) == CT_SINGLE ) { //个数判断 if ( AnalyseResult.cbSignedCount < 2 ) return false ; //大小判断 if ( GetCardLogicValue(AnalyseResult.cbSignedCardData[0]) >= GetCardLogicValue(cbEnemyCardData[0]) ) return false ; //四张带两单 if ( AnalyseResult.cbFourCount >= 1 && AnalyseResult.cbSignedCount == 2 ) { //炸弹索引 BYTE cbFourCardIndex = ( AnalyseResult.cbFourCount - 1 ) * 4 ; //返回结果 CardResult.cbCardCount = 4 + 2 ; CopyMemory(CardResult.cbResultCard, AnalyseResult.cbFourCardData + cbFourCardIndex, 4 ) ; CardResult.cbResultCard[4] = AnalyseResult.cbSignedCardData[0] ; CardResult.cbResultCard[5] = AnalyseResult.cbSignedCardData[1] ; return true ; } //四张带三单 else if ( AnalyseResult.cbFourCount >= 1 && AnalyseResult.cbSignedCount == 3 ) { //炸弹索引 BYTE cbFourCardIndex = ( AnalyseResult.cbFourCount - 1 ) * 4 ; //返回结果 CardResult.cbCardCount = 4 + 2 ; CopyMemory(CardResult.cbResultCard, AnalyseResult.cbFourCardData + cbFourCardIndex, 4 ) ; CardResult.cbResultCard[4] = AnalyseResult.cbSignedCardData[1] ; CardResult.cbResultCard[5] = AnalyseResult.cbSignedCardData[2] ; return true ; } } else if ( GetCardType(cbEnemyCardData, cbEnemyCardCount) == CT_DOUBLE ) { } } //对王判断 else if ( GetCardLogicValue(cbHandCardData[1] ) == 16 ) { //分析扑克 tagAnalyseResult AnalyseResult ; AnalysebCardData(cbHandCardData, cbHandCardCount, AnalyseResult) ; //分析牌型 if ( cbHandCardCount != ( AnalyseResult.cbFourCount * 4 + AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbSignedCount ) || AnalyseResult.cbFourCount <= 0 ) return false ; //对方单牌 if ( GetCardType(cbEnemyCardData, cbEnemyCardCount) == CT_SINGLE ) { //个数判断 if ( AnalyseResult.cbSignedCount < 4 ) return false ; //大小判断 if ( GetCardLogicValue(AnalyseResult.cbSignedCardData[2]) >= GetCardLogicValue(cbEnemyCardData[0]) ) return false ; //四张带两单 if ( AnalyseResult.cbFourCount >= 1 && AnalyseResult.cbSignedCount == 4 ) { //炸弹索引 BYTE cbFourCardIndex = ( AnalyseResult.cbFourCount - 1 ) * 4 ; //返回结果 CardResult.cbCardCount = 4 + 2 ; CopyMemory(CardResult.cbResultCard, AnalyseResult.cbFourCardData + cbFourCardIndex, 4 ) ; CardResult.cbResultCard[4] = AnalyseResult.cbSignedCardData[2] ; CardResult.cbResultCard[5] = AnalyseResult.cbSignedCardData[3] ; return true ; } //四张带三单 else if ( AnalyseResult.cbFourCount >= 1 && AnalyseResult.cbSignedCount == 5 ) { //炸弹索引 BYTE cbFourCardIndex = ( AnalyseResult.cbFourCount - 1 ) * 4 ; //返回结果 CardResult.cbCardCount = 4 + 2 ; CopyMemory(CardResult.cbResultCard, AnalyseResult.cbFourCardData + cbFourCardIndex, 4 ) ; CardResult.cbResultCard[4] = AnalyseResult.cbSignedCardData[3] ; CardResult.cbResultCard[5] = AnalyseResult.cbSignedCardData[4] ; return true ; } } } } ////一张大牌带一张 //else if (GetCardType(cbEnemyCardData, cbEnemyCardCount) == CT_ERROR && cbEnemyCardCount == 2 ) //{ // //对王判断 // if ( GetCardLogicValue(cbHandCardData[2] ) < 16 ) // { // //分析扑克 // tagAnalyseResult AnalyseResult ; // AnalysebCardData(cbHandCardData, cbHandCardCount, AnalyseResult) ; // //分析牌型 // if ( cbHandCardCount != ( AnalyseResult.cbFourCount * 4 + AnalyseResult.cbDoubleCount * 2 + AnalyseResult.cbSignedCount ) || // AnalyseResult.cbFourCount <= 0 ) return false ; // //个数判断 // if ( AnalyseResult.cbSignedCount < 2 ) return false ; // //四张带三单 // if ( AnalyseResult.cbFourCount >= 1 && AnalyseResult.cbSignedCount == 3 ) // { // //大小判断 // if ( GetCardLogicValue(AnalyseResult.cbSignedCardData[0]) > GetCardLogicValue(cbEnemyCardData[0]) ) return false ; // //炸弹索引 // BYTE cbFourCardIndex = ( AnalyseResult.cbFourCount - 1 ) * 4 ; // //返回结果 // CardResult.cbCardCount = 4 + 2 ; // CopyMemory(CardResult.cbResultCard, AnalyseResult.cbFourCardData + cbFourCardIndex, 4 ) ; // CardResult.cbResultCard[4] = AnalyseResult.cbSignedCardData[1] ; // CardResult.cbResultCard[5] = AnalyseResult.cbSignedCardData[2] ; // return true ; // } // } //} return false ; } //出牌测试 bool CGameLogic::TestOutAllCard( WORD wTestUser, BYTE cbWantOutCardData[], BYTE cbWantOutCardCount, bool bFirstOutCard ) { try { if ( ! VerifyOutCard( wTestUser, cbWantOutCardData, cbWantOutCardCount, m_cbAllCardData[ wTestUser ], m_cbUserCardCount[ wTestUser ], bFirstOutCard ) ) { return false; } //模拟递归处理 if ( cbWantOutCardCount != m_cbUserCardCount[ wTestUser ] ) { //初始栈 m_StackHandCardInfo.InitStack(); //第一个元素 tagHandCardInfo OriginHandCardInfo ; //手上扑克 CopyMemory( OriginHandCardInfo.cbHandCardData, m_cbAllCardData[ wTestUser ], m_cbUserCardCount[ wTestUser ] ); OriginHandCardInfo.cbHandCardCount = m_cbUserCardCount[ wTestUser ]; //移除第一手牌 if(!RemoveCard( cbWantOutCardData, cbWantOutCardCount, OriginHandCardInfo.cbHandCardData, OriginHandCardInfo.cbHandCardCount )) return false; OriginHandCardInfo.cbHandCardCount -= cbWantOutCardCount; //分析扑克 try { AnalyseOutCardType( OriginHandCardInfo.cbHandCardData, OriginHandCardInfo.cbHandCardCount, OriginHandCardInfo.CardTypeResult ) ; } catch( ... ) { return false ; } //元素压栈 m_StackHandCardInfo.Push( &OriginHandCardInfo ); //次数控制 LONG lJudgeCount = 0; while ( ! m_StackHandCardInfo.IsEmpty() ) { //防止死循环 if ( ++lJudgeCount == 500 ) { return false; } //栈顶元素 tagHandCardInfo *pTopHandCardInfo = NULL; m_StackHandCardInfo.GetTop( pTopHandCardInfo ); //合法判断 ASSERT( pTopHandCardInfo != NULL ) ; if ( pTopHandCardInfo == NULL ) { return false; } //牌型数据 tagOutCardTypeResult *pOutCardTypeResult = ( tagOutCardTypeResult * )pTopHandCardInfo->CardTypeResult; //禁止的牌型 pOutCardTypeResult[ CT_FOUR_LINE_TAKE_ONE ].cbCardTypeCount = 0; pOutCardTypeResult[ CT_FOUR_LINE_TAKE_TWO ].cbCardTypeCount = 0; //所有牌型 bool bBreakJudge = false; bool bFindLargestCard = false; for ( BYTE cbOutCardTypeIndx = CT_SINGLE; cbOutCardTypeIndx <= CT_MISSILE_CARD && ! bBreakJudge; ++cbOutCardTypeIndx ) { for ( BYTE cbHandCardIndx = 0; cbHandCardIndx < pOutCardTypeResult[ cbOutCardTypeIndx ].cbCardTypeCount && ! bBreakJudge ; ++cbHandCardIndx ) { //是否判断过 if ( pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] == 0 ) { continue; } //最大判断 if ( IsLargestCard( wTestUser, pOutCardTypeResult[ cbOutCardTypeIndx ].cbCardData[ cbHandCardIndx ], pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] ) ) { //最后一手 bool bIsLastHandCard = pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] == pTopHandCardInfo->cbHandCardCount ; if ( bIsLastHandCard ) { return true ; } //是否能出 if ( ! VerifyOutCard( wTestUser, pOutCardTypeResult[ cbOutCardTypeIndx ].cbCardData[ cbHandCardIndx ], pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ], pTopHandCardInfo->cbHandCardData, pTopHandCardInfo->cbHandCardCount, bFirstOutCard ) ) { //表明此牌已经判断过 pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] = 0; continue; } //新建栈元素 tagHandCardInfo NewHandCardInfo ; //手上扑克 CopyMemory( NewHandCardInfo.cbHandCardData, pTopHandCardInfo->cbHandCardData, pTopHandCardInfo->cbHandCardCount ); NewHandCardInfo.cbHandCardCount = pTopHandCardInfo->cbHandCardCount; //移除当前一手 if(!RemoveCard( pOutCardTypeResult[ cbOutCardTypeIndx ].cbCardData[ cbHandCardIndx ], pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ], NewHandCardInfo.cbHandCardData, NewHandCardInfo.cbHandCardCount )) return false; NewHandCardInfo.cbHandCardCount -= pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ]; //表明此牌已经判断过 pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] = 0; //分析扑克 try { AnalyseOutCardType( NewHandCardInfo.cbHandCardData, NewHandCardInfo.cbHandCardCount, NewHandCardInfo.CardTypeResult ) ; } catch( ... ) { return false ; } //元素压栈 m_StackHandCardInfo.Push( & NewHandCardInfo ); //中断循环 bBreakJudge = true; //设置标识 bFindLargestCard = true; } //当前一手的数目等于手上扑克数目 else if ( pOutCardTypeResult[ cbOutCardTypeIndx ].cbEachHandCardCount[ cbHandCardIndx ] == pTopHandCardInfo->cbHandCardCount ) { return true ; } } } //出栈判断 if ( ! bFindLargestCard ) { m_StackHandCardInfo.Pop(); } } } else { return true ; } } catch ( ... ) { ASSERT( false ); return false; } return false ; } //最大判断 bool CGameLogic::IsLargestCard( WORD wTestUser, BYTE const cbWantOutCardData[], BYTE const cbWantOutCardCount ) { //朋友ID WORD wFriendID = GAME_PLAYER ; if ( wTestUser != m_wBankerUser ) { wFriendID = ( wTestUser == ( ( m_wBankerUser + 1 ) % GAME_PLAYER ) ) ? ( m_wBankerUser + 2 ) % GAME_PLAYER : ( m_wBankerUser + 1 ) % GAME_PLAYER ; } //出牌判断 try{ for ( WORD wUser = 0; wUser < GAME_PLAYER; ++wUser ) { if ( wUser != wTestUser && wFriendID != wUser ) { tagOutCardTypeResult CardTypeResult[ 12 + 1 ] ; ZeroMemory( CardTypeResult, sizeof( CardTypeResult ) ) ; //出牌分析 try { AnalyseOutCardType( m_cbAllCardData[ wUser ], m_cbUserCardCount[ wUser ], cbWantOutCardData, cbWantOutCardCount, CardTypeResult ) ; } catch(...) { return false ; } for ( BYTE cbCardType = CT_SINGLE; cbCardType <= CT_MISSILE_CARD; ++cbCardType ) { if ( 0 < CardTypeResult[ cbCardType ].cbCardTypeCount ) { return false ; } } } } } catch( ... ) { return false ; } return true; } //是否能出 bool CGameLogic::VerifyOutCard( WORD wTestUser, BYTE const cbWantOutCardData[], BYTE const cbWantOutCardCount, BYTE const cbCurHandCardData[ MAX_COUNT ], BYTE const cbCurHandCardCount, bool bFirstOutCard ) { //朋友ID WORD wFriendID = GAME_PLAYER ; if ( wTestUser != m_wBankerUser ) { wFriendID = ( wTestUser == ( ( m_wBankerUser + 1 ) % GAME_PLAYER ) ) ? ( m_wBankerUser + 2 ) % GAME_PLAYER : ( m_wBankerUser + 1 ) % GAME_PLAYER ; } BYTE cbWantOutCardType = GetCardType( cbWantOutCardData, cbWantOutCardCount ) ; //首出判断 if ( bFirstOutCard && cbWantOutCardCount == cbCurHandCardCount ) { return true; } //是否最大 if ( ! IsLargestCard( wTestUser, cbWantOutCardData, cbWantOutCardCount ) ) { return false; } //拆炸判断 BYTE cbAllBombCard[ MAX_COUNT ], cbAllBombCount = 0 ; GetAllBomCard( cbCurHandCardData, cbCurHandCardCount, cbAllBombCard, cbAllBombCount ) ; if ( 0 < cbAllBombCount ) { //剩余扑克 BYTE cbRemainCard [MAX_COUNT ], cbRemainCardCount ; CopyMemory( cbRemainCard, cbCurHandCardData, cbCurHandCardCount ) ; cbRemainCardCount = cbCurHandCardCount ; if(!RemoveCard( cbWantOutCardData, cbWantOutCardCount, cbRemainCard, cbRemainCardCount )) return false; cbRemainCardCount -= cbWantOutCardCount ; //愚蠢牌型 if ( CT_FOUR_LINE_TAKE_ONE == cbWantOutCardType || CT_FOUR_LINE_TAKE_TWO==cbWantOutCardType ) return false ; //只剩炸弹 if ( CT_BOMB_CARD <= cbWantOutCardType && cbWantOutCardCount == cbCurHandCardCount ) return true ; //只剩炸弹 if ( cbAllBombCount == m_cbUserCardCount[ wTestUser ] && CT_BOMB_CARD <= cbWantOutCardType ) return true ; //炸弹和一手 if ( CT_BOMB_CARD <= cbWantOutCardType && GetCardType(cbRemainCard, cbRemainCardCount) != CT_ERROR && CT_FOUR_LINE_TAKE_TWO != GetCardType( cbRemainCard, cbRemainCardCount ) && CT_FOUR_LINE_TAKE_ONE != GetCardType( cbRemainCard, cbRemainCardCount ) ) { return true ; } //首出牌时不出炸弹 if (CT_BOMB_CARD <= cbWantOutCardType && bFirstOutCard ) { //地主只剩一手牌 if ( wTestUser != m_wBankerUser && GetCardType( m_cbAllCardData[ m_wBankerUser ], m_cbUserCardCount[ m_wBankerUser ] ) == CT_ERROR ) { return false ; } WORD wUndersideOfBanker = (m_wBankerUser+1)%GAME_PLAYER ; //地主下家 WORD wUpsideOfBanker = (wUndersideOfBanker+1)%GAME_PLAYER ; //地主上家 //闲家只剩一手牌 if ( wTestUser == m_wBankerUser && GetCardType( m_cbAllCardData[ wUndersideOfBanker ], m_cbUserCardCount[ wUndersideOfBanker ] ) == CT_ERROR && GetCardType( m_cbAllCardData[ wUpsideOfBanker ], m_cbUserCardCount[ wUpsideOfBanker ] ) == CT_ERROR ) { return false ; } } //拆炸判断 if ( cbWantOutCardType < CT_FOUR_LINE_TAKE_ONE && cbWantOutCardType != CT_SINGLE_LINE ) { for ( BYTE i = 0; i < cbWantOutCardCount; ++i ) for ( BYTE j = 0; j < cbAllBombCount; ++j ) { if ( GetCardValue( cbAllBombCard[ j ] ) == GetCardValue( cbWantOutCardData[ i ] ) ) return false ; } } } //出完判断 if ( cbCurHandCardCount == cbWantOutCardCount ) { return true ; } if ( cbCurHandCardCount == 0 ) { return true ; } try { ASSERT( cbWantOutCardCount <= cbCurHandCardCount ) ; if ( cbCurHandCardCount < cbWantOutCardCount ) { return false ; } //剩余扑克 BYTE cbRemainCard [MAX_COUNT ], cbRemainCardCount ; CopyMemory( cbRemainCard, cbCurHandCardData, cbCurHandCardCount ) ; cbRemainCardCount = cbCurHandCardCount ; if(!RemoveCard( cbWantOutCardData, cbWantOutCardCount, cbRemainCard, cbRemainCardCount )) return false; cbRemainCardCount -= cbWantOutCardCount ; if ( cbRemainCardCount == 0 ) { return false; } //不带大牌 if ( CT_THREE_LINE_TAKE_ONE <= cbWantOutCardType && cbWantOutCardType <= CT_FOUR_LINE_TAKE_TWO && ! bFirstOutCard ) { bool bHaveLargeCard = false ; for ( BYTE i = 3; i < cbWantOutCardCount; ++i ) if ( 15 <= GetCardLogicValue( cbWantOutCardData[ i ]) ) { bHaveLargeCard = true ; break ; } if ( bHaveLargeCard ) { for ( BYTE i = 0; i < cbRemainCardCount; ++i ) { if ( GetCardLogicValue( cbRemainCard[ i ]) < 15 ) { return false ; } } } } } catch(...) { return false ; } return true; } ////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////
[ "hang.xiao.hh@gmail.com" ]
hang.xiao.hh@gmail.com
5bff895f1ad537d0fdddde0b62214fc60afe2564
381d826b5755eed326c0002ff9836559195eba28
/pl codes/Projects/Expression solver/include.cpp
e1854e19abe8963f983859a3a2f6ba6b645857c6
[]
no_license
tanvieer/ProblemSolving
79b491ee9dbfab5989efe0cbd4b206729ddc872b
a538b4e67cc7dd110650d88bc7439eade7e16210
refs/heads/master
2021-01-23T04:30:15.539121
2017-03-28T15:33:27
2017-03-28T15:33:27
86,206,912
0
0
null
null
null
null
UTF-8
C++
false
false
1,992
cpp
/*------------------------------------------------ *------------------------------------------------ * |id : 112 0821 042 * |name : Alim Ul Karim * |email : alim.karim.nsu@gmail.com * |course : CSE 115.2 * |blog : http://bit.ly/auk-blog * |linkedin : http://linkd.in/alim-ul-karim * |cell : +880-1673-175222 * |cell : +880-1913-500863 *------------------------------------------------ *------------------------------------------------ */ using namespace std; /* Libraries like stdio.h , math.h etc.. */ #include "include_libraries.cpp" /* Method scopes declaration */ #include "scopes.cpp" /* Macros */ #include "macros.cpp" /* Variable and Constants */ #include "const_variables.cpp" /* Other Tested Functions and Methods for this project */ #include "search.cpp" #include "int_array.cpp" #include "char_array.cpp" #include "string_more.cpp" #include "maths.cpp" #include "equation_clean_up_functions.cpp" #include "expression_solve.cpp" void intialize() { len_opts = getLen(operators_ar); len_remove_opts = getLen(remove_chars); len_opts_duplicate_NA = getLen(operators_duplicate_not_allowed); array_merge(operators_ar , operators_duplicate_not_allowed , 1); // printf("1:%s\n" , operators_ar); // printf("2:%s\n" , operators_duplicate_not_allowed); // printf("3:%s\n" , remove_chars); } void print_project_outlet() { cout << "|-----------------------------------------\n" "|-----------------------------------------\n" "| \n" "| CSE 115.2 Project By \n" "| Alim Ul Karim and \n" "| Alvee Ibne Rahman\n" "| \n" "|-----------------------------------------\n" "| Project Name : Expression Solver\n" "|-----------------------------------------\n" "|-----------------------------------------\n" <<endl; } void find_function_arguments(char s[] , char func_name[]){ }
[ "tanvieer@gmail.com" ]
tanvieer@gmail.com
893c81790c92e46113afb2357dc2407089ccb194
c8a413bc4f470e0a9e6d4f60a48b9de9014ab25a
/LeetCode/Problems/101-150/148. Sort List.h
e70f747a7e5f01b816a5065ed2d5ced88399ac5c
[]
no_license
mversace/LeetCode
cc97646d23c6613b1eb13033395f47c6208a5c3f
7082cf94f1e7f7066c18d75015417fec413acea0
refs/heads/master
2021-09-14T20:59:50.661130
2018-05-19T13:54:47
2018-05-19T13:54:47
115,349,790
1
0
null
null
null
null
GB18030
C++
false
false
793
h
#pragma once /* Sort a linked list in O(n log n) time using constant space complexity. Example 1: Input: 4->2->1->3 Output: 1->2->3->4 Example 2: Input: -1->5->3->4->0 Output: -1->0->3->4->5 */ #include <vector> #include <algorithm> using std::vector; class Solution { public: struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(nullptr) {} }; ListNode* sortList(ListNode* head) { // 链表排序蠢得一笔,不知道有什么意义 if (!head) return nullptr; ListNode* pNewHead = head; vector<int> vfuck; while (head) { vfuck.push_back(head->val); head = head->next; } sort(vfuck.begin(), vfuck.end()); head = pNewHead; int i = 0; while (head) { head->val = vfuck[i++]; head = head->next; } return pNewHead; } };
[ "447801388@qq.com" ]
447801388@qq.com
6614b3fb64a4af71c9a5984d91a62027577efa2a
3bbaac515ad3cd3bf2c27e886a47b3c2a7acbecf
/test/hrs-alternative-directed-test.cc
599eaf1a86e0fb945a7008dcac45905ca3c084f0
[]
no_license
zc444/image-clasification
e28a4031b18d9d6dd11eb05ac613e545f6501903
3966339433d41d4ba9f2920f7f9f195e289616c5
refs/heads/master
2022-12-22T15:40:46.609637
2020-09-11T01:59:26
2020-09-11T01:59:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,866
cc
//======================================================================== // hrs-alternative-directed-test.cc //======================================================================== // Directed test cases for HRSAlternative. #include <iostream> #include "Image.h" #include "Vector.h" #include "HRSAlternative.h" #include "mnist-utils.h" #include "utst.h" //------------------------------------------------------------------------ // Inputs //------------------------------------------------------------------------ #include "digits.dat" // The data included is as follows: // // Digit | Label // ---------+------- // digit0 | 5 // digit1 | 3 // digit2 | 2 // digit3 | 1 // digit4 | 1 // digit5 | 6 // digit6 | 5 // digit7 | 8 // digit8 | 9 // digit9 | 7 // digit10 | 0 // digit11 | 7 // digit12 | 4 // digit13 | 0 // //------------------------------------------------------------------------ // constants //------------------------------------------------------------------------ const std::string mnsit_dir = "/classes/ece2400/mnist/"; const unsigned int ncols = 28; const unsigned int nrows = 28; const unsigned int img_size = nrows * ncols; //------------------------------------------------------------------------ // test_case_1_tiny_accuracy //------------------------------------------------------------------------ void test_case_1_tiny_accuracy() { std::printf( "\n%s\n", __func__ ); const int training_size = 10; const int testing_size = 10; // Read the training images Vector<Image> v_train; std::string image_path = mnsit_dir + "training-images-tiny.bin"; std::string label_path = mnsit_dir + "training-labels-tiny.bin"; read_labeled_images( image_path, label_path, v_train, training_size ); // Read the testing images Vector<Image> v_test; image_path = mnsit_dir + "testing-images-tiny.bin"; label_path = mnsit_dir + "testing-labels-tiny.bin"; read_labeled_images( image_path, label_path, v_test, testing_size ); // Train and classify HRSAlternative clf; double accuracy = train_and_classify( clf, v_train, v_test ); std::cout << "Accuracy: " << accuracy << std::endl; // Accuracy should be... double expected_accuracy = 0.5; UTST_ASSERT_TRUE( accuracy > expected_accuracy ); } //------------------------------------------------------------------------ // test_case_2_small_accuracy //------------------------------------------------------------------------ void test_case_2_small_accuracy() { std::printf( "\n%s\n", __func__ ); const int training_size = 600; const int testing_size = 100; // Read the training images Vector<Image> v_train; std::string image_path = mnsit_dir + "training-images-small.bin"; std::string label_path = mnsit_dir + "training-labels-small.bin"; read_labeled_images( image_path, label_path, v_train, training_size ); // Read the testing images Vector<Image> v_test; image_path = mnsit_dir + "testing-images-small.bin"; label_path = mnsit_dir + "testing-labels-small.bin"; read_labeled_images( image_path, label_path, v_test, testing_size ); // Train and classify HRSAlternative clf; double accuracy = train_and_classify( clf, v_train, v_test ); std::cout << "Accuracy: " << accuracy << std::endl; // Accuracy should be... double expected_accuracy = 0.70; UTST_ASSERT_TRUE( accuracy >= expected_accuracy ); } //------------------------------------------------------------------------ // main //------------------------------------------------------------------------ int main( int argc, char** argv ) { __n = ( argc == 1 ) ? 0 : atoi( argv[1] ); if ( ( __n == 0 ) || ( __n == 1 ) ) test_case_1_tiny_accuracy(); if ( ( __n == 0 ) || ( __n == 2 ) ) test_case_2_small_accuracy(); return 0; }
[ "zc444@cornell.edu" ]
zc444@cornell.edu
d098098523c848356124aaa5ff3b586eef41bfb8
69edcb7bd6ea543889a6022a2258673b137f250a
/src/luxrays/utils/cuda.cpp
d0939125f14ef625a32b2d5fb7660d6e5c10bb28
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
xJayLee/LuxCore
4ca47894b12804be09219bde8fbf1639b82b6cef
815391d23a30b1029d1d7a41798359635b4ebcf6
refs/heads/master
2023-02-15T23:43:05.459687
2021-01-11T17:00:49
2021-01-11T17:00:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,019
cpp
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * * * 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. * ***************************************************************************/ #if !defined(LUXRAYS_DISABLE_CUDA) #include <iostream> #include <fstream> #include <string.h> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/trim.hpp> #include "luxrays/luxrays.h" #include "luxrays/utils/utils.h" #include "luxrays/utils/config.h" #include "luxrays/utils/cudacache.h" #include "luxrays/utils/oclcache.h" #include <optix_function_table_definition.h> using namespace std; using namespace luxrays; //------------------------------------------------------------------------------ // cudaKernelCache //------------------------------------------------------------------------------ bool cudaKernelCache::ForcedCompilePTX(const vector<string> &kernelsParameters, const string &kernelSource, const string &programName, char **ptx, size_t *ptxSize, string *error) { if (error) *error = ""; nvrtcProgram prog; CHECK_NVRTC_ERROR(nvrtcCreateProgram(&prog, kernelSource.c_str(), programName.c_str(), 0, nullptr, nullptr)); vector<const char *> cudaOpts; cudaOpts.push_back("--device-as-default-execution-space"); //cudaOpts.push_back("--disable-warnings"); // To display warning numbers cudaOpts.push_back("-Xcudafe"); cudaOpts.push_back("--display_error_number"); // To suppress warning: warning #550-D: variable "xyz" was set but never used cudaOpts.push_back("-Xcudafe"); cudaOpts.push_back("--diag_suppress=550"); // To suppress warning: warning #1055-D: types cannot be declared in anonymous unions cudaOpts.push_back("-Xcudafe"); cudaOpts.push_back("--diag_suppress=1055"); // To suppress warning: warning #68-D: integer conversion resulted in a change of sign cudaOpts.push_back("-Xcudafe"); cudaOpts.push_back("--diag_suppress=68"); for (auto const &p : kernelsParameters) cudaOpts.push_back(p.c_str()); // For some debug //for (uint i = 0; i < cudaOpts.size(); ++i) // cout << "Opt #" << i <<" : [" << cudaOpts[i] << "]\n"; const nvrtcResult compilationResult = nvrtcCompileProgram(prog, cudaOpts.size(), (cudaOpts.size() > 0) ? &cudaOpts[0] : nullptr); size_t logSize; CHECK_NVRTC_ERROR(nvrtcGetProgramLogSize(prog, &logSize)); unique_ptr<char> log(new char[logSize]); CHECK_NVRTC_ERROR(nvrtcGetProgramLog(prog, log.get())); *error = string(log.get()); if (compilationResult != NVRTC_SUCCESS) return false; // Obtain PTX from the program. CHECK_NVRTC_ERROR(nvrtcGetPTXSize(prog, ptxSize)); *ptx = new char[*ptxSize]; CHECK_NVRTC_ERROR(nvrtcGetPTX(prog, *ptx)); CHECK_NVRTC_ERROR(nvrtcDestroyProgram(&prog)); return true; } //------------------------------------------------------------------------------ // cudaKernelPersistentCache //------------------------------------------------------------------------------ boost::filesystem::path cudaKernelPersistentCache::GetCacheDir(const string &applicationName) { return GetConfigDir() / "cuda_kernel_cache" / SanitizeFileName(applicationName); } cudaKernelPersistentCache::cudaKernelPersistentCache(const string &applicationName) { appName = applicationName; // Crate the cache directory boost::filesystem::create_directories(GetCacheDir(appName)); } cudaKernelPersistentCache::~cudaKernelPersistentCache() { } bool cudaKernelPersistentCache::CompilePTX(const vector<string> &kernelsParameters, const string &kernelSource, const string &programName, char **ptx, size_t *ptxSize, bool *cached, string *error) { if (error) *error = ""; // Check if the kernel is available in the cache const string kernelName = oclKernelPersistentCache::HashString(oclKernelPersistentCache::ToOptsString(kernelsParameters)) + "-" + oclKernelPersistentCache::HashString(kernelSource) + ".ptx"; const boost::filesystem::path dirPath = GetCacheDir(appName); const boost::filesystem::path filePath = dirPath / kernelName; const string fileName = filePath.generic_string(); *cached = false; if (!boost::filesystem::exists(filePath)) { // It isn't available, compile the source // Create the file only if the binaries include something if (ForcedCompilePTX(kernelsParameters, kernelSource, programName, ptx, ptxSize, error)) { // Add the kernel to the cache boost::filesystem::create_directories(dirPath); // The use of boost::filesystem::path is required for UNICODE support: fileName // is supposed to be UTF-8 encoded. boost::filesystem::ofstream file(boost::filesystem::path(fileName), boost::filesystem::ofstream::out | boost::filesystem::ofstream::binary | boost::filesystem::ofstream::trunc); // Write the binary hash const u_int hashBin = oclKernelPersistentCache::HashBin(*ptx, *ptxSize); file.write((char *)&hashBin, sizeof(int)); file.write(*ptx, *ptxSize); // Check for errors char buf[512]; if (file.fail()) { sprintf(buf, "Unable to write kernel file cache %s", fileName.c_str()); throw runtime_error(buf); } file.close(); return true; } else return false; } else { const size_t fileSize = boost::filesystem::file_size(filePath); if (fileSize > 4) { *ptxSize = fileSize - 4; *ptx = new char[*ptxSize]; // The use of boost::filesystem::path is required for UNICODE support: fileName // is supposed to be UTF-8 encoded. boost::filesystem::ifstream file(boost::filesystem::path(fileName), boost::filesystem::ifstream::in | boost::filesystem::ifstream::binary); // Read the binary hash u_int hashBin; file.read((char *)&hashBin, sizeof(int)); file.read(*ptx, *ptxSize); // Check for errors char buf[512]; if (file.fail()) { sprintf(buf, "Unable to read kernel file cache %s", fileName.c_str()); throw runtime_error(buf); } file.close(); // Check the binary hash if (hashBin != oclKernelPersistentCache::HashBin(*ptx, *ptxSize)) { // Something wrong in the file, remove the file and retry boost::filesystem::remove(filePath); return CompilePTX(kernelsParameters, kernelSource, programName, ptx, ptxSize, cached, error); } else { *cached = true; return true; } } else { // Something wrong in the file, remove the file and retry boost::filesystem::remove(filePath); return CompilePTX(kernelsParameters, kernelSource, programName, ptx, ptxSize, cached, error); } } } CUmodule cudaKernelPersistentCache::Compile(const vector<string> &kernelsParameters, const string &kernelSource, const string &programName, bool *cached, string *error) { char *ptx; size_t ptxSize; if (CompilePTX(kernelsParameters, kernelSource, programName, &ptx, &ptxSize, cached, error)) { CUmodule module; CHECK_CUDA_ERROR(cuModuleLoadDataEx(&module, ptx, 0, 0, 0)); delete[] ptx; return module; } else return nullptr; } #endif
[ "dade916@gmail.com" ]
dade916@gmail.com
cb27490fb2cfa1770774042d673287035e0ba87c
e5676b9ff3e0f21f0ef122137a506d605bf0d48e
/NYUCodebase/Game.hpp
e92fc99da8c946f094932b6ca86311060a80ee13
[]
no_license
maxwellainatchi/cs-3113-class-work
f1c6b60f26e695bcdb38bf80b10208c1217b6e75
801ac490dc0067e3c48c23784e631a753bef518d
refs/heads/master
2022-05-03T23:37:25.270023
2017-05-14T14:40:54
2017-05-14T14:40:54
80,462,463
0
0
null
null
null
null
UTF-8
C++
false
false
2,510
hpp
// // Game.hpp // NYUCodebase // // Created by Max Ainatchi on 2/16/17. // Copyright © 2017 Ivan Safrin. All rights reserved. // #ifndef Game_hpp #define Game_hpp #define RUNNING "running" #define PAUSED "paused" #define LOADING "loading" #define FIXED_TIMESTEP 0.0166666f #define MAX_TIMESTEPS 6 #include "libraries.h" #include "resources.h" #include "objects.h" #include <SDL2_mixer/SDL_mixer.h> #include <pthread.h> // To be used with care... struct Frame { std::set<Entity*> backgrounds; std::set<Entity*> statics; std::set<Entity*> dynamics; // MARK: Combinations std::set<Entity*> renderable; std::set<Entity*> updateable; std::set<Entity*> collideable; std::set<Entity*> all; // MARK: Setters void insertBackground(Entity* entity); void insertStatic(Entity* entity); void insertDynamic(Entity* entity); void clear(); }; class Game: public EventFramework { private: // MARK: - Config Vector aspectRatio = {16.0f, 9.0f}; // MARK: - Private struct Window { Rectangle uv; Rectangle pixels; }; SDL_Window* displayWindow; SDL_GLContext context; SDL_DisplayMode displayMode; ShaderProgram* shader; float lastFrameTicks; float thisFrameTicks; // MARK: Stages of the game /// Runs the setup for each entity void configure(); /// Starts the game loop void loop(); /// Updates the game void update(float elapsed); /// Renders the game void render(); public: // MARK: - Public bool done = false; std::map<std::string, Frame> frames; std::map<std::string, std::set<Timer*>> timers; Matrix model; Matrix projection; Matrix view; Window window; Rectangle innerBounds; std::string state; Game(std::string name); ~Game(); // MARK: Event listeners InstantAction willConfigure; // InstantAction didConfigure; InstantAction willStart; // InstantAction didStart; TimedAction willUpdate; // TimedAction didUpdate; StateAction willChangeState; // InstantAction didChangeState; InstantAction willRender; // InstantAction didRender; InstantAction willEnd; // InstantAction didEnd; // MARK: Utility methods void showLoading(bool firstRun); void start(); void changeState(State state); void createState(State name); }; #endif /* Game_hpp */
[ "maxwell.ainatchi@gmail.com" ]
maxwell.ainatchi@gmail.com
ea87803d2671d3cb864aa1aefa0168fe55410534
9d164088aa2d5a65215b77186c45da093ad68cb1
/src/CQGnuPlotStroke.cpp
1fff9c3bd1a51c63796abaa6819ca1decd776b7f
[ "MIT" ]
permissive
colinw7/CQGnuPlot
9c247a7ff8afd0060fd99d7f4c12d4f105dfc9d9
c12ad292932a2116ab7fbb33be158adcf6c32674
refs/heads/master
2023-04-14T07:29:43.807602
2023-04-03T15:59:36
2023-04-03T15:59:36
26,377,931
0
1
null
null
null
null
UTF-8
C++
false
false
1,890
cpp
#include <CQGnuPlotStroke.h> #include <CQGnuPlotPlot.h> #include <CQGnuPlotRenderer.h> CQGnuPlotStroke:: CQGnuPlotStroke(CQGnuPlotPlot *plot) : CGnuPlotStroke(plot) { } CQGnuPlotStroke * CQGnuPlotStroke:: dup() const { CQGnuPlotPlot *qplot = static_cast<CQGnuPlotPlot *>(plot_); CQGnuPlotStroke *stroke = new CQGnuPlotStroke(qplot); stroke->CGnuPlotStroke::operator=(*this); return stroke; } void CQGnuPlotStroke:: setValues(const CQGnuPlotStroke &stroke) { CGnuPlotStroke::setEnabled (stroke.isEnabled()); CGnuPlotStroke::setColor (fromQColor(stroke.color())); CGnuPlotStroke::setWidth (stroke.width()); CGnuPlotStroke::setLineDash (stroke.dash()); CGnuPlotStroke::setLineCap (CQGnuPlotEnum::lineCapConv(stroke.lineCap())); CGnuPlotStroke::setLineJoin (CQGnuPlotEnum::lineJoinConv(stroke.lineJoin())); CGnuPlotStroke::setMitreLimit(stroke.mitreLimit()); } QColor CQGnuPlotStroke:: color() const { return toQColor(CGnuPlotStroke::color()); } void CQGnuPlotStroke:: setColor(const QColor &color) { CGnuPlotStroke::setColor(fromQColor(color)); emit changed(); } CLineDash CQGnuPlotStroke:: dash() const { return CGnuPlotStroke::lineDash(); } void CQGnuPlotStroke:: setDash(const CLineDash &dash) { CGnuPlotStroke::setLineDash(dash); emit changed(); } CQGnuPlotEnum::LineCapType CQGnuPlotStroke:: lineCap() const { return CQGnuPlotEnum::lineCapConv(CGnuPlotStroke::lineCap()); } void CQGnuPlotStroke:: setLineCap(const CQGnuPlotEnum::LineCapType &a) { CGnuPlotStroke::setLineCap(CQGnuPlotEnum::lineCapConv(a)); emit changed(); } CQGnuPlotEnum::LineJoinType CQGnuPlotStroke:: lineJoin() const { return CQGnuPlotEnum::lineJoinConv(CGnuPlotStroke::lineJoin()); } void CQGnuPlotStroke:: setLineJoin(const CQGnuPlotEnum::LineJoinType &a) { CGnuPlotStroke::setLineJoin(CQGnuPlotEnum::lineJoinConv(a)); emit changed(); }
[ "colinw@nc.rr.com" ]
colinw@nc.rr.com
ea20ea093789d4e744021b541bbbc05a9cf80a1a
1336d4518d92f3f7e3739e3a36f10b1860a1df32
/lib/python3.9/site-packages/qt6_applications/Qt/lib/QtQml.framework/Versions/A/Headers/6.1.0/QtQml/private/qv4qobjectwrapper_p.h
b5c3da311ae4e7aa39e86653be71617600e6639a
[]
no_license
AntonioRoye/inventoryTracker
802b4e523543b5d46e3aead38706222179a26f4b
3c64f39cf522dcc8180e4d4a3fc9ba52864a9379
refs/heads/master
2023-08-20T03:51:25.438306
2021-09-15T21:51:10
2021-09-15T21:51:10
405,515,777
0
0
null
null
null
null
UTF-8
C++
false
false
13,091
h
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL3 included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 3 requirements ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 2.0 or (at your option) the GNU General ** Public license version 3 or any later version approved by the KDE Free ** Qt Foundation. The licenses are as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-2.0.html and ** https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef QV4QOBJECTWRAPPER_P_H #define QV4QOBJECTWRAPPER_P_H // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists purely as an // implementation detail. This header file may change from version to // version without notice, or even be removed. // // We mean it. // #include <QtCore/qglobal.h> #include <QtCore/qmetatype.h> #include <QtCore/qpair.h> #include <QtCore/qhash.h> #include <private/qqmldata_p.h> #include <private/qintrusivelist_p.h> #include <private/qv4value_p.h> #include <private/qv4functionobject_p.h> #include <private/qv4lookup_p.h> QT_BEGIN_NAMESPACE class QObject; class QQmlData; class QQmlPropertyCache; class QQmlPropertyData; namespace QV4 { struct QObjectSlotDispatcher; namespace Heap { struct QQmlValueTypeWrapper; struct Q_QML_EXPORT QObjectWrapper : Object { void init(QObject *object) { Object::init(); qObj.init(object); } void destroy() { qObj.destroy(); Object::destroy(); } QObject *object() const { return qObj.data(); } static void markObjects(Heap::Base *that, MarkStack *markStack); private: QV4QPointer<QObject> qObj; }; #define QObjectMethodMembers(class, Member) \ Member(class, Pointer, QQmlValueTypeWrapper *, valueTypeWrapper) \ Member(class, NoMark, QV4QPointer<QObject>, qObj) \ Member(class, NoMark, int, index) DECLARE_HEAP_OBJECT(QObjectMethod, FunctionObject) { DECLARE_MARKOBJECTS(QObjectMethod); QQmlPropertyData *methods; int methodCount; alignas(alignof(QQmlPropertyData)) std::byte _singleMethod[sizeof(QQmlPropertyData)]; void init(QV4::ExecutionContext *scope); void destroy() { if (methods != reinterpret_cast<QQmlPropertyData *>(&_singleMethod)) delete[] methods; qObj.destroy(); FunctionObject::destroy(); } void ensureMethodsCache(); const QMetaObject *metaObject(); QObject *object() const { return qObj.data(); } void setObject(QObject *o) { qObj = o; } }; struct QMetaObjectWrapper : FunctionObject { const QMetaObject* metaObject; QQmlPropertyData *constructors; int constructorCount; void init(const QMetaObject* metaObject); void destroy(); void ensureConstructorsCache(); }; struct QmlSignalHandler : Object { void init(QObject *object, int signalIndex); void destroy() { qObj.destroy(); Object::destroy(); } int signalIndex; QObject *object() const { return qObj.data(); } void setObject(QObject *o) { qObj = o; } private: QV4QPointer<QObject> qObj; }; } struct Q_QML_EXPORT QObjectWrapper : public Object { V4_OBJECT2(QObjectWrapper, Object) V4_NEEDS_DESTROY enum RevisionMode { IgnoreRevision, CheckRevision }; static void initializeBindings(ExecutionEngine *engine); QObject *object() const { return d()->object(); } ReturnedValue getQmlProperty( const QQmlRefPointer<QQmlContextData> &qmlContext, String *name, RevisionMode revisionMode, bool *hasProperty = nullptr, bool includeImports = false) const; \ static ReturnedValue getQmlProperty( ExecutionEngine *engine, const QQmlRefPointer<QQmlContextData> &qmlContext, QObject *object, String *name, RevisionMode revisionMode, bool *hasProperty = nullptr, QQmlPropertyData **property = nullptr); static bool setQmlProperty( ExecutionEngine *engine, const QQmlRefPointer<QQmlContextData> &qmlContext, QObject *object, String *name, RevisionMode revisionMode, const Value &value); static ReturnedValue wrap(ExecutionEngine *engine, QObject *object); static void markWrapper(QObject *object, MarkStack *markStack); using Object::get; static void setProperty(ExecutionEngine *engine, QObject *object, int propertyIndex, const Value &value); void setProperty(ExecutionEngine *engine, int propertyIndex, const Value &value); void destroyObject(bool lastCall); static ReturnedValue getProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property); static ReturnedValue virtualResolveLookupGetter(const Object *object, ExecutionEngine *engine, Lookup *lookup); static ReturnedValue lookupGetter(Lookup *l, ExecutionEngine *engine, const Value &object); template <typename ReversalFunctor> static ReturnedValue lookupGetterImpl(Lookup *l, ExecutionEngine *engine, const Value &object, bool useOriginalProperty, ReversalFunctor revert); static bool virtualResolveLookupSetter(Object *object, ExecutionEngine *engine, Lookup *lookup, const Value &value); protected: static void setProperty(ExecutionEngine *engine, QObject *object, QQmlPropertyData *property, const Value &value); static bool virtualIsEqualTo(Managed *that, Managed *o); static ReturnedValue create(ExecutionEngine *engine, QObject *object); static QQmlPropertyData *findProperty( ExecutionEngine *engine, QObject *o, const QQmlRefPointer<QQmlContextData> &qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local); QQmlPropertyData *findProperty( ExecutionEngine *engine, const QQmlRefPointer<QQmlContextData> &qmlContext, String *name, RevisionMode revisionMode, QQmlPropertyData *local) const; static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty); static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver); static PropertyAttributes virtualGetOwnProperty(const Managed *m, PropertyKey id, Property *p); static OwnPropertyKeyIterator *virtualOwnPropertyKeys(const Object *m, Value *target); static ReturnedValue method_connect(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_disconnect(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); private: Q_NEVER_INLINE static ReturnedValue wrap_slowPath(ExecutionEngine *engine, QObject *object); }; inline ReturnedValue QObjectWrapper::wrap(ExecutionEngine *engine, QObject *object) { if (Q_UNLIKELY(QQmlData::wasDeleted(object))) return QV4::Encode::null(); auto ddata = QQmlData::get(object); if (Q_LIKELY(ddata && ddata->jsEngineId == engine->m_engineId && !ddata->jsWrapper.isUndefined())) { // We own the JS object return ddata->jsWrapper.value(); } return wrap_slowPath(engine, object); } template <typename ReversalFunctor> inline ReturnedValue QObjectWrapper::lookupGetterImpl(Lookup *lookup, ExecutionEngine *engine, const Value &object, bool useOriginalProperty, ReversalFunctor revertLookup) { // we can safely cast to a QV4::Object here. If object is something else, // the internal class won't match Heap::Object *o = static_cast<Heap::Object *>(object.heapObject()); if (!o || o->internalClass != lookup->qobjectLookup.ic) return revertLookup(); const Heap::QObjectWrapper *This = static_cast<const Heap::QObjectWrapper *>(o); QObject *qobj = This->object(); if (QQmlData::wasDeleted(qobj)) return QV4::Encode::undefined(); QQmlData *ddata = QQmlData::get(qobj, /*create*/false); if (!ddata) return revertLookup(); QQmlPropertyData *property = lookup->qobjectLookup.propertyData; if (ddata->propertyCache != lookup->qobjectLookup.propertyCache) { if (property->isOverridden() && (!useOriginalProperty || property->isFunction() || property->isSignalHandler())) return revertLookup(); QQmlPropertyCache *fromMo = ddata->propertyCache; QQmlPropertyCache *toMo = lookup->qobjectLookup.propertyCache; bool canConvert = false; while (fromMo) { if (fromMo == toMo) { canConvert = true; break; } fromMo = fromMo->parent(); } if (!canConvert) return revertLookup(); } return getProperty(engine, qobj, property); } struct QQmlValueTypeWrapper; struct Q_QML_EXPORT QObjectMethod : public QV4::FunctionObject { V4_OBJECT2(QObjectMethod, QV4::FunctionObject) V4_NEEDS_DESTROY enum { DestroyMethod = -1, ToStringMethod = -2 }; static ReturnedValue create(QV4::ExecutionContext *scope, QObject *object, int index); static ReturnedValue create(QV4::ExecutionContext *scope, Heap::QQmlValueTypeWrapper *valueType, int index); int methodIndex() const { return d()->index; } QObject *object() const { return d()->object(); } QV4::ReturnedValue method_toString(QV4::ExecutionEngine *engine) const; QV4::ReturnedValue method_destroy(QV4::ExecutionEngine *ctx, const Value *args, int argc) const; static ReturnedValue virtualCall(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); ReturnedValue callInternal(const Value *thisObject, const Value *argv, int argc) const; static QPair<QObject *, int> extractQtMethod(const QV4::FunctionObject *function); }; struct Q_QML_EXPORT QMetaObjectWrapper : public QV4::FunctionObject { V4_OBJECT2(QMetaObjectWrapper, QV4::FunctionObject) V4_NEEDS_DESTROY static ReturnedValue create(ExecutionEngine *engine, const QMetaObject* metaObject); const QMetaObject *metaObject() const { return d()->metaObject; } protected: static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *); static bool virtualIsEqualTo(Managed *a, Managed *b); private: void init(ExecutionEngine *engine); ReturnedValue constructInternal(const Value *argv, int argc) const; }; struct Q_QML_EXPORT QmlSignalHandler : public QV4::Object { V4_OBJECT2(QmlSignalHandler, QV4::Object) V4_PROTOTYPE(signalHandlerPrototype) V4_NEEDS_DESTROY int signalIndex() const { return d()->signalIndex; } QObject *object() const { return d()->object(); } static void initProto(ExecutionEngine *v4); }; class MultiplyWrappedQObjectMap : public QObject, private QHash<QObject*, QV4::WeakValue> { Q_OBJECT public: typedef QHash<QObject*, QV4::WeakValue>::ConstIterator ConstIterator; typedef QHash<QObject*, QV4::WeakValue>::Iterator Iterator; ConstIterator begin() const { return QHash<QObject*, QV4::WeakValue>::constBegin(); } Iterator begin() { return QHash<QObject*, QV4::WeakValue>::begin(); } ConstIterator end() const { return QHash<QObject*, QV4::WeakValue>::constEnd(); } Iterator end() { return QHash<QObject*, QV4::WeakValue>::end(); } void insert(QObject *key, Heap::Object *value); ReturnedValue value(QObject *key) const { ConstIterator it = find(key); return it == end() ? QV4::WeakValue().value() : it->value(); } Iterator erase(Iterator it); void remove(QObject *key); void mark(QObject *key, MarkStack *markStack); private Q_SLOTS: void removeDestroyedObject(QObject*); }; } QT_END_NAMESPACE #endif // QV4QOBJECTWRAPPER_P_H
[ "a.royeazar@gmail.com" ]
a.royeazar@gmail.com
4010af77ebe3d225d8793d9252e629679427cd76
f3cd9679cb127414dfd9703659b4ea66ef10b7b6
/die-tk/log.h
de7cba018915259cfaadf4339052bac6393097f3
[ "Artistic-2.0" ]
permissive
thinlizzy/die-tk
04f0ea4b5ef5cd596fe37e5f7f09f22d21c32a6b
eba597d9453318b03e44f15753323be80ecb3a4e
refs/heads/master
2021-07-04T10:44:25.246912
2021-06-03T22:26:45
2021-06-03T22:26:45
45,441,362
11
2
null
null
null
null
UTF-8
C++
false
false
911
h
#ifndef LOG_H_GUARD_dffd9fds9kkdmvfsf888888h5f857 #define LOG_H_GUARD_dffd9fds9kkdmvfsf888888h5f857 #include <iostream> #include <string> // TODO use a variadic macro that outputs line, function and forwards __VA_ARGS__ to logging functions namespace tk { namespace log { std::string nativeErrorString(); template<typename T> void error(T argument) { std::cerr << argument << nativeErrorString() << std::endl; } template<typename T, typename... V> void error(T argument, V... rest) { std::cerr << argument; error(rest...); } template<typename T> void info(T argument) { std::cerr << argument << std::endl; } template<typename T, typename... V> void info(T argument, V... rest) { std::cerr << argument; info(rest...); } template<typename T, typename... V> void debug(T argument, V... rest) { // TODO use DEFINES for logging levels } } } #endif
[ "jose.diego@gmail.com" ]
jose.diego@gmail.com
50695bf6f4409f9ef8eca88d2f8f260e58c0d9d9
ed997b3a8723cc9e77787c1d868f9300b0097473
/libs/asio/test/time_traits.cpp
7a9d5448479eebb994e9d6a660d675e9f2a5cf8c
[ "BSL-1.0" ]
permissive
juslee/boost-svn
7ddb99e2046e5153e7cb5680575588a9aa8c79b2
6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb
refs/heads/master
2023-04-13T11:00:16.289416
2012-11-16T11:14:39
2012-11-16T11:14:39
6,734,455
0
0
BSL-1.0
2023-04-03T23:13:08
2012-11-17T11:21:17
C++
UTF-8
C++
false
false
689
cpp
// // time_traits.cpp // ~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Disable autolinking for unit tests. #if !defined(BOOST_ALL_NO_LIB) #define BOOST_ALL_NO_LIB 1 #endif // !defined(BOOST_ALL_NO_LIB) // Test that header file is self-contained. #include <boost/asio/time_traits.hpp> #include "unit_test.hpp" test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("time_traits"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
[ "chris_kohlhoff@b8fc166d-592f-0410-95f2-cb63ce0dd405" ]
chris_kohlhoff@b8fc166d-592f-0410-95f2-cb63ce0dd405
ae1c312c9e9eec126c89fb951f7204607358c1ab
16044e3f6f48f33a270867eef13d41b6a0617186
/boost/library/boost/mpl/aux_/range_c/empty.hpp
6843c4e7137688e5e6a0eff4b18a82a430730568
[]
no_license
esoobservatory/fitsliberator
47350be9b99ff7ba3c16bae9766621d1f324d2ef
02e11d9bd718dfb68b3d729cafc49915c8962b8e
refs/heads/master
2021-01-18T16:30:10.922487
2015-08-19T15:14:58
2015-08-19T15:14:58
41,041,169
38
11
null
null
null
null
UTF-8
C++
false
false
931
hpp
#ifndef BOOST_MPL_AUX_RANGE_C_EMPTY_HPP_INCLUDED #define BOOST_MPL_AUX_RANGE_C_EMPTY_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for documentation. // $Source: /project24/CVS/liberator/boost/library/boost/mpl/aux_/range_c/empty.hpp,v $ // $Date: 2008/04/19 09:38:41 $ // $Revision: 1.4 $ #include <boost/mpl/empty_fwd.hpp> #include <boost/mpl/equal_to.hpp> #include <boost/mpl/aux_/range_c/tag.hpp> namespace boost { namespace mpl { template<> struct empty_impl< aux::half_open_range_tag > { template< typename Range > struct apply : equal_to< typename Range::start , typename Range::finish > { }; }; }} #endif // BOOST_MPL_AUX_RANGE_C_EMPTY_HPP_INCLUDED
[ "kaspar@localhost" ]
kaspar@localhost
88b904bd3073793c7558af742178062de0578a5e
e3438013c3310a02b47ad528232a842966bf7d36
/meskkdic/meskkdic.cpp
bc798d57832a99477b7e4138bd6fdb401878e9f6
[ "MIT" ]
permissive
nathancorvussolis/meskkdic
469acd2744c3a9aa656e4057951c9e70da49fa8c
abe7c9de95d8728f29229ebbc48edb36cb6626e1
refs/heads/master
2022-09-01T05:44:46.902821
2022-08-28T05:10:27
2022-08-28T05:10:27
23,496,708
6
0
null
null
null
null
UTF-8
C++
false
false
20,617
cpp
 #include <Windows.h> #include <clocale> #include <string> #include <vector> #include <map> #include <regex> #define VERSION L"2.5.5" LPCWSTR modeR = L"rt"; LPCWSTR modeW = L"wb"; LPCWSTR modeRL = L"rt,ccs=UTF-16LE"; LPCWSTR modeWL = L"wt,ccs=UTF-16LE"; #define BUFSIZE 0x400 #define WBUFSIZE 0x100 LPCSTR EntriesAri = ";; okuri-ari entries.\n"; LPCSTR EntriesNasi = ";; okuri-nasi entries.\n"; LPCWSTR EntriesAriL = L";; okuri-ari entries.\n"; LPCWSTR EntriesNasiL = L";; okuri-nasi entries.\n"; //変換済み検索結果 typedef std::pair< std::string, std::string > CANDIDATEBASE; //候補、注釈 typedef std::pair< CANDIDATEBASE, CANDIDATEBASE > CANDIDATE; //表示用、辞書登録用 typedef std::vector< CANDIDATE > CANDIDATES; //検索結果 typedef std::pair< std::string, std::string > SKKDICCANDIDATE; //候補、注釈 typedef std::vector< SKKDICCANDIDATE > SKKDICCANDIDATES; //送りありエントリのブロック typedef std::pair< std::string, SKKDICCANDIDATES > SKKDICOKURIBLOCK; //送り仮名、候補 typedef std::vector< SKKDICOKURIBLOCK > SKKDICOKURIBLOCKS; struct OKURIBLOCKS { //avoid C4503 SKKDICOKURIBLOCKS o; }; typedef std::pair< std::string, OKURIBLOCKS > USEROKURIENTRY; //見出し語、送りブロック typedef std::map< std::string, OKURIBLOCKS > USEROKURI; //見出し語順序 typedef std::vector< std::string > KEYORDER; //辞書 typedef std::pair< std::string, SKKDICCANDIDATES > SKKDICENTRY; //見出し語、候補 typedef std::map< std::string, SKKDICCANDIDATES > SKKDIC; #define FORWARD_ITERATION_I(iterator, container) \ for(auto (iterator) = (container).begin(); (iterator) != (container).end(); ++(iterator)) #define FORWARD_ITERATION(iterator, container) \ for(auto (iterator) = (container).begin(); (iterator) != (container).end(); ) #define REVERSE_ITERATION_I(reverse_iterator, container) \ for(auto (reverse_iterator) = (container).rbegin(); (reverse_iterator) != (container).rend(); ++(reverse_iterator)) #define REVERSE_ITERATION(reverse_iterator, container) \ for(auto (reverse_iterator) = (container).rbegin(); (reverse_iterator) != (container).rend(); ) CONST WCHAR plus = L'+'; CONST WCHAR minus = L'-'; BOOL widechar = FALSE; // UTF-16LE BOOL privatedic = FALSE; // 個人辞書、送りありエントリの角括弧のブロックを保持。 SKKDIC skkdic_a; //辞書 送りありエントリ SKKDIC skkdic_n; //辞書 送りなしエントリ USEROKURI userokuri; //送りブロック KEYORDER complements; //送りなしエントリ 見出し語順序 KEYORDER accompaniments; //送りありエントリ 見出し語順序 void usage(); void AddDic(int okuri, const std::string &searchkey, const std::string &candidate, const std::string &annotation); void DelDic(int okuri, const std::string &searchkey, const std::string &candidate); void AddKeyOrder(const std::string &searchkey, KEYORDER &keyorder); void DelKeyOrder(const std::string &searchkey, KEYORDER &keyorder); void AddOkuriBlock(const std::string &key, const SKKDICCANDIDATES &sc, SKKDICOKURIBLOCKS &so); BOOL LoadSKKDic(CONST WCHAR op, LPCWSTR path); std::wstring cesu8_string_to_wstring(const std::string &s); void WriteSKKDicEntry(FILE *fp, const std::string &key, const SKKDICCANDIDATES &sc, const SKKDICOKURIBLOCKS &so); BOOL SaveSKKDic(LPCWSTR path); char *fgets8(char *buffer, int count, FILE *fp); int ReadSKKDicLine(FILE *fp, int &okuri, std::string &key, SKKDICCANDIDATES &c, SKKDICOKURIBLOCKS &o); void ParseSKKDicCandiate(const std::string &s, SKKDICCANDIDATES &c); void ParseSKKDicOkuriBlock(const std::string &s, SKKDICOKURIBLOCKS &o); std::string ParseConcat(const std::string &s); std::string MakeConcat(const std::string &s); int wmain(int argc, wchar_t* argv[]) { WCHAR op; int oi = 1; _wsetlocale(LC_ALL, L""); if(argc < 3) { usage(); return -1; } for (int i = 1; i <= 2; i++) { if ((argv[i][0] == L'-' || argv[i][0] == L'/') && argv[i][1] != L'\0') { if (towupper(argv[i][1]) == L'W') { widechar = TRUE; ++oi; } else if (towupper(argv[i][1]) == L'O') { privatedic = TRUE; ++oi; } } } for(int i = oi; i < argc - 1; i += 2) { if(i != oi) { if((wcslen(argv[i - 1]) != 1) || ((argv[i - 1][0] != plus) && (argv[i - 1][0] != minus))) { fwprintf(stderr, L"found illegal string : %s\n", argv[i - 1]); return -1; } } } for(int i = oi; i < argc - 1; i += 2) { if(i == oi) { op = plus; } else { op = argv[i - 1][0]; } if(LoadSKKDic(op, argv[i]) == FALSE) { return -1; } } if(SaveSKKDic(argv[argc - 1]) == FALSE) { return -1; } return 0; } void usage() { fwprintf(stderr, L"\nmeskkdic %s\n\n", VERSION); fwprintf(stderr, L"usage : meskkdic [-W] [-O] <input file 1> [[+-] <input file 2> ...] <output file>\n"); } void AddDic(int okuri, const std::string &searchkey, const std::string &candidate, const std::string &annotation) { LPCSTR seps = ","; std::string annotation_esc, annotation_seps; std::regex re; SKKDICENTRY userdicentry; USEROKURIENTRY userokurientry; SKKDICCANDIDATES okurics; if(searchkey.empty() || candidate.empty()) { return; } if(!annotation.empty()) { annotation_seps = seps + ParseConcat(annotation) + seps; } auto &skkdic = (okuri == 0 ? skkdic_n : skkdic_a); auto skkdic_itr = skkdic.find(searchkey); if(skkdic_itr == skkdic.end()) { userdicentry.first = searchkey; userdicentry.second.push_back(SKKDICCANDIDATE(candidate, annotation_seps)); skkdic.insert(userdicentry); } else { bool exist = false; FORWARD_ITERATION_I(sc_itr, skkdic_itr->second) { if(sc_itr->first == candidate) { exist = true; annotation_esc = ParseConcat(sc_itr->second); if(annotation_esc.find(annotation_seps) == std::string::npos) { if(annotation_esc.empty()) { sc_itr->second.assign(MakeConcat(annotation_seps)); } else { annotation_esc.append(ParseConcat(annotation) + seps); sc_itr->second.assign(MakeConcat(annotation_esc)); } } break; } } if(exist == false) { skkdic_itr->second.push_back(SKKDICCANDIDATE(candidate, MakeConcat(annotation_seps))); } } if(privatedic) { AddKeyOrder(searchkey, (okuri == 0 ? complements : accompaniments)); } } void DelDic(int okuri, const std::string &searchkey, const std::string &candidate) { auto &skkdic = (okuri == 0 ? skkdic_n : skkdic_a); auto skkdic_itr = skkdic.find(searchkey); if(skkdic_itr != skkdic.end()) { FORWARD_ITERATION_I(sc_itr, skkdic_itr->second) { if(sc_itr->first == candidate) { skkdic_itr->second.erase(sc_itr); break; } } if(skkdic_itr->second.empty()) { skkdic.erase(skkdic_itr); if(privatedic) { DelKeyOrder(searchkey, (okuri == 0 ? complements : accompaniments)); } } } if(privatedic) { //送りブロック auto userokuri_itr = userokuri.find(searchkey); if(userokuri_itr != userokuri.end()) { FORWARD_ITERATION(so_itr, userokuri_itr->second.o) { FORWARD_ITERATION(sc_itr, so_itr->second) { if(sc_itr->first == candidate) { sc_itr = so_itr->second.erase(sc_itr); } else { ++sc_itr; } } if(so_itr->second.empty()) { so_itr = userokuri_itr->second.o.erase(so_itr); } else { ++so_itr; } } if(userokuri_itr->second.o.empty()) { userokuri.erase(userokuri_itr); } } } } void AddKeyOrder(const std::string &searchkey, KEYORDER &keyorder) { keyorder.push_back(searchkey); } void DelKeyOrder(const std::string &searchkey, KEYORDER &keyorder) { if(!keyorder.empty()) { FORWARD_ITERATION_I(keyorder_itr, keyorder) { if(searchkey == *keyorder_itr) { keyorder.erase(keyorder_itr); break; } } } } void AddOkuriBlock(const std::string &key, const SKKDICCANDIDATES &sc, SKKDICOKURIBLOCKS &so) { USEROKURIENTRY userokurientry; //送り仮名が重複したら1つにまとめる FORWARD_ITERATION_I(so_itr, so) { for(auto so_itr1 = so_itr + 1; so_itr1 != so.end();) { if(so_itr->first == so_itr1->first) { FORWARD_ITERATION_I(sc_itr1, so_itr1->second) { bool exist = false; FORWARD_ITERATION_I(sc_itr, so_itr->second) { if(sc_itr->first == sc_itr1->first) { exist = true; break; } } if(!exist) { so_itr->second.push_back(*sc_itr1); } } so_itr1 = so.erase(so_itr1); } else { ++so_itr1; } } } //候補にない送りブロックの候補を除外 FORWARD_ITERATION(so_itr, so) { FORWARD_ITERATION(soc_itr, so_itr->second) { bool exist = false; FORWARD_ITERATION_I(sc_itr, sc) { if(soc_itr->first == sc_itr->first) { exist = true; break; } } if(!exist) { soc_itr = so_itr->second.erase(soc_itr); } else { ++soc_itr; } } if(so_itr->second.empty()) { so_itr = so.erase(so_itr); } else { ++so_itr; } } //送りブロックに追加 if(!so.empty()) { auto userokuri_itr = userokuri.find(key); if(userokuri_itr == userokuri.end()) { userokurientry.first = key; userokurientry.second.o = so; userokuri.insert(userokurientry); } else { FORWARD_ITERATION_I(so_itr, so) { bool exist_o = false; FORWARD_ITERATION_I(o_itr, userokuri_itr->second.o) { if(o_itr->first == so_itr->first) { exist_o = true; FORWARD_ITERATION_I(c_itr, so_itr->second) { bool exist_c = false; FORWARD_ITERATION_I(oc_itr, o_itr->second) { if(oc_itr->first == c_itr->first) { exist_c = true; break; } } if(!exist_c) { o_itr->second.push_back(*c_itr); } } break; } } if(!exist_o) { userokuri_itr->second.o.push_back(*so_itr); } } } } } BOOL LoadSKKDic(CONST WCHAR op, LPCWSTR path) { FILE *fp; std::string key, empty; int okuri = 0; // default okuri-nasi int rl; SKKDICCANDIDATES sc; SKKDICOKURIBLOCKS so; _wfopen_s(&fp, path, (widechar ? modeRL : modeR)); if(fp == nullptr) { fwprintf(stderr, L"cannot open file : %s\n", path); return FALSE; } if (widechar == FALSE) { // skip BOM UCHAR bom[3] = { 0,0,0 }; fread(&bom, sizeof(bom), 1, fp); if (bom[0] != 0xEF || bom[1] != 0xBB || bom[2] != 0xBF) { fseek(fp, 0, SEEK_SET); } } while(true) { rl = ReadSKKDicLine(fp, okuri, key, sc, so); if(rl == -1) { break; } else if(rl == 1) { continue; } if(sc.empty()) { continue; } switch(op) { case plus: FORWARD_ITERATION_I(sc_itr, sc) { AddDic(okuri, key, sc_itr->first, sc_itr->second); } if(privatedic && okuri == 1) { AddOkuriBlock(key, sc, so); } break; case minus: FORWARD_ITERATION_I(sc_itr, sc) { DelDic(okuri, key, sc_itr->first); } break; default: break; } } fclose(fp); return TRUE; } std::wstring cesu8_string_to_wstring(const std::string &s) { std::wstring ws; size_t length = s.length(); for (size_t i = 0; i < length; i++) { UCHAR u0 = (UCHAR)s[i]; // CESU-8 if (u0 <= 0x7F) { WCHAR w = (WCHAR)(u0 & 0x7F); ws.push_back(w); } else if (u0 >= 0xC2 && u0 <= 0xDF) { if (i + 1 >= length) break; UCHAR u1 = (UCHAR)s[i + 1]; WCHAR w = ((WCHAR)(u0 & 0x1F) << 6) | ((WCHAR)(u1 & 0x3F)); ws.push_back(w); i += 1; } else if (u0 >= 0xE0 && u0 <= 0xEF) { if (i + 2 >= length) break; UCHAR u1 = (UCHAR)s[i + 1]; UCHAR u2 = (UCHAR)s[i + 2]; WCHAR w = ((WCHAR)(u0 & 0x0F) << 12) | ((WCHAR)(u1 & 0x3F) << 6) | ((WCHAR)(u2 & 0x3F)); ws.push_back(w); i += 2; } } return ws; } void WriteSKKDicEntry(FILE *fp, const std::string &key, const SKKDICCANDIDATES &sc, const SKKDICOKURIBLOCKS &so) { std::string line, annotation_esc; line = key + " /"; FORWARD_ITERATION_I(sc_itr, sc) { line += sc_itr->first; if(sc_itr->second.size() > 2) { annotation_esc = ParseConcat(sc_itr->second); line += ";" + MakeConcat(annotation_esc.substr(1, annotation_esc.size() - 2)); } line += "/"; } if(privatedic) { FORWARD_ITERATION_I(so_itr, so) { line += "[" + so_itr->first + "/"; FORWARD_ITERATION_I(sc_itr, so_itr->second) { line += sc_itr->first + "/"; } line += "]/"; } } if (widechar) { fwprintf(fp, L"%s\n", cesu8_string_to_wstring(line).c_str()); } else { fprintf(fp, "%s\n", line.c_str()); } } BOOL SaveSKKDic(LPCWSTR path) { FILE *fp; SKKDICOKURIBLOCKS so; _wfopen_s(&fp, path, (widechar ? modeWL : modeW)); if(fp == nullptr) { fwprintf(stderr, L"cannot open file : %s\n", path); return FALSE; } //送りありエントリ if (widechar) { fwprintf(fp, L"%s", EntriesAriL); } else { fprintf(fp, "%s", EntriesAri); } if(privatedic) { FORWARD_ITERATION_I(keyorder_itr, accompaniments) { auto skkdic_itr = skkdic_a.find(*keyorder_itr); if(skkdic_itr != skkdic_a.end()) { so.clear(); auto userokuri_itr = userokuri.find(*keyorder_itr); if(userokuri_itr != userokuri.end()) { so = userokuri_itr->second.o; } WriteSKKDicEntry(fp, skkdic_itr->first, skkdic_itr->second, so); skkdic_a.erase(skkdic_itr); } } } else { REVERSE_ITERATION_I(skkdic_ritr, skkdic_a) { WriteSKKDicEntry(fp, skkdic_ritr->first, skkdic_ritr->second, so); } } so.clear(); //送りなしエントリ if (widechar) { fwprintf(fp, L"%s", EntriesNasiL); } else { fprintf(fp, "%s", EntriesNasi); } if(privatedic) { FORWARD_ITERATION_I(keyorder_itr, complements) { auto skkdic_itr = skkdic_n.find(*keyorder_itr); if(skkdic_itr != skkdic_n.end()) { WriteSKKDicEntry(fp, skkdic_itr->first, skkdic_itr->second, so); skkdic_n.erase(skkdic_itr); } } } else { FORWARD_ITERATION_I(skkdic_itr, skkdic_n) { WriteSKKDicEntry(fp, skkdic_itr->first, skkdic_itr->second, so); } } fclose(fp); return TRUE; } char *fgets8(char *buffer, int count, FILE *fp) { if (widechar) { WCHAR wbuf[WBUFSIZE] = {}; char *ret = nullptr; int n = 0; if (fgetws(wbuf, WBUFSIZE, fp) != nullptr) { for (int i = 0; i < WBUFSIZE; i++) { // CESU-8 for sorting in UTF-16 if (wbuf[i] <= L'\u007F') { if (n + 1 >= count) break; buffer[n++] = (UCHAR)wbuf[i] & 0x7F; if (wbuf[i] == L'\0') { ret = buffer; break; } } else if (wbuf[i] <= L'\u07FF') { if (n + 2 >= count) break; buffer[n++] = (UCHAR)0xC0 | (UCHAR)((wbuf[i] >> 6) & 0x1F); buffer[n++] = (UCHAR)0x80 | (UCHAR)(wbuf[i] & 0x3F); } else { if (n + 3 >= count) break; buffer[n++] = (UCHAR)0xE0 | (UCHAR)((wbuf[i] >> 12) & 0x0F); buffer[n++] = (UCHAR)0x80 | (UCHAR)((wbuf[i] >> 6) & 0x3F); buffer[n++] = (UCHAR)0x80 | (UCHAR)(wbuf[i] & 0x3F); } } return ret; } } else { return fgets(buffer, count, fp); } return nullptr; } int ReadSKKDicLine(FILE *fp, int &okuri, std::string &key, SKKDICCANDIDATES &c, SKKDICOKURIBLOCKS &o) { CHAR buf[BUFSIZE] = {}; std::string sbuf; c.clear(); o.clear(); while(fgets8(buf, _countof(buf), fp) != nullptr) { sbuf += buf; if(!sbuf.empty() && sbuf.back() == '\n') { break; } } if (ferror(fp) != 0) { return -1; } if(sbuf.empty()) { return -1; } if(sbuf.compare(EntriesAri) == 0) { okuri = 1; return 1; } else if(sbuf.compare(EntriesNasi) == 0) { okuri = 0; return 1; } if(okuri == -1) { return 1; } std::string s = sbuf; static const std::string fmt(""); static const std::regex rectrl("[\\x00-\\x19]"); s = std::regex_replace(s, rectrl, fmt); if(okuri == 1) { if(privatedic) { ParseSKKDicOkuriBlock(s, o); } //送りブロックを除去 static const std::regex reblock("\\[[^\\[\\]]+?/[^\\[\\]]+?/\\]/"); s = std::regex_replace(s, reblock, fmt); } size_t is = s.find("\x20/"); if(is == std::string::npos) { return 1; } size_t ie = s.find_last_not_of('\x20', is); if(ie == std::string::npos) { return 1; } if(s.find_last_of('\x20', ie) != std::string::npos) { return 1; } key = s.substr(0, ie + 1); s = s.substr(is + 1); ParseSKKDicCandiate(s, c); return 0; } void ParseSKKDicCandiate(const std::string &s, SKKDICCANDIDATES &c) { size_t i, is, ie, ia; std::string candidate, annotation; i = 0; while(i < s.size()) { is = s.find_first_of('/', i); ie = s.find_first_of('/', is + 1); if(ie == std::string::npos) { break; } candidate = s.substr(i + 1, ie - is - 1); i = ie; ia = candidate.find_first_of(';'); if(ia == std::string::npos) { annotation.clear(); } else { annotation = candidate.substr(ia + 1); candidate = candidate.substr(0, ia); } if(!candidate.empty()) { c.push_back(SKKDICCANDIDATE(candidate, annotation)); } } } void ParseSKKDicOkuriBlock(const std::string &s, SKKDICOKURIBLOCKS &o) { std::string so, okurik, okuric, fmt; std::smatch m; SKKDICCANDIDATES okurics; so = s; static const std::regex reblock("\\[([^\\[\\]]+?)(/[^\\[\\]]+?/)\\]/"); while(std::regex_search(so, m, reblock)) { okurics.clear(); fmt.assign("$1"); okurik = std::regex_replace(m.str(), reblock, fmt); fmt.assign("$2"); okuric = std::regex_replace(m.str(), reblock, fmt); ParseSKKDicCandiate(okuric, okurics); std::reverse(okurics.begin(), okurics.end()); o.insert(o.begin(), std::make_pair(okurik, okurics)); so = m.suffix().str(); } } std::string ParseConcat(const std::string &s) { std::string ret, fmt, numstr, numtmpstr; std::regex re; std::smatch res; ULONG u; LPCSTR bsrep = "\xff"; ret = s; static const std::regex reconcat("^\\(\\s*concat\\s+\"(.+)\"\\s*\\)$"); if(std::regex_search(ret, reconcat)) { fmt.assign("$1"); ret = std::regex_replace(ret, reconcat, fmt); re.assign("\"\\s+\""); fmt.assign(""); ret = std::regex_replace(ret, re, fmt); //バックスラッシュ re.assign("\\\\\\\\"); fmt.assign(bsrep); ret = std::regex_replace(ret, re, fmt); //二重引用符 re.assign("\\\\\\\""); fmt.assign("\\\""); ret = std::regex_replace(ret, re, fmt); //空白文字 re.assign("\\\\s"); fmt.assign("\x20"); ret = std::regex_replace(ret, re, fmt); //制御文字など re.assign("\\\\[abtnvfred ]"); fmt.assign(""); ret = std::regex_replace(ret, re, fmt); //8進数表記の文字 re.assign("\\\\[0-3][0-7]{2}"); while(std::regex_search(ret, res, re)) { numstr += res.prefix(); numtmpstr = res.str(); numtmpstr[0] = L'0'; u = strtoul(numtmpstr.c_str(), nullptr, 0); if(u >= '\x20' && u <= '\x7E') { numstr.append(1, (CHAR)u); } ret = res.suffix().str(); } ret = numstr + ret; //意味なしエスケープ re.assign("\\\\"); fmt.assign(""); ret = std::regex_replace(ret, re, fmt); //バックスラッシュ re.assign(bsrep); fmt.assign("\\"); ret = std::regex_replace(ret, re, fmt); } return ret; } std::string MakeConcat(const std::string &s) { std::string ret, fmt; std::regex re; ret = s; // "/" -> \057, ";" -> \073 static const std::regex respcch("[/;]"); if(std::regex_search(ret, respcch)) { // "\"" -> "\\\"", "\\" -> "\\\\" re.assign("([\\\"\\\\])"); fmt.assign("\\$1"); ret = std::regex_replace(ret, re, fmt); re.assign("/"); fmt.assign("\\057"); ret = std::regex_replace(ret, re, fmt); re.assign(";"); fmt.assign("\\073"); ret = std::regex_replace(ret, re, fmt); ret = "(concat \"" + ret + "\")"; } return ret; }
[ "nathancorvussolis@gmail.com" ]
nathancorvussolis@gmail.com
3e032ecf032e83aa255e40d0e1afb80a87842a0d
07adc29297803702ac521f7bfd9d0b0fe91fd695
/build/moc_miningpage.cpp
c1cf41d5abf95b30787583ec7ff8f0731ae45efc
[ "MIT" ]
permissive
nucoin/nucoin
732b036e3492afe7cf3956d945299b93dc3ba3f0
959d4e34fc0230e418bc7c8d2c3b96d54ca6c0bc
refs/heads/master
2021-01-20T02:47:49.256315
2013-06-06T04:19:48
2013-06-06T04:19:48
10,323,751
1
1
null
null
null
null
UTF-8
C++
false
false
5,075
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'miningpage.h' ** ** Created: Tue May 28 23:23:39 2013 ** by: The Qt Meta Object Compiler version 63 (Qt 4.8.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../src/qt/miningpage.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'miningpage.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 63 #error "This file was generated using the moc from 4.8.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_MiningPage[] = { // content: 6, // revision 0, // classname 0, 0, // classinfo 17, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x0a, 27, 11, 11, 11, 0x0a, 45, 11, 11, 11, 0x0a, 62, 11, 11, 11, 0x0a, 76, 11, 11, 11, 0x0a, 91, 11, 11, 11, 0x0a, 109, 106, 11, 11, 0x0a, 143, 11, 11, 11, 0x0a, 158, 11, 11, 11, 0x0a, 193, 11, 11, 11, 0x0a, 209, 11, 11, 11, 0x0a, 237, 11, 229, 11, 0x0a, 261, 254, 11, 11, 0x0a, 288, 254, 11, 11, 0x0a, 343, 11, 319, 11, 0x0a, 365, 359, 11, 11, 0x0a, 390, 382, 11, 11, 0x0a, 0 // eod }; static const char qt_meta_stringdata_MiningPage[] = { "MiningPage\0\0startPressed()\0startPoolMining()\0" "stopPoolMining()\0updateSpeed()\0" "loadSettings()\0saveSettings()\0,,\0" "reportToList(QString,int,QString)\0" "minerStarted()\0minerError(QProcess::ProcessError)\0" "minerFinished()\0readProcessOutput()\0" "QString\0getTime(QString)\0enable\0" "enableMiningControls(bool)\0" "enablePoolMiningControls(bool)\0" "ClientModel::MiningType\0getMiningType()\0" "index\0typeChanged(int)\0checked\0" "debugToggled(bool)\0" }; void MiningPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { Q_ASSERT(staticMetaObject.cast(_o)); MiningPage *_t = static_cast<MiningPage *>(_o); switch (_id) { case 0: _t->startPressed(); break; case 1: _t->startPoolMining(); break; case 2: _t->stopPoolMining(); break; case 3: _t->updateSpeed(); break; case 4: _t->loadSettings(); break; case 5: _t->saveSettings(); break; case 6: _t->reportToList((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break; case 7: _t->minerStarted(); break; case 8: _t->minerError((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break; case 9: _t->minerFinished(); break; case 10: _t->readProcessOutput(); break; case 11: { QString _r = _t->getTime((*reinterpret_cast< QString(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; case 12: _t->enableMiningControls((*reinterpret_cast< bool(*)>(_a[1]))); break; case 13: _t->enablePoolMiningControls((*reinterpret_cast< bool(*)>(_a[1]))); break; case 14: { ClientModel::MiningType _r = _t->getMiningType(); if (_a[0]) *reinterpret_cast< ClientModel::MiningType*>(_a[0]) = _r; } break; case 15: _t->typeChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 16: _t->debugToggled((*reinterpret_cast< bool(*)>(_a[1]))); break; default: ; } } } const QMetaObjectExtraData MiningPage::staticMetaObjectExtraData = { 0, qt_static_metacall }; const QMetaObject MiningPage::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_MiningPage, qt_meta_data_MiningPage, &staticMetaObjectExtraData } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &MiningPage::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *MiningPage::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *MiningPage::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_MiningPage)) return static_cast<void*>(const_cast< MiningPage*>(this)); return QWidget::qt_metacast(_clname); } int MiningPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 17) qt_static_metacall(this, _c, _id, _a); _id -= 17; } return _id; } QT_END_MOC_NAMESPACE
[ "root@hal-VirtualBox.(none)" ]
root@hal-VirtualBox.(none)
82371f75999ade15f2c9dba48334353b0559c7b2
af81384e981c8fe7bdf72063589ff495cb49d736
/PAT1020/PAT1020.cpp
46e08ddcbe62e2c40c79fcdfeb17b98f492efcf7
[]
no_license
xue-fc/PAT
2e5ddb46c17d19a1c3c710eb60bb5c84d61c63ad
7c1e5d4fd08e244a0c34e55f2722983d12d5869a
refs/heads/main
2023-03-21T17:43:13.572820
2021-03-17T11:32:09
2021-03-17T11:32:09
334,001,482
2
0
null
null
null
null
UTF-8
C++
false
false
1,562
cpp
/* 复习一下 */ #include<iostream> #include<cstring> #include<string> #include<vector> #include<algorithm> #include<queue> #include<map> using namespace std; const int MAX = 10000; void helper(vector<int> po, vector<int> io,int root); vector<int> tree = vector<int>(1000,-1); int main(){ int N; vector<int> po,io; cin>>N; for(int i=0;i<N;i++){ int tmp; cin >> tmp; po.push_back(tmp); } for(int i=0;i<N;i++){ int tmp; cin >> tmp; io.push_back(tmp); } helper(po,io,0); int i = 0; while(N>0){ if(tree[i]!=-1) { cout<<tree[i]<<((N==1) ? "" : " "); N--; } i++; } return 0; } void helper(vector<int> po, vector<int> io,int root){ if(po.empty() || io.empty() || root >= tree.size()){ return; } vector<int>::iterator it = po.end(); vector<int>::iterator it2 = po.begin(); it--; tree[root] = *it; vector<int>::iterator split = find(io.begin(),io.end(),*it);//分割io为两个子树,split是根 for(;it2!=po.end();it2++){ it = find(io.begin(),split,*it2); if(it == split) break; }//it2是分割po的位置,是右子树第一个 vector<int> tpo_l = vector<int>(po.begin(),it2); vector<int> tpo_r = vector<int>(it2,po.end()-1); vector<int> tio_l = vector<int>(io.begin(),split); split++; vector<int> tio_r = vector<int>(split,io.end()); helper(tpo_l,tio_l,root*2 + 1); helper(tpo_r,tio_r,root*2 + 2); }
[ "xue-fc@126.com" ]
xue-fc@126.com
d4f6be3d5af5836c845bca99c1b76b9f28f416c6
92511c42f7dbbd25bee65acbf3e9201fee951809
/WebKit2/Shared/Plugins/Netscape/win/NetscapePluginModuleWin.cpp
f969ba4c180982dc91a7a2ba99c66c5f8ee1a728
[]
no_license
Andersbakken/WebKit-mirror
25dc0201d89317a35d8412412ffcdfc6eb1728db
50a5de375699902792f045e4526f2851b967899d
refs/heads/master
2020-12-24T16:16:26.660532
2010-12-31T17:58:35
2010-12-31T17:58:35
703,513
0
0
null
null
null
null
UTF-8
C++
false
false
4,729
cpp
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #include "NetscapePluginModule.h" #include <WebCore/FileSystem.h> #include <wtf/OwnArrayPtr.h> using namespace WebCore; namespace WebKit { static String getVersionInfo(const LPVOID versionInfoData, const String& info) { LPVOID buffer; UINT bufferLength; String subInfo = "\\StringfileInfo\\040904E4\\" + info; if (!::VerQueryValueW(versionInfoData, const_cast<UChar*>(subInfo.charactersWithNullTermination()), &buffer, &bufferLength) || !bufferLength) return String(); // Subtract 1 from the length; we don't want the trailing null character. return String(reinterpret_cast<UChar*>(buffer), bufferLength - 1); } static uint64_t fileVersion(DWORD leastSignificant, DWORD mostSignificant) { ULARGE_INTEGER version; version.LowPart = leastSignificant; version.HighPart = mostSignificant; return version.QuadPart; } bool NetscapePluginModule::getPluginInfo(const String& pluginPath, PluginInfoStore::Plugin& plugin) { String pathCopy = pluginPath; DWORD versionInfoSize = ::GetFileVersionInfoSizeW(pathCopy.charactersWithNullTermination(), 0); if (!versionInfoSize) return false; OwnArrayPtr<char> versionInfoData(new char[versionInfoSize]); if (!::GetFileVersionInfoW(pathCopy.charactersWithNullTermination(), 0, versionInfoSize, versionInfoData.get())) return false; String name = getVersionInfo(versionInfoData.get(), "ProductName"); String description = getVersionInfo(versionInfoData.get(), "FileDescription"); if (name.isNull() || description.isNull()) return false; VS_FIXEDFILEINFO* info; UINT infoSize; if (!::VerQueryValueW(versionInfoData.get(), L"\\", reinterpret_cast<void**>(&info), &infoSize) || infoSize < sizeof(VS_FIXEDFILEINFO)) return false; Vector<String> types; getVersionInfo(versionInfoData.get(), "MIMEType").split('|', types); Vector<String> extensionLists; getVersionInfo(versionInfoData.get(), "FileExtents").split('|', extensionLists); Vector<String> descriptions; getVersionInfo(versionInfoData.get(), "FileOpenName").split('|', descriptions); Vector<MimeClassInfo> mimes(types.size()); for (size_t i = 0; i < types.size(); i++) { String type = types[i].lower(); String description = i < descriptions.size() ? descriptions[i] : ""; String extensionList = i < extensionLists.size() ? extensionLists[i] : ""; Vector<String> extensionsVector; extensionList.split(',', extensionsVector); // Get rid of the extension list that may be at the end of the description string. int pos = description.find("(*"); if (pos != -1) { // There might be a space that we need to get rid of. if (pos > 1 && description[pos - 1] == ' ') pos--; description = description.left(pos); } mimes[i].type = type; mimes[i].desc = description; mimes[i].extensions.swap(extensionsVector); } plugin.path = pluginPath; plugin.info.desc = description; plugin.info.name = name; plugin.info.file = pathGetFileName(pluginPath); plugin.info.mimes.swap(mimes); plugin.fileVersion = fileVersion(info->dwFileVersionLS, info->dwFileVersionMS); return true; } void NetscapePluginModule::determineQuirks() { } } // namespace WebKit
[ "andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc" ]
andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc
3aa727b5a6b9ce1f17ec3d081f41a9e697bf4257
085d0d0e8655dc35a22214ffb63f4d157b61bfb0
/7.7/A.cpp
6637add2727c2a61cdb181b06443f53e6aeed24a
[]
no_license
songzhaozhe/ACM
9cacd339d9d27377147c475fb87c3f3e6129ebc3
27679ce2f8b179991d1f68d57c66d5d8d9ab202d
refs/heads/master
2021-01-18T14:28:49.151889
2015-09-12T05:45:36
2015-09-12T05:45:36
39,827,610
1
0
null
null
null
null
UTF-8
C++
false
false
696
cpp
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<string> #include<cmath> #include<map> #include<queue> #include<vector> #define LL long long using namespace std; const int maxn=20010; const int INF=199999999; int a[6],sum=0,maxx=0,minn=INF; int main() { int i; for(i=0;i<6;++i) { scanf("%d",&a[i]); maxx=max(a[i],maxx); minn=min(minn,a[i]); sum+=a[i]; } while(!(a[0]==0&&a[1]==0&&a[2]==0&&a[3]==0&&a[4]==0&&a[5]==0)) { double ans=1.0*(sum-maxx-minn)/4; cout<<ans<<'\n'; sum=0; maxx=0; minn=INF; for(i=0;i<6;++i) { scanf("%d",&a[i]); maxx=max(a[i],maxx); minn=min(minn,a[i]); sum+=a[i]; } } return 0; }
[ "songzhaozhe@126.com" ]
songzhaozhe@126.com