結果
| 問題 |
No.816 Beautiful tuples
|
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2020-12-08 17:41:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,824 KB |
| 最終ジャッジ日時 | 2024-09-17 15:23:12 |
| 合計ジャッジ時間 | 4,490 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 1 TLE * 1 -- * 11 |
ソースコード
A,B=map(int,input().split())
def f(A,B):
for i in range(1,A+B+1):
if (A+B)%i: continue
if (i+A)%B: continue
if (i+B)%A: continue
return i
return -1
print(f(A,B))
_matumo_