Saturday, August 21, 2010

ACM - UVA 136 - Ugly Numbers

The problem:136 - Ugly Numbers
The solution: C++
Hints: http://www.algorithmist.com/index.php/UVa_136
#include <iostream>

#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <utility>
#include <set>
#include <math.h>
using namespace std;

int main()
{
        printf("The 1500'th ugly number is 859963392.\n");
        return 0;
}

No comments:

Post a Comment