結果
| 問題 |
No.2027 (1, 2, 3, …, N) 's Subset Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-20 15:17:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 97,408 KB |
| 最終ジャッジ日時 | 2024-10-09 07:58:56 |
| 合計ジャッジ時間 | 7,066 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 24 |
ソースコード
n, s = map(int, input().split())
A = []
for i in range(n, 0, -1):
if i <= s:
A.append(i)
s -= i
print(len(A))
print(*A)