답안 #520493

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
520493 2022-01-30T07:33:57 Z Vimmer MalnaRISC (COI21_malnarisc) C++14
0 / 100
2 ms 460 KB
#include <bits/stdc++.h>
#define in(x) freopen(x, "r", stdin)
#define out(x) freopen(x, "w", stdout)

//#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC optimize("-O3")

#define F first
#define S second
#define PB push_back
#define M ll(1e9 + 7)
#define sz(x) (ll)x.size()
#define N 1000500
#define pri(x) cout << x << endl
#define endl '\n'
#define all(x) (x).begin(), (x).end()
#define _ << " " <<

using namespace std;
//typedef tree <ll, null_type, less_equal <ll> , rb_tree_tag, tree_order_statistics_node_update> ordered_set;
//using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef short int si;
typedef unsigned long long ull;

int main()
{
    istream::sync_with_stdio(0); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int n;

    cin >> n;

    vector <pair <int, int> > vr; vr.clear();

    for (int i = n; i >= 2; i--)
        for (int j = 1; j < i; j++)
            vr.PB({j, i});

    pri(sz(vr));

    for (auto it : vr)
        pri("CMPSWP" _ it.F _ it.S);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 308 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 332 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 332 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 316 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 332 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 312 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 312 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 460 KB Token "1" doesn't correspond to pattern "R[0-9]{1,3}"
2 Halted 0 ms 0 KB -