結果
問題 | No.816 Beautiful tuples |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:26:48 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 82,460 KB |
実行使用メモリ | 65,688 KB |
最終ジャッジ日時 | 2024-09-22 16:26:37 |
合計ジャッジ時間 | 6,510 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 TLE * 1 -- * 4 |
ソースコード
# -*- coding: utf-8 -*- a,b = map(int,input().split()) ans = 0 for c in range(1,a+b+1): if a != b and b != c and c != a: if (b + c) % a == 0 and (a + c) % b == 0 and (b + a) % c == 0: ans = c break else: ans = -1 print(ans)