Does anybody have any tricky data to 10535?
I know that my code is quite long. I added a lot of debugging data to it.
I have tried to rewrite my code a few times. But I still get WA.
[cpp]
#include <cstdio>
#include <set>
#include <map>
#include <math.h>
#include <assert.h>
#include <vector ...
Search found 49 matches
- Fri Jul 09, 2004 2:53 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10535 - Shooter
- Replies: 25
- Views: 56332
- Fri Jul 09, 2004 10:37 am
- Forum: Volume 105 (10500-10599)
- Topic: 10535 - Shooter
- Replies: 25
- Views: 56332
- Sun Feb 08, 2004 2:55 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10104 - Euclid Problem
- Replies: 29
- Views: 15599
- Wed Feb 04, 2004 5:32 pm
- Forum: Volume 1 (100-199)
- Topic: 175 - Keywords
- Replies: 13
- Views: 5564
- Sun Feb 01, 2004 11:41 am
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50874
- Sun Feb 01, 2004 12:34 am
- Forum: C++
- Topic: long long with printf
- Replies: 5
- Views: 2847
long long with printf
I tried to use: printf("%lld,r); and printf("%I64d,r); to print long longer but it doesn't work on acm 
int main()
{
long long r = 12345678901234LL;
printf("%lld,r);
}

int main()
{
long long r = 12345678901234LL;
printf("%lld,r);
}
- Sat Jan 31, 2004 5:51 pm
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50874
147 why do i get WA?
I can't figure it out why i am getting WA
maybe it is IO problem?
[cpp]
#include <stdio.h>
#define MAXV 8000
#define NCOINS 11
int main( void ) {
int i, j, k;
int coins[] = { 1, 2, 4, 10, 20, 40, 100, 200, 400, 1000, 2000 };
unsigned long d[MAXV+1][NCOINS];
for(i = 0; i <= MAXV; ++i ...
maybe it is IO problem?
[cpp]
#include <stdio.h>
#define MAXV 8000
#define NCOINS 11
int main( void ) {
int i, j, k;
int coins[] = { 1, 2, 4, 10, 20, 40, 100, 200, 400, 1000, 2000 };
unsigned long d[MAXV+1][NCOINS];
for(i = 0; i <= MAXV; ++i ...
- Thu Jan 29, 2004 10:26 am
- Forum: Volume 1 (100-199)
- Topic: 130 - Roman Roulette
- Replies: 25
- Views: 5407
- Thu Jan 29, 2004 12:21 am
- Forum: Volume 1 (100-199)
- Topic: 130 - Roman Roulette
- Replies: 25
- Views: 5407
problem 130
i completly don't understand this problem.
In case n = 5 k = 2 i =1
Why the order is 2,5,3,1?
Should it be 2,4,1,5 ?
In case n = 5 k = 2 i =1
Why the order is 2,5,3,1?
Should it be 2,4,1,5 ?
- Sat Feb 01, 2003 8:46 pm
- Forum: Pascal
- Topic: 64 bit integer in pascal
- Replies: 2
- Views: 5207
64 bit integer in pascal
How to use 64 bit integer in pascal?
- Sat Feb 01, 2003 1:28 am
- Forum: Java
- Topic: speed of java and c++
- Replies: 20
- Views: 11846
speed of java and c++
Hi
Does anybody know how many times on average is c++ faster than java?
Is 2, 10, 100 or maybe 1000 times??
Does anybody know how many times on average is c++ faster than java?
Is 2, 10, 100 or maybe 1000 times??
- Wed Dec 18, 2002 1:14 pm
- Forum: Algorithms
- Topic: How to generate unique permutation
- Replies: 2
- Views: 3261
Hi
Why don't you use stl buildin next_permutation libiary?
for example
http://www.sgi.com/tech/stl/next_permutation.html
Why don't you use stl buildin next_permutation libiary?
for example
http://www.sgi.com/tech/stl/next_permutation.html
- Fri Dec 13, 2002 11:57 am
- Forum: Volume 101 (10100-10199)
- Topic: 10126 - Zipf's Law
- Replies: 36
- Views: 12814
- Thu Dec 12, 2002 10:00 pm
- Forum: Volume 1 (100-199)
- Topic: 152 - Tree's a Crowd
- Replies: 30
- Views: 7036
152 - Tree's a Crowd
Is there any metod faster than O(N^2)?
I think that i can put all trees in table, and give them value
x + y + z, then sort them so I woulnd't have do in average case N * N compations, it should be in best case 20 times lover.
I think that i can put all trees in table, and give them value
x + y + z, then sort them so I woulnd't have do in average case N * N compations, it should be in best case 20 times lover.
- Thu Dec 12, 2002 5:45 pm
- Forum: Volume 1 (100-199)
- Topic: 109 - SCUD Busters
- Replies: 96
- Views: 36908