답안 #1114563

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1114563 2024-11-19T08:02:35 Z NotLinux Mensza (COI22_mensza) C++17
0 / 100
3222 ms 27216 KB
// 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;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 17 ms 892 KB Wrong answer on query 1: expected B, found A
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1587 ms 2624 KB Wrong answer on query 1: expected B, found A
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3222 ms 27216 KB Wrong answer on query 1: expected B, found A
2 Halted 0 ms 0 KB -