501 / 529 A HDU 5007 Post Robot 83 / 443 B HDU 5008 Boring String Problem !!! 111 / 784 C HDU 5009 Paint Pearls +++ 6 / 57 D HDU 5010 Get the Nut ??? ...
分类:
其他好文 时间:
2021-02-09 12:32:36
阅读次数:
0
数据类型 Java是强类型语言,要求变量的使用要严格符合规定,所有变量必须先定义后才能使用 基本类型 数值类型 整数类型(byte,short,int,long) byte占一个字节范围:-128—127 short占两个字节范围:-32768—32767 int占四个字节范围:-214748364 ...
分类:
编程语言 时间:
2021-02-09 12:24:02
阅读次数:
0
A:把多余的步数删掉即可。 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,int> pii; const int N = 1e4 + 5; const int M = 1e4 + ...
分类:
其他好文 时间:
2021-02-09 12:16:59
阅读次数:
0
在Java中,8种基本数据类型并不能表示所有的数字。 整数无法表示比byte最小取值还小的,比long最大取值还大的。 浮点数本身有精度, 这就注定有很多数字用基本类型没有办法表示。 BigInteger用来表示不可变的任意精度的整数。BigDecimal用来表示不可变的、任意精度的有符号十进制数。 ...
分类:
其他好文 时间:
2021-02-09 12:02:58
阅读次数:
0
refer to: https://stackoverflow.com/questions/24387451/how-can-i-kill-whatever-process-is-using-port-8080-so-that-i-can-vagrant-up/24388281 怎么解决端口被占用的 ...
分类:
其他好文 时间:
2021-02-09 11:56:30
阅读次数:
0
A 一共n个人,去a餐厅的有a人,去b餐厅有b人,两个都去的有c人,求没有去的有多少,如果数据不合理或没去的人数少于1,输出-1 #include<bits/stdc++.h> using namespace std; #define ll long long int main() { int n, ...
分类:
其他好文 时间:
2021-02-09 11:44:03
阅读次数:
0
第一章 流程控制 在一个程序执行的过程中,各条语句的执行顺序对程序的结果是有直接影响的。所以,我们必须清楚每条语句的执行流程。 而且,很多时候要通过控制语句的执行顺序来实现我们想要的功能。 1.1 流程控制语句分类 顺序结构 分支结构(if, switch) 循环结构(for, while, do… ...
分类:
其他好文 时间:
2021-02-08 12:24:05
阅读次数:
0
aptitude与apt-get 源 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive. ...
分类:
其他好文 时间:
2021-02-08 12:18:42
阅读次数:
0
题目描述: http://acm.hdu.edu.cn/showproblem.php?pid=1043 中文大意: 经典八数码问题。 给定初始状态,要求变换到目标状态并输出移动过程。 目标状态固定为:1 2 3 4 5 6 7 8 x 。 思路: 采用逆向 BFS + 康托展开判重 + 打表的方法 ...
分类:
其他好文 时间:
2021-02-08 12:12:13
阅读次数:
0
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; ll a, b, c, d; void solve1() { if (a > 0) { puts("(-inf,inf)"); ...
分类:
其他好文 时间:
2021-02-08 12:05:36
阅读次数:
0