結果

問題 No.431 死亡フラグ
ユーザー RadPeria
提出日時 2017-12-04 21:25:43
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 648 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 27,136 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-28 04:31:30
合計ジャッジ時間 758 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int D1,D2,D3,S;
int main(){
        int count =0;
        scanf("%d %d %d %d", &D1, &D2, &D3, &S);
        if(S ==1){
                printf("SURVIVED\n");
                count =1;
        }
        if(count != 1){
                if(D1 == 1 || D2 == 1){
                        if(D3 == 1){
                                printf("DEAD\n");
                        }else if(D1 == 1 && D2 == 1){
                                printf("DEAD\n");
                        }else {
                                printf("SURVIVED\n");
                        }
                }
        }
        return 0;
}
0