Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f1(int x) {
- switch(x) {
- case 10: return 3;
- case 37: return 1;
- case 96: return 0;
- case 104: return 1;
- }
- assert(...);
- }
- int f2(int x) {
- // P(x) = (x - 70)^2 / 1000
- int q = x - 70;
- return (q * q) >> 10;
- }
Add Comment
Please, Sign In to add comment