5-2 UVa101 The Blocks Problem
1 |
|
5-3 UVa10815 Andy’s First Dictionary
1 |
|
5-4 UVa156 Ananagrams
1 |
|
5-5 UVa12096 The SetStack Computer
1 |
|
5-6 UVa540 Team Queue
1 |
|
5-7 UVa136 Ugly Numbers
1 | // UVa136 Ugly Numbers |
5-8 UVa400 Unix ls
1 |
|
5-9 UVa1592 Database
1 | // UVa1592 Database |
`c++
#include
#include
#include
#include
#include
#include
using namespace std;
typedef pair<int, int> PII;
const int MAXR = 10000 + 5;
const int MAXC = 10 + 5;
int m, n, db[MAXR][MAXC], cnt;
map<string, int> id;
int ID(const string& s) {
if (!id.count(s)) {
id[s] = ++cnt;
}
return id[s];
}
int main() {
return 0;
}
`10-11 UVa11181 ProbabilityGiven