結果
| 問題 |
No.1243 約数加算
|
| コンテスト | |
| ユーザー |
naniwazu
|
| 提出日時 | 2020-10-02 21:50:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 81,584 KB |
| 実行使用メモリ | 65,536 KB |
| 最終ジャッジ日時 | 2024-07-16 04:47:18 |
| 合計ジャッジ時間 | 2,817 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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