結果
| 問題 | No.816 Beautiful tuples |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-18 22:26:09 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 82,504 KB |
| 実行使用メモリ | 56,300 KB |
| 最終ジャッジ日時 | 2026-10-09 13:47:07 |
| 合計ジャッジ時間 | 1,592 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 3 |
ソースコード
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)