Flags X15444


Statement
 

pdf   zip

html
Public test cases
  • Input

    0 0 0
    #
    

    Output

    1st community flag: Andalucia with difference: 153
    2nd community flag: Extremadura with difference: 167
    
  • Input

    255 230 10
    220 20 30
    #
    

    Output

    1st community flags: Aragon with difference: 21
    1st community flags: Catalunya with difference: 21
    1st community flags: Islas Baleares with difference: 21
    2nd community flag: Cantabria with difference: 301
    
  • Input

    252 221 9
    218 18 26
    200 200 200
    #
    

    Output

    1st community flag: Islas Baleares with difference: 165
    2nd community flag: Aragon with difference: 339
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    Python