結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-24 20:41:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 1,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 57,984 KB |
| 最終ジャッジ日時 | 2024-09-18 16:35:43 |
| 合計ジャッジ時間 | 1,829 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
a,b,c = map(int, input().split())
ans=[]
for i in range(1,10**6):
if i * a - b > 0:
if i * a - b == c:
ans.append(i)
else:
if i * a == c:
ans.append(i)
i += 1
if ans ==[]:
print('-1')
else:
for i in ans:
print(i)