Can anyone teach me why I got TLE in this problem?
I tried to modify data structure several time, but result was still the same.
Also, according to previous posts, the technique used in this problem is DP, and I used DP with memorization, so I really can't figure where I did wrong. :o
Thanks ...
Search found 2 matches
- Wed Oct 15, 2008 9:56 am
- Forum: Volume 114 (11400-11499)
- Topic: 11400 - Lighting System Design
- Replies: 6
- Views: 4203
- Wed Aug 13, 2008 11:40 am
- Forum: Volume 114 (11400-11499)
- Topic: 11416 - Excel Evaluation
- Replies: 1
- Views: 1626
Re: 11416 - Excel Evaluation
#include <stdio.h>
#include <list>
#include <string>
#include<vector>
using namespace std;
const int MAXROW=1024;
const int MAXCOL=18000;
enum otype{oadd,ominus,otime,odivide,lpar,rpar};
class bignum
{
protected:
vector<int> val;
void delzero();
void setval(vector<int>& target);
public ...
#include <list>
#include <string>
#include<vector>
using namespace std;
const int MAXROW=1024;
const int MAXCOL=18000;
enum otype{oadd,ominus,otime,odivide,lpar,rpar};
class bignum
{
protected:
vector<int> val;
void delzero();
void setval(vector<int>& target);
public ...