- 博客(52)
- 资源 (20)
- 问答 (14)
- 收藏
- 关注
原创 Power of Cryptography(二分+pow)
D - Power of CryptographyTime Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 2109Appoint description: System Crawler (2015-09-25)
2015-09-30 08:16:31 368
原创 The Pilots Brothers' refrigerator(dfs)
B - The Pilots Brothers' refrigeratorTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 2965Appoint description: System Crawler (20
2015-09-29 20:26:23 364
原创 Three Logos(模拟)
D. Three Logostime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThree companies decided to order a billboard
2015-09-29 13:45:48 529
原创 Developing Skills(优先队列)
C. Developing Skillstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves computer games. Finally a g
2015-09-29 00:52:48 578
原创 Luxurious Houses(模拟)
B. Luxurious Housestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe capital of Berland has n multifloor
2015-09-29 00:49:08 448
原创 ACM题集以及各种总结大全!
(转载)ACM题集以及各种总结大全! 虽然退役了,但是整理一下,供小弟小妹们以后切题方便一些,但由于近来考试太多,顾退役总结延迟一段时间再写!先写一下各种分类和题集,欢迎各位大牛路过指正。 一.ACM入门 关于ACM 百度百科连接 杭州电子科技大学(hdu)ACM题目
2015-09-27 18:09:50 601
原创 Conturbatio
Conturbatio Accepts: 156 Submissions: 258 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)问题描述在一个n \times mn×m的国际象棋棋盘上有很多车(Rook),其中车可以攻击他所属
2015-09-26 23:20:24 503
原创 Scaena Felix
Scaena Felix Accepts: 179 Submissions: 682 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)问题描述给定一个由'('和')'组成的字符串,一次修改可以翻转字符串中的一个字符,将'('变成'
2015-09-26 22:12:17 517
原创 链表的多项式加法链表的多项式加法
链表的多项式加法老师给的模板看的我不要不要的,真心难看,看了很久才把重载加法搞定了。#include using namespace std;#include //定义结点类 用于表示多项式的一项 class Node {friend class Polynomial;public: Node() { next = NULL; } Node
2015-09-26 01:18:37 974
原创 Kefa and Park
C. Kefa and Parktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa decided to celebrate his first big sa
2015-09-25 23:00:58 797
原创 Kefa and Company
B. Kefa and Companytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa wants to celebrate his first big s
2015-09-25 14:27:15 546
原创 STL源码学习----lower_bound和upper_bound算法
转载: STL中的每个算法都非常精妙,接下来的几天我想集中学习一下STL中的算法。 ForwardIter lower_bound(ForwardIter first, ForwardIter last,const _Tp& val)算法返回一个非递减序列[first, last)中的第一个大于等于值val的位置。 ForwardIter upper_bound(
2015-09-24 18:18:04 359
原创 合纵连横
合纵连横时间限制:1000 ms | 内存限制:65535 KB难度:3描述乱世天下,诸侯割据。每个诸侯王都有一片自己的领土。但是不是所有的诸侯王都是安分守己的,实力强大的诸侯国会设法吞并那些实力弱的,让自己的领土面积不断扩大。而实力弱的诸侯王为了不让自己的领土被吞并,他会联合一些其他同样弱小的诸侯国,组成联盟(联盟不止一个),来共同抵抗那些强大的诸侯国
2015-09-24 00:27:29 466
原创 Largest Point
Largest Point Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 0
2015-09-23 18:14:32 450
原创 笨蛋难题四
笨蛋难题四时间限制:1000 ms | 内存限制:65535 KB难度:3描述这些日子笨蛋一直研究股票,经过调研,终于发现xxx公司股票规律,更可喜的是 笨蛋推算出这家公司每天的股价,为了防止别人发现他的秘密。他决定对于这家公司的 股票最多买一次,现在笨蛋已经将股票价格列了出来。(这已经不是笨蛋的难题了,他已经解决 呵 呵)。只想难为难为你呀,从股票价格
2015-09-23 18:00:40 449
原创 Kefa and First Steps
A. Kefa and First Stepstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa decided to make some money doi
2015-09-23 08:44:21 562
原创 RMQ with Shifts
RMQ with Shifts时间限制:1000 ms | 内存限制:65535 KB难度:3描述 In the traditional RMQ (Range Minimum Query) problem, we have a static array A. Then for each query (L, R) (L In this pro
2015-09-23 00:28:12 555
原创 scanf用法
scanf是一个匹配模式的函数,例如:scanf("%d and %d",&a,&b);那我们输入的格式就是:1 and 2。那scanf("\n");就要匹配换行符啦过滤空格、制表符、回车等输入,也就是说scanf("%d\n", &i);printf("%d\n", i);你输入一个数后,它是不会立即显示的,要等再接收到一个非(空格、制表符、回车)的输入scanf语句才结
2015-09-22 23:44:02 485
原创 I Hate It
I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 52842 Accepted Submission(s): 20756Problem Description很多学校流行一种比较的习惯。
2015-09-21 22:20:02 343
原创 C#银行系统
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class BankAccount { // 此处定义私有数据name、balance、addr、openDate private string name;
2015-09-21 12:58:39 6893
原创 最小值
最小值时间限制:1000 ms | 内存限制:65535 KB难度:3描述输入N个数,M次查询。每次查询给出一个数x。 要求:每次查询输出前x个数中第i小的数。(i为第i次查询)你可以假设M ,Xi 输入Line0:TLine1: N,MLine2…LineN+1:num1,......,numN
2015-09-19 10:39:01 651
原创 Finding Team Member
B. Finding Team Membertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a programing contest named
2015-09-17 18:12:05 452
原创 Raising Bacteria
A. Raising Bacteriatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are a lover of bacteria. You want to
2015-09-17 12:43:43 646
原创 Mike and Fax
A. Mike and Faxtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Mike was walking in the subway, all th
2015-09-15 22:38:20 515
原创 大一的acm之路
大一的acm之路 不知不觉大一的时间就这样子过去了,现在想起来感觉很苦很累,但是却非常充实。我想送给所有参加acm的人----人,不怕拼命,怕平凡。 刚刚进入大学时,是在一次新生会议中老师提出了ACM这个东西。刚刚开始都不知道是什麼鬼,但是却被老师说的非常兴奋。因为他说可以去北京免费旅游(蓝桥杯),还有非常锻炼思维。就这样我被ACM深深吸引住了。
2015-09-14 20:29:34 1127
原创 A very hard mathematic problem
E - A very hard mathematic problemTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4282Description Haoren is very good at s
2015-09-14 19:27:38 947
原创 Intelligent IME
J - Intelligent IMETime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4287Description We all use cell phone today. And we mus
2015-09-14 00:21:47 974
原创 Faulty Odometer
A - Faulty OdometerTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4278Description You are given a car odometer which displa
2015-09-14 00:16:22 662
原创 Ping pong
Ping pongTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3928DescriptionN(3<=N<=20000) ping pong players live along a wes
2015-09-10 15:02:50 409
原创 利用顺序表实现多项式相加
//利用顺序表实现多项式相加#include #include #include #include#includeusing namespace std;const int N=10;struct Data{ int xishu; int zhishu;};template class SeqList {private: T
2015-09-10 00:21:18 11846 2
原创 利用顺序表实现集合的并运算
/*利用顺序表实现集合的并运算*/#include #include#include #include#includeusing namespace std;const int N=20;template class SeqList {private: DataType* list; int MaxSize; int size;public: SeqL
2015-09-10 00:20:18 2330
原创 C#求平均分和高于平均分的同学姓名。
任务下面是一些同学的姓名和对应的考试分数,请输出他们的平均分和高于平均分的同学姓名。运行效果如下:using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class Program {
2015-09-08 13:09:55 2537 1
原创 Divisibility by Eight
C. Divisibility by Eighttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a non-negative integ
2015-09-08 00:38:21 609
原创 Preparing Olympiad
B. Preparing Olympiadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have n problems. You have estimat
2015-09-07 23:13:01 393
原创 c#数组排序
c#读入与写出我只知道如下代码这种,所以很多方面都感觉没c++方便,排序函数要自己写,还不知道c#有什么函数可用,有没有排序函数,还有c++的头文件之类的都用不了了,郁闷!!!!!using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threa
2015-09-07 21:33:04 482
原创 c#基础加减法
刚刚接触c#感觉要记好多东西的样子。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MyFirstAPP{ class Program { stat
2015-09-07 20:56:22 3816
转载 快速判断一个数能否被1、2、3、4、5、6、7、8、9、10、11、12、13、17、19、23等整除的规律总结
快速判断一个数能否被1、2、3、4、5、6、7、8、9、10、11、12、13、17、19、23等整除的规律总结(1) 1与0的特性: 1是任何整数的约数,即对于任何整数a,总有1|a. 0是任何非零整数的倍数,a≠0,a为整数,则a|0. (2) 若一个整数的末位是0、2、4、6或8,则这个数能被2整除。 (3) 若一个整数的数字和能被3整
2015-09-06 23:06:19 3352
原创 Two Substrings
A. Two Substringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given string s. Your task is to d
2015-09-06 23:05:27 395
原创 The Factor
The Factor Accepts: 101 Submissions: 811 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)问题描述有一个数列,FancyCoder沉迷于研究这个数列的乘积相关问题,但是它们的乘积往往非常大。
2015-09-06 00:26:41 354
下面的Pascal代码能帮我翻译为c++吗??
2015-06-06
如何使用类指针数组实现以下的代码??
2015-06-05
下面的代码数组不是越界了吗??为什么还可以运行而且不报错??
2015-05-14
int createBiTree( BiTree &r)这里是什么意思???
2015-05-14
下面的代码dfs剪枝的if语句是什么意思????
2015-05-03
如何用构造函数来初始化????
2015-04-23
如何设计bool operator才能使set在结构体中用?
2015-03-15
如何用深度搜索出需要的那条路?c++
2015-02-01
struct结构体的是什么情况?c++
2015-01-29
c++,如何优化程序才不超时?(在线等)
2015-01-19
聪明的员工(c或c++)
2015-01-16
oj 题聪明的员工怎么做?
2015-01-16
一个道c++的题(用c++做,要详细代码)
2014-12-28
如何建立c++的简单链表?
2014-12-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人