結果

問題 No.2194 兄弟の掛け引き
ユーザー MasKoaTSMasKoaTS
提出日時 2023-01-20 22:01:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 71,668 KB
最終ジャッジ日時 2023-09-05 14:19:34
合計ジャッジ時間 2,495 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,300 KB
testcase_01 AC 76 ms
71,332 KB
testcase_02 AC 78 ms
71,328 KB
testcase_03 AC 82 ms
71,020 KB
testcase_04 AC 79 ms
71,148 KB
testcase_05 AC 79 ms
71,520 KB
testcase_06 AC 78 ms
71,164 KB
testcase_07 AC 80 ms
71,284 KB
testcase_08 WA -
testcase_09 AC 80 ms
71,128 KB
testcase_10 AC 78 ms
71,076 KB
testcase_11 AC 76 ms
71,016 KB
testcase_12 WA -
testcase_13 AC 78 ms
71,400 KB
testcase_14 AC 75 ms
71,120 KB
testcase_15 AC 78 ms
71,548 KB
testcase_16 AC 77 ms
71,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
ans = set([])
if(c % a == 0):
    ans.add(c // a)
if((c + b) % a == 0):
    ans.add((c + b) // a)
    
if not(ans):
    print(-1)
    exit(0)
for k in sorted(ans):
    print(k)
    
0