hiho week 56 register

Ended

Participants:489

Verdict:Accepted
Score:100 / 100
Submitted:2015-07-27 19:37:46

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 <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
#define eps (1e-6)
bool fflag;
int n,m;
const int bign = 1005;
double a[bign][bign],c[bign],tmp[bign];
int ansarr[bign];
void myswap(int i,int j)
{
    if(i == j)
        return;
    memcpy(tmp,a[i],n*sizeof(double));
    memcpy(a[i],a[j],n*sizeof(double));
    memcpy(a[j],tmp,n*sizeof(double));
    c[i] += c[j];
    c[j] = c[i] - c[j];
    c[i] -= c[j];
}
int main()
{
    scanf("%d%d",&n,&m);
    fflag = false;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX