結果
問題 | No.816 Beautiful tuples |
ユーザー | Novi |
提出日時 | 2019-11-03 03:31:53 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
RE
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 10,536 KB |
実行使用メモリ | 8,216 KB |
最終ジャッジ日時 | 2023-10-13 01:45:13 |
合計ジャッジ時間 | 1,086 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,156 KB |
testcase_01 | RE | - |
testcase_02 | AC | 16 ms
8,140 KB |
testcase_03 | AC | 15 ms
7,996 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 15 ms
8,216 KB |
testcase_11 | AC | 15 ms
8,180 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
ソースコード
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 double(a/b==1.5) or double(b/a==1.5): print(min(a,b)//2) print(-1)