- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 第8章例题--称硬币--2692
#include #include #include #include #include #include #include #include char left[3][7],right[3][7],state[3][7];bool isLight(char x) //判断硬币x是否为轻{ int i; for( i = 0 ; i < 3 ; i ++ ) {
2011-12-16 09:48:57
722
原创 第8章例题--生理周期--2977
#include #include #include #include #include #include #include #include using namespace std;int main(){ int p,e,i,d; int num, j; num = 0 ; while(scanf("%d %d %d %d",&p,&e,&i,&d) &&
2011-12-15 15:10:46
1109
原创 第7章例题--2981--大整数加法
#include #include #include #include #include #include #include #include using namespace std;const int maxn = 1000;struct bign{ int len, s[maxn]; //s是逆序存储 bign(){ m
2011-12-13 16:37:59
637
原创 高精度运算类bign
#include #include #include #include #include #include #include #include using namespace std;const int maxn = 1000;struct bign{ int len, s[maxn]; //s是逆序存储 bign(){ m
2011-12-13 16:26:41
2288
原创 11月--1293--小马过河
Descriptioncloverprince养着一只小马,活泼可爱,很喜欢在外面玩。有一天,小马驮着一袋盐从一条小河上经过,到了河对岸,他发现,身上的盐轻了不少,好像自己的力气变大了似的。从此,小马开始喜欢过河。每天都要经过小河,到河对岸的草地上去玩。有一天,小马玩得很开心,不知不觉,天色已经晚了。小马想起了王子要他晚上早点回家,否则王子会生气的。于是,小马想用最快的速度过河。河水有
2011-12-06 20:14:13
1748
原创 11月--1922--偶是水题
Description最近,liaoruo同学通过研究发现,在企鹅村里面,企鹅们总是喜欢在夜晚成对出来散步,基本上是两小无猜的企鹅情侣,但是由于之前企鹅村的长老们都有重公企鹅轻母企鹅的习惯,久而久之,导致男女比例严重失调,由于找不到母企鹅,有时候会出现2只公企鹅一起出来散步的现象(你懂的,boy的复数形式~)。为了调查清楚这件事情的严重程度,liaoruo假扮成为1只QGG混入了企鹅村,在某次
2011-12-06 19:40:21
769
原创 第6章练习题--4--循环数--2952
#include #include #include #include //using namespace std;int main(){ char s[65], a[65], b[125]; int len, i, k; bool flag ; memset( a , 0 , sizeof(char)*65 ); memset( b , 0 , sizeof(char
2011-12-02 10:58:10
1821
原创 第6章练习题--3--武林--2785
#include #include #include #include #include #include #include #include using namespace std;typedef struct Hero{ int x; int y; int a; int b; int c; bool live; bool dir;//正向为true,反向为
2011-12-01 20:18:43
1677
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