Submission #959752

# Submission time Handle Problem Language Result Execution time Memory
959752 2024-04-09T03:03:59 Z Darren0724 Mensza (COI22_mensza) C++17
11 / 100
5000 ms 463760 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;

int32_t main() {
    LCBorz;
    int l,q;cin>>l>>q;
    for(int i=0;i<q;i++){
        string s;cin>>s;
        if(s[0]=='a'){
            int k;cin>>k;
            cout<<k<<' ';
            for(int j=1;j<=k;j++){
                cout<<j<<' ';
            }
            cout<<endl;
        }
        if(s[0]=='b'){
            int k;cin>>k;
            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[j];
            }
            if(a[0]==1){
                cout<<'A'<<endl;
            }
            else{
                cout<<'B'<<endl;
            }
        }
    }
    
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 37 ms 736 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 73 ms 5956 KB Integer parameter [name=l_112] equals to 112, violates the range [0, 110]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5018 ms 463760 KB Time limit exceeded
2 Halted 0 ms 0 KB -