07 2018 档案

摘要:求平方根下取整,对于gcc type __uint128_t。 ~45.5ns/op on i7 7700k@4.35G,即typical include include include typedef __uint128_t u128; typedef unsigned long long u64 阅读全文
posted @ 2018-07-31 01:15 zball 阅读(230) 评论(0) 推荐(0)
摘要:LOJ 最大流加强版 cpp include const int inf=0x7fffffff; const int maxn=1210; const int maxh=1 out[maxn],act[maxn]; define count cnt struct nodelist{u16 l,r;} 阅读全文
posted @ 2018-07-21 00:24 zball 阅读(555) 评论(0) 推荐(0)
摘要:```cpp /// A heavily optimized sieve include include include include typedef unsigned int u32; typedef unsigned long long ull; const char pr60[]={2,3, 阅读全文
posted @ 2018-07-18 00:27 zball 阅读(406) 评论(1) 推荐(0)
摘要:```python import random import os import sys import re class _is: def __init__(self,reg): self.cr=re.compile(reg) def __call__(self,string): return self.cr.fullmatch(string)!=... 阅读全文
posted @ 2018-07-03 15:32 zball 阅读(250) 评论(0) 推荐(0)