随笔分类 -  水题

The Number Off of FFF
摘要:hdu4727:http://acm.hdu.edu.cn/showproblem.php?pid=4727题意:给你一个序列,每个数比前面一个数大一。如果不是大一,则输出这个位子,如果都是大一,则输出1.题解:水题。 1 #include 2 #include 3 #include 4 #incl... 阅读全文

posted @ 2014-10-04 17:58 天依蓝 阅读(271) 评论(0) 推荐(0)

Children's Day
摘要:hdu4706:http://acm.hdu.edu.cn/showproblem.php?pid=4706题意:让你打出3--10的N,这个N是由连续的小写字母组成的。题解:直接模拟啊,水题啊。 1 #include 2 #include 3 #include 4 #include 5 u... 阅读全文

posted @ 2014-08-19 16:22 天依蓝 阅读(177) 评论(0) 推荐(0)

Sereja and Suffixes
摘要:Codeforces Round #215 (Div. 2)B:http://codeforces.com/problemset/problem/368/B题意:给你一个序列,然后查询i--n中没有重复元素的个数。题解:从右到左递推一遍可以了,很简单的递推。 1 #include 2 #includ... 阅读全文

posted @ 2014-08-05 14:44 天依蓝 阅读(188) 评论(0) 推荐(0)

Mashmokh and Tokens
摘要:Codeforces Round #240 (Div. 2)B;http://codeforces.com/problemset/problem/415/B题意:老板一天发x张代币券,员工能用它来换大洋,用w张代币券可换[a*w/b](下取整)块大洋,代币券只能当天适用,求换最多大洋时最多能留多少代... 阅读全文

posted @ 2014-08-04 22:24 天依蓝 阅读(160) 评论(0) 推荐(0)

Browsing History
摘要:hdu4464:http://acm.hdu.edu.cn/showproblem.php?pid=4464题意:就是统计n个字符串中每个字符串每个字符对印的Asci,然后输出最大的长度。题解:水题,注意一个技巧:字符对应的asci 直接int a=(int )c(c是字符类型即可)。 1 #inc... 阅读全文

posted @ 2014-06-18 23:54 天依蓝 阅读(158) 评论(0) 推荐(0)

导航