제출 #148262

#제출 시각아이디문제언어결과실행 시간메모리
148262요까할 로뭘 은명팀 1 (#201)체스판 네모네모로직 (FXCUP4_nonogram)C++17
25 / 100
7 ms512 KiB
#include "nonogram.h"
#include <bits/stdc++.h>
using namespace std;

std::vector<std::vector<int>> SolveNonogram(int n, int m, std::vector<std::vector<int>> r, std::vector<std::vector<int>> c) {
    vector<vector<int> > a(n);
    for(int i = 0;i < n;i++)
    {
        int k = 0,cn;
        for(int j : r[i])
        {
            for(cn = 0;cn < j;k++,cn++)
            {
                a[i].push_back(1);
            }
            if(k != m) a[i].push_back(0);
            k++;
        }
    }
    return a;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...