This is my profile on Typeracer, i've completed 1980 race :D but still not that fast typist. if you already have a profile or sign up and take a race then share your profile or speed, just for having some fun :-)
good luck and have some fun
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
This is my profile on Typeracer, i've completed 1980 race :D but still not that fast typist. if you already have a profile or sign up and take a race then share your profile or speed, just for having some fun :-)
good luck and have some fun
Is this an incoming seven days contest or it's just a mistake ?!!
This is somehow far from competitive programming but recently I'm trying to get enrolled in a summer of code project with boost library ( an open source C++ library ), to get enrolled in the boost summer of code projects requires a competency test, mine was writing a simple C++11 vector-like class.
I've written an std::vector like class but not with all methods like that of the STL (it's not required to fully complete the class), so it would be appreciated to give any feedback about my code and tell me if any issues are found.
Thanks in advance :)
I have been solving this problem, but i don't know what is wrong with my submission.
#include <unordered_map>
#include <cstring>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cassert>
#include <unordered_set>
using namespace std;
const int N = 101, inf = 1e9;
char a[N], b[N];
int f[N][N][N], n, m;
int dp(int i, int j, int k, int val) {
if (i < 0 || j < 0)
return -inf;
if (k == 0)
return val;
int &ret = f[i][j][k];
if (ret + 1)
return ret;
ret = 0;
if (a[i] == b[j])
ret = max(ret, dp(i - 1, j - 1, k - 1, val + a[i]));
else {
ret = max(ret, dp(i - 1, j, k, val));
ret = max(ret, dp(i, j - 1, k, val));
}
return ret;
}
int main(void) {
#ifdef DEBUG
freopen("in.txt", "r", stdin);
// freopen("o.txt", 'w', stdout);
#endif
int tc, k;
for (scanf("%d", &tc); tc--; ) {
scanf("%s %s %d", a, b, &k);
n = (int)strlen(a), m = (int)strlen(b);
memset(f, -1, sizeof(f));
printf("%d\n", dp(n - 1, m - 1, k, 0));
}
return 0;
}
currently i'm trying to change gedit settings in order to be more capable of compiling, running, automatically inserting templates... etc. the problem is i don't know how to change the settings i searched the web and find zillions of answers but still can't configure the settings!
any help would be pleased :)
thanks in advance :-)
trying to increase the stack size while running c++ code from terminal, i tried google and get gcc -Wl,--stack,200000000 and also g++ -Wl,--stack,200000000 i tried to write these through the terminal but i get something like cannot find and error and fatal error, any help please!
thanks in advance
UP solved
while solving a certain problem in c++, I tried to see the execution time on my pc.
Running the program on the terminal and mingwG++ gives time 0.14, while running it through visual studio it gives me 3.874!!!!!
please can anyone explain me this phenomenon, why there is such a great difference between both executions ?!
thanks in advance.
please can anyone explain to me why we use combinations in such problems like problem D ?!
thanks in advance and happy new year :-)
may be some of you know how to collect all contests in one calender, i've found this site with this calender, just click on +google calender in the bottom right of the calender in the site and it's all yours and will be synchronized automatically with all contest from codeforces, hackerrank, topcoder, timus, codechef and googlejam i think.
happy coding!
I do believe in books and practicing alot depending on my own, that's how i started tell now. But it turns that books, practicing alot and a coach the three together is the fastest method to do better quickly.
I need a coach to train me and give me that advices that would make me better and better and grow faster in competitive programming. Is there anyone willing to help me ?
thanks in advance..
UP: fortunately i had found one :-)
I'm new to dynamic programming, I had been reading this book but don't know if it a good resource for learning dynamic programming approaches, so if any one had any book (not a tutorial 'please') on dynamic programming please tell me..
thanks in advance!
I'm solving this problem but there is a little problem for first test case my solution on visual studio returns (2 6) the right answer. after submitting i get wrong answer on test case 1!! getting (1 6) either than (2 6). here is my code please can any one tell me what's the problem?!! thanks in advance!
any one can help me with this Problem from spoj. I have tried zillions time. once I used 3D bfs getting wrong answer then using 2D bfs getting between wrong answer and time limit.
thanks in advance!
Name |
---|