The topic description
X Planet Daily is the same as our Earth’s City Morning Post, which is just a few separate sheets of paper stacked together. There are 4 plates printed on each sheet.
For example, if a newspaper contains 4 pages: 5, 6, 11, 12, it can be determined that it should be the second newspaper at the top.
We found a newspaper on Planet X in space. The 4 page numbers are: 1125
, 1126 , 1727 , and 1728. Please calculate the total number of pages in this newspaper (that is, the maximum page number, not a few sheets of paper) ?
Output
Please fill in the number indicating the total number of pages.
A newspaper, let the maximum number of pages plus the minimum number of pages, minus one
#include <iostream>
using namespace std;
int main(){
cout << 1728 + 1125 - 1 << endl;
return 0;
}