結果

問題 No.920 あかあお
ユーザー asdfghjkl;asdfghjkl;
提出日時 2019-11-08 22:48:12
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-15 01:57:20
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 4 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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