06 2017 档案
摘要:首先看一下题目: Introduction Dynamic programming is a confusing name for a programming technique that dramatically reduces the runtime of algorithms: from ex
阅读全文
摘要:在看PPT的时候遇到了这么一条题目,我发现其中的关系代数与SQL语句的对应差距有点大,主要体现在customers这张表。 查询的含义是这样的,选择所有的cid,在订单记录中,不存在某个不是纽约的代理商。 我从一种奇怪的角度分析了一下,首先,这是三层查询,也就是说需要有三个select,如果按照关系
阅读全文
摘要:考试周终于过去了一半,可以继续写USACO了。 先来看一下题目吧。 Given N, B, and D: Find a set of N codewords (1 <= N <= 64), each of length B bits (1 <= B <= 8), such that each of
阅读全文
摘要:首先看题目: Farmer John prides himself on having the healthiest dairy cows in the world. He knows the vitamin content for one scoop of each feed type and t
阅读全文
摘要:首先来看一下题目: Sorting is one of the most frequently performed computational tasks. Consider the special sorting problem in which the records to be sorted
阅读全文
摘要:首先看一下题目 Consider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N. Here is the set when N = 5: Wri
阅读全文
摘要:首先看一下题目。 In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (really a lottery) for his birthday. Th
阅读全文
摘要:自己写的Java代码怎么也无法操作MySQL的写操作,打印SQL语句没有问题,检查连接也没有问题,最后手动写了一条记录,发现主键重复了,但是当时表是空的!所以就很震惊,于是选择删表重新来一次,这回成功了,我怀疑是因为之前的清空操作并没有完成。
阅读全文
摘要:这是原来的代码,在本机跑的时候没有问题,但是在评测的时候报错了。错误信息如下: program:_malloc.c:2392:_sysmalloc:_Assertion_`(old_top_==_initial_top_(av)_&&_old_size_==_0)_||_((unsigned_lon
阅读全文

浙公网安备 33010602011771号