結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
shojin
|
| 提出日時 | 2024-05-08 21:12:59 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 6,032 ms |
| コンパイル使用メモリ | 275,476 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-15 04:38:48 |
| 合計ジャッジ時間 | 5,256 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
vector<int> ans;
if(C % A == 0) ans.emplace_back(C / A);
if((B + C) % A == 0) ans.emplace_back((B + C) / A);
if(ans.size() == 0) cout << -1;
else for(auto x : ans) cout << x << endl;
}
shojin