Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #include <string.h>
  5. #include <algorithm>
  6. #include <vector>
  7. #include <string>
  8. #include <stack>
  9. #include <queue>
  10. #include <set>
  11. #include <map>
  12. #include <iostream>
  13. #include <functional>
  14. #include <time.h>
  15. #include <cmath>
  16. #include <deque>
  17.  
  18. using namespace std;
  19.  
  20. #define ll long long
  21. #define mp make_pair
  22. #define pb push_back
  23. #define ld long double
  24. #pragma comment(linker, "/STACK:36777216")
  25.  
  26.  
  27.  
  28. ll EPS = 1000000007;
  29. double PI = 3.14159265358979323846;
  30. const int MAXN = 1000010;
  31.  
  32.  
  33. ll abss(ll h)
  34. {
  35. if (h < 0)
  36. {
  37. return -h;
  38. }
  39. return h;
  40. }
  41.  
  42. __int64 ceill(__int64 x, __int64 y)
  43. {
  44. if (x % y != 0)
  45. {
  46. return (x / y) + 1;
  47. }
  48. return x / y;
  49. }
  50.  
  51.  
  52. int n, m, k;
  53.  
  54. ll a[MAXN * 10];
  55. ll b[MAXN];
  56.  
  57.  
  58. const int c[100] = {2, 3, 4, 6, 8, 10, 16, 18, 20, 28, 32, 64, 104, 128, 136, 256, 464, 496, 512,
  59. 650, 1024, 1952, 2048, 4096, 8128, 8192, 16384, 32768, 32896, 65536, 130304, 131072, 262144, 522752, 524288};
  60.  
  61. char q[100];
  62.  
  63. int main()
  64. {
  65. // freopen("strings1.txt", "r", stdin);
  66. //freopen("strings.txt", "w", stdout);
  67. int l, r;
  68. cin >> l >> r;
  69. int count = 0;
  70. for (int i = 0; i <= 37; i++)
  71. {
  72. if (c[i] >= l && c[i] <= r)
  73. {
  74. count++;
  75. }
  76. }
  77. cout << count;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement