#include <iostream>
#include <string>
bool Show(int Hour, int Min){
int Number[] = { 0, 11, 1, 10, 2, 9, 3, 8, 4, 7, 5, 6 };
int SP[] = { 9, 4, 9, 1, 15, 0, 17, 1, 15, 4, 9, 9 };
std::cout << "input" << std::endl;
std::cout << Hour << ':' << Min << std::endl;
std::cout << "output" << std::endl;
Hour %= 12;
int NM = (Min % 60) / 5;
if (Min % 5 >= 3) NM++;
NM %= 12;
for (int i = 0; i < 12; i++){
for (int j = 0; j < SP[i]; j++){
std::cout << ' ';
}
if (Number[i] == Hour && Number[i] == NM){
std::cout << 'X';
}else if (Number[i] == Hour){
std::cout << 'X';
}else if (Number[i] == NM){
std::cout << 'x';
}else{
std::cout << 'o';
}
if (i == 2)std::cout << std::endl;
if (i == 4)std::cout << std::endl;
if (i == 6)std::cout << std::endl;
if (i == 8)std::cout << std::endl;
if (i%2== 0 )std::cout << std::endl;
}
std::cout << std::endl;
return true;
}
int main(){
Show(18, 35);
Show(00, 00);
Show(10, 03);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKYm9vbCBTaG93KGludCBIb3VyLCBpbnQgTWluKXsKCWludCBOdW1iZXJbXSA9IHsgMCwgMTEsIDEsIDEwLCAyLCA5LCAzLCA4LCA0LCA3LCA1LCA2IH07CglpbnQgU1BbXSA9IHsgOSwgNCwgOSwgMSwgMTUsIDAsIDE3LCAxLCAxNSwgNCwgOSwgOSB9OwoJCglzdGQ6OmNvdXQgPDwgImlucHV0IiA8PCBzdGQ6OmVuZGw7CglzdGQ6OmNvdXQgPDwgSG91ciA8PCAnOicgPDwgTWluIDw8IHN0ZDo6ZW5kbDsKCXN0ZDo6Y291dCA8PCAib3V0cHV0IiA8PCBzdGQ6OmVuZGw7CglIb3VyICU9IDEyOwoJaW50IE5NID0gKE1pbiAlIDYwKSAvIDU7CglpZiAoTWluICUgNSA+PSAzKSBOTSsrOwoJTk0gJT0gMTI7CgoJZm9yIChpbnQgaSA9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