結果
問題 | No.920 あかあお |
ユーザー |
![]() |
提出日時 | 2019-11-08 21:21:36 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 2,278 ms |
コンパイル使用メモリ | 157,556 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-15 00:54:41 |
合計ジャッジ時間 | 1,904 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 4 WA * 7 |
ソースコード
#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; }