Search found 14 matches
- Thu Aug 10, 2006 10:36 pm
- Forum: Algorithms
- Topic: minimum edge for deletion
- Replies: 21
- Views: 9109
- Thu Aug 10, 2006 7:10 pm
- Forum: Algorithms
- Topic: minimum edge for deletion
- Replies: 21
- Views: 9109
- Tue May 09, 2006 4:05 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
- Mon May 08, 2006 6:26 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
- Mon May 08, 2006 2:27 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
My modified code:
Code: Select all
/*** CUTTED ***/
- Mon May 08, 2006 9:23 am
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
- Sun May 07, 2006 4:17 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
Fix
Hello, mf!
Thank you for the reply. I fixed my main function, but it's still TLE.
I tested big integers now, it's secondary fast.
Any ideas?
Thank you for the reply. I fixed my main function, but it's still TLE.
I tested big integers now, it's secondary fast.
Code: Select all
/*** CUTTED ***/
- Sun May 07, 2006 1:23 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10311 - Goldbach and Euler
- Replies: 98
- Views: 33773
10311 TLE with optimized sieve
Hi all!
Well, I was searching around for sieve optimisation, and i was found it here:
http://online-judge.uva.es/board/viewtopic.php?p=6457&highlight=#6457
I implemet this, but I got TLE (> 30sec). It works perfect at me.
Here is the code:
#include <cstdio>
using namespace std;
#define MAX ...
Well, I was searching around for sieve optimisation, and i was found it here:
http://online-judge.uva.es/board/viewtopic.php?p=6457&highlight=#6457
I implemet this, but I got TLE (> 30sec). It works perfect at me.
Here is the code:
#include <cstdio>
using namespace std;
#define MAX ...
- Sun Apr 09, 2006 2:28 pm
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56857
727 -- Equation Problems (WA)
Hello everybody!
I'm stuck in 727. My program passes all sample inputs on the boards. And i dont know where is the problem. Can anybodu help me?
#include <vector>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
/// FILE* fi ...
I'm stuck in 727. My program passes all sample inputs on the boards. And i dont know where is the problem. Can anybodu help me?
#include <vector>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
/// FILE* fi ...
- Mon Jan 16, 2006 8:29 pm
- Forum: Volume 3 (300-399)
- Topic: 392 - Polynomial Showdown
- Replies: 93
- Views: 31733
Thank you!
I got AC! Thank you very much, Solaris!
- Sun Jan 15, 2006 8:21 pm
- Forum: Volume 3 (300-399)
- Topic: 392 - Polynomial Showdown
- Replies: 93
- Views: 31733
392 WA
Hello!
What is wrong with my code?
It passes all test data I found on this forum.
What is wrong with my code?
It passes all test data I found on this forum.
Code: Select all
REMOVED
- Wed Nov 23, 2005 8:46 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10042 - Smith Numbers
- Replies: 75
- Views: 33541
- Tue Nov 22, 2005 8:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10042 - Smith Numbers
- Replies: 75
- Views: 33541
10042 WA
Hello!
I have problems with my program :). Can anybody tell me what's wrong in the code. I use algorithm from Programming Challenges.
// 10042: Smith numbers
#include <cmath>
#include <iostream>
using namespace std;
typedef unsigned long inte;
inte sum (inte n)
{
inte r = 0;
while (n ...
I have problems with my program :). Can anybody tell me what's wrong in the code. I use algorithm from Programming Challenges.
// 10042: Smith numbers
#include <cmath>
#include <iostream>
using namespace std;
typedef unsigned long inte;
inte sum (inte n)
{
inte r = 0;
while (n ...
- Wed Mar 16, 2005 6:20 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10530 - Guessing Game
- Replies: 57
- Views: 36958