結果
| 問題 |
No.1243 約数加算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-15 14:33:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 2,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 580 ms |
| コンパイル使用メモリ | 81,908 KB |
| 実行使用メモリ | 73,088 KB |
| 最終ジャッジ日時 | 2024-12-26 14:53:53 |
| 合計ジャッジ時間 | 1,675 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)