結果

問題 No.2194 兄弟の掛け引き
ユーザー pluto77pluto77
提出日時 2023-01-21 15:04:31
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 184 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-09-06 04:15:10
合計ジャッジ時間 1,212 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,748 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 16 ms
7,744 KB
testcase_03 AC 14 ms
7,832 KB
testcase_04 AC 14 ms
7,828 KB
testcase_05 AC 14 ms
7,892 KB
testcase_06 AC 15 ms
7,980 KB
testcase_07 AC 14 ms
7,816 KB
testcase_08 AC 19 ms
7,784 KB
testcase_09 AC 14 ms
7,876 KB
testcase_10 AC 15 ms
7,888 KB
testcase_11 AC 14 ms
7,784 KB
testcase_12 AC 14 ms
7,768 KB
testcase_13 AC 14 ms
7,784 KB
testcase_14 AC 14 ms
7,816 KB
testcase_15 AC 15 ms
7,832 KB
testcase_16 AC 14 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,input().split())
l=[]
if B>=C:
 if C%A==0:
  l.append(C//A)
if (B+C)%A==0:
 l.append((B+C)//A)
l.sort()
if l==[]:
 print(-1)
else:
 for i in range(len(l)):
  print(l[i])
0