結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 14:47:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-02-28 14:47:17 |
| 合計ジャッジ時間 | 2,126 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
def Main():
a,b,c=map(int,input().split())
ans=[]
if c<=b:
ans.append(c)
ans.append(c+b)
ans2=[]
for x in ans:
if x%a==0:
ans2.append(x//a)
if len(ans2)==0:
print(-1)
return
ans2.sort()
for x in ans2:
print(x)
Main()