10 2022 档案
摘要:-- 关系代数课堂练习题 -- 试用关系代数表达式表示下列查询语句: USE studentmanager; -- (1)检索年龄小于17岁的女学生的学号和姓名 SELECT s_id 学号, s_name 姓名 FROM student WHERE YEAR(s_borndate) > 15 AN
阅读全文
摘要:hrm -- ´´½¨ÈËʹÜÀíÊý¾Ý¿âHRM drop database if exists HRM; create database HRM; USE HRM; /* ÒªÏÈɾ³ýemp±í£¬²»ÄÜÏÈÉ&#
阅读全文
摘要:-- 实验七 多表查询实验 -- 1、用连接查询实现多表数据的检索 USE studentmanager; -- (1)检索学生的学号、姓名和所在班级名称 SELECT s_id 学号, s_name 姓名, c_name 班级名称 FROM student s JOIN class c ON s.
阅读全文
摘要:线性结构: #include<bits/stdc++.h> using namespace std; const int MaxSize = 100; typedef int Elemtype; typedef struct { Elemtype *data; int max_Size; int t
阅读全文
摘要:1.邮箱验证: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" con
阅读全文
摘要:原题链接 这道题目的意思是有多少不同焦点数的方案数。 AC代码: #include<iostream> using namespace std; const int N = 1e6; bool p[N]; int ans; void dfs(int n, int m) { if (!n) { if
阅读全文
摘要:脚本1 drop database if exists studentmananger; create database studentmanager DEFAULT CHAR SET UTF8; use studentmanager; -- 创建系部表 drop table if exists d
阅读全文
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Ela loves reading a lot, just like her ne
阅读全文
摘要:题目链接 #include<bits/stdc++.h> using namespace std; int main() { int n, m; string s; cin >> n >> s >> m; int res = 1; int ans = 0; for (int i = s.size()
阅读全文
摘要:题目链接 思路: 本题用到了倍增的思想,题目数据量较大, 不推荐使用cin, cout(会超时)。解题思路为,由左到右枚举左端点,然后找最大的有端点。在寻找有端点的时候就用到了倍增思想。 #include<iostream> #include<algorithm> using namespace s
阅读全文
摘要:题目链接 思路: 本质上是相邻两个单元格之间的传递,当不足的话我们可以实行借的方案,仔细思考下一,就是这个道理。 AC代码如下: #include<iostream> #include<cstdio> using namespace std; int a[110]; int n; int sum;
阅读全文
摘要:输入两个整数 n和 m,输出一个 n 行m 列的矩阵,将数字1 到 n*m按照回字蛇形填充至矩阵中。 具体矩阵形式可参考样例。 输入格式 输入共一行,包含两个整数 n和m m 输出格式 输出满足要求的矩阵。矩阵占 n行,每行包含 m个空格隔开的整数。 数据范围 0 <= n m <= 100 输入样
阅读全文