結果

問題 No.816 Beautiful tuples
ユーザー ory1113
提出日時 2019-04-19 22:34:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,500 ms
コード長 161 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-22 22:22:31
合計ジャッジ時間 1,342 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
c = max(a,b)
d = min(a,b)
if c==d*2:
    print(d*3)
elif c==d*3:
    print(d*2)
elif c*2==d*3:
    print(d//2)
else:
    print(-1)
0