06 2013 档案
摘要:Edge DetectionTime Limit:1000MSMemory Limit:10000KTotal Submissions:15307Accepted:3445DescriptionIONU Satellite Imaging, Inc. records and stores very large images using run length encoding. You are to write a program that reads a compressed image, finds the edges in the image, as described below, an
阅读全文
摘要:在VC6.0上编写某个读取文件的控制台程序时,出现这样一个错误。cannot convert parameter 1 from 'class std::basic_string,class std::而我的代码非常简单,我感觉完全不存在错误。bool ReadFile(string path) { ifstream istream; //读文件流 istream.open(path); }在网上找了很多解决方法,最后得出的方法是:在路径字符串后面加上.c_str()。
因为open()成员函数的参数是一个char *类型的量,要通过调用 string类的c_...
阅读全文
摘要:前一段时间刚装了centos 5.4和win7的双系统。发现win7的系统时间不对,机子没上网,每天开机时,总会慢8小时,不知道怎么回事,因为忙别的事情,所以过了那几天才找原因,后来发现 windows time服务没有自动,所以想当然认为是这个原因。 用了几次也没发现什么异常,因为今天开机时候没插网线,直接进了 ubuntu,发现时间快了8小时,插上网线就正常了,所以觉得不太正常,所以重启进了win7,发现慢了8小时,这才意识到可能是两个系统设置不同,导 致的这个时间问题。于是google: 两个概念: UTC即Universal Time Coordina...
阅读全文
摘要:Maya CalendarTime Limit:1000MSMemory Limit:10000KTotal Submissions:58623Accepted:18070DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long ye
阅读全文
摘要:DNA SortingTime Limit:1000MSMemory Limit:10000KTotal Submissions:73451Accepted:29334DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measu
阅读全文
摘要:BiorhythmsTime Limit:1000MSMemory Limit:10000KTotal Submissions:101515Accepted:31323DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods o
阅读全文
摘要:I Think I Need a HouseboatTime Limit:1000MSMemory Limit:10000KTotal Submissions:77638Accepted:33359DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by
阅读全文
摘要:输出彩色的控制台文字#include #include #include #include using namespace std; void cprintf(char* str, WORD color, ...); int main() { cprintf("H", 10); cprintf("e", 9); cprintf("l", 12); cprintf("l", 11); cprintf("o", 13); cprintf(" ", 10); cprintf(&qu
阅读全文
摘要:Financial ManagementTime Limit:1000MSMemory Limit:10000KTotal Submissions:104785Accepted:50227DescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio an
阅读全文
摘要:HangoverTime Limit:1000MSMemory Limit:10000KTotal Submissions:89330Accepted:43182DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) W
阅读全文
摘要:487-3279Time Limit:2000MSMemory Limit:65536KTotal Submissions:214502Accepted:37379DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by diali
阅读全文
摘要:求高精度幂Time Limit:500MSMemory Limit:10000KTotal Submissions:118427Accepted:28874Description对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如,对国债进行计算就是属于这类问题。现在要你解决的问题是:对一个实数R( 0.0 #include
char str1[6]={0};//记录初始浮点数的数组
int num1[6]={0},num2[LEN]={0},num[LEN]={0};//记录转化为数字后的各位数
void mul()
{ int i,j; for(i=0;i=10) {...
阅读全文

浙公网安备 33010602011771号