結果

問題 No.816 Beautiful tuples
ユーザー kohei2019kohei2019
提出日時 2022-04-18 22:26:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-12-30 04:58:00
合計ジャッジ時間 1,847 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
if A > B:
    A,B = B,A

if B//A == 3 and B%A==0:
    print(A*2)
elif B//A ==2 and B%A==0:
    print(A*3)
else:
    print(-1)
0