제출 #1357297

#제출 시각아이디문제언어결과실행 시간메모리
1357297mxhrvsMonster-Go (EGOI25_monstergo)C++20
8 / 100
1 ms344 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);

    int n;
    cin >> n;

    const int m = 50;
    const int k = 12;

    for (int i = 0; i < n; ++i) {
        vector<int> v;
        
        int s = (i * 12) % m;

       
        for (int j = 0; j < k; ++j) {
            int a = (s + j) % m;
            v.push_back(a);
        }

        sort(v.begin(), v.end());

        for (int i = 0; i < k; ++i) {
            cout << v[i] << " ";
        }
        cout << "\n";
    }

    return 0;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…