結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
|
提出日時 | 2023-01-20 21:26:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 465 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-06-23 09:14:29 |
合計ジャッジ時間 | 1,725 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
A, B, C = map(int, input().split()) # AN - B = C # AN = C ( <= B) ans = [] if B >= C and C % A == 0: ans.append(C // A) if (B + C) % A == 0: ans.append((B + C) // A) if len(ans) == 0: print(-1) else: for a in ans: print(a)