- 博客(11)
- 资源 (4)
- 收藏
- 关注
原创 B - Fxx and game
Young theoretical computer scientist Fxx designed a game for his students. In each game, you will get three integers X,k,tX,k,t.In each step, you can only do one of the following moves: 1.X=
2017-05-20 10:39:10 407
原创 Fxx and string
Young theoretical computer scientist Fxx get a string which contains lowercase letters only. The string SS contains nn lowercase letters S1S2…SnS1S2…Sn.Now Fxx wants to know how many three tup
2017-05-20 09:51:21 352
原创 swustoj(Escape(1023))(多状态BFS)
BH is in a maze,the maze is a matrix,he wants to escape!DescriptionThe input consists of multiple test cases.For each case,the first line contains 2 integers N,M( 1 Each of the follo
2017-05-19 17:06:19 318
原创 swustoj(统计在简单选择排序中的数据交换的次数(1109))
已知需要使用简单选择排序实现一个无序数据序列的排序(升序)。请编程统计该排序过程中的数据交换的次数。Description第一行为待排序数据的个数。 第二行为待排序数据序列。Input用一行输出简单选择排序过程中的数据移位的次数。Output12109 8 7 6 5 4 3 2 1 0
2017-05-17 16:35:47 1978
原创 SwustOj A simple problem(0093)
Dreamone has a lovely cat. The cat can comfort you if you are very dejected, she can also play with you if you are very bored. So Dreamone loves her very much. Of course, you bet, she can also make yo
2017-05-16 23:01:02 283
原创 C - Highway (贪心)
Bob is a skilled engineer. He must design a highway that crosses a region with few villages. Since this region is quite unpopulated, he wants to minimize the number of exits from the highway. He model
2017-05-13 11:37:20 470
原创 easyX实现鼠标人物移动(可视化编程)
#include#include#include#include#pragma comment(lib,"WINMM.lib")struct{ int x, y;//人物坐标 int _x, _y;//目的地坐标 int dir;//人物移动方向 /* 0 下 ,1 左 2,右 3,下 4 左下 5 右下 6,左上 7 右上 */ int nu
2017-05-10 17:11:10 8971 5
原创 图形化界面创建
#include #include#define WINDOW_WIDTH 800#define WINDOW_HEIGHT 600#define WINDOW_CLASS L"为了所有人的IT梦"#define WINDOW_TITLE L"一个测试窗口"#define SPRITES_NUM 30#include#pragma comment(lib,"winmm.lib"
2017-05-08 09:29:54 569
原创 Bone Collector HDU - 2602
Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave … The bone collecto
2017-05-05 18:14:55 317
转载 STL Queue与Stack用法
1、stackstack 模板类的定义在头文件中。stack 模板类需要两个模板参数,一个是元素类型,一个容器类型,但只有元素类型是必要的,在不指定容器类型时,默认的容器类型为deque。定义stack 对象的示例代码如下:stack s1;stack s2;stack 的基本操作有:入栈,如例:s.push(x);出栈,如例:s.pop();注意,出栈操作只是
2017-05-05 18:08:33 344
原创 图形类的派生与继承(求面积与求周长)
图形基类TuXing.h文件#pragma once#include#include#include#include#includeusing namespace std;class TuXing{public: TuXing(); ~TuXing(); virtual double QiuMianJi() = 0;//求面积 virtual double
2017-05-04 15:25:05 1840
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人