結果
| 問題 | No.1243 約数加算 |
| コンテスト | |
| ユーザー |
naniwazu
|
| 提出日時 | 2020-10-02 21:50:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 94,592 KB |
| 最終ジャッジ日時 | 2026-08-13 14:43:25 |
| 合計ジャッジ時間 | 4,294 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
T = int(input())
for i in range(T):
A,B = map(int,input().split())
ans = []
while A < B:
x = 1
while A+2*x <= B and A % (2*x) == 0:
x *= 2
ans.append(x)
A += x
print(len(A))
print(*ans)
naniwazu