結果

問題 No.1373 Directed Operations
ユーザー tassei903tassei903
提出日時 2021-02-05 21:52:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 19,744 KB
最終ジャッジ日時 2023-09-15 08:02:26
合計ジャッジ時間 5,246 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,748 KB
testcase_01 AC 15 ms
7,752 KB
testcase_02 AC 126 ms
12,804 KB
testcase_03 AC 33 ms
9,896 KB
testcase_04 AC 45 ms
19,660 KB
testcase_05 AC 15 ms
7,752 KB
testcase_06 AC 154 ms
19,608 KB
testcase_07 AC 19 ms
8,564 KB
testcase_08 AC 30 ms
9,464 KB
testcase_09 AC 95 ms
19,568 KB
testcase_10 AC 67 ms
17,868 KB
testcase_11 AC 29 ms
10,528 KB
testcase_12 AC 55 ms
17,320 KB
testcase_13 AC 20 ms
9,432 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = list(map(int,input().split()))
a = sorted(a)
b = True
z=[]
for i in range(N-1):
    #print(i-a[i]+1)
    if i-a[i]+1<0:
        b = False
        break
    z.append(i-a[i]+2)
if b:
    print("YES")
    for i in z:
        print(i)
else:
    print("NO")
0