[置顶] 优秀代码样板收集计划(python)

摘要: the Art of coding 阅读全文
posted @ 2020-05-02 14:25 xlinsist 阅读(209) 评论(0) 推荐(0) 编辑
2022年1月31日

GJSxCXzcjw

摘要: 博客搬迁 阅读全文
posted @ 2022-01-31 21:54 xlinsist 阅读(14) 评论(0) 推荐(0) 编辑
2021年9月30日

势能线段树

摘要: The 2021 ICPC Asia Regionals Online Contest (II),PTA #include <bits/stdc++.h> //#define endl '\n' #define lose {printf("NO\n");return;} #define win {p 阅读全文
posted @ 2021-09-30 11:42 xlinsist 阅读(39) 评论(0) 推荐(0) 编辑
2021年1月19日

最小表示法

摘要: 字符串最小表示法 int getPos(string s,int op)//zero represent the least representation, while one represent the largest { int i=0,j=1; int len=s.size(); while 阅读全文
posted @ 2021-01-19 16:39 xlinsist 阅读(86) 评论(0) 推荐(0) 编辑
2020年12月2日

java语法记录

摘要: 字符操作 import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; public class hello3 { public static void main(String[] args) { 阅读全文
posted @ 2020-12-02 22:09 xlinsist 阅读(59) 评论(0) 推荐(0) 编辑
2020年10月22日

priority_queue custom compare(cmp)

摘要: #include <bits/stdc++.h> //#define endl '\n' #define lose {printf("NO\n");return;} #define win {printf("YES\n");return;} #define all(A) (A).begin(),(A 阅读全文
posted @ 2020-10-22 20:26 xlinsist 阅读(120) 评论(0) 推荐(0) 编辑
2020年10月10日

计算几何template

摘要: //template const double eps=1e-7; const double pi=3.14159265; struct Point { double x, y; Point( double x = 0, double y = 0 ):x(x), y(y) { } }; typede 阅读全文
posted @ 2020-10-10 12:57 xlinsist 阅读(127) 评论(0) 推荐(0) 编辑
2020年10月3日

yet another supernova?

摘要: maybe or maybe not, that is a question 阅读全文
posted @ 2020-10-03 18:36 xlinsist 阅读(61) 评论(0) 推荐(0) 编辑
2020年9月28日

矩阵快速幂

摘要: //https://nanti.jisuanke.com/t/A2022 #include <bits/stdc++.h> //#define endl '\n' #define lose {printf("NO\n");return;} #define win {printf("YES\n");r 阅读全文
posted @ 2020-09-28 16:55 xlinsist 阅读(70) 评论(0) 推荐(0) 编辑
2020年9月27日

SG函数博弈模板

摘要: just a template 阅读全文
posted @ 2020-09-27 22:21 xlinsist 阅读(103) 评论(0) 推荐(0) 编辑
2020年9月26日

c++ techniques

摘要: struct myComp { bool operator() (const int &a, const int &b) { if (ac[a]<ac[b]) return a; else if (ac[a]==ac[b]&&pen[a]>=pen[b]) return a; return fals 阅读全文
posted @ 2020-09-26 14:03 xlinsist 阅读(97) 评论(0) 推荐(0) 编辑