hello everyone
I am getting TLE but i do not know why?? please could you tell me, what I am doing bad?? I use Segment tree + Lazy Propagation it is my first implementation, thank you everyone, here is my code:
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using ...
Search found 4 matches
- Sat Oct 31, 2015 5:53 am
- Forum: Volume 114 (11400-11499)
- Topic: 11402 - Ahoy, Pirates!
- Replies: 45
- Views: 24979
- Mon May 18, 2015 11:49 pm
- Forum: Volume 4 (400-499)
- Topic: 429 - Word Transformation
- Replies: 82
- Views: 32387
Re: 429 - Word Transformation
#include <cstdio>
#include <map>
#include <vector>
#include <queue>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;
struct word
{
string pal;
int step;
};
int main()
{
int n;
scanf("%d",&n);
string dic;
cin.ignore();
getline(cin,dic);
bool primera=true;
while(n ...
- Mon May 18, 2015 11:45 pm
- Forum: Volume 4 (400-499)
- Topic: 429 - Word Transformation
- Replies: 82
- Views: 32387
Re: 429 - Word Transformation WA helpppppppp
#include <cstdio>
#include <map>
#include <vector>
#include <queue>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;
struct word
{
string pal;
int step;
};
int main()
{
int n;
scanf("%d",&n);
string dic;
cin.ignore();
getline(cin,dic);
bool primera=true;
while(n ...
#include <map>
#include <vector>
#include <queue>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;
struct word
{
string pal;
int step;
};
int main()
{
int n;
scanf("%d",&n);
string dic;
cin.ignore();
getline(cin,dic);
bool primera=true;
while(n ...
- Sat Jan 17, 2015 12:03 am
- Forum: Volume 7 (700-799)
- Topic: 796 - Critical Links
- Replies: 54
- Views: 32373
Re: 796 - Critical Links
//someone help me please pleaseeeeeeee
// i am getting WA and prove all the test cases and the output is correct in this post but UVa gives me a WA
// somebody could tell me pleaseeeee
#include <cstdio>
#include <stack>
#include <vector>
#include <algorithm>
using namespace std;
#define SZ 100 ...
// i am getting WA and prove all the test cases and the output is correct in this post but UVa gives me a WA
// somebody could tell me pleaseeeee
#include <cstdio>
#include <stack>
#include <vector>
#include <algorithm>
using namespace std;
#define SZ 100 ...