結果
問題 |
No.2239 Friday
|
ユーザー |
|
提出日時 | 2023-03-10 21:32:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 1,805 ms |
コンパイル使用メモリ | 192,196 KB |
最終ジャッジ日時 | 2025-02-11 07:48:31 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); int a, b; cin >> a >> b; int ans = 100; int s = abs(a - b); for(int i = 0; i <= s; i ++) ans = min(ans, abs(i - (a + b - i))); cout << ans << '\n'; }