結果
| 問題 |
No.1373 Directed Operations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-29 14:37:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 262 bytes |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 82,152 KB |
| 実行使用メモリ | 94,564 KB |
| 最終ジャッジ日時 | 2025-01-02 01:50:43 |
| 合計ジャッジ時間 | 6,154 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 19 |
ソースコード
N = int(input())
a = list(map(int,input().split()))
l = [(a[i],i+1) 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[j] = j+2-l[j][0]
for i in ans:
print(i)