总时间限制:1000ms内存限制:65536kB描述×桌子上有一个m行n列的方格矩阵,将每个方格用坐标表示,行坐标从下到上依次递增,列坐标从左至右依次递增,左下角方格的坐标为(1,1),则右上角方格的坐标为(m,n)。小明是个调皮的孩子,一天他捉来一只蚂蚁,不小心把蚂蚁的右脚弄伤了,于是蚂蚁只能向上...
分类:
移动开发 时间:
2015-11-04 21:19:18
阅读次数:
352
总时间限制: 3000ms 内存限制: 65536kB 描述 Pell数列a1, a2, a3, ...的定义是这样的,a1 = 1, a2 = 2, ... , an = 2 * an ? 1 + an - 2 (n > 2)。给出一个正整数k,要求Pell数列的第k项模上32767是多少。 输入...
分类:
其他好文 时间:
2015-11-04 21:14:12
阅读次数:
182
问题描述在影像比对中,有一种方法是利用影像中的边缘(edge)资讯,计算每个边缘资讯中具有代表性的结构化特征,以作为比对两张影像是否相似的判断标准。Water-filling方法是从每个边缘图的一个端点开始,绕着相连的边缘点走并依序编号。若走到某一步时,遇到一个以上不同的连接点,则分成不同路径同时继...
分类:
其他好文 时间:
2015-11-02 17:30:29
阅读次数:
231
Maximum sum总Time Limit:1000msMemory Limit:65536kBDescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below: ...
分类:
其他好文 时间:
2015-11-01 20:54:46
阅读次数:
209
Gopher II总Time Limit:2000msMemory Limit:65536kBDescriptionThe gopher family, having averted the canine threat, must face a new predator.The are n goph...
分类:
其他好文 时间:
2015-11-01 19:26:44
阅读次数:
290
Ubiquitous Religions总Time Limit:5000msMemory Limit:65536kBDescriptionThere are so many different religions in the world today that it is difficult to ...
分类:
其他好文 时间:
2015-11-01 19:14:43
阅读次数:
181
这是随机数据生成器,可以在noi上检测。。。。。。#include<iostream>
#include<time.h>
#include<cstdio>
#include<stdlib.h>
usingnamespacestd;
intmain()
{
freopen("random.txt","w",stdout);
longlonga,b,n,cou;//cou:数据个数;
cin>>..
分类:
编程语言 时间:
2015-11-01 06:57:26
阅读次数:
250
DescriptionAcm, a treasure-explorer, is exploring again. This time he is in a special maze, in which there are some doors (at most 5 doors, represente...
分类:
其他好文 时间:
2015-10-31 01:35:59
阅读次数:
354
总时间限制:1000ms内存限制:65536kB描述在一个平面上,如果有两个点(x,y),(a,b),如果说(x,y)支配了(a,b),这是指x>=a,y>=b;用图形来看就是(a,b)坐落在以(x,y)为右上角的一个无限的区域内。给定n个点的集合,一定存在若干个点,它们不会被集合中的任何一点所支配...
分类:
其他好文 时间:
2015-10-24 17:18:43
阅读次数:
233
05:派Description我的生日要到了!根据习俗,我需要将一些派分给大家。我有N个不同口味、不同大小的派。有F个朋友会来参加我的派对,每个人会拿到一块派(必须一个派的一块,不能由几个派的小块拼成;可以是一整个派)。我的朋友们都特别小气,如果有人拿到更大的一块,就会开始抱怨。因此所有人拿到的派是...
分类:
其他好文 时间:
2015-10-23 21:35:39
阅读次数:
1450