hiho week 56 register

Ended

Participants:489

Verdict:Accepted
Score:100 / 100
Submitted:2015-07-25 22:07:41

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 <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
inline int read()
{
    int x = 0, f = 1, t = getchar();
    while(t < 48 || t > 57) t == 45 ? f = -1 : 0, t = getchar();
    while(t > 47 && t < 58) x = (x << 1) + (x << 3) + t - 48, t = getchar();
    return x * f;
}
const int maxn = 505;
const int maxm = 1005;
const double eps = 1e-6;
int n, m;
double a[maxm][maxn], b[maxm];
int ans[maxn];
bool zero(double x)
{
    return fabs(x) < eps;
}
inline void Swap(const int x, const int y)
{
    if(x != y)
    {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX