摘要:
问题:In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryptio... 阅读全文
摘要:
问题:给定一个整数N,那么N的阶乘N!末尾有多少个0? 比如:N=10,N!=3628800,N!的末尾有2个0,写出算法。回答:int countZero(int N) { int ans = 0; int maxInt = 1000000000;//10^9 int tmpn = N; whil... 阅读全文
摘要:
问题:Tetris (Russian: Тeтрис) is a puzzle video game originally designed and programmed by Alexey Pajitnov in the Soviet Union. The Tetris game is a pop... 阅读全文
摘要:
问题:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will b... 阅读全文
摘要:
问题:输入一个正整数(<10000),输出颠倒后的整数。【样例输入】1234【样例输出】4321回答:#include int main(){ int num ; scanf("%d",&num); int x,y,z,n,result; if(num > 999) { x = num / 1000... 阅读全文
摘要:
问题:InputThe first line of input contains a single integer P, (1 ≤ P ≤ 1000), which is the number of data sets that follow. Each data set consists of a... 阅读全文