aiheshan

有多自律,才能有多自由

导航

2016年8月3日 #

UVa 488 - Triangle Wave

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=429 题目:每个例子输入2个数,一个是wave的幅度,一个是重复的个数。 思路: 阅读全文

posted @ 2016-08-03 23:30 aiheshan 阅读(344) 评论(0) 推荐(0) 编辑

UVa 445 - Marvelous Mazes

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=386 题目:给出一串包含A-Z,数字,*和空格的字符串,如果是!则输出换行,如果是 阅读全文

posted @ 2016-08-03 23:03 aiheshan 阅读(189) 评论(0) 推荐(0) 编辑

UVa 490 - Rotating Sentences

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=431 题目:将输入的句子,反转90度后输出。 思路:第i行字符串旋转90度后,其字 阅读全文

posted @ 2016-08-03 22:43 aiheshan 阅读(171) 评论(0) 推荐(0) 编辑

UVa 414 - Machined Surfaces

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=355 题目:每行25个字符,左开始为X,右边也是X,中间为空格B;当所有行的左右X 阅读全文

posted @ 2016-08-03 22:01 aiheshan 阅读(142) 评论(0) 推荐(0) 编辑

UVa 494 - Kindergarten Counting Game

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=435 思路:题目为求一行中单词的个数;设置flag标志上一个单词已结束,当遇到英文 阅读全文

posted @ 2016-08-03 17:13 aiheshan 阅读(150) 评论(0) 推荐(0) 编辑

UVa 458 - The Decoder

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=399 思路:题目是介绍了一种简单的加密方式,明码加上一个整数k为密码。观察输入输出 阅读全文

posted @ 2016-08-03 17:03 aiheshan 阅读(137) 评论(0) 推荐(0) 编辑

UVa 10300 - Ecological Premium

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=1241 思路:求premium值,就是面积*环境友好度;其中动物个数和每个动物所占 阅读全文

posted @ 2016-08-03 16:55 aiheshan 阅读(188) 评论(0) 推荐(0) 编辑

UVa 10071 - Back to High School Physics

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=1012 思路:题目为质点有初速度和匀加速度a,t时间后速度为v,那么2t时间内的位 阅读全文

posted @ 2016-08-03 16:42 aiheshan 阅读(124) 评论(0) 推荐(0) 编辑

UVa 10055 - Hashmat the Brave Warrior

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=996 解题思路:求两个数差值的绝对值,注意用long; 阅读全文

posted @ 2016-08-03 16:18 aiheshan 阅读(109) 评论(0) 推荐(0) 编辑