답안 #959746

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
959746 2024-04-09T02:56:21 Z Darren0724 Mensza (COI22_mensza) C++17
0 / 100
2 ms 992 KB
#include <bits/stdc++.h>
using namespace std;
#define LCBorz ios_base::sync_with_stdio(false); cin.tie(0);
#define int long long
#define all(x) x.begin(), x.end()
#define endl '\n'
const int N=200005;
const int INF=1e18;

int32_t main() {
    LCBorz;
    int q,l;cin>>q>>l;
    for(int i=0;i<q;i++){
        string s;cin>>s;
        if(s[0]=='a'){
            int k;cin>>k;
            while(k>100){}
            cout<<k<<' ';
            for(int j=1;j<=k;j++){
                cout<<j<<' ';
            }
            cout<<endl;
        }
        if(s[0]=='b'){
            int k;cin>>k;
            while(k>100){}
            cout<<k*2<<' ';
            for(int j=1;j<=k;j++){
                cout<<j<<' '<<j<<' ';
            }
            cout<<endl;
        }
        if(s[0]=='c'){
            int m;cin>>m;
            vector<int> a(m);
            for(int j=0;j<m;j++){
                cin>>a[i];
            }
            if(a[i]==1){
                cout<<'A'<<endl;
            }
            else{
                cout<<'B'<<endl;
            }
        }
    }
    
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 2 ms 992 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -