結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,360 KB
testcase_01 AC 69 ms
71,384 KB
testcase_02 AC 69 ms
71,236 KB
testcase_03 AC 69 ms
71,176 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 69 ms
71,524 KB
testcase_08 AC 70 ms
71,016 KB
testcase_09 AC 70 ms
71,524 KB
testcase_10 AC 69 ms
71,356 KB
testcase_11 AC 70 ms
71,384 KB
testcase_12 AC 71 ms
71,232 KB
testcase_13 AC 71 ms
71,332 KB
testcase_14 AC 70 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

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