摘要: #include <bits/stdc++.h> using namespace std; namespace mbase { const size_t kara_least=32; typedef uint64_t u64; typedef uint32_t u32; // 3*(1<<30)+1 阅读全文
posted @ 2022-07-09 16:39 141421356 阅读(40) 评论(0) 推荐(0)
摘要: https://codeforces.com/contest/1354 水题略过,从C开始。 1354C 1354D 1354E 1354F C2. Not So Simple Polygon Embedding 记 A 为边对中心的角度的一半,即 0.5 对应角度 A= pi/(2*n) 以六边形 阅读全文
posted @ 2020-05-17 22:14 141421356 阅读(160) 评论(0) 推荐(0)
摘要: \ 阅读全文
posted @ 2019-12-19 18:14 141421356 阅读(236) 评论(0) 推荐(0)
摘要: // Gm.cpp : 定义应用程序的入口点。 // #include #include "framework.h" #include "Gm.h" int BLACK_AI=0,WHITE_AI=1; int brd[361]; int broad[19][19]; int step=0; const int windowSize=924,gridSize=44,chessSize=17... 阅读全文
posted @ 2019-11-05 11:56 141421356 阅读(219) 评论(0) 推荐(0)
摘要: class Solution { public: int maxProfit(int k, vector<int> &prices){ int n=prices.size(),v=0,p=0,ret=0; vector<int> profits; stack<pair<int,int>> vp; while(p<n){ for(v=p;v<n-1&&prices[v]>=prices[v+1];+ 阅读全文
posted @ 2019-10-02 11:24 141421356 阅读(91) 评论(0) 推荐(0)
摘要: /* *Developed by E^iπ *Copy and edit if you like *Free for any use */ #define WINDOWS 1 #ifdef WINDOWS #include #endif #include #include #include #include #include #include #include ... 阅读全文
posted @ 2017-04-29 21:06 141421356 阅读(531) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include long double t,ti=0.00005,shotI=0.24,shotV=6,st1=0,st2=0,initr=0.016, bt=0.12,bt2=1.08,bombI=3.6,shotr=0.004,ac=2,AIv=2;bool s1=0,s2=... 阅读全文
posted @ 2017-04-03 11:47 141421356 阅读(1182) 评论(0) 推荐(0)
摘要: //X10.h #include #include #include #include #include #include typedef unsigned long long ull; using namespace std; const int pinitsz = 10000; const ull F_32 = 0x00000000FFFFFFFF, F_64 = 0xFF... 阅读全文
posted @ 2017-04-02 20:33 141421356 阅读(186) 评论(0) 推荐(0)
摘要: #include #include #include #include #include "myalgo.h" #define OneThread 1 typedef unsigned long long ull; using namespace std; const int initsz=32768; const ull E10s[]= {1,10,100,1000,10000... 阅读全文
posted @ 2017-03-04 21:52 141421356 阅读(133) 评论(0) 推荐(0)
摘要: #define C4DROID 0 //#include #include #include #include #include #if !C4DROID #include #endif //using namespace std; int correct; int fact[]= {1,1,2,6,24,120,720,5040,40320}; void swp(char ... 阅读全文
posted @ 2016-10-02 20:38 141421356 阅读(535) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示