結果
問題 | No.431 死亡フラグ |
ユーザー |
|
提出日時 | 2017-09-30 15:35:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 1,554 ms |
コンパイル使用メモリ | 166,884 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 20:47:40 |
合計ジャッジ時間 | 2,092 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() int main(){ int d=0; REP(i,3){ int t;cin>>t; d+=t; } int s;cin>>s; if(s==1 or d<2){ cout<<"SURVIVED\n"; }else{ cout<<"DEAD\n"; } return 0; }