Guest User

Untitled

a guest
Jan 16th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. int f1(int x) {
  2. switch(x) {
  3. case 10: return 3;
  4. case 37: return 1;
  5. case 96: return 0;
  6. case 104: return 1;
  7. }
  8. assert(...);
  9. }
  10.  
  11. int f2(int x) {
  12. // P(x) = (x - 70)^2 / 1000
  13. int q = x - 70;
  14. return (q * q) >> 10;
  15. }
Add Comment
Please, Sign In to add comment