Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <queue>
- #include <algorithm>
- #include <stdlib.h>
- #include <math.h>
- #include <vector>
- #include <map>
- #include <cstdio>
- #include <numeric>
- #include <cstdlib>
- #include <set>
- #include <ctime>
- #include <stack>
- #include <cstring>
- #include <sstream>
- #include <ctype.h>
- typedef long long ll;
- typedef unsigned long long ull;
- using namespace std;
- const double EPS = 1e-9;
- template<typename T> inline bool LESS(T a, T b){return a < b;}
- template<> inline bool LESS(double a, double b){return b-a > EPS;}
- inline bool LS(int a, int b){return a < b;}
- int main()
- {
- int a, b;
- int N = (1<<25);
- for(int i = 0; i < N; i++)
- {
- a += 3;
- b += 2;
- if(LESS(a, b))
- a += 1.0;
- }
- for(int i = 0; i < N; i++)
- {
- a += 3;
- b += 2;
- if(LS(a, b))
- a += 1.0;
- }
- for(int i = 0; i < N; i++)
- {
- a += 3;
- b += 2;
- if(a < b)
- a += 1.0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment