ACM&数字阶梯求和(大数问题)
摘要:
数字阶梯求和题目描述:给定a和n,计算a+aa+aaa+a...a(n个a)的和。输入:测试数据有多组,输入a,n(1<=a<=9,1<=n<=100)。输出:对于每组输入,请输出结果。样例输入:1 10样例输出:1234567900http://ac.jobdu.com/problem.php?pid=1051main.cpp 1 #include <iostream> 2 #include <cstring> 3 using namespace std; 4 int main() 5 { 6 int num[105]; 7 int a, n, 阅读全文
posted @ 2013-03-21 12:13 Zachary_wiz 阅读(290) 评论(0) 推荐(0) 编辑