結果

問題 No.920 あかあお
ユーザー K. YanagisawaK. Yanagisawa
提出日時 2019-11-08 21:23:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 64,452 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-23 03:30:15
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(void){
  int x, y, z;
  std::cin >> x >> y >> z;

  for(int i=0; i<z; i++){
    if(x < y) x++;
    else      y++;
  }

  if(x < y) std::cout << x << std::endl;
  else      std::cout << y << std::endl;
  
  return 0;
}
0