11149 - Power of Matrix

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
avm
New poster
Posts: 33
Joined: Sat Aug 20, 2005 9:59 pm
Location: St. Petersburg

11149 - Power of Matrix

Post by avm »

PE issue.
Problem statement said:
Print a blank line after each case.
But there isn't blank line after last case in judge output.

contest_clarificator
Online Contest Administrator
Posts: 20
Joined: Fri Nov 30, 2001 2:00 am

Post by contest_clarificator »

Oh. Is it really so? The judge output file that I sent to UVa has a blank line after the last case. (I still have the file in hand.) Admins please have a look. Thanks.


And I don't mind if the problem description is changed to fit the current judge output, if you think this is more fair.

-- Mak Yan Kei (I set this task)

little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey »

Are you sure?
I print a blank line after every matrix, and get accepted w/o PE.:

Code: Select all

...
typedef struct{
   int _[64][64];
   }t_matrix;
   
int dim;

void print_matrix(t_matrix *m){
   int i,j;
   
   for(i=0;i<dim;i++){
      printf("%d",m->_[i][0]);
      for(j=1;j<dim;j++) printf(" %d",m->_[i][j]);
      printf("\n");
      }
   printf("\n");
   }
 ...

avm
New poster
Posts: 33
Joined: Sat Aug 20, 2005 9:59 pm
Location: St. Petersburg

Wrong report

Post by avm »

Sorry, I assume that input ends by two zeroes. But it doesn't.
I post message, because my AC code looks like:

Code: Select all

int main()
{
int t=0;
while(2==scanf("%d%d",&N,&k))
  {
  if (!N && !k) break;
  if(t++) puts("");
  Test();
  }
return 0;
}

Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

The problem description says:
Input is terminated by a case where n = 0. This case need NOT be processed.
Your input checks for both n and k to be 0, so it's not completely right. Both input and output look ok.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.

Locked

Return to “Bugs and suggestions”