結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
ohagi_1182
|
| 提出日時 | 2017-10-13 11:58:54 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 2,000 ms |
| コード長 | 381 bytes |
| コンパイル時間 | 2,122 ms |
| コンパイル使用メモリ | 74,096 KB |
| 実行使用メモリ | 41,312 KB |
| 最終ジャッジ日時 | 2024-11-17 11:20:15 |
| 合計ジャッジ時間 | 5,010 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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