# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1114574 |
2024-11-19T08:11:52 Z |
SalihSahin |
Mensza (COI22_mensza) |
C++17 |
|
5000 ms |
463920 KB |
#include <bits/stdc++.h>
#define pb push_back
#define int long long
using namespace std;
const int inf = 1e15 + 10;
const int N = 1e5 + 5;
int32_t main(){
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int L;
cin>>L;
int q;
cin>>q;
while(q--){
string s;
cin>>s;
if(s[0] == 'a'){
int a;
cin>>a;
int la = a;
for(int i = 1; i <= la; i++){
cout<<i<<" ";
}
cout<<endl;
}
else if(s[0] == 'b'){
int b;
cin>>b;
int lb = b*2;
for(int i = 1; i <= lb/2; i++){
cout<<i<<" ";
cout<<i<<" ";
}
cout<<endl;
}
else{
int cl;
cin>>cl;
vector<int> c(cl);
for(int i = 0; i < cl; i++){
cin>>c[i];
}
if(c[cl-1] == 2) cout<<"B"<<endl;
else cout<<"A"<<endl;
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
27 ms |
860 KB |
Wrong answer on query 2: expected B, found A |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
75 ms |
5960 KB |
Integer parameter [name=l_664] equals to 113, violates the range [0, 110] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
5069 ms |
463920 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |