답안 #963968

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963968 2024-04-16T06:07:17 Z becaido Mensza (COI22_mensza) C++17
0 / 100
5000 ms 454720 KB
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx,popcnt,sse4,abm")
#include <bits/stdc++.h>
using namespace std;

#ifdef WAIMAI
#define debug(HEHE...) cout << "[" << #HEHE << "] : ", dout(HEHE)
void dout() {cout << '\n';}
template<typename T, typename...U>
void dout(T t, U...u) {cout << t << (sizeof...(u) ? ", " : ""), dout(u...);}
#else
#define debug(...) 7122
#endif

#define ll long long
#define Waimai ios::sync_with_stdio(false), cin.tie(0)
#define FOR(x,a,b) for (int x = a, I = b; x <= I; x++)
#define pb emplace_back
#define F first
#define S second

int len, q;

void solve() {
    cin >> len >> q;
    while (q--) {
        string s;
        cin >> s;
        if (s[0] == 'a' || s[0] == 'b') {
            int x;
            cin >> x;
            cout << x << ' ';
            FOR (i, 1, x) cout << x << " \n"[i == x];
        } else {
            int n, a, b;
            cin >> n >> a >> b;
            cout << b << '\n';
        }
    }
}

int main() {
    Waimai;
    solve();
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 724 KB Token "2" doesn't correspond to pattern "A|B"
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 64 ms 4432 KB Integer parameter [name=l_221] equals to 111, violates the range [0, 110]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 5025 ms 454720 KB Time limit exceeded
2 Halted 0 ms 0 KB -