結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
katonyonko
|
| 提出日時 | 2023-01-20 21:25:41 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 1,000 ms |
| + 677µs | |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 254 ms |
| コンパイル使用メモリ | 95,976 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-27 18:53:11 |
| 合計ジャッジ時間 | 2,627 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
import sys def input(): return sys.stdin.readline()[:-1] A,B,C=map(int,input().split()) ans=[] if C%A==0 and C//A*A==C and B>=A*(C//A): ans.append(C//A) if (B+C)%A==0 and A*((B+C)//A)-B==C and B<A*((B+C)//A): ans.append((B+C)//A) if len(ans)==0: print(-1) else: print(*ans,sep='\n')
katonyonko