結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-09 17:55:47 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 58 ms / 2,000 ms |
| + 420µs | |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 1,513 ms |
| コンパイル使用メモリ | 85,236 KB |
| 実行使用メモリ | 43,088 KB |
| 最終ジャッジ日時 | 2026-09-11 16:15:26 |
| 合計ジャッジ時間 | 3,757 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
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("SURVIVED");}
}
}
Tsukasa_Type