結果

問題 No.816 Beautiful tuples
ユーザー NoviNovi
提出日時 2019-11-03 03:30:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,196 KB
最終ジャッジ日時 2023-10-13 01:45:12
合計ジャッジ時間 1,265 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,076 KB
testcase_01 AC 17 ms
7,932 KB
testcase_02 AC 16 ms
8,104 KB
testcase_03 AC 16 ms
8,036 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 16 ms
7,828 KB
testcase_08 AC 15 ms
7,968 KB
testcase_09 AC 15 ms
7,816 KB
testcase_10 AC 15 ms
8,196 KB
testcase_11 AC 15 ms
8,068 KB
testcase_12 AC 16 ms
7,812 KB
testcase_13 AC 15 ms
7,832 KB
testcase_14 AC 15 ms
7,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
if a==2*b or b==2*a:
    print(3*min(a,b))
    exit()
elif a==3*b or b==3*a:
    print(2*min(a,b))
    exit()
elif a/b==1.5 or b/a==1.5:
    print(min(a,b)//2)
print(-1)
0