結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-11 17:25:06 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 1,632 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 46,636 KB |
| 最終ジャッジ日時 | 2026-04-03 10:24:23 |
| 合計ジャッジ時間 | 3,383 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int d = sc.nextInt() + sc.nextInt() + sc.nextInt();
int s = sc.nextInt();
if (s == 1 || d < 2) {
System.out.println("SURVIVED");
} else {
System.out.println("DEAD");
}
}
}
tenten