結果

問題 No.431 死亡フラグ
ユーザー snowpchick
提出日時 2018-10-15 23:39:49
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 18:36:43
合計ジャッジ時間 703 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(){
    
   int i,n,m,o,p;
   
   scanf("%d%d%d%d",&i,&n,&m,&o);
   
 
    
    p= i+n+m;
    
    
    if(o==1 || p<2 ){
        printf("SURVIVED");
    }else if(o==0 && p>=2){
        printf("DEAD");
    }else{
        
        
    }
    
    
    
}
0