Search found 3 matches
- Mon Feb 19, 2007 9:13 am
- Forum: Volume 5 (500-599)
- Topic: 531 - Compromise
- Replies: 73
- Views: 37106
- Sat Feb 03, 2007 12:43 am
- Forum: Volume 3 (300-399)
- Topic: 300 - Maya Calendar
- Replies: 69
- Views: 16246
300 - Maya Calendar - WA
everything seems good, but i still get WA!
#include <cstdio>
#include <string>
#include <map>
#include <cctype>
#include <iostream>
using namespace std;
string months[] = {"pop", "no", "zip", "zotz", "tzec",
"xul", "yoxkin", "mol", "chen", "yax",
"zac", "ceh", "mac", "kankin", "muan",
"pax ...
#include <cstdio>
#include <string>
#include <map>
#include <cctype>
#include <iostream>
using namespace std;
string months[] = {"pop", "no", "zip", "zotz", "tzec",
"xul", "yoxkin", "mol", "chen", "yax",
"zac", "ceh", "mac", "kankin", "muan",
"pax ...
- Sat Feb 03, 2007 12:40 am
- Forum: Volume 5 (500-599)
- Topic: 531 - Compromise
- Replies: 73
- Views: 37106
531 - Compromise - WA
can anyone see the problem ? it works fine for test cases.
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
typedef vector<string> VS;
string LCS(VS a, VS b)
{
int n = a.size();
int m = b.size();
string emo[n+1][m+1];
for (int i = 1; i <= n; i ...
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
typedef vector<string> VS;
string LCS(VS a, VS b)
{
int n = a.size();
int m = b.size();
string emo[n+1][m+1];
for (int i = 1; i <= n; i ...