1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
| #include<bits/stdc++.h> using namespace std;
#define a void #define aa int #define aaa bool #define aaaa for #define aaaaa while #define aaaaaa cout #define aaaaaaa cin #define aaaaaaaa tear #define aaaaaaaaa rang #define aaaaaaaaaa endl #define aaaaaaaaaaa i #define aaaaaaaaaaaa arr #define aaaaaaaaaaaaa return #define aaaaaaaaaaaaaa main #define aaaaaaaaaaaaaaa init #define aaaaaaaaaaaaaaaa num #define aaaaaaaaaaaaaaaaa k #define aaaaaaaaaaaaaaaaaa low #define aaaaaaaaaaaaaaaaaaa upp #define aaaaaaaaaaaaaaaaaaaa floor #define aaaaaaaaaaaaaaaaaaaaa cs #define aaaaaaaaaaaaaaaaaaaaaa cnt #define aaaaaaaaaaaaaaaaaaaaaaa std #define aaaaaaaaaaaaaaaaaaaaaaaa ios #define aaaaaaaaaaaaaaaaaaaaaaaaa sync_with_stdio #define aaaaaaaaaaaaaaaaaaaaaaaaaa it #define aaaaaaaaaaaaaaaaaaaaaaaaaaa cur #define aaaaaaaaaaaaaaaaaaaaaaaaaaaa gtj #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaa fst #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa gi #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa cac #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa hex #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa tj #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa j #define aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaa^aaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaaaa,false); if((aaaaaaaaaaaaaaaaaaaaaaaaaaa^aaaaaaaaaaa) == aaaaaaaaaaaaaaaa){ aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; aaaaaa<<"number: 0x"<<aaaaaaaaaaaaaaaa<<" can be teared as: "; aaaa(aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<aaaaaaaaaaaaaaaaaaaaaaaaaa;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa++){ aaaaaa<<aaaaaaaaaaaaaaaaaaaaaaa::aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<<"0x"<<aaaaaaaaaaaa[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]<<" ^ "; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^=aaaaaaaaaaaa[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]; } aaaaaa<<aaaaaaaaaaaaaaaaaaaaaaa::aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<<"0x"<<aaaaaaaaaaa; aaaaaa<<" ---- equals to : 0x"<<(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^aaaaaaaaaaa); aaaaaa<<aaaaaaaaaa; aaaaaaaaaaaaaaaaaaaaaa++; if(aaaaaaaaaaaaaaaaaaaa!=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)aaaaaaaaaaaaa ; } } } } a aaaaaaaaaaaaaaa(){ aaaaaa<<"( ༼ つ ◕_◕ ༽つ ): God Wang and God Liang can Splitting a Number into Multiple Numbers XOR form WITH ONLT ONE HAND!!!But I'm so weak.\n"; } aa aaaaaaaaaaaaaa(){ aaaaaaaaaaaaaaaaaaaaaaaa::aaaaaaaaaaaaaaaaaaaaaaaaa(false); aaaaaaaaaaaaaaa(); aaaaaa<<"Input the number of ranges :"; aaaaaaa>>aaaaaaaaaaaaaaaaa; aaaa(aa aaaaaaaaaaa=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;aaaaaaaaaaa<aaaaaaaaaaaaaaaaa;aaaaaaaaaaa++){ aaaaaa<<"Input lower & upper of range "<<aaaaaaaaaaa<<" :"; aaaaaaa>>aaaaaaaaa[aaaaaaaaaaa][aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]>>aaaaaaaaa[aaaaaaaaaaa][aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]; aaaaaa<<"You lower: "<<aaaaaaaaa[aaaaaaaaaaa][aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]<<" Upper: "<<aaaaaaaaa[aaaaaaaaaaa][aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]<<aaaaaaaaaa; } aaaaaa<<"\nWhat's the max number of TEARS you want to get:"; aaaaaaa>>aaaaaaaaaaaaaaaaaaaaa; aaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa){ _a=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; aaaaaaaaaaaaaaaaaaaaaa=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; aaaaaa<<"\nImput number (input Decimal,later I will output hex.):"; aaaaaaa>>aaaaaaaaaaaaaaaa; aaaaaaaa(aaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaa[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa][aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa],aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); aaaaaa<<"\n0x"<<aaaaaaaaaaaaaaaaaaaaaa<<" result found!!!"; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaa)); } aaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; }
|