제출 #1136449

#제출 시각아이디문제언어결과실행 시간메모리
1136449mychecksedad미술 수업 (IOI13_artclass)C++20
4 / 100
31 ms3356 KiB
#include "artclass.h" #include<bits/stdc++.h> using namespace std; #define ll long long int #define MOD1 (1000000000+7) #define MOD (998244353) #define pb push_back #define all(x) x.begin(), x.end() #define en cout << '\n' #define ff first #define ss second #define pii pair<int,int> #define vi vector<int> const int N = 1e6+100, M = 1e5+10, K = 52, MX = 30; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { ll red = 0, blue = 0, green = 0, white = 0; for(int i = 0; i < 500; ++i) for(int j = 0; j < 500; ++j) red += R[i][j]; for(int i = 0; i < 500; ++i) for(int j = 0; j < 500; ++j) green += G[i][j]; for(int i = 0; i < 500; ++i) for(int j = 0; j < 500; ++j) blue += B[i][j]; for(int i = 0; i < 500; ++i) for(int j = 0; j < 500; ++j) white += (B[i][j] >= 100 && G[i][j] >= 100 && R[i][j] >= 100); ll s = red + blue + green; // cout << red << ' ' << blue << ' ' << green << ' ' << s << ' ' << 500*500*3*150 << '\n'; if(white > 500*500/2) return 1; return 4; }
#Verdict Execution timeMemoryGrader output
Fetching results...