- 博客(8)
- 收藏
- 关注
原创 FatMouse' Trade
前言:水题,感觉一道很经典的贪心的算法,关于题目的理解,有句话很重要“he may get J[i]* a% pounds of JavaBeans if he pays F[i]* a% pounds of cat food”。Problem Description FatMouse prepared M pounds of cat food, ready to trade with the c
2015-06-03 13:53:24 409
原创 Vowel Counting
Problem Description The “Vowel-Counting-Word”(VCW), complies with the following conditions. Each vowel in the word must be uppercase. Each consonant (the letters except the vowels) must be lowercas
2015-06-01 16:44:20 333
原创 Rightmost Digit
Problem Description Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The first line of the input is a single integer T which is
2015-05-25 13:54:22 470
原创 GPA
Problem Description Each course grade is one of the following five letters: A, B, C, D, and F. (Note that there is no grade E.) The grade A indicates superior achievement , whereas F stands for failur
2015-05-24 23:37:00 538
原创 hdu 1062 Text Reverse
Text ReverseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7032 Accepted Submission(s): 1908Problem Description Ignatius likes to write words i
2015-05-17 23:48:27 359
原创 链表的可变数组的实现和一些基本操作
链表的可变数组的实现和一些基本操作 有兴趣的自己看代码,里面有注释#include<stdio.h>#include<stdlib.h> #define BLOCK 20typedef struct _array{ int *array; int size;}Array;Array ar
2015-05-11 23:40:28 476
原创 链表的各种操作的实现和改进
**链表这东西,搞了老子很久的时间,不过貌似有点懂了,分享一下我的代码 代码用c实现( ⊙ o ⊙ ) …………恩,我是分割线(^__^)……………… 一.不带头指针的链表的各种操作 1.用双向链表搞定的o( ̄▽ ̄)d**#include<stdio.h> #include<stdlib.h>typedef struct _node{ int value; struct
2015-05-10 22:08:49 456
原创 hud1326 排序水题
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2015-05-10 19:35:47 345
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人