結果
| 問題 | No.1243 約数加算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-15 14:33:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 84,480 KB |
| 実行使用メモリ | 73,984 KB |
| 最終ジャッジ日時 | 2026-06-01 11:49:21 |
| 合計ジャッジ時間 | 1,497 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
t=int(input()) ab=[list(map(int,input().split())) for _ in range(t)] for a,b in ab: ary=[] now=1 while b-a>0: while a%(2*now)==0: now*=2 while a%now!=0: now//=2 while b-a<now: now//=2 a+=now ary.append(now) print(len(ary)) print(*ary)