Codeforces Round 865 (Div. 2) 1816A Ian Visits Mary Solution
Problem Link : https://codeforces.com/contest/1816/problem/A
Solution in C++:
- /// Author : AH_Tonmoy
- #include <bits/stdc++.h>
- using namespace std;
- int32_t main() {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int t;
- cin >> t;
- while (t--) {
- int a, b;
- cin >> a >> b;
- cout << "2" << endl;
- cout << a - 1 << " "
- << "1" << endl;
- cout << a << " " << b << endl;
- }
- return 0;
- }
No comments