自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(93)
  • 资源 (2)
  • 收藏
  • 关注

原创 pl/sql多表查询练习题02

--1.显示所有员工的姓名,部门号和部门名称select last_name,department_id,department_namefrom employees e,departments dwhere e.department_id=d.department_id(+)select last_name,e.department_id,department_namefrom ...

2019-03-31 23:19:27 672

原创 pl/sql多表查询练习题01

--1,多表连接查询时,若两个表有同名的列,必须使用表的别名对列名进行引用,否则出错!--2,查询公司员工的last_name,department_name,cityselect last_name,department_name,cityfrom departments s,employees e,locations lwhere d.department_id=e.depart...

2019-03-31 23:02:43 300

原创 pl/sql多表查询练习题01

--1,多表连接查询时,若两个表有同名的列,必须使用表的别名对列名进行引用,否则出错!--2,查询公司员工的last_name,department_name,cityselect last_name,department_name,cityfrom departments s,employees e,locations lwhere d.department_id=e.depart...

2019-03-31 22:10:50 472

原创 pl/sql单行函数练习题02

--1,显示系统时间(注:日期+时间)select to_char(sysdate,'yyyy-mm-dd hh:mi:ss')from dual;--2,查询员工号,姓名,工资以及工资提高百分之20%后的结果(new_salary)select employee_id,last_name,salary,salary*1.2 "new_salary"from employees;...

2019-03-31 16:59:41 310

原创 pl/sql单行函数练习题01

