結果
問題 | No.1619 Coccinellidae |
ユーザー | SidewaysOwl |
提出日時 | 2021-07-22 22:52:00 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 428 bytes |
コンパイル時間 | 803 ms |
コンパイル使用メモリ | 87,024 KB |
実行使用メモリ | 86,420 KB |
最終ジャッジ日時 | 2023-09-24 18:31:03 |
合計ジャッジ時間 | 4,025 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,468 KB |
testcase_01 | TLE | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
n,m,k = map(int,input().split()) ans = [] for i in range(n): if i == n-1: ans.append(m-(1 + i)*i//2) else: ans.append(i+1) cnt = 0 leave = False for i in range(n-1,0,-1): for j in range(i): ans[-(j+1)] ,ans[-(j + 2)] = ans[-(j + 2)] ,ans[-(j+1)] cnt += 1 if cnt == k: leave = True break if leave: break for i in range(n): print(ans[i])