結果

問題 No.2239 Friday
ユーザー ぷら
提出日時 2023-03-10 21:32:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 1,620 ms
コンパイル使用メモリ 192,756 KB
最終ジャッジ日時 2025-02-11 07:47:44
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int a,b;
	cin >> a >> b;
	cout << max(max(a,b)-min(a,b)-min(a,b)*2,(a+b)%2) << endl;
}
0