結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
ohagi_1182
|
| 提出日時 | 2017-10-13 11:58:54 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 54 ms / 2,000 ms |
| + 472µs | |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 1,486 ms |
| コンパイル使用メモリ | 85,560 KB |
| 実行使用メモリ | 42,800 KB |
| 最終ジャッジ日時 | 2026-09-25 08:38:02 |
| 合計ジャッジ時間 | 3,901 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int l = sc.nextInt();
int m = sc.nextInt();
int n = sc.nextInt();
int s = sc.nextInt();
if(s == 1) {
System.out.println("SURVIVED");
} else {
int cntDead = l + m + n;
System.out.println(cntDead < 2 ? "SURVIVED" : "DEAD");
}
}
}
ohagi_1182