--1,打印出“2009年10月14日 9:25:40” 格式的当前系统的日期和时间 select to_char(sysdate,'yyyy"年"mm"月"dd"日" hh:mi:ss') from dual;--2,格式化数字:1234567.89为1,24,567.89 select to_char(1234567.89,'999,999,999.99...

2019-03-31 16:24:13 285

原创 pl/sql 过滤,排序,帅选数据小练习02

--1.查询工资大于12000的员工的姓名和工资select last_name,salaryfrom employeeswhere salary > 12000--2,查询员工工号为176的员工的姓名和部门select last_name,department_idfrom employeeswhere employee_id = 176--3,选择工资不在500...

2019-03-31 11:12:16 255

原创 pl/sql 过滤,排序,帅选数据小练习01

1,WHERE 字句紧跟 FROM 字句2,查询last_name为‘king’ 得员工信息,注意:在‘ ’内要区分大小写select first_name,last_name from employeeswhere last_name='King'3,查询1998-4-24来公司得员工有哪些?注意:日期必须要放在单引号中,且必须是指定得格式select last_nam...

2019-03-31 10:48:21 246

原创 基本 SQL-SELECT 语句

1,对于日期类型的数据,做*,/运算不合法 2,包含空值得数学表达式值都为空值 3,别名使用双引号! 4,oracle中连接字符串使用“||”,而不是java中得“+” 5,日期和字符只能在当引号出现,输出last_name`s email is email select last_name'`s email is '||email EMAIL from employees 6,dis...

2019-03-31 09:26:11 263

原创 测试匿名内部类(104)

package cn.sxt.arrays;/** * 测试匿名内部类 * @author chen_zan_yu * */public class TestAnonymousInnerClass { public static void test01(AA a) { System.out.println("#W######"); a.aa(); } p...

2019-03-30 20:13:31 204

原创 测试非静态内部类

package cn.sxt.arrays;/** * 测试非静态内部类 * @author chen_zan_yu * */public class testinnerclass { public static void main(String[] args) { //创建内部类对象 Outer.Inner inner=new Outer().new Inner(); ...

2019-03-30 20:00:59 115

原创 兄弟选择器(31)

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* * 为span后的一个p元素设置背景颜色为黄色 * 后一个兄弟元素选择器 * ...

2019-03-30 19:36:52 160

原创 子元素选择器

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* * 为第一个p标签设置一个背景色为黄色 * :first-child可以选中第一个子元...

2019-03-30 19:27:43 199

原创 属性选择器

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* * 为所有具有title属性的元素的p元素,设置背景颜色为黄色 * 属性选择器 ...

2019-03-29 23:26:59 120

原创 伪元素(送上周慧敏《最爱》)

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 使用伪元素来表示元素中的一些特殊的位置 */ /* * 为P中的第...

2019-03-29 17:37:21 199

原创 测试接口和实现(103)

package cn.sxt.arrays;/* * 测试接口和实现 * @author chen_zan_yu * */public class test_interface { public static void main(String[] args) { Volant v=new Angel(); v.fly(); Honest h=new Goo...

2019-03-29 17:11:16 302

原创 字定义数组类

MyArray.h#pragma once#include<iostream>using namespace std;class MyArray{public: MyArray(); MyArray(int len); MyArray(const MyArray &another); ~MyArray(); void setDate(int in...

2019-03-29 15:49:27 371

原创 Partition Aizu - ALDS1_6_B (分割)

Quick sort is based on the Divide-and-conquer approach. In QuickSort(A, p, r), first, a procedure Partition(A, p, r) divides an array A[p..r] into two subarrays A[p..q-1] and A[q+1..r] such that each ...

2019-03-28 22:57:36 206

原创 1015 Reversible Primes (20 分)

1015Reversible Primes(20分)Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime beca...

2019-03-28 00:16:32 495

原创 c++之to_string()函数

函数原型: string to_string (int val); string to_string (long val); string to_string (long long val); string to_string (unsigned val); string to_string (unsigned long val); string to_string (unsigned...

2019-03-27 23:28:26 6422

原创 Merge Sort Aizu - ALDS1_5_B (归并排序)

Write a program of a Merge Sort algorithm implemented by the following pseudocode. You should also report the number of comparisons in the Merge function.Merge(A, left, mid, right) n1 = mid - lef...

2019-03-27 23:00:20 218

原创 delete与free

#include <iostream>#include<algorithm>#include<stdio.h>using namespace std;//c语言中void test1(){ int *p=(int *)malloc(sizeof(int)); *p=10; if(p!=NULL) { ...

2019-03-27 16:07:59 592

原创 css&html伪类选择器(27)

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* * 伪类专门用来表示元素的一种特殊的状态 * 比如:访问过的链接,比如普通的超...

2019-03-27 15:25:16 139

原创 1014 Waiting in Line (30 分)

1014Waiting in Line(30分)Suppose a bank hasNwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to...

2019-03-27 00:02:20 431

原创 结构体内嵌比较函数bool operator * (const node *x) const {}

struct node{ int l,r; bool operator <(const node &a)const{ return r < a.r; }}a[maxn];直接写比较函数是裸的r表示当前的值,如果r<a.r,那么就是从小到大排序,但是优先队列的是相反的。 sort默认为从小到大排序,优先队列默认为从大到...

2019-03-26 23:29:04 7583 1

原创 单行函数案例巩固(53)

#显示系统时间(注:日期+时间)SELECT NOW();#查询员工工号,姓名,工资,以及工资提成之20%后的结果(new salary)SELECT employee_id,last_name,salary,salary*1.2 "new salary"FROM employees;#将员工的姓名按首字母排序,并写出姓名的长度(length)SELECT LENGTH(la...

2019-03-26 20:29:29 150

原创 五流程控制函数

#五流程控制函数#1.if函数:if else 的效果SELECT IF(10<5,'大','小');SELECT last_name,commission_pct,IF(commission_pct IS NULL,'没将金,哈哈','有将金,嘻嘻') 备注FROM employees;#2.case 函数的使用一,switch case 的效果/*switch (...

2019-03-26 19:34:33 149

原创 元素的子元素与元素的后代(25)

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style> /* * 为div中的span设置一个颜色 * 后代元素选择器 * -作用: * -选择指定的元素后代 ...

2019-03-26 19:26:14 340

原创 1013 Battle Over Cities (25 分)

1013Battle Over Cities(25分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed....

2019-03-26 12:57:29 430

原创 C++中常见的宏定义(M_PI,M_E~~~)

1.M_PI 是一个宏定义,圆周率的定义#define M_PI 3.14159265358979323846(参考)此宏定义和编译器有关,TC中M_PI宏就定义在<math.h>里面。但vc的<math.h>中没有了M_PI的宏定义。2.M_E 是自然对数的一个宏定义#define M_E2.7182818284590452353...

2019-03-25 23:53:11 4567 2

原创 Koch Curve Aizu - ALDS1_5_C

Write a program which reads an integernand draws a Koch curve based on recursive calles of depthn.The Koch curve is well known as a kind offractals.You can draw a Koch curve in the following a...

2019-03-25 23:50:10 328

原创 1012 The Best Rank (25 分)(结构体排序)

1012The Best Rank(25分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language,M- Mathematics (Calculus o...

2019-03-25 23:18:10 692

原创 有毒~~~

#include <iostream>#include<stdio.h>#include<string.h>#include<vector>using namespace std;int main(){ string s; string c1; string c2; int flas; v...

2019-03-23 23:45:33 126

原创 mysql字典

基本操作 /* Windows服务 */ -- 启动MySQL net start mysql -- 创建Windows服务 sc create mysql binPath= mysqld_bin_path(注意:等号与值之间有空格) /* 连接与断开服务器 */ mysql -h 地址 -P 端口 -u 用...

2019-03-23 14:53:22 1301 6

原创 Exhaustive Search Aizu - ALDS1_5_A

Write a program which reads a sequenceAofnelements and an integerM, and outputs "yes" if you can makeMby adding elements inA, otherwise "no". You can use an element only once.You are given t...

2019-03-22 23:49:24 194

原创 1011 World Cup Betting (20 分)

1011World Cup Betting(20分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World...

2019-03-22 23:26:09 264

原创 Allocation Aizu - ALDS1_4_D

You are givennnpackages ofwiwikg from a belt conveyor in order (i=0,1,...n−1i=0,1,...n−1). You should load all packages ontokktrucks which have the common maximum loadPP. Each truck can load co...

2019-03-22 00:23:20 409

原创 1010 Radix (25 分)(二分搜索)

1010Radix(25分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer isyes, if 6 is a decimal number and 110 is a binary number.Now for any pa...

2019-03-21 23:41:32 133

原创 常见选择器24

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>常见的选择器</title> <style type="text/css"> /* * 元素选择器 * * 作用:通过元素可以选择页面中的所有...

2019-03-21 15:54:09 256

原创 迭代lower_bound和upper_bound的总结

二分搜索方面,STL在库中提供了binary_search,lower_bound,upper_bound. lower_bound是一种应用于有序数据范围内的算法,他可以返回一个迭代器,这个迭代器指向第一个不小于指定值value的元素。 通过它,我们可以找出第一个能够恰当插入value的位置,又能维持指定范围内的元素顺序(有序状态)。 相对的upper_boun...

2019-03-21 00:07:08 226

原创 Aizu - ALDS1_4_C Dictionary (散列法)

Search IIIYour task is to write a program of a simpledictionarywhich implements the following instructions:insertstr: insert a stringstrin to the dictionary findstr: if the distionary co...

2019-03-20 23:21:16 185

餐饮项目终版.zip

这是一个用javaweb+html+css+js+mysql写的优质项目

2019-08-03

第1章算法竞赛概述.ppt

算法竞赛培养这样的能力:对复杂问题,用高效的算法或逻辑,进行建模并编码实现。 编码能力 Gates: ”If you want to hire an engineer, look at the guy’s code. That’s all. If he hasn’t written a lot of code, don’t hire him.” 丰富的算法知识 计算思维和逻辑思维 团队合作精神

2019-05-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除