![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编译acm
文章平均质量分 67
_vip
这个作者很懒,什么都没留下…
展开
-
对于期末考试 "我" (这是个名字)的贪心问题的证明_题型类似于zoj1877
一、问题 在漆黑的夜里,四位旅行者来到了一座狭窄而且没有护栏的桥边。如果不借助手电筒的话,大家是无论如何也不敢过桥去的。不幸的是,四个人一共只带了一只手电筒,而桥窄得只够让两个人同时过。如果各自单独过桥的话,四人所需要的时间分别是1、2、5、8分钟;而如果两人同时过桥,所需要的时间就是走得比较慢的那个人单独行动时所需的时间。问题是,如何设计一个方案,让这四人尽快过桥。 假设这四人分转载 2014-05-28 01:23:13 · 897 阅读 · 0 评论 -
Hangman Judge
Hangman Judge In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are the原创 2013-12-08 05:45:51 · 646 阅读 · 0 评论 -
Kindergarten Counting Game
Everybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how many words I just said?Input and OutputInput原创 2013-12-06 00:43:11 · 519 阅读 · 0 评论 -
Marvelous Mazes
Marvelous Mazes Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic characters A-Z, * (asterisk), and spaces.In原创 2013-12-06 00:45:43 · 954 阅读 · 0 评论 -
poj 3080
本题的意思就是说,给你k个字符串,去找他们的原创 2014-05-29 00:44:14 · 600 阅读 · 0 评论 -
第一天集训
我们的第一天集训终于开始了,经过了很多的考试,就我而言,颓废了不少,代码也没以前那么有激情了,好像是这几天老玩游戏的事,游戏害人啊!所以在第一天开始集训的前一天晚上,把游戏果断全卸载了,就是为了控制自己的情绪。说实话经过这一天的训练,激情找回了一部分,但是还是没有叶大神和增高硕有激情地说,不知道从什么时候开始的这种情绪,问了问自己,大概是也知道原因,但是人是追求上进的啊,所以,不能继续颓废啊,所以原创 2014-01-14 19:27:47 · 758 阅读 · 0 评论 -
If We Were a Child Again
Problem CIf We Were a Child AgainInput: standard inputOutput: standard outputTime Limit: 7 seconds “Oooooooooooooooh!If I could do the easy mathematics like my school days!!I原创 2013-12-15 04:44:53 · 607 阅读 · 0 评论 -
Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA" is a palindrome because it is the same when the string is read from le原创 2013-12-13 20:24:28 · 525 阅读 · 0 评论 -
- 播放器
F - 播放器Crawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice FZU 2091 Descriptionshadow喜原创 2013-12-08 05:57:26 · 795 阅读 · 0 评论 -
Box of Bricks
Box of Bricks Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older s原创 2013-12-22 20:40:42 · 565 阅读 · 0 评论 -
实况球员综合能力大比拼
实况球员综合能力大比拼 Time Limit: 1000MS Memory limit: 65535K 题目描述大家都应该听说过实况足球吧,如果这个没听说过的话,大家应该听说过中国足球吧,无人不知无人不晓的神一样的队伍。 其实我们今天要讨论的话题主要是实况足球这个游戏,模拟的是整个足球界的所有球队,当然对于开发者能够把中国足球加进去表示非常感激。原创 2014-01-18 19:40:22 · 1268 阅读 · 0 评论 -
Problem A.Ant on a Chessboard
Problem A.Ant on a Chessboard Background One day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to walk along the chessboard accordi原创 2013-12-22 20:07:43 · 468 阅读 · 0 评论 -
12.11
最近,因为出了几道难题acm集训队的自信被打击许多,但是我们的热亲却越来越高,都不顾一切扑到了难题上,加油吧。原创 2013-12-11 21:24:05 · 677 阅读 · 2 评论 -
Cube painting
Cube painting We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are nu原创 2013-12-22 20:17:17 · 1596 阅读 · 0 评论 -
作为一个acmer的期末难受
越来越临近期末,越来越担心自己的高数的成绩,但是,好像自己的玩心越来越大了,怎么办,好像自己的自控力越来越差,让自己不甘堕落的心上哪里去了,那时候数学的大神,不能因为高考数学死了一回就永远地死下去!一定有什么的,来激起自己内心的passion,还记得那时的班主任说passion就是来源于自己内心强大取之不尽用之不竭的力量。大学不是堕落的开始,应该是自立的开始,时间绝对不是借口,真正的借口是自己原创 2013-12-25 23:54:15 · 956 阅读 · 0 评论 -
The Cat in the Hat
The Cat in the Hat Background(An homage to Theodore Seuss Geisel) The Cat in the Hat is a nasty creature,But the striped hat he is wearing has a rather nifty feature. With one fl原创 2013-12-22 21:20:35 · 755 阅读 · 0 评论 -
结构体
今天作业 1.定义一个acmer结构体,包括以下信息:姓名,学号,手机号,做题数,出生日期,其中出生日期date也是一个结构体,包括年、月、日2.建立结构体数组,实现对多个同学的信息输入,输出 3.实现简单的统计功能,比如统计做题数大于150的同 学并输出其完整信息 4.实现查找功能,包括按姓名、学号查找 5.实现信息修改功能 6.按做题数目进行排序(选作) 7.原创 2014-01-14 19:57:41 · 614 阅读 · 0 评论 -
The Collatz Sequence
The Collatz Sequence An algorithm given by Lothar Collatz produces sequences of integers, and is described as follows:Step 1:Choose an arbitrary positive integer A as the first item in the seq原创 2013-12-06 00:47:02 · 784 阅读 · 0 评论 -
Machined Surfaces
An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.原创 2013-12-06 00:43:57 · 6834 阅读 · 0 评论 -
Linear Cellular Automata
Linear Cellular Automata (注意红笔哦)A biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes. By changing the DNA, he is a原创 2013-12-08 05:54:02 · 638 阅读 · 0 评论 -
The ? 1 ? 2 ? ... ? n = k problem
The ? 1 ? 2 ? ... ? n = k problem The problemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k? 1 ? 2 ? ... ? n = kFor原创 2013-12-22 20:38:20 · 802 阅读 · 0 评论 -
poj2299
据说这是我的poj的有一个突破,归并排序,话说原创 2014-06-06 00:18:12 · 519 阅读 · 0 评论 -
poj 1936
好水啊,子串~#include#includeusing namespace std;int main(){ string s,t; while(cin>>s>>t) { bool flag=true; int pos=0; int pos1=-1; for(int i=0;i<s.length()原创 2014-05-29 22:03:16 · 524 阅读 · 0 评论 -
Secret Research
Secret Research At a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its completion:`positive原创 2013-12-22 20:24:56 · 531 阅读 · 0 评论 -
Triangle Wave
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positive integer on原创 2013-12-06 00:46:38 · 679 阅读 · 0 评论 -
Where's Waldorf?
Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line of letters in the grid. A word c原创 2013-12-13 19:19:17 · 551 阅读 · 0 评论 -
runtime error
最近做uva的string类题目老是出现runtime error 哪错了都不知道。一下是常见的原因可是我发现我程序貌似没有一下问题还是error,9命啊ACCESS_VIOLATION 您的程序想从一些非法的地址空间读取或向其中写入内容。一般例如指针、数组下标越界都会造成这个错误的。ARRAY_BOUNDS_EXCEEDED 您的程序试图访问一个超出硬件支持范围的数组单元。FLO转载 2013-12-13 18:03:21 · 642 阅读 · 0 评论