結果

問題 No.2194 兄弟の掛け引き
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-10 15:14:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-20 03:54:06
合計ジャッジ時間 1,472 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
tf = False
if c%a == 0:
	print(c//a)
	tf = True
if b <= c and (b+c)%a == 0:
	print((b+c)//a)
	tf = True
if not tf:
	print(-1)
	
	
0