hiho week 137 register

Ended

Participants:293

Verdict:Accepted
Score:100 / 100
Submitted:2017-02-11 22:37:11

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 <stdio.h>
#include <math.h>
#include <string.h>
using namespace std;
#define maxn 100
typedef long long ll;
int main()
{
    int Q;
    scanf("%d",&Q);
    while(Q--){
        int N,M,K,T,A[maxn],B[maxn],i;
        ll f[10005];
        scanf("%d%d%d%d",&N,&M,&K,&T);
        for(i=0;i<M;++i){
            scanf("%d",&A[i]);
        }
        for(i=0;i<M;++i){
            scanf("%d",&B[i]);
        }
        ll res = 0;
        for(i=0;i<N;++i){
            memset(f,0x3f,sizeof(f));
            f[0] = 0;
            ll flag = 0;
            int t;
            for(int j=0;j<M;++j){
                for(int k=0;k<K;++k){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX