結果

問題 No.920 あかあお
ユーザー subsnsubsn
提出日時 2023-06-20 16:20:15
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 03:17:25
合計ジャッジ時間 906 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main()
{
    int x, y, z;
    scanf("%d%d%d",&x,&y,&z);
    if (x > y) {
        z -= x - y;
    }
    else {
        z -= y - x;
        x = y;
    }
    printf("%d",x+z/2);
}
0