結果
| 問題 | No.816 Beautiful tuples |
| コンテスト | |
| ユーザー |
ory1113
|
| 提出日時 | 2019-04-19 21:32:22 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 21,468 KB |
| 実行使用メモリ | 15,660 KB |
| 最終ジャッジ日時 | 2026-09-02 15:08:58 |
| 合計ジャッジ時間 | 4,204 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 1 TLE * 1 -- * 12 |
ソースコード
a,b = map(int,input().split())
for i in range(1,a+b+1):
if (a+b)%i==0 and (a+i)%b==0 and (i+b)%a==0:
print(i)
else:
print(-1)
ory1113