Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. // eddy1021
  2. #pragma GCC optimize("O3")
  3. #include <bits/stdc++.h>
  4. using namespace std;
  5. typedef double D;
  6. typedef long double LD;
  7. typedef long long LL;
  8. typedef pair<int,int> PII;
  9. typedef pair<LL,LL> PLL;
  10. #define mod9 1000000009LL
  11. #define mod7 1000000007LL
  12. #define INF 1023456789LL
  13. #define INF16 10000000000000000LL
  14. #define eps 1e-9
  15. #define SZ(x) (int)(x).size()
  16. #define ALL(x) (x).begin(), (x).end()
  17. #ifndef ONLINE_JUDGE
  18. #define debug(...) printf(__VA_ARGS__)
  19. #else
  20. #define debug(...)
  21. #endif
  22. inline LL getint(){
  23. LL _x=0,_tmp=1; char _tc=getchar();
  24. while( (_tc<'0'||_tc>'9')&&_tc!='-' ) _tc=getchar();
  25. if( _tc == '-' ) _tc=getchar() , _tmp = -1;
  26. while(_tc>='0'&&_tc<='9') _x*=10,_x+=(_tc-'0'),_tc=getchar();
  27. return _x*_tmp;
  28. }
  29. inline LL add( LL _x , LL _y , LL _mod = mod7 ){
  30. _x += _y;
  31. return _x >= _mod ? _x - _mod : _x;
  32. }
  33. inline LL sub( LL _x , LL _y , LL _mod = mod7 ){
  34. _x -= _y;
  35. return _x < 0 ? _x + _mod : _x;
  36. }
  37. inline LL mul( LL _x , LL _y , LL _mod = mod7 ){
  38. _x *= _y;
  39. return _x >= _mod ? _x % _mod : _x;
  40. }
  41. LL mypow( LL _a , LL _x , LL _mod ){
  42. if( _x == 0 ) return 1LL;
  43. LL _ret = mypow( mul( _a , _a , _mod ) , _x >> 1 , _mod );
  44. if( _x & 1 ) _ret = mul( _ret , _a , _mod );
  45. return _ret;
  46. }
  47. LL mymul( LL _a , LL _x , LL _mod ){
  48. if( _x == 0 ) return 0LL;
  49. LL _ret = mymul( add( _a , _a , _mod ) , _x >> 1 , _mod );
  50. if( _x & 1 ) _ret = add( _ret , _a , _mod );
  51. return _ret;
  52. }
  53. inline bool equal( D _x , D _y ){
  54. return _x > _y - eps && _x < _y + eps;
  55. }
  56. #define Bye exit(0)
  57. int __ = 1 , _cs;
  58. /*********default*********/
  59. void build(){
  60.  
  61. }
  62. void init(){
  63.  
  64. }
  65. void solve(){
  66.  
  67. }
  68. int main(){
  69. build();
  70. //__ = getint();
  71. while( __ -- ){
  72. init();
  73. solve();
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement