Problem Link Anyone please help me to understand the problem . For this example :

3 3 3 1 2 1 2 3

If we set `label[ 2 ] = 1 , label[ 3 ] = 2 , label[ 1 ] = 3 `

; Answer should be : 2 3 1 but answer is 3 2 1 , but why ?

# | User | Rating |
---|---|---|

1 | tourist | 3539 |

2 | Radewoosh | 3464 |

3 | V--o_o--V | 3338 |

4 | Um_nik | 3307 |

5 | Petr | 3297 |

6 | ecnerwala | 3282 |

7 | LHiC | 3266 |

8 | wxhtxdy | 3264 |

9 | Vn_nV | 3182 |

10 | xyz111 | 3147 |

# | User | Contrib. |
---|---|---|

1 | Radewoosh | 207 |

2 | Errichto | 177 |

3 | neal | 159 |

4 | Ashishgup | 158 |

5 | PikMike | 157 |

6 | Petr | 156 |

6 | majk | 156 |

8 | rng_58 | 155 |

9 | Um_nik | 154 |

9 | 300iq | 154 |

Problem Link Anyone please help me to understand the problem . For this example :

3 3 3 1 2 1 2 3

If we set `label[ 2 ] = 1 , label[ 3 ] = 2 , label[ 1 ] = 3 `

; Answer should be : 2 3 1 but answer is 3 2 1 , but why ?

↑

↓

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jan/22/2019 08:26:05 (d2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

Auto comment: topic has been updated by Ehsan_sShuvo (previous revision, new revision, compare).Actually if

label[ 2 ] = 1 , label[ 3 ] = 2 , label[ 1 ] = 3as you said, which is correct the answer would be 3 1 2 and it's the only answer for this sample because as it has been written in the statmentif there exists an edge from vertex v to vertex u then label(v) should be smaller than label(u).Would you please explain the problem elaborately ? I guess i didn't understand the problem .