結果
問題 |
No.816 Beautiful tuples
|
ユーザー |
![]() |
提出日時 | 2020-03-05 07:47:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-10-14 00:44:57 |
合計ジャッジ時間 | 3,317 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 12 |
ソースコード
def find_c(a,b,c): if (a+b) % c == 0 and (b+c) % a == 0 and (c+a) % b == 0: return True else: return False A,B = map(int,input().split()) C = -1 for i in range(1,A*B+1): if i == A or i == B: continue else: if find_c(A,B,i) == True: C = i break print(C)