HTML-表格 表格 表格由<table>标签来定义,其中行由<tr>标签定义,列由<td>标签定义。快速写行和列的方法为:eg:6行7列可以写成:tr*6>td*7然后按enter键。 表格中的基本操作 显示边框:<table border="1px" cellspacing="0"> 设置列宽: ...
分类:
Web程序 时间:
2020-06-25 21:54:32
阅读次数:
120
使用cin.peek()判断输入的是否为换行 int main() { Solution a; vector<int> b; int c = 0; while(cin.peek() != '\n') { cin >> c; b.push_back(c); } cout << a.singleNumb ...
分类:
编程语言 时间:
2020-06-25 21:06:28
阅读次数:
89
1 #include<iostream> 2 using namespace std; 3 4 int main() { 5 int n = 0; 6 cin >> n; 7 int b = n / 100; 8 int s = n / 10 % 10; 9 int g = n % 10; 10 i ...
分类:
其他好文 时间:
2020-06-25 10:06:03
阅读次数:
46
#include <bits/stdc++.h> #define ll long long #define fr first #define sc second #define pii pair<int, int> #define all(v) v.begin(), v.end() using na ...
分类:
其他好文 时间:
2020-06-25 09:24:44
阅读次数:
104
HDU6311 Cover 题意: 给出$N$个点的简单无向图,不一定联通,现在要用最少的路径去覆盖所有边,并且每条边只被覆盖一次,问最少路径覆盖数和各条路径 \(N\le 10^5\) 题解: 对于每个连通块分别处理 考虑每个联通块,必然是用最少的欧拉路径去覆盖,首先考虑连通块里没有奇数度数的点的 ...
分类:
其他好文 时间:
2020-06-24 21:59:34
阅读次数:
51
聚合函数:对一组值进行计算,并返回计算后的值,具有统计数据的作用 聚合函数特点: 1 除了 COUNT 以外,聚合函数忽略空值。 2 聚合函数经常与 SELECT 语句的 GROUP BY 子句一同使用。 3 所有聚合函数都具有确定性。任何时候用一组给定的输入值调用它们时,都返回相同的值。 4 标量 ...
分类:
其他好文 时间:
2020-06-24 21:23:58
阅读次数:
60
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi ...
分类:
其他好文 时间:
2020-06-24 18:10:26
阅读次数:
58
一、技术总结 这一题主要学习到两个知识点,一个是stoi函数的使用,之前已经讲过了,可以将一个字符串转化为10进制的数字; 还有就是字符串string中insert函数的使用,可以str.insert(0, num, '0');意思是在下标为0处插入num个字符‘0’; 还有就是使用dowhile; ...
分类:
其他好文 时间:
2020-06-23 21:22:54
阅读次数:
42
树状数组 本博客仅贴出树状数组模板 #include <bits/stdc++.h> #define lowbit(x) (x & -x) using namespace std; const int N = 10010; int a[N], n; //a[x] += c void insert(i ...
分类:
编程语言 时间:
2020-06-23 19:27:25
阅读次数:
33
题目传送门:AtCoder Grand Contest 006。 A - Prefix and Suffix #include <iostream> #include <string> int N; std::string s, t; int main() { std::cin >> N >> s ...
分类:
其他好文 时间:
2020-06-23 19:17:25
阅读次数:
60