码迷,mamicode.com
首页 >  
搜索关键字:school    ( 1239个结果
Python:实现多态
定义一个在校人的基类,分别派生出教师和学生,然后放入列表中,实现多态。 #!/usr/bin/python #Filename:inherit.py class SchoolMember: '''Represents any school member.''' def __init__(self, name, age): self.name = nam...
分类:编程语言   时间:2015-06-16 21:20:30    阅读次数:114
Java 项目常用的日期方法class
Java 项目常用的日期方法class package com.school.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; impor...
分类:编程语言   时间:2015-06-12 17:15:37    阅读次数:112
状态压缩dp问题
问题:Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the...
分类:其他好文   时间:2015-06-11 18:50:10    阅读次数:128
poj2029 Get Many Persimmon Trees
Description Seiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to reward him for his meritorious career in educa...
分类:其他好文   时间:2015-06-04 15:53:16    阅读次数:122
POJ 1547 Clay Bully
Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 8344Accepted: 4706DescriptionMs. Terry is a pre-school art teacher who likes to have her stud...
分类:其他好文   时间:2015-06-03 08:28:03    阅读次数:107
codeforces 377A. Puzzles 水题
A. PuzzlesTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/337/ADescriptionThe end of the school year is near and Ms...
分类:其他好文   时间:2015-06-02 21:33:53    阅读次数:113
codeforces school mark(贪心)
1 ///太渣,看了题解才知道怎么做,自己想感觉想不清楚 2 ///题解:首先在给出的序列里判断小于median的个数,若大于(n-1)/2,则不满足,否则看另一个条件 3 ///这样我们可以把中位数左边还要添加的数字构造成1,右边的数字全构造成median,这样中位数保证不会小于y,再看总和是否....
分类:其他好文   时间:2015-06-02 19:23:18    阅读次数:120
SQL数据库的增删改查
例子:一个名为person的表,字段分别有name, age ,city,school,card,id 注意:sql是对大小写不敏感1.select : select name from person 查询出person表的所有name字段 select * from person 查询p...
分类:数据库   时间:2015-06-02 12:58:27    阅读次数:143
cdoj 80 Cube 水题
CubeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/80DescriptionAs a student of the applied mathematics school of UE...
分类:其他好文   时间:2015-06-02 00:25:12    阅读次数:200
mysql之创建数据库,创建数据表
写在前面项目中用到mysql数据库,之前也没用过mysql,今天就学下mysql的常用的语法,发现跟sql server的语法极其相似。用起来还是蛮简单的。一个例子1、创建一个名为School的数据库。1、创建一个学生信息表:学生id(自增,主键),姓名,年龄,性别,电话,籍贯,入学时间,所属班级i...
分类:数据库   时间:2015-05-30 10:41:19    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!