Codeforces Round #426 (Div. 2), problem: (C) The Meaningless Game Solution In C/C++

By |2017-08-04T12:27:39+00:00August 4th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <bits/stdc++.h> using namespace std; int main() { ios_base :: sync_with_stdio(0), cin.tie(0), cout.tie(0); int n; long long int a,b,g; cin >> n; while (n--) { cin >> a >> b; g = round(pow(a * b, 1.0 / 3)); if (a % g == 0 [...]