結果
| 問題 | No.816 Beautiful tuples |
| コンテスト | |
| ユーザー |
syunsuke
|
| 提出日時 | 2019-04-19 21:31:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,500 ms |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,612 KB |
| 最終ジャッジ日時 | 2026-04-10 23:28:25 |
| 合計ジャッジ時間 | 2,655 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
A,B=map(int,input().split())
if A==B:
print(A)
elif max(A,B)==min(A,B)*2:
print(min(A,B)*3)
elif max(A,B)==min(A,B)*3:
print(min(A,B)*2)
elif max(A,B)==min(A,B)*1.5:
print(min(A,B)//2)
else:
print(-1)
syunsuke