結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,140 KB
testcase_01 AC 16 ms
7,936 KB
testcase_02 AC 15 ms
8,240 KB
testcase_03 AC 15 ms
8,216 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 16 ms
7,908 KB
testcase_08 AC 15 ms
7,848 KB
testcase_09 AC 15 ms
7,856 KB
testcase_10 AC 16 ms
8,212 KB
testcase_11 AC 16 ms
8,208 KB
testcase_12 AC 15 ms
7,788 KB
testcase_13 AC 15 ms
7,856 KB
testcase_14 AC 15 ms
7,856 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()

print(-1)
0