結果
| 問題 | No.1243 約数加算 |
| コンテスト | |
| ユーザー |
naniwazu
|
| 提出日時 | 2020-10-02 21:48:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 65,792 KB |
| 最終ジャッジ日時 | 2026-03-30 19:03:59 |
| 合計ジャッジ時間 | 2,782 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 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(*ans)
naniwazu