結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-16 22:21:28 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 575 bytes |
| 記録 | |
| コンパイル時間 | 2,645 ms |
| コンパイル使用メモリ | 81,004 KB |
| 実行使用メモリ | 39,296 KB |
| 最終ジャッジ日時 | 2026-05-08 19:55:46 |
| 合計ジャッジ時間 | 4,501 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No00000431_Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
String[] x = br.readLine().split(" ");
if("1".equals(x[3])) {
System.out.println("SURVIVED");
} else {
int cnt = 0;
for(int i = 0; i < 3; i++) {
if("1".equals(x[i])) cnt++;
}
if(cnt < 2) {
System.out.println("SURVIVED");
} else {
System.out.println("DEAD");
}
}
}
}