結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-06-19 20:40:30 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 55 ms / 2,000 ms |
| + 692µs | |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 1,451 ms |
| コンパイル使用メモリ | 84,936 KB |
| 実行使用メモリ | 42,624 KB |
| 最終ジャッジ日時 | 2026-09-08 17:39:04 |
| 合計ジャッジ時間 | 4,275 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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