| 7 | #include <fstream> |
| 8 | |
| 9 | struct MySolution |
| 10 | { |
| 11 | double R,G,B; |
| 12 | |
| 13 | std::string to_string() const |
| 14 | { |
| 15 | const unsigned red = (unsigned)R; |
| 16 | const unsigned green = (unsigned)G; |
| 17 | const unsigned blue = (unsigned)B; |
| 18 | char hexstr[16]; |
| 19 | snprintf(hexstr,sizeof(hexstr),"%02x%02x%02x",red,green,blue); |
| 20 | std::string retstr=hexstr; |
| 21 | return retstr; |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | struct MyMiddleCost |
| 26 | { |
nothing calls this directly
no outgoing calls
no test coverage detected