#include
long fun(long num)
{
long k=1;
do
{
k*=num%10;
num/=10;
}
while(num>0);
return k;
}
main()
{
long n;
printf("please enter a number:");
scanf("%ld",&n);
printf("\n%ld\n",fun(n));...
分类:
其他好文 时间:
2014-07-26 02:06:06
阅读次数:
247
位置调整(Position adjustments)是针对同一图层内元素的位置进行微调的方法。它包括五种设置,分别是stack、dodge、fill、identity、jitter。我们用条形图来展示其用法,仍使用mpg数据集,其中用到的变量是class,即生产汽车的类型,以及year生产年份。.....
分类:
其他好文 时间:
2014-07-26 01:18:46
阅读次数:
225
弹出层透明背景加框的常用样式和结构.alertMessageBg{ position:fixed; _position:absolute; width:100%; height:100%; left:0; top:0; background:#000; ...
分类:
其他好文 时间:
2014-07-26 00:40:46
阅读次数:
220
div.wrap { display: table; width: 100%; position: absolute; left: 0; top: 0; height: 100%; text-align: center; font-size: 1.2em; line-height: 1.2em; v...
分类:
Web程序 时间:
2014-07-26 00:27:56
阅读次数:
344
Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFarmer John has built a new long barn, with N (2 #include #.....
分类:
其他好文 时间:
2014-07-26 00:23:36
阅读次数:
286
As a graduate, it's a shame that i do not have my technical blog. Actually, the thought of having my own blog last for long and i even wrote my person...
分类:
其他好文 时间:
2014-07-25 19:12:32
阅读次数:
360
和机器字长及编译器有关系:所以,int,long int,short int的宽度都可能随编译器而异。但有几条铁定的原则(ANSI/ISO制订的): 1 sizeof(short int)<=sizeof(int) 2 sizeof(int)<=sizeof(long int) 3 short in...
分类:
编程语言 时间:
2014-07-25 19:11:02
阅读次数:
280
像素点跟tile的索引之间的转换//从cocos2d-x坐标转换为Tilemap坐标CCPoint GameMap::tileCoordForPosition(CCPoint position){ int x = position.x / this->getTileSize().width; int...
分类:
其他好文 时间:
2014-07-25 16:38:41
阅读次数:
307
先上题目:C-Lowbit SumTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int...
分类:
其他好文 时间:
2014-07-25 14:00:01
阅读次数:
197
获取绝对位置坐标——offset()方法 var top = $(selector).offset().top; var left = $(selector).offset().left;获取相对位置坐标——position()方法 var top = $(selector).position...
分类:
Web程序 时间:
2014-07-25 13:51:41
阅读次数:
237