結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-06-19 20:40:30 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 1,933 ms |
| コンパイル使用メモリ | 81,972 KB |
| 実行使用メモリ | 41,660 KB |
| 最終ジャッジ日時 | 2026-04-18 17:41:24 |
| 合計ジャッジ時間 | 7,635 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int d1 = sc.nextInt();
int d2 = sc.nextInt();
int d3 = sc.nextInt();
int s = sc.nextInt();
String ans = "SURVIVED";
if((s == 0) && (d1 + d2 + d3 >= 2)) ans = "DEAD";
System.out.println(ans);
}
}
takeya_okino