Search found 5 matches

by Qbens
Sat Oct 16, 2004 4:43 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9220

3. Change

Code: Select all

case '`':
      return 'l';
for

Code: Select all

case '\'':
      return 'l';
I didn't noticed it at firs time ;]
by Qbens
Sat Oct 16, 2004 4:33 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9220

1. Change this:

Code: Select all

case '}':
      return 'p';
   case '{':
      return 'o';
for this:

Code: Select all

case ']':
      return 'p';
   case '[':
      return 'o';
2.Add this to function switch

Code: Select all

case ' ':
      return ' ';
Let my know you get AC
by Qbens
Sat Oct 16, 2004 3:46 am
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46538

Hm, I think problem isn't in <<endl; after cout . I submited something that: ..... while(!cin.eof()) { cin>>liczba1>>liczba2; if(liczba1<liczba2) { cout<<(liczba2-liczba1)<<endl; } if(liczba1>=liczba2) { cout<<(liczba1-liczba2)<<endl; } } and I recived WA. When I changed while(!cin.eof()) to while(c...
by Qbens
Sat Apr 24, 2004 2:20 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50306

I submited it via E-Mail. It is what I sent: [cpp] /* @JUDGE_ID: MY_ID 102 C */ @BEGIN_OF_SOURCE_CODE /******************* Solution to problem "Ecological Bin Packing" Volume I 102 Author: Qbens kuba_sko@tlen.pl date 22/04/2004 *******************/ #include <stdio.h> int main(void) { long green[3],c...
by Qbens
Sat Apr 24, 2004 1:52 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50306

Compile Error: 102

Can someone tell my what is wrong with my code: [cpp] #include <stdio.h> int main(void) { long green[3],clear[3],brown[3]; long temp[6]; char letters[19]={"BCGBGCCBGCGBGBCGCB"}; while(scanf("%D %D %D %D %D %D %D %D %D",&brown[0], &green[0],&clear[0],&brown[1],&green[1], &clear[1],&brown[2],&green[2]...

Go to advanced search