結果

問題 No.1243 約数加算
ユーザー persimmon-persimmon
提出日時 2021-06-15 14:32:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 71,424 KB
最終ジャッジ日時 2024-12-26 14:52:55
合計ジャッジ時間 4,874 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

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(*ary)


0