結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
|
提出日時 | 2023-01-20 21:28:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 1,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-06-23 09:17:41 |
合計ジャッジ時間 | 1,706 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
a,b,c=map(int,input().split())ans=[]if (b+c)%a==0:ans.append((b+c)//a)if c<=b and c%a==0:ans.append(c//a)ans.sort()if len(ans)!=0:for x in ans:print(x)else:print(-1)