結果
| 問題 |
No.816 Beautiful tuples
|
| コンテスト | |
| ユーザー |
lanevo111
|
| 提出日時 | 2019-04-19 21:42:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,696 KB |
| 最終ジャッジ日時 | 2024-09-22 17:53:45 |
| 合計ジャッジ時間 | 3,239 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 1 TLE * 1 -- * 11 |
ソースコード
a,b=map(int,input().split())
for c in range(max(a,b)-min(a,b),a+b):
if (a+c)%b==0 and (a+b)%c==0 and (b+c)%a==0 and a!=b and b!=c and c!=a:
print(c)
break
else:
print(-1)
lanevo111