- 博客(10)
- 资源 (3)
- 收藏
- 关注
原创 UvaOJ 10010
#include <stdio.h> #include <string.h> char grid[100][52], word[20][100]; int xs[8]={-1,1,0,0,-1,-1,1,1}, ys[8]={0,0,-1,1,-1,1,-1,1};/*上、下、左、右、左上、右上、左下、右下*/ /*location结构体,包含坐标*/ t...
2012-11-09 11:57:46
116
原创 UvaOJ 489
Hangman游戏就是一个猜字游戏,题目读起来很考验英文水平,其最重要的一句话是: Every time a wrong guess is made, a stroke will be added to the drawing of a hangman, which needs 7 strokes to complete. Each unique wrong gue...
2012-11-08 09:43:32
121
原创 UvaOJ 694
题目很简单,但是一开始却得到了Time Limit的结果,让人感到很诧异。仔细阅读发现,题目中有一个说明: Neither of these, A or L, is larger than 2,147,483,647 (the largest value that can be stored in a 32-bit signed integer). 所...
2012-11-08 09:42:57
81
原创 UvaOJ 457
1.英文阅读问题: In any given culture dish, let K be the sum of that culture dish's density and the densities of the dish immediately to the left and the dish immediately to the right. Then, by the next ...
2012-11-08 09:42:41
89
原创 UvaOJ 401
这个题目本身不难,但是个人觉得题目本身存在两个表述不清楚的地方,导致解题时出现多次答案错误的提示: 1.数字'0'和字母'O'。题述这两个字符时相等的,并且只有字母'O'是valid character,数字'0'是invalid character。那么按照题目的表述,输入中应该不会出现数字'0'。很多人都对这点有争论,我对此进行了验证,WA的原因基本于此...
2012-11-08 09:42:27
107
UvaOJ 488
需要注意换行符的位置: 1.输入一组参数时: (1)第一个波形与输入没有空行;(2)各个波形之间有空行;(3)最后一个输出后没有空行; 2.输入多组参数时: (1)第一个波形与输入没有空行;(2)各个波形之间有空行;(3)最后一组参数的最后一个输出后没有空行,其它组的最后一个输出后留有空行; #include <stdio.h>...
2012-11-07 15:17:48
195
原创 UvaOJ 490
490不太难,但是有坑。遇到了Presentation Error的错误: 经过检查,是因为输出了多余的换行符造成的。对代码进行了修改,在读入时即不读入换行符,错误就得到了解决。 如,正确输出为:"R 错误输出为:"R'\n' 虽然看起来没有差别,但是最后判定的结果是不一样的。 推荐两个网址: 关...
2012-11-07 15:14:24
149
UvaOJ 458
受了题目的误导,其实不用采用文件输入方式,不然会WA。 #include <stdio.h> int main() { char temp; while((temp = getchar()) != EOF) { if(temp != '\n') ...
2012-11-07 15:06:49
118
原创 UvaOJ 10055
UvaOJ上做的第一道题,简单,但是不是那么容易就能拿到AC。有两点需要注意: 1.输入数字不超过2^32,因此需要选用long long int类型(8字节)。long int不行,也是4字节。 附加MSDN解释: int 32-bit integer. On 16-bit platforms, cannot appear in ...
2012-11-07 15:02:28
144
原创 Ubuntu 12.04安装Mysql
Ubuntu 12.04安装Mysql 参考教程:[MySQL.基础教程].Lynda.com.MySQL.Essential.Training(VeryCD资源),其中包含视频教程, 以及教学过程中用到的文档。 视频中,只讲述了再Win和Mac环境下软件的安装,因此本文主要讲下Linux环境下的配置,这里使用的是Ubuntu 12.04。...
2012-11-07 14:48:42
94
Eric-Hoffer-The-true-believer_-Thoughts-on-the-nature-of-mass-movements
2018-01-01
操作系统的期末试卷,有需要的可以下载一下
2010-06-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人