結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-30 16:39:10 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 391 bytes |
| 記録 | |
| コンパイル時間 | 2,491 ms |
| コンパイル使用メモリ | 83,780 KB |
| 実行使用メモリ | 46,524 KB |
| 最終ジャッジ日時 | 2026-03-21 16:08:42 |
| 合計ジャッジ時間 | 4,118 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 3 |
ソースコード
import java.util.*;
import java.util.stream.Stream;
public class No431 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int d =sc.nextInt() + sc.nextInt() + sc.nextInt(), s = sc.nextInt();
if(s == 1) {
System.out.println("SURVIVED");
}else if(d > 2) {
System.out.println("DEAD");
}else {
System.out.println("SURVIVED");
}
}
}