結果
問題 |
No.2239 Friday
|
ユーザー |
|
提出日時 | 2023-04-07 21:03:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 436 bytes |
コンパイル時間 | 4,498 ms |
コンパイル使用メモリ | 250,188 KB |
最終ジャッジ日時 | 2025-02-12 00:07:08 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 11 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; void fast_io() { cin.tie(nullptr); ios_base::sync_with_stdio(false); } int main(void) { fast_io(); ll a, b; cin >> a >> b; ll m = min(a, b); ll ans = 2e18; for (int i = 0; i < m; i++) { ans = min(ans, abs(2 * i - (a + b - 2 * i))); } cout << ans << endl; return 0; }