結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
katonyonko
|
| 提出日時 | 2023-01-20 21:25:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-06-23 09:13:56 |
| 合計ジャッジ時間 | 1,355 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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