Submission #1114563

#TimeUsernameProblemLanguageResultExecution timeMemory
1114563NotLinuxMensza (COI22_mensza)C++17
0 / 100
3222 ms27216 KiB
// Author : FatihCihan #include <bits/stdc++.h> using namespace std; #define all(v) v.begin() , v.end() #define sz(a) (int)a.size() void solve(){ int l,q; cin >> l >> q; while(q--){ string str; cin >> str; if(str[0] == 'a'){ int a; cin >> a; cout << 2 << " " << a << " " << a << endl; } else if(str[0] == 'b'){ int b; cin >> b; cout << 1 << " " << b << endl; } else{ int lc; cin >> lc; vector < int > v(lc); for(int i = 0;i<sz(v);i++)cin >> v[i]; cout << (v[0] == 1 ? "A" : "B") << endl; } } } signed main(){ ios_base::sync_with_stdio(0);cin.tie(0); int testcase = 1;//cin >> testcase; while(testcase--)solve(); cerr << 1000.0 * clock() / CLOCKS_PER_SEC << " ms" << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...