thank u!!!
i found where the problem lies and fixed it.
"1" is not a real constant...
Search found 33 matches
- Sat Oct 12, 2002 7:43 am
- Forum: Volume 3 (300-399)
- Topic: 325 - Identifying Legal Pascal Real Constants
- Replies: 63
- Views: 23721
- Tue Sep 17, 2002 8:03 am
- Forum: Volume 3 (300-399)
- Topic: 325 - Identifying Legal Pascal Real Constants
- Replies: 63
- Views: 23721
325 DFA? WHY WA?
It's just a simple DFA problem but the judge gave me WA. Please help me. #include <iostream> using namespace std; char str[1000]; int trans[8][4] = { {1,2,9,9}, {9,2,9,9}, {9,2,3,5}, {9,4,9,9}, {9,4,9,5}, {6,7,9,9}, {9,7,9,9}, {9,7,9,9} }; int getMap (char c) { switch (c) { case '+': case '-': retur...
- Sun Sep 01, 2002 3:32 pm
- Forum: General
- Topic: The problem with green colour ? What's it?
- Replies: 1
- Views: 1489
- Sat Aug 31, 2002 5:36 am
- Forum: Volume 1 (100-199)
- Topic: 166 - Making Change
- Replies: 31
- Views: 11038
Code: Select all
for
for
for {
}
eg. the Floyd algorithm is a typical/classic 3D DP :lol:
such as matrix chain multipulation (problem 348, i used both recursion and iteration)...
good luck~
- Sat Aug 31, 2002 5:15 am
- Forum: Volume 1 (100-199)
- Topic: 166 - Making Change
- Replies: 31
- Views: 11038
- Sat Aug 31, 2002 5:10 am
- Forum: Volume 1 (100-199)
- Topic: 127 - "Accordian" Patience
- Replies: 83
- Views: 19461
- Sat Aug 31, 2002 5:09 am
- Forum: Volume 1 (100-199)
- Topic: 166 - Making Change
- Replies: 31
- Views: 11038
Code: Select all
dynamic programming
Code: Select all
branch and bound
- Fri Aug 30, 2002 6:05 am
- Forum: Volume 1 (100-199)
- Topic: 188 - Perfect Hash
- Replies: 9
- Views: 7088
- Thu Aug 29, 2002 5:35 am
- Forum: Volume 1 (100-199)
- Topic: 127 - "Accordian" Patience
- Replies: 83
- Views: 19461
p127 why TLE?
:cry: i don't think my code will gimme TLE... any one help pls thx in advance [cpp] #include <iostream> #include <string.h> #include <list> using namespace std; typedef struct { char c[2]; } card_t; typedef struct { list<card_t> card; } stack_t; list<stack_t> li; char str[1000],tmp[1000],*p; bool in...
- Wed Aug 28, 2002 5:34 am
- Forum: Volume 5 (500-599)
- Topic: 554 - Caesar Cypher
- Replies: 27
- Views: 14743
i got AC (not PE). there's a trick. if your output have linewraps, you should omit leading blanks in the following line. [cpp] eg. bla bla XXXX...XXXXXX bla bla bla <-- then linewrap bla bla ... <-- the following line may has leading blanks, just leave out the blanks like this bla bla XXXX...XXXXXX ...
- Sat Aug 24, 2002 8:51 am
- Forum: Volume 2 (200-299)
- Topic: 218 - Moth Eradication
- Replies: 60
- Views: 18207
218 - Moth Eradication
i try to use graham scan to solve this prob. but get WA... any one help pls. thx in advance [cpp] #include <iostream> #include <memory.h> #include <stdlib.h> #include <math.h> using namespace std; const int MAX_PT = 2000; typedef struct { double x,y; } point_t; point_t pt[MAX_PT]; int st[MAX_PT]; in...
- Wed Aug 21, 2002 3:15 am
- Forum: Volume 2 (200-299)
- Topic: 208 - Firetruck
- Replies: 48
- Views: 23305
- Tue Aug 20, 2002 1:21 pm
- Forum: Volume 1 (100-199)
- Topic: 184 - Laser Lines
- Replies: 15
- Views: 3752
184 help~~~~
i cannot find the problem with my code~ [cpp] #include <iostream> #include <iomanip> #include <memory.h> #include <stdlib.h> #include <math.h> typedef struct { int x,y; } point_t; point_t pt[300]; int num,used[300][300]; const double VERT = 1e30; inline int cmp (const void *a,const void *b) { point_...
- Sun Aug 18, 2002 4:08 am
- Forum: Volume 7 (700-799)
- Topic: 758 - The Same Game
- Replies: 7
- Views: 5316
- Sat Aug 17, 2002 12:59 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10261 - Ferry Loading
- Replies: 41
- Views: 25656