結果

問題 No.2194 兄弟の掛け引き
ユーザー ikomaikoma
提出日時 2023-01-20 21:51:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,268 KB
実行使用メモリ 71,652 KB
最終ジャッジ日時 2023-09-05 14:08:01
合計ジャッジ時間 2,478 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,340 KB
testcase_01 AC 79 ms
71,304 KB
testcase_02 AC 75 ms
71,400 KB
testcase_03 AC 76 ms
71,432 KB
testcase_04 AC 76 ms
71,388 KB
testcase_05 AC 76 ms
71,612 KB
testcase_06 AC 75 ms
71,652 KB
testcase_07 AC 75 ms
71,488 KB
testcase_08 WA -
testcase_09 AC 77 ms
71,268 KB
testcase_10 AC 77 ms
71,464 KB
testcase_11 AC 76 ms
71,212 KB
testcase_12 WA -
testcase_13 AC 76 ms
71,428 KB
testcase_14 AC 75 ms
71,484 KB
testcase_15 AC 74 ms
71,264 KB
testcase_16 AC 76 ms
71,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,input().split())
ans=[]
if C%A==0:
    ans.append(C//A)
C+=B
if 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