結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
KuronekoFS
|
| 提出日時 | 2023-03-02 14:58:33 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 184 bytes |
| 記録 | |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-06 05:51:56 |
| 合計ジャッジ時間 | 2,912 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 12 WA * 2 |
ソースコード
A, B, C = (int(x) for x in input().split())
if C % A == 0 and C-B<0:print(C // A)
if (C + B) % A == 0:print((C + B) // A)
if not (C % A == 0 and C-B<0) and (C + B) % A != 0:print('-1')
KuronekoFS