摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1018目前只编到求阶乘那一步,但是呢,对于求位数的还是不会写。求帮忙啊 阅读全文
posted @ 2013-03-26 20:50 90后程序媛 阅读(206) 评论(0) 推荐(0) 编辑
摘要: HDU1000这一题吧最简单了。但是很多次都没通过的原因是应该定义变量为long long 避免溢出。代码略HDU 1001这一题,我也莫名其妙地写了很多次每次都没算准主要是在for 循环的时候要注意i<=n;另外是题目要求followed by a blank line.所以输出的时候要再次换行。代码略;HDU 1002注意输出数据的形式就可以了!#include <string>#include <iostream>using namespace std;int main(){ char str1[1001], str2[1001]; int t, i, le 阅读全文
posted @ 2013-03-26 20:23 90后程序媛 阅读(192) 评论(0) 推荐(0) 编辑
摘要: HDU1090http://acm.hdu.edu.cn/showproblem.php?pid=1090c++代码:#include <iostream>using namespace std;int main(int argc, char *argv[]){ int T,a,b; cin>>T; while(T--){ cin>>a>>b; cout<<a+b<<endl; } return 0;} 阅读全文
posted @ 2013-03-26 20:00 90后程序媛 阅读(200) 评论(0) 推荐(0) 编辑