結果

問題 No.2194 兄弟の掛け引き
ユーザー ikomaikoma
提出日時 2023-01-20 22:00:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 243 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 71,628 KB
最終ジャッジ日時 2023-09-05 14:18:40
合計ジャッジ時間 2,642 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,384 KB
testcase_01 AC 77 ms
71,540 KB
testcase_02 AC 77 ms
71,500 KB
testcase_03 AC 77 ms
71,588 KB
testcase_04 AC 76 ms
71,628 KB
testcase_05 AC 76 ms
71,248 KB
testcase_06 AC 80 ms
71,572 KB
testcase_07 AC 78 ms
71,180 KB
testcase_08 AC 77 ms
71,216 KB
testcase_09 AC 77 ms
71,572 KB
testcase_10 AC 78 ms
71,404 KB
testcase_11 AC 78 ms
71,468 KB
testcase_12 AC 78 ms
71,444 KB
testcase_13 AC 78 ms
71,436 KB
testcase_14 AC 78 ms
71,512 KB
testcase_15 AC 77 ms
71,436 KB
testcase_16 AC 77 ms
71,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,input().split())
ans=[]
if C%A==0 and C<=B and C//A>0:
        ans.append(C//A)
C+=B
if C%A==0 and C//A>0:
    ans.append(C//A)
if len(ans)==0:
    print(-1)
else:
    ans = list(set(ans))
    ans.sort()
    print(*ans,sep="\n")
0