This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/number> | |
#include <lastweapon/bitwise> | |
using namespace lastweapon; | |
const int N = 65; | |
LL F0[N][2][2][2]; Int F[3][N][2][2][2]; bool vis[N][2][2][2]; Int p2[N+1]; | |
bool a[N]; int an; | |
LL f0(int k, bool b, bool x, bool y) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/number> | |
#include <lastweapon/bitwise> | |
#include <lastweapon/bignum> | |
using namespace lastweapon; | |
const int N = 112; | |
class bignum2 : bignum { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/number> | |
using namespace lastweapon; | |
const int N = 51, M = 101; | |
DB F[N][N][M][M]; | |
DB f(int a, int b, int c = 0, int d = 0) { | |
if (c == M || d == M) return 0; | |
DB &z = F[a][b][c][d]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/io> | |
#include <lastweapon/bignum> | |
using namespace lastweapon; | |
const int N = 500000+1;//1000001; | |
bignum f[N]; | |
bignum gcd(bignum a, bignum b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/io> | |
# | |
using namespace lastweapon; | |
const int PMAX = 10000; | |
VI P; bitset<PMAX> isC; | |
#define ii (i*P[j]) | |
void sieve(){ | |
FOR(i, 2, PMAX){ | |
if (!isC[i]) P.PB(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lastweapon/io> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <algorithm> | |
#include <iostream> | |
#include <vector> | |
using std::max; | |
using std::min; | |
using std::vector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Sep. 22th 2014 **/ //{ | |
/** Header .. **/ //{ | |
#pragma comment(linker, "/STACK:36777216") | |
//#pragma GCC optimize ("O2") | |
#define LOCAL | |
//#include "testlib.h" | |
#include <functional> | |
#include <algorithm> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This code has been written by MinakoKojima, feel free to ask me question. Blog: http://www.shuizilong.com/house | |
Template Date: 2015.10.12 | |
Note: ... | |
*/ | |
#pragma comment(linker, "/STACK:36777216") | |
//#pragma GCC optimize ("O2") | |
#define LOCAL | |
#include <functional> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ` Micro Mezzo Macro Flation -- Overheated Economy ., **/ | |
#include <algorithm> | |
#include <iostream> | |
#include <iomanip> | |
#include <sstream> | |
#include <cstring> | |
#include <cstdio> | |
#include <string> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependency file: contracts/interfaces/IERC20.sol | |
// pragma solidity ^0.6.0; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. | |
*/ | |
interface IERC20 { | |
/** | |
* @dev Returns the name of the token. |
NewerOlder