This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
const ld E = 1e-9;
const int N = 1010;
ll h, g;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
#ifdef _LOCAL
freopen("in.txt","r",stdin);
#endif // _LOCAL
int qq; cin >> qq;
for (; qq; qq--){
cin >> g >> h;
// if (g == h){
// cout << g << " " << g << '\n';
// continue;
// }
//
// if (h == 2){
// cout << g + g << " " << g << '\n';
// continue;
// }
//
// if (h * h == g){
// cout << h * h * h << " " << h * h << '\n';
// continue;
// }
//
// return -1;
cout << g << " " << h * g << '\n';
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |