Description
Kitty is a little cat. She is crazy about a game recently.
There are n scenes in the game(mark from 1 to n). Each scene has a number pi. Kitty's score will become least_common_multiple...
分类:
其他好文 时间:
2014-10-29 00:23:31
阅读次数:
225
Problem Description假设一个班有n(n 2 3 int main(){ 4 int n; 5 int m; 6 int i; 7 int j; 8 int score[51][6]; 9 double student_score;1...
分类:
其他好文 时间:
2014-10-28 13:36:58
阅读次数:
172
create table t(student_id number,course varchar2(10),score number);insert into t values(1,'语文',80);insert into t values(1,'数学',85);insert into t value...
分类:
数据库 时间:
2014-10-28 11:59:57
阅读次数:
153
一、结构体的定义
1、定义形式
struct 结构名
{成员列表;}; //定义为语句,分号不能丢
2、结构类型变量的声明
(1)声明形式1
struct student
{
int number;
char name[10];
float score;
};
struct student st...
分类:
编程语言 时间:
2014-10-26 22:53:30
阅读次数:
220
1、先创建一张主表CREATETABLE user(uIdINT AUTO_INCREMENTNOTNULL PRIMARYKEY,uName VARCHAR(100)NOTNULL);2、创建一张从表并添加约束create table score{sid int auto_increment no...
分类:
数据库 时间:
2014-10-25 19:58:21
阅读次数:
219
需求是在缓存最近一周内用户所有消息列表,考虑用Redis 存储;为每个存储一个独立Sorted Set,value 为消息体,Score 为MessageId,用以实现增量消息同步。 问题就来了:Sorted Set 怎么清理? -设计内存容量只允许放一周内最新的,太久了缓存意义不大,太...
分类:
其他好文 时间:
2014-10-25 15:41:43
阅读次数:
233
1 #include 2 #include 3 #include 4 5 struct person{ 6 char *number; 7 char *name; 8 int score; 9 }; 10 11 int m...
分类:
编程语言 时间:
2014-10-23 19:12:05
阅读次数:
166
题目:有一个数据表student,包含name(姓名),dept(科目),score(成绩)三个字段,现在要求查出每科成绩分数分布最多的项,如语文成绩80分最多,就输出语文80分的人数,数学90分的人最多,输出数学90分的人数;测试数据:insert into student values ("de...
分类:
数据库 时间:
2014-10-22 17:31:28
阅读次数:
304
Description
In college, a student may take several courses. for each course i, he earns a certain credit (c i), and a mark ranging from A to F, which is comparable to a score (s i), according to th...
分类:
其他好文 时间:
2014-10-20 23:23:31
阅读次数:
260
如果我们有一个表Student,包含下面字段与数据:drop table student;create table student(id int primary key,name nvarchar2(50) not null,score number not null);insert into st...
分类:
其他好文 时间:
2014-10-18 15:18:15
阅读次数:
210