hiho week 281 register

Ended

Participants:68

Verdict:Accepted
Score:100 / 100
Submitted:2019-11-21 18:19:05

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<cmath>
#include<iomanip>
#include<string>
#include<vector>
#include<time.h>
using namespace std;
long int res[1000][21][803];
inline long int min(long int a,long int b)
{
    return a < b ? a : b;
}
int fab1(int a)
{
    if (a >= 0)
        return a;
    return -a;
}
int w(int i, int k,const int bob[])
{
    int flag = 0;
    if (k >= 401)
    {
        flag = 1;
        k %= 401;
    }
    k = k - 200;
    int temp=0;
    i *= 3;
    temp += fab1(bob[i] - k);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX