hiho week 194 register

Ended

Participants:187

Verdict:Accepted
Score:100 / 100
Submitted:2018-03-22 18:47:30

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>
#define fbs 1e-6
using namespace std;
double a[3605][30];
double c[3605];
double ans[30];
int H,W,D;
int N,M;  //MN
void Swap(int i,int j)   //ij
{
    for(int k=1;k<=N;k++)
        swap(a[i][k],a[j][k]);
    swap(c[i],c[j]);
}
void Gauss()
{
    for(int i=1;i<=N;i++)  //
    {
        for(int j=i;j<=M;j++)
        {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX