小说阅读器 启动模块bin/start.py 1 import os 2 import sys 3 4 BASE_PATH=os.path.dirname(os.path.dirname(__file__)) 5 sys.path.append(BASE_PATH) 6 7 8 from core ...
分类:
其他好文 时间:
2020-03-30 09:44:06
阅读次数:
107
/* dp[i][j][k]表示到了第i颗子弹,cd1=j,cd2=k 的最优解 */ #include<bits/stdc++.h> using namespace std; #define N 1005 int cd1,cd2,n,b[N],dp[5][105][105]; int solve( ...
分类:
其他好文 时间:
2020-03-28 18:05:56
阅读次数:
61
割边(Bridge) 模板 cpp vector ans; vector e[maxn]; void dfs(int u,int fa) { dep[u] = dep[fa] + 1; for(int v:e[u]) { if(v==fa) continue; if(!dep[v]) { dfs(v ...
分类:
移动开发 时间:
2020-03-28 00:45:52
阅读次数:
107
> Coral.> Hello year three.> In this lesson we will continue our underwater theme by practicing how to draw coral.> Many of you may have seen the cora ...
分类:
其他好文 时间:
2020-03-27 19:46:06
阅读次数:
113
解决方法:敲git rebase 然后按提示执行就行了,如果rebase 发生冲突的话,则修改,修改完后git add -u filename,然后git rebase --continue ,直到没有冲突为止。不需要commit 。最后再上code(参考链接 参考链接2)出现问题的原因:在本地分支 ...
分类:
其他好文 时间:
2020-03-27 17:06:30
阅读次数:
108
1 public static String bytesToHexString(byte[] src){ 2 StringBuilder stringBuilder = new StringBuilder(""); 3 if (src == null || src.length <= 0) { 4 ...
分类:
其他好文 时间:
2020-03-27 12:53:05
阅读次数:
72
B. A Funny Bipartite Graph 状压 dp ,利用了原题中选完左边点集,那么右边在 左边编号最大的那个数 之前的所有点都要选的性质,可以优化到 $O(n \cdot 2^n)$。由于懒得补,所以写个算法溜了。(逃 C. And and Pair 题目大意:给你一个数 n 的二进 ...
分类:
其他好文 时间:
2020-03-27 00:37:02
阅读次数:
108
接https://www.cnblogs.com/airlinp/p/12532302.html 8.6 break和continue break:满足某条件后,退出循环,不再执行后续重复代码; continue:满足某条件后,不在执行后续重复代码; 8.6.1 break # break简单演示 ...
分类:
编程语言 时间:
2020-03-26 12:15:33
阅读次数:
81
"原题链接" [TOC] 题外话 被教育了,读题不认真,明明能四题的(靠),竟然打不过jy,很烦 A A题意 给你n,m(m是奇数的数量)问你是否可以使用m个奇数(不相同的)构成n A思路 自己上来以为是判断奇偶就死了 其实还有点其他的东西,比如k个互不相同的奇数最小就是k k(记录一下) A代码 ...
分类:
其他好文 时间:
2020-03-25 01:54:56
阅读次数:
86
数组 new 关键字 字面量 数组下标 遍历数组 新增数组元素 函数 函数的声明调用 命名函数 函数表达式(匿名函数) 函数的形参与实参 函数的返回值 break ,continue, return break:结束当前循环(for while) continue:跳出本次循环,执行下次循环‘ re ...
分类:
编程语言 时间:
2020-03-24 23:06:54
阅读次数:
74