結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
shojin
|
| 提出日時 | 2024-05-08 21:16:30 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 7,139 ms |
| コンパイル使用メモリ | 276,176 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-15 04:44:47 |
| 合計ジャッジ時間 | 4,198 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int A, B, C;
cin >> A >> B >> C;
set<int> ans;
if(C % A == 0) ans.emplace(C / A);
if((B + C) % A == 0) ans.emplace((B + C) / A);
if(ans.size() == 0) cout << -1;
else for(auto x : ans) cout << x << endl;
}
shojin