Java中具有通过Synchronized实现的内置锁,和ReentrantLock实现的显示锁,这两种锁各有各的好处,算是互有补充,今天就来做一个总结。
分类:
编程语言 时间:
2019-10-25 16:42:21
阅读次数:
81
A. Yet Another Dividing into Teams Description Solution 1 #include <algorithm> 2 #include <cctype> 3 #include <cmath> 4 #include <cstdio> 5 #include < ...
分类:
其他好文 时间:
2019-10-23 20:04:59
阅读次数:
95
A. Yet Another Dividing into Teams 传送门 签到,有相邻的数字 ans=2,否则 ans=1 B. Books Exchange 传送门 找每个顶点处在的环的大小,dfs 行了 C. Good Numbers 传送门 我的方法是这样的,先将这个数转化为三进制来看。 ...
分类:
其他好文 时间:
2019-10-23 13:33:29
阅读次数:
110
1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> ...
分类:
其他好文 时间:
2019-10-23 13:26:14
阅读次数:
95
比赛链接:传送门 Codeforces1249A. Yet Another Dividing into Teams(水题) 代码: #include <bits/stdc++.h> #define N 105 using namespace std; int a[N]; int main() { i ...
分类:
其他好文 时间:
2019-10-23 11:51:49
阅读次数:
95
以上为报错信息: 原因大概为:dd和nd关联的versionId不同导致, 解决方案,备份之前的current文件夹,让其自己生成新的。 ...
分类:
编程语言 时间:
2019-10-22 20:47:21
阅读次数:
233
$(":radio").removeAttr('checked'); $(":radio").attr('checked','true'); 实际问题:在使用removeAttr()移除了radio的checked属性后,使用attr()重新增加不起作用; 解决: $(":radio").remov ...
分类:
Web程序 时间:
2019-10-19 22:21:06
阅读次数:
202
实验六 Java异常 实验目的 理解异常的基本概念; 掌握异常处理方法及熟悉常见异常的捕获方法。 实验要求 练习捕获异常、声明异常、抛出异常的方法、熟悉try和catch子句的使用。 掌握自定义异常类的方法。 实验内容 编写一个类,在其main()方法中创建一个一维数组,在try字句中访问数组元素, ...
分类:
其他好文 时间:
2019-10-19 09:54:58
阅读次数:
75
A-Link-1 A-Link-2 Test Area 1-1 Test Area 1-2 Test Area 1-3 Test Area 1-4 Test Area 2-1 Test Area 2-2 Test Area 2-3 Test Area 2-4 港区1 (1) 港区2 (1) 港区1 ...
分类:
其他好文 时间:
2019-10-18 14:20:24
阅读次数:
56
参考: https://www.jianshu.com/p/b358cd920efa 需求: 现有一组件,要做功能扩展! 所以要把v-model弄好 原组件(借用一下): 如此使用: 扩展组件: 扩展后使用: 亲测真实有效! vue官网对应文档为: ...
分类:
其他好文 时间:
2019-10-18 09:41:38
阅读次数:
170