B.cpp 224 B

1234567891011121314
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4. int n;
  5. cin >> n;
  6. if (n < 256) {
  7. n += 256;
  8. }
  9. n = (n << 16) >> 16;
  10. n *= n;
  11. n = (n << 8) >> 16;
  12. cout << n << endl;
  13. return 0;
  14. }