結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2016-10-14 22:28:36 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 2,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 2,117 ms |
コンパイル使用メモリ | 80,212 KB |
実行使用メモリ | 41,488 KB |
最終ジャッジ日時 | 2024-11-22 07:11:41 |
合計ジャッジ時間 | 4,985 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
package no431;import java.util.Scanner;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();System.out.println((d1 + d2 + d3 >= 2) && s == 0 ? "DEAD" : "SURVIVED");}}