結果
| 問題 |
No.2239 Friday
|
| ユーザー |
|
| 提出日時 | 2023-03-10 21:58:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| コンパイル時間 | 1,861 ms |
| コンパイル使用メモリ | 192,124 KB |
| 最終ジャッジ日時 | 2025-02-11 08:17:41 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 7 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int A,B;
cin>>A>>B;
int ans=A+B;
for(int i=0;i<=min(A,B);i++){
if(A-i>B)continue;
int t=i+B-(A-i);
ans=min(ans,abs(A+B-t-t));
}
cout<<ans<<'\n';
}