Submission #756942

#TimeUsernameProblemLanguageResultExecution timeMemory
756942DJeniUpArt Class (IOI13_artclass)C++17
2 / 100
73 ms3856 KiB
#include "artclass.h"
#include "bits/stdc++.h"

using namespace std;

typedef int ll;

ll a,b,c;

int style(int N, int M, int R[500][500], int G[500][500], int B[500][500]) {
    for(int i=0;i<N;i++){
        for(int j=0;j<M;j++){
            a+=R[i][j];
            b+=G[i][j];
            c+=B[i][j];
        }
    }
    if(b>a || c>a)return 2;
    return 1;
}

#Verdict Execution timeMemoryGrader output
Fetching results...