Professional Documents
Culture Documents
Code - UVa 568 - Just The Facts
Code - UVa 568 - Just The Facts
Code
UVA Onlindfdsfe Judge solutions. C, C++, Algorithms.
01 Knapsack (1) Ad Hoc (1) Backtracking (1) Binary Search Tree (1) bits (1) Brute Force (1) codelib (2) Data Structures (1) Dijkstra (1) DP (2) Graphs (1) Heaps (1) Joseph (1)
Maximum 1-D Sum (1) Maximum Contiguous Sum (1) Primes (1) Priority Queues (1) Recursion (1) Sieve of Atkins (1) UVaOJ Vol-102 (1) UVaOJ Vol-109 (1) UVaOJ Vol-5 (1)
S a t u r d a y, M a r c h 5 , 2 0 11
/* @BEGIN_OF_SOURCE_CODE */
#include <stdio.h>
int n, fact_lnzd[FACT_UPTO] ;
void precompute(void)
{
int i, fact ;
int main()
{
precompute() ;
while (scanf("%d", &n) != EOF)
printf("%5d -> %d\n", n, fact_lnzd[n]) ;
return 0;
}
/* @END_OF_SOURCE_CODE */
No comments:
Post a Comment
Followers
Seguidores (0)
Seguir
Archive
March (4)
February (1)
January (6)
4,996