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 | 3434 |

2 | Petr | 3353 |

3 | OO0OOO00O0OOO0O0…O | 3314 |

4 | fateice | 3306 |

5 | Um_nik | 3286 |

6 | Syloviaely | 3274 |

7 | dotorya | 3145 |

8 | LHiC | 3114 |

9 | Radewoosh | 3098 |

10 | mnbvmar | 3096 |

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

1 | tourist | 178 |

2 | rng_58 | 166 |

3 | Petr | 156 |

4 | csacademy | 155 |

5 | Swistakk | 150 |

6 | lewin | 149 |

7 | Um_nik | 142 |

8 | Errichto | 141 |

9 | matthew99 | 138 |

10 | PikMike | 137 |

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: Jun/19/2018 13:37:11 (d1).

Desktop version, switch to mobile version.

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 .