結果

問題 No.920 あかあお
ユーザー hamuhei4869hamuhei4869
提出日時 2019-11-08 21:21:36
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 143,152 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-13 03:16:10
合計ジャッジ時間 2,739 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
4,348 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
4,348 KB
testcase_09 WA -
testcase_10 AC 2 ms
4,352 KB
testcase_11 AC 1 ms
4,356 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <time.h>

using namespace std;
using LL = long long;

const int MOD = 998244353;

class Edge{
public:
    LL from,to, value;
    Edge(int f,int t, int c){
        from = f;
        to = t;
        value = c;
    }
};

int main(){
    int X,Y,Z;cin >> X >> Y >> Z;
    for(int i = 0;i < Z;i++){
        if(X < Y){
            X++;
        }else{
            Y++;
        }
    }
    cout<<max(X,Y)<<endl;
}
0