結果

問題 No.1619 Coccinellidae
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-07-22 23:10:29
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 473 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 84,700 KB
最終ジャッジ日時 2023-09-24 19:10:18
合計ジャッジ時間 4,009 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,400 KB
testcase_01 AC 100 ms
82,600 KB
testcase_02 AC 108 ms
84,700 KB
testcase_03 RE -
testcase_04 AC 104 ms
84,644 KB
testcase_05 AC 98 ms
81,320 KB
testcase_06 AC 73 ms
71,308 KB
testcase_07 AC 97 ms
81,552 KB
testcase_08 AC 96 ms
80,912 KB
testcase_09 RE -
testcase_10 AC 97 ms
80,572 KB
testcase_11 AC 102 ms
82,024 KB
testcase_12 RE -
testcase_13 AC 105 ms
84,464 KB
testcase_14 AC 102 ms
84,460 KB
testcase_15 RE -
testcase_16 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,k = map(int,input().split())
ans = [i for i in range(n-1)]
ans.append(m-sum(ans))
now = 0
if k == 0:
    for i in ans:
        print(i)
    exir()
while True:
    if n-1-now < k:
        k -= n-1-now
        now += 1
    else:
        ans3 = []
        for i in range(now):
            ans3.append(ans[-1-i])
        for i in range(now,n):
            ans3.append(ans[i-now])
        ans3.insert(-k,ans3.pop())
        for i in ans3:
            print(i)
        exit()
0