結果

問題 No.1379 Postponed
ユーザー 37zigen37zigen
提出日時 2020-11-06 04:30:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 416 bytes
コンパイル時間 1,094 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 76,172 KB
最終ジャッジ日時 2023-09-29 17:37:50
合計ジャッジ時間 9,822 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,444 KB
testcase_01 AC 70 ms
71,236 KB
testcase_02 AC 73 ms
75,452 KB
testcase_03 AC 70 ms
71,460 KB
testcase_04 AC 73 ms
75,536 KB
testcase_05 AC 70 ms
71,304 KB
testcase_06 AC 71 ms
71,380 KB
testcase_07 AC 71 ms
71,048 KB
testcase_08 AC 69 ms
71,280 KB
testcase_09 AC 69 ms
71,188 KB
testcase_10 AC 70 ms
71,424 KB
testcase_11 AC 70 ms
71,420 KB
testcase_12 AC 70 ms
71,112 KB
testcase_13 AC 70 ms
71,384 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 71 ms
71,292 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 70 ms
71,084 KB
testcase_22 AC 73 ms
75,520 KB
testcase_23 AC 74 ms
75,800 KB
testcase_24 AC 74 ms
75,808 KB
testcase_25 WA -
testcase_26 AC 75 ms
75,600 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 73 ms
75,796 KB
testcase_34 AC 73 ms
75,612 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 70 ms
71,136 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 71 ms
75,500 KB
testcase_52 AC 71 ms
75,516 KB
testcase_53 AC 73 ms
71,452 KB
testcase_54 AC 70 ms
75,560 KB
testcase_55 WA -
testcase_56 AC 67 ms
71,040 KB
testcase_57 AC 67 ms
71,204 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 AC 73 ms
75,644 KB
testcase_62 WA -
testcase_63 AC 71 ms
75,844 KB
testcase_64 AC 75 ms
75,684 KB
testcase_65 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
A=list(map(int,input().split()))
B=[-1]*N
res=K
for i in range(N):
    mod=A[i]+1-i
    if mod<=1:
        for j in range(i,N):
            B[j]=A[j]
        break
    pos=(-res)%mod
    cur=0
    for j in range(N):
        if B[j]!=-1:
            continue
        if cur==pos:
            B[j]=A[i]
            break
        else:
            cur+=1
    res-=(res+mod-1)//mod
print(*B)
0