結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-09 17:55:06 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 2,249 ms |
| コンパイル使用メモリ | 74,220 KB |
| 実行使用メモリ | 56,348 KB |
| 最終ジャッジ日時 | 2024-10-07 18:32:51 |
| 合計ジャッジ時間 | 5,423 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 12 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int s = sc.nextInt();
int ans = a+b+c+s*10;
if (ans==2 || ans==3) {System.out.println("DEAD");}
else {System.out.println("SURVIVE");}
}
}
Tsukasa_Type