tno
  • 2024-09-01简单了解数据库--笔记03
    一、分组查询[groupby]count() //统计计数sum()//求和avg()//平均值min()//最小值max()//最大值group_concat()//拼接函数1.查询每个国家人口总数selectcountrycode,sum(population)fromcitygroupbycountrycode;//给国家分组2.查询中国每个
  • 2024-05-10SQL Server实战六:T-SQL、游标、存储过程的操作
      本文介绍基于MicrosoftSQLServer软件,实现数据库T-SQL语言程序设计,以及游标的定义、使用与存储过程的创建、信息查找的方法。目录1计算1-100间所有可被3整除的数的个数与总和2从学生表S中选取SNO、SN、SEX,若为“男”输出M,为“女”输出F3面向复杂应用的T-SQL程序设计方法
  • 2024-04-03L3-003 社交集群
    并查集的应用,我感觉这题不是很容易想出来。然后....代码看注释吧。写法一,#include<bits/stdc++.h>usingnamespacestd;inta[1010][1010],fa[1010];intgetf(intx){ while(fa[x]!=-1){ x=fa[x]; } returnx;}voidmerge(intx,inty){ intf1=getf(x); intf2=
  • 2024-03-22L2-038 病毒溯源
    #include<bits/stdc++.h>usingnamespacestd;vector<int>vec[10010],ans;//矩阵intvis[10010];intmaxLen=0;voiddfs(introot,vector<int>&v){ if(v.size()>maxLen){ ans.clear(); ans=v; maxLen=v.size(); } for(int
  • 2024-03-20L2-034 口罩发放
    破防了,我自己写的只能得5分,测试点0都过不去,并且至今没有找到错误的原因。等我找到了再回来。然后看别人的。#include<bits/stdc++.h>usingnamespacestd;structnode{ stringname; stringtno; intstate; inttime; intpos;};map<string,int>mp;//领取资格ve