上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
摘要: Shredding Company Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 6173 Accepted: 3361 Description You have just been put in charge of devel 阅读全文
posted @ 2017-04-27 09:13 joeylee97 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 12886 Accepted: 6187 Description A university network is composed of N computers. System ad 阅读全文
posted @ 2017-04-26 22:03 joeylee97 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 动态内存:之前的程序使用对象有着严格定义的生存期,会自动销毁。C++支持动态分配对象,动态分配对象的生存期和他们在哪里创建是无关的,只有当显式的被释放,这些对象才会销毁。标准库定义了智能指针对象可以自动释放内存。new在动态内存中分配空间并且返回一个指向该对象的指针,delete接受一个动态对象的指 阅读全文
posted @ 2017-04-25 21:04 joeylee97 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 拷贝 赋值 销毁 拷贝构造函数 如果一个构造函数第一个参数是自身的引用,而且任何额外参数都有默认值,则此构造函数是拷贝构造函数拷贝构造函数的第一个类型必须是引用:如果参数不是引用类型,那么调用不会成功——为了调用拷贝构造函数我们必须拷贝他的实参,而拷贝实参又要调用拷贝构造函数 如果没有类定义拷贝构造 阅读全文
posted @ 2017-04-25 21:03 joeylee97 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#define M 1000000007int fp(int a,int b){ long long ret=1,pow=a;//ret:返回值;pow:基底 while(b!=0){ if(b&1) ret=(ret*pow)%M; pow=(pow*pow)%M 阅读全文
posted @ 2017-04-21 19:54 joeylee97 阅读(93) 评论(0) 推荐(0) 编辑
摘要: // // Name : POJ.cpp// Author : // Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style// #include <iostream># 阅读全文
posted @ 2017-04-21 19:09 joeylee97 阅读(214) 评论(0) 推荐(0) 编辑
摘要: After having drifted about in a small boat for a couple of days, Akira Crusoe Maeda was finally cast ashore on a foggy island. Though he was exhausted 阅读全文
posted @ 2017-04-21 19:05 joeylee97 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 递归求解, You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the b 阅读全文
posted @ 2017-04-20 12:29 joeylee97 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL... 阅读全文
posted @ 2017-04-20 10:19 joeylee97 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Problem Description As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasin 阅读全文
posted @ 2017-04-20 09:36 joeylee97 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页