#include<iostream> #include<vector> #include<algorithm> #include<string> #include<climits> #include<cmath> #include<map> #include<set> #include<queue> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int k, s; cin >> k >> s; if (k > s) swap(k, s); for (int j = k; j <= s; j++) { cout << j << " frogs have " << j << " mouths, " << j * 2 << " eyes and " << j * 4 << " legs, jump into the water with splash splash." << endl; } } } |
Double click to view unformatted code.