Search found 8 matches
- Sun Mar 30, 2003 10:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10067 - Playing with Wheels
- Replies: 62
- Views: 26307
10067, playing with wheels
this is not a popular problem but i need some help. i represent every possible machine state as a vertex as an integer (0-9999) there s an edge between 2 vertices if one can reach the other by one click forbidden numbers are stored in a list to checked against validation. my approach is to do a brea...
- Sun Mar 02, 2003 10:12 am
- Forum: C++
- Topic: long long int ? help
- Replies: 3
- Views: 2791
--
works! thanks!
but how do u print it out?
eric
but how do u print it out?
eric
- Sat Mar 01, 2003 10:53 am
- Forum: C++
- Topic: long long int ? help
- Replies: 3
- Views: 2791
long long int ? help
from past posts, i saw discussion on using long long int
for example
[cpp]{
unsigned long long ull = 0xffffffffffffffff; // 18446744073709551615
[/cpp]
when i compiled this, i got error saying long followed by long s illegal,
is it problem w/ the compiler? plz help.[/cpp]
for example
[cpp]{
unsigned long long ull = 0xffffffffffffffff; // 18446744073709551615
[/cpp]
when i compiled this, i got error saying long followed by long s illegal,
is it problem w/ the compiler? plz help.[/cpp]
- Tue Feb 11, 2003 1:14 pm
- Forum: Java
- Topic: [ Java ] Useful methods to save time.
- Replies: 12
- Views: 11393
- Thu Feb 06, 2003 8:31 am
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 99098
10038, jolly jumper, max time limit exceed, help
it says i used too much time, totally stuck. [cpp] #include <iostream.h> int main() { int size, i; int ans; long dif; long arr[3001]; int check [3000]; while(true) { ans = 0; cin>>size; if (size ==0) ans = 1; for (i=1; i<=size; i++) cin>>arr ; for (i=1; i<=size-1; i++) check =0; for (i=2; i<=size &a...
- Fri Jan 31, 2003 1:33 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 217051
- Fri Jan 31, 2003 12:51 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 217051
- Thu Jan 30, 2003 10:37 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 217051
100, runtime error
can some body point me to the rite directn it works fine on my machine, for the sample cases error: Your program has died with signal 11 (SIGSEGV). Meaning: Invalid memory reference Before crash, it ran during 0.027 seconds. C++: #include <iostream.h> int arr[1000001] ; int get(int d) { if (arr[d]!=...