結果

問題 No.2194 兄弟の掛け引き
ユーザー n_nan_na
提出日時 2023-01-21 03:19:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 232 bytes
コンパイル時間 1,049 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 71,352 KB
最終ジャッジ日時 2023-09-05 19:13:30
合計ジャッジ時間 2,859 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,288 KB
testcase_01 AC 72 ms
71,216 KB
testcase_02 AC 71 ms
71,240 KB
testcase_03 AC 72 ms
71,288 KB
testcase_04 AC 73 ms
71,352 KB
testcase_05 AC 74 ms
71,236 KB
testcase_06 AC 73 ms
71,268 KB
testcase_07 AC 72 ms
71,040 KB
testcase_08 AC 76 ms
70,948 KB
testcase_09 AC 73 ms
71,296 KB
testcase_10 AC 73 ms
71,192 KB
testcase_11 AC 77 ms
71,076 KB
testcase_12 AC 73 ms
71,192 KB
testcase_13 AC 71 ms
71,248 KB
testcase_14 AC 70 ms
71,192 KB
testcase_15 AC 71 ms
70,944 KB
testcase_16 AC 72 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int,input().split())

res = []
if (B+C)%A == 0 and (B+C)//A > B/A:
    res.append((B+C)//A)
if C%A == 0 and C//A <= B/A:
    res.append(C//A)
res.sort()
if not res: print(-1)
else:
    for r in res:
        print(r)
    
0