#include <stdio.h>
int pColorA = 0x00556611;
int pColorB = 0x223377AA;
int pColorC = 0x99BBCC00;
int main(void) {
printf("{%x}\n", pColorA
>> 8); printf("{%x}\n", pColorB
>> 8); printf("{%x}\n\n", pColorC
>> 8);
printf("{%X}\n", pColorA
>> 8); printf("{%X}\n", pColorB
>> 8); printf("{%X}\n\n", pColorC
>> 8);
printf("{%06x}\n", pColorA
>> 8); printf("{%06x}\n", pColorB
>> 8); printf("{%06x}\n\n", pColorC
>> 8);
printf("{%06X}\n", pColorA
>> 8); printf("{%06X}\n", pColorB
>> 8); printf("{%06X}\n\n", pColorC
>> 8);
printf("{%06X}\n", pColorA
>> 8 & 0xFFFFFF); printf("{%06X}\n", pColorB
>> 8 & 0xFFFFFF); printf("{%06X}\n\n", pColorC
>> 8 & 0xFFFFFF);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgcENvbG9yQSA9IDB4MDA1NTY2MTE7CmludCBwQ29sb3JCID0gMHgyMjMzNzdBQTsKaW50IHBDb2xvckMgPSAweDk5QkJDQzAwOwoKaW50IG1haW4odm9pZCkgewoJcHJpbnRmKCJ7JXh9XG4iLCBwQ29sb3JBKTsKCXByaW50ZigieyV4fVxuIiwgcENvbG9yQik7CglwcmludGYoInsleH1cblxuIiwgcENvbG9yQyk7CgkKCXByaW50ZigieyVYfVxuIiwgcENvbG9yQSk7CglwcmludGYoInslWH1cbiIsIHBDb2xvckIpOwoJcHJpbnRmKCJ7JVh9XG5cbiIsIHBDb2xvckMpOwoKCXByaW50ZigieyV4fVxuIiwgcENvbG9yQSA+PiA4KTsKCXByaW50ZigieyV4fVxuIiwgcENvbG9yQiA+PiA4KTsKCXByaW50ZigieyV4fVxuXG4iLCBwQ29sb3JDID4+IDgpOwoJCglwcmludGYoInslWH1cbiIsIHBDb2xvckEgPj4gOCk7CglwcmludGYoInslWH1cbiIsIHBDb2xvckIgPj4gOCk7CglwcmludGYoInslWH1cblxuIiwgcENvbG9yQyA+PiA4KTsK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