結果

問題 No.816 Beautiful tuples
ユーザー kohei2019kohei2019
提出日時 2022-04-18 22:26:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 53,536 KB
最終ジャッジ日時 2024-06-09 14:18:36
合計ジャッジ時間 1,403 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,196 KB
testcase_01 AC 32 ms
52,188 KB
testcase_02 AC 32 ms
52,140 KB
testcase_03 AC 33 ms
53,536 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 32 ms
52,824 KB
testcase_08 AC 33 ms
52,608 KB
testcase_09 AC 36 ms
52,688 KB
testcase_10 AC 31 ms
52,308 KB
testcase_11 AC 36 ms
52,752 KB
testcase_12 AC 32 ms
52,028 KB
testcase_13 AC 32 ms
52,416 KB
testcase_14 AC 33 ms
53,340 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