結果
問題 | No.1619 Coccinellidae |
ユーザー | lloyz |
提出日時 | 2022-11-02 00:04:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 1,005 ms |
コンパイル使用メモリ | 87,148 KB |
実行使用メモリ | 82,756 KB |
最終ジャッジ日時 | 2023-09-23 12:00:29 |
合計ジャッジ時間 | 5,661 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,168 KB |
testcase_01 | WA | - |
testcase_02 | AC | 95 ms
82,592 KB |
testcase_03 | AC | 70 ms
71,608 KB |
testcase_04 | WA | - |
testcase_05 | AC | 92 ms
80,348 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 94 ms
80,096 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 94 ms
80,724 KB |
testcase_12 | AC | 70 ms
71,356 KB |
testcase_13 | WA | - |
testcase_14 | AC | 98 ms
82,660 KB |
testcase_15 | WA | - |
testcase_16 | AC | 67 ms
71,356 KB |
ソースコード
n, m, k = map(int, input().split()) A = [i + 1 for i in range(n)] sum_ = sum(A) if sum_ < m: A[n - 1] += m - sum_ ANS = [-1 for _ in range(n)] f, l = 0, n - 1 for i in range(n): if k >= n - i - 1: ANS[i] = A[l] l -= 1 k -= n - i - 1 else: ANS[i] = A[f] f += 1 print(*ANS, sep='\n')