結果
問題 |
No.2239 Friday
|
ユーザー |
|
提出日時 | 2023-03-10 22:47:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 1,778 ms |
コンパイル使用メモリ | 165,204 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 04:52:51 |
合計ジャッジ時間 | 2,474 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 12 |
ソースコード
#include <bits/stdc++.h> #define f first #define s second using namespace std; typedef long long int ll; using T_=pair<ll,ll>; void routine(){ ll a,b; cin >> a >> b; ll x = max<ll>(a,b),y = min<ll>(a,b); if(x == y){ cout << (x+y-((x+y)/4)*4) << "\n"; return; } cout << (-x+3*y-((-x+3*y)/4)*4) << "\n"; return; } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll t = 1; while(t--){ routine(); } return 0; }