摘要: <!-- 正文内容 --> 问题描述 给你三个数a,b,c,求a的b次的前c位数(不够c位输出全部即可) 输入 输入数据有多组,每组占一行,有三个整数,之间有空格。(0<a,b<2147483648,0<c<10) 输出 对于每组输入数据,输出一行. 样例输入 55 20 6 10 5 2 样例输出 阅读全文
posted @ 2016-04-02 15:27 Lweleth 阅读(202) 评论(0) 推荐(0) 编辑
摘要: C. Pearls in a Row There are n pearls in a row. Let's enumerate them with integers from 1 to n from the left to the right. The pearl number i has the 阅读全文
posted @ 2016-04-02 13:57 Lweleth 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=3068 Problem Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度.回文就是正反读都是一样的字符串,如aba, abba等 Input 输 阅读全文
posted @ 2016-04-02 13:31 Lweleth 阅读(556) 评论(0) 推荐(0) 编辑
摘要: Description Input Output Sample Input Sample Output 阅读全文
posted @ 2016-04-02 13:06 Lweleth 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i 阅读全文
posted @ 2016-04-02 12:43 Lweleth 阅读(250) 评论(0) 推荐(0) 编辑