結果
| 問題 | No.816 Beautiful tuples |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-28 00:26:14 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 83,200 KB |
| 最終ジャッジ日時 | 2026-08-28 00:26:24 |
| 合計ジャッジ時間 | 7,058 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 TLE * 1 -- * 4 |
ソースコード
A, B = map(int, input().split()) for C in range(1, A + B + 1): if A != C and B != C and (A + B) % C == (B + C) % A == (C + A) % B == 0: print(C) break else: print(-1)