Search found 6 matches

by mrbrett
Wed Mar 24, 2004 2:50 pm
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

Here is the status of my code now. With all the corrections suggested. But still get WA.

[c]#include <stdio.h>
#include <math.h>
#define MAX 100

int main()
{
double a[MAX][MAX],b[MAX][MAX],c[MAX][MAX];
double d,m;
int i,j,k,p,n=0;

while(scanf("%d",&n))
{
if(n==0) return(1);
p=1;
for(i=0;i ...
by mrbrett
Tue Mar 16, 2004 10:01 pm
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

Ok, I've changed that.
But what's the matter then?
by mrbrett
Tue Mar 16, 2004 12:10 pm
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

I've read on another thread that that case should be not possible.
I've tried with that case answering 0.200000, but still get WA.
by mrbrett
Tue Mar 16, 2004 2:06 am
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

Ok, i've tried with the epsilon and I still got WA. If I change the type from float to double, fails all. Even the sample tests are correct.

Here my sample inputs:
2
1 2
2 1

2
1 2
2 1

4
1 0 0 0
0 1 0 0
0 0 0 1
0 0 1 0

10
9.5013 6.1543 0.5789 0.1527 8.3812 1.9343 4.9655 7.2711 7.9482 1.3652
2 ...
by mrbrett
Thu Mar 11, 2004 9:37 pm
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

what is an epsilon?
by mrbrett
Thu Mar 11, 2004 6:31 pm
Forum: Volume 105 (10500-10599)
Topic: 10524 - Matrix Reloaded
Replies: 41
Views: 7696

10524 -Matriz Reloaded WA :(

I've tried my code with all test inputs and outputs found in this board, but i still get WA.
What happens to this code? How can I get AC?

[c]#include <stdio.h>

# define MAX 100

int main()
{
float a[MAX][MAX],b[MAX][MAX],c[MAX][MAX];
float d,m;
int i,j,k,p,n=0;

while(scanf("%d",&n))
{
if(n ...

Go to advanced search