Search found 7 matches
- Thu Nov 07, 2002 2:41 am
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40692
333 - ISBN format question
About the ISBN parser: What is it supposed to do if more than 10 digits appear in the input? Say "invalid ISBN"? or regard only the first 10 digits and proceed as normal?
- Fri Nov 01, 2002 1:50 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
re WA
yeah, still... can the c = getchar(); after the scanf("%d", &worldsize); be a problem? maybe use fflush(stdin) instead? hmm...
- Sun Oct 27, 2002 5:32 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116609
...
u should reset switcher to zero at the beginning of the while loop, else it will print wrong BGC combinations.
- Sun Oct 27, 2002 1:55 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
still...
well I added a a<0 or b<0 check to my functions, but still it's saying wrong answer 

- Sat Oct 26, 2002 7:42 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
101 output format
Hi,
I'm a little unsure about the output format for problem #101. The example looks like the position numbers consist of 2 digits, like
[c]printf("%2i:", pos);[/c]
is that correct or does it have to be
[c]printf("%i:", pos);[/c] ?
I'm a little unsure about the output format for problem #101. The example looks like the position numbers consist of 2 digits, like
[c]printf("%2i:", pos);[/c]
is that correct or does it have to be
[c]printf("%i:", pos);[/c] ?
- Sat Oct 26, 2002 3:49 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
101 - WA though it works fine on example data
Hi,
I don't quite understand why I get a WA error with this code: (works perfectly with the example input)
[c]
/* @JUDGE_ID: 21775WY 101 C */
/* Problem Number 101 */
/* Robert Spielmann (Archer)*/
/* rsp@byteforge.org */
void m_onto(int ii, int jj);
void m_over(int ii, int jj);
void p_onto(int ii ...
I don't quite understand why I get a WA error with this code: (works perfectly with the example input)
[c]
/* @JUDGE_ID: 21775WY 101 C */
/* Problem Number 101 */
/* Robert Spielmann (Archer)*/
/* rsp@byteforge.org */
void m_onto(int ii, int jj);
void m_over(int ii, int jj);
void p_onto(int ii ...
- Tue Oct 22, 2002 11:56 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
101 - pile a over b
Hi,
following problem: what does pile a over b do if b is in the stack above a?
Example: (from the problem example data)
after the move instructions, I have:
0: 0
1: 1 9 8 7 6
2: 2
3: 3
4: 4
5: 5
6: 6
7:
8:
9:
The next command is "pile 8 over 6", but 6 is in the stack containing 8. So how is the ...
following problem: what does pile a over b do if b is in the stack above a?
Example: (from the problem example data)
after the move instructions, I have:
0: 0
1: 1 9 8 7 6
2: 2
3: 3
4: 4
5: 5
6: 6
7:
8:
9:
The next command is "pile 8 over 6", but 6 is in the stack containing 8. So how is the ...