01 2015 档案
2道阶乘的算法题
摘要:冲着51nod新UI去做了题,顺便总结一下,这里有2道阶乘的题,1003阶乘后面0的数量n的阶乘后面有多少个0?6的阶乘 = 1*2*3*4*5*6 = 720,720后面有1个0。Input一个数N(1using namespace std;int main(){ int a, ans = ...
阅读全文
perl学习笔记(4)——动态加载
摘要:在写perl的时候,如果要应用到各种平台的话,比如linux 和windows,会遇到各种问题,有时就是要根据系统类型来加载各种库,之前写的就是这样的,if($^O eq 'linux'){ use XXX::xxx;}elsif($^O eq 'MSWin32'){ use XXX1::x...
阅读全文
Find n‘th number in a number system with only 3 and 4
摘要:这是在看geeksforgeeks时看到的一道题,挺不错的,题目是 Given a number system with only 3 and 4. Find the nth number in the number system. First few numbers in the number s...
阅读全文
浙公网安备 33010602011771号