题目要求
解决方案
#include <iostream>
#include <iomanip>
#include <vector>
using namespace std;
int main()
{
int radius;
int number = 0;
while (cin >> radius && radius != 0) {
int length, breadth;
cin >> length >> breadth;
number++;
if (radius * radius * 4 >= length * breadth) {
cout << "Pizza " << number << " fits on the table." << endl;
} else {
cout << "Pizza " << number << " does not fit on the table." << endl;
}
}
return 0;
}