結果
問題 |
No.431 死亡フラグ
|
ユーザー |
|
提出日時 | 2025-05-02 22:16:19 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 536 bytes |
コンパイル時間 | 3,490 ms |
コンパイル使用メモリ | 273,932 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-05-02 22:16:24 |
合計ジャッジ時間 | 4,310 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int a, b, c, s; cin >> a >> b >> c >> s; //////////////// 出力変数定義 //////////////// string result = "SURVIVED"; //////////////////// 処理 //////////////////// if (s==0&&a+b+c>1) result = "DEAD"; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }