看了大佬的题解,茅塞顿开 public void solveSudoku(char[][] board) { if(board == null || board.length != 9 || board[0] == null || board[0].length != 9){ return; } b ...
分类:
其他好文 时间:
2020-06-30 10:39:23
阅读次数:
53
13 约定 A common problem that arises when wrapping C libraries is that of maintaining reliability and checking for errors. The fact of the matter is tha ...
分类:
其他好文 时间:
2020-06-29 22:57:18
阅读次数:
82
$('.required').each(function () { // 判断是否有子SPU var selected = $('#sub_spu').children('option:selected').val(); if (selected == 0) { if ($(this).hasCla ...
分类:
Web程序 时间:
2020-06-29 18:41:01
阅读次数:
94
调试 pdb pdb是基于命令行的调试工具,非常类似gnu的gdb(调试c/c++)。 命令简写命令作用 break b 设置断点 continue c 继续执行程序 list l 查看当前行的代码段 step s 进入函数 return r 执行代码直到从当前函数返回 quit q 中止并退出 n ...
分类:
数据库 时间:
2020-06-29 10:04:52
阅读次数:
69
给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有满足条件且不重复的三元组。注意:答案中不可以包含重复的三元组。 示例:给定数组 nums = [-1, 0, 1, 2, -1, -4],满足要求的三元组集合为 ...
分类:
其他好文 时间:
2020-06-28 20:25:10
阅读次数:
36
1.while循环
2.while嵌套
3.for循环遍历
4.for循环结合range使用
5.break和continue
6.循环语句结合else语句使用 ...
分类:
其他好文 时间:
2020-06-28 18:48:38
阅读次数:
43
We continue practicing simple SQL queries on a single table. This tutorial is concerned with a table of Nobel prize winners: nobel(yr, subject, winner ...
分类:
数据库 时间:
2020-06-27 20:33:19
阅读次数:
101
题目 https://www.luogu.com.cn/problem/P2121 分析 组织者被要求只能保留 K 条地毯,且保留的地毯构成的图中,任意可互相到达的两点间只能有一种方式互相到达: 要构成只有K条边的最大生成树——使用kruskal 代码 #include<iostream> #inc ...
分类:
其他好文 时间:
2020-06-26 19:55:48
阅读次数:
60
一、循环 1.for循环 1)格式 基本格式 for var in list do 循环体 done 其中 list是可迭代的对象,常见的包括: 数组 $(seq n m) 表示从n到m的正整数序列 {n..m} 表示从n到m的正整数 value1 value2 value3 ... 一系列值,可以 ...
分类:
系统相关 时间:
2020-06-26 14:23:48
阅读次数:
76
HDU5739 Fantasia 题意: 给出一张$N$个点的无向图$G$,每个点都有权值$w_i$,要求计算$\sum_^i\cdot G_i % 1e9+7$ 其中$G_i$为删掉点$i$之后剩下各连通块内点权乘积之和 题解: 显然对于不是割点的点很容易计算出答案 对于割点,我们需要知道删掉这个 ...
分类:
其他好文 时间:
2020-06-25 21:41:29
阅读次数:
63