杂
文章平均质量分 68
iot_xiaohe
这个作者很懒,什么都没留下…
展开
-
数字与字符串转换
http://acm.nyist.net/JudgeOnline/problem.php?pid=540 题目大意:给定两个数 i 和 j ,将数字 i ~ j 翻转后按升序排列输出。 #include #include #include #include #include using namespace std; struct node { int first,last; }num[5原创 2013-04-28 07:34:22 · 967 阅读 · 2 评论 -
java处理大整数
http://acm.hdu.edu.cn/showproblem.php?pid=1002 /* 给两个大整数A和B,计算并输出A + B = ? */ import java.io.*; import java.util.*; import java.math.*; public class hdu1002 { public static void main(String args[]原创 2013-04-30 08:59:49 · 1657 阅读 · 0 评论 -
java处理大实数
http://acm.hdu.edu.cn/showproblem.php?pid=1063 /* 给定实数r和整数n,计算r^n; 结果如果是纯小数,从小数点开始输出; 如果是整数,以整数形式输出; 输出结果去除多余的后缀0; */ import java.io.*; import java.util.*; import java.math.*; public class hdu1063原创 2013-05-01 08:13:37 · 1082 阅读 · 0 评论 -
C++ string类
http://acm.nyist.net/JudgeOnline/problem.php?pid=308 题目大意:用n个字符串,对每个字符串找出最长的一个子串,子串的逆序序列也要包含在原字符串中; #include #include //用string类要包含头文件;(*.h是c的头文件) #include using namespace std; int main(void) {原创 2013-05-04 08:26:59 · 918 阅读 · 0 评论