TouchStone
  Please Login
Login Sign Up
距离CSP第一轮: ??天 距离CSP第二轮: ??天 距离NOIP还有: ??天
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P5269
  • Problem
  • P5269 [NOI2009]变换序列
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 1s,64m
    Description

    Input Format

    Output Format

    无解输出 No Answer

    Sample Input

    5
    1 1 2 2 1

    Sample Output

    1 2 4 0 3

    Hint

    30%的数据中N≤50;
    60%的数据中N≤500;
    100%的数据中N≤10000;