結果

問題 No.816 Beautiful tuples
ユーザー kohei2019kohei2019
提出日時 2022-04-18 22:25:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 809 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 71,352 KB
最終ジャッジ日時 2023-08-28 19:08:45
合計ジャッジ時間 2,973 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,220 KB
testcase_01 AC 67 ms
70,800 KB
testcase_02 AC 67 ms
71,344 KB
testcase_03 AC 67 ms
71,276 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 67 ms
71,164 KB
testcase_08 AC 68 ms
71,260 KB
testcase_09 AC 69 ms
71,068 KB
testcase_10 AC 67 ms
70,796 KB
testcase_11 AC 68 ms
70,992 KB
testcase_12 AC 67 ms
71,304 KB
testcase_13 AC 67 ms
71,064 KB
testcase_14 AC 67 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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