結果
問題 |
No.2239 Friday
|
ユーザー |
|
提出日時 | 2023-06-02 23:22:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 595 ms |
コンパイル使用メモリ | 65,716 KB |
最終ジャッジ日時 | 2025-02-13 20:44:19 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 1 |
ソースコード
#include <iostream> using namespace std; int main(void){ int a, b; cin >> a >> b; int matched = min(a, b) * 2; int unmatched = (a +b ) - matched; int d = matched - unmatched; while (!(d <= 0 || matched == 0)) { matched--; unmatched++; d = matched - unmatched; } cout << abs(d) << endl; }