結果
問題 |
No.1373 Directed Operations
|
ユーザー |
|
提出日時 | 2022-01-29 14:39:12 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 82,572 KB |
実行使用メモリ | 94,568 KB |
最終ジャッジ日時 | 2025-01-02 02:00:25 |
合計ジャッジ時間 | 5,729 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 19 |
ソースコード
N = int(input()) a = list(map(int,input().split())) l = [(a[i],i) for i in range(N)] ans = [0] * N l.sort() import sys for j in range(N): if l[j][0] > j+1: print('No') exit() else: ans[l[j][1]] = j+2-l[j][0] print('Yes') for i in ans: print(i)