結果
| 問題 | No.816 Beautiful tuples |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-20 00:52:02 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 20,480 KB |
| 最終ジャッジ日時 | 2026-04-11 15:36:13 |
| 合計ジャッジ時間 | 4,632 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 15 |
ソースコード
def main(): a,b = map(int,input().split()) for c in range(10**9): if (a+b)%c == 0 and (a+c)%b == 0 and (c+b)%a==0: print(c) return print(-1) main()