You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
772 B
C++
27 lines
772 B
C++
#include <bits/stdc++.h>
|
|
using namespace std;
|
|
uint8_t encode[48] = {
|
|
0x96, 0x62, 0x53, 0x43, 0x6D, 0xF2, 0x8F, 0xBC,
|
|
0x16, 0xEE, 0x30, 0x05, 0x78, 0x00, 0x01, 0x52,
|
|
0xEC, 0x08, 0x5F, 0x93, 0xEA, 0xB5, 0xC0, 0x4D,
|
|
0x50, 0xF4, 0x53, 0xD8, 0xAF, 0x90, 0x2B, 0x34,
|
|
0x81, 0x36, 0x2C, 0xAA, 0xBC, 0x0E, 0x25, 0x8B,
|
|
0xE4, 0x8A, 0xC6, 0xA2, 0x81, 0x9F, 0x75, 0x55};
|
|
|
|
int main()
|
|
{
|
|
for (int j = 0; j < 6; j++)
|
|
{
|
|
uint64_t x = *(uint64_t *)&encode[j << 3];
|
|
for (int i = 0; i < 64; i++)
|
|
if (x & 1)
|
|
x = (x ^ 0xB0004B7679FA26B3uLL) >> 1 | (1ll << 63);
|
|
else
|
|
x >>= 1;
|
|
char *pt = (char *)&x;
|
|
for (int i = 0; i < 8; i++)
|
|
putchar(pt[i]);
|
|
}
|
|
return 0;
|
|
}
|