結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-14 22:30:49 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 483 bytes |
| 記録 | |
| コンパイル時間 | 5,169 ms |
| コンパイル使用メモリ | 82,184 KB |
| 実行使用メモリ | 41,856 KB |
| 最終ジャッジ日時 | 2026-05-16 10:19:23 |
| 合計ジャッジ時間 | 6,960 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.io.PrintStream;
import java.util.Scanner;
public class Y431 {
Y431() throws Exception {
Scanner in = new Scanner(System.in);
PrintStream out = new PrintStream(System.out);
int d1 = in.nextInt();
int d2 = in.nextInt();
int d3 = in.nextInt();
int s = in.nextInt();
if (s == 1 || (d1 + d2 + d3) < 2) out.println("SURVIVED");
else out.println("DEAD");
out.close();
}
public static void main(String argv[]) throws Exception {
new Y431();
}
}