windows和linux下如何对拍
对拍是各种计算机考试检查时必备工具,实际上十分强大,只要你的暴力没有写错就没有问题。
对拍的意思:(怎么有点语文课的意思雾)
对:看见‘对’就可以知道有两个。
拍:就是把两个程序结果拍在一起,对照(有点牵强)。
实践
由于Windows和Linux系统不同,平常大多数人都用Windows,而在noi系列赛事中都采用Linux系统。
Windows就以a+b为例吧。
首先摆一个可能是正解的东西。这个代码文件名:1.cpp
1234567891011121314#include<cstdio>#include<windows.h>#include<ctime>#include<cstdlib>using namespace std;int main(){ int a,b; scanf("%d%d",&a,&b); for(int i=1;i<=n;i++)a++,b--; printf("%d\n",a+b); return 0; }
现在摆一个一 ...
sql learn
mysql基本查询1SELECT * FROM student;
select为关键字
*表示所有列(或为列名称)
student为要查的表
1SELECT <定义列的名字> FROM <表名>;
1SELECT 1 ; #测试数据库链接
条件查询12345678SELECT * FROM <表名> WHERE <条件表达式>;/*ANDORNOT<> #!=组合可用()*/
排序123SELECT * FROM students ORDER BY score;#将表student按score从小到大排序SELECT * FROM students ORDER BY score DESC;#从大到小
1234SELECT *FROM studentsWHERE class_id = 1ORDER BY score DESC;
分页12345SELECT id, name, gender, scoreFROM studentsORDER BY score DESCLIMIT 3 OFFSET 6;#从第6条截 ...
springboot learn
springbootcontroller可以接收从前端传来的数据
通过调用service和serviceimpl层处理数据
service定义一些seviceimpl需要的函数
serviceImpl实现在service中定义的函数
在其中调用了dao层和pojo层的函数
daouserMapper调用一些函数来实现对数据库的查询与修改
pojouserbean可以处理来自数据库的数据
mapper通过mybatis对数据库进行操作
application.yml配置数据库,将pojo和mapper联系起来
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment



