結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
ohagi_1182
|
| 提出日時 | 2017-10-13 11:58:06 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 2,313 ms |
| コンパイル使用メモリ | 74,084 KB |
| 実行使用メモリ | 41,432 KB |
| 最終ジャッジ日時 | 2024-11-17 11:19:36 |
| 合計ジャッジ時間 | 5,130 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 7 |
ソースコード
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