fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. cout << "Page: " << (n-1)/9 + 1 << " . Slot: " <<n - ((n-1)/9)*9;
  8. }
Success #stdin #stdout 0.01s 5320KB
stdin
746
stdout
Page: 83 . Slot: 8