- 博客(1)
- 资源 (1)
- 收藏
- 关注
转载 【转载】为什么你应该(从现在开始就)写博客? - 以转载开始我的第一篇博客
前言:一直想让自己做一些改变,写博客就是其中的一条途径。偶然间看到了这篇文章,09年的文章到现在还是会让第一次看到的人心生触动,感谢原作者。也借此文章,作为自己博客写作的入门,分享是一种美妙,也是自己的一种情绪释放,更是成长的捷径,而博客就是分享最好的载体。博客出处:http://mindhacks.cn/2009/02/15/why-you-should-start-blogging-now/(...
2018-05-30 16:03:44 302
天大acm1551代码
ccm题题1551题,需要设字符串
#include <iostream>
#include <string>
using namespace std;
int main()
{
int c,a,n(0);
string k;
cin>>k;
for(a=0;a<k.length();a++)
n+=k[a]-48;
while(n)
{
c=n;
a=n;
while(a>9)
{
for(a=0;c!=0;c=c/10)
a=a+c%10;
c=a;
}
cout<<a<<endl;
cin>>k;
n=0;
for(a=0;a<k.length();a++)
n+=k[a]-48;
}
return 0;
}
2010-03-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人