题目描述 You are given a correct solution of the sudoku puzzle. If you don't know what is the sudoku, you can read about it here. The picture showing the ...
分类:
其他好文 时间:
2020-04-14 12:24:00
阅读次数:
126
就是我这个菜鸡,赛时写出了 E2 的做法,但是算错复杂度,导致以为自己的做法只能AC E1,就没交到 E2 上,然后赛后秒A..... 题意 定义一种字串为形如:$[\underbrace{a, a, \dots, a}_{x}, \underbrace{b, b, \dots, b}_{y}, \ ...
分类:
其他好文 时间:
2020-04-14 12:23:10
阅读次数:
63
CountDownLatch public class CountDownLatchDemo { //原理: //countDownLatch.countDown(); // 数量-1 //countDownLatch.await(); // 等待计数器归零,然后再向下执行 //每次有线程调用 co ...
分类:
其他好文 时间:
2020-04-14 12:19:49
阅读次数:
59
原文:HttpClient来自官方的JSON扩展方法 System.Net.Http.Json Json的序列化和反序列化是我们日常常见的操作,通过System.Net.Http.Json我们可以用少量的代码实现上述操作.正如在github设计文档中所描述 Serializing and deser... ...
分类:
Web程序 时间:
2020-04-14 10:44:34
阅读次数:
88
1 #include<cstdio> 2 using namespace std; 3 int num[5],sumn[5],n; 4 void init(); 5 void read(); 6 void deal(); 7 int main(){ 8 init(); 9 read(); 10 de ...
分类:
其他好文 时间:
2020-04-14 01:11:37
阅读次数:
80
1 #include<stdio.h> 2 #define MAXN 100000 3 struct poly{ 4 int exp,var; 5 }; 6 struct poly a[MAXN]; 7 void read(); 8 void deal(); 9 void print(); 10 i ...
分类:
其他好文 时间:
2020-04-14 01:07:49
阅读次数:
69
并发导致数据出现的问题1.脏读(Drity Read)释义:已知有两个事务A和B, A读取了已经被B更新但还没有被提交的数据,之后,B回滚事务,A读取的数据就是脏数据。注:即事务b读取了事务a在内存中修改的数据(未提交写入数据库的磁盘)即READ_UNCOMMITTED(读未提交隔离机制)即可发生的 ...
分类:
数据库 时间:
2020-04-13 21:10:25
阅读次数:
99
fileName = "f.txt"content = "blank context" Dim objFSOSet objFSO = CreateObject("scripting.filesystemobject")absFileName = objFSO.GetAbsolutePathName( ...
分类:
其他好文 时间:
2020-04-13 19:57:27
阅读次数:
109
源代码 import jiebaimport wordcloudfc=open('紫川.txt','r',encoding='utf-8')q=fc.read()fc.close()words=jieba.lcut(q)txt=' '.join(words)w=wordcloud.WordCloud ...
分类:
其他好文 时间:
2020-04-13 19:52:18
阅读次数:
54
import jieba txt = open("D:\\三国演义.txt", "r", encoding='ANSI').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for wor ...
分类:
其他好文 时间:
2020-04-13 16:43:10
阅读次数:
204