結果
問題 |
No.431 死亡フラグ
|
ユーザー |
|
提出日時 | 2018-01-13 17:21:33 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 153 ms / 2,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 3,328 ms |
コンパイル使用メモリ | 75,032 KB |
実行使用メモリ | 41,472 KB |
最終ジャッジ日時 | 2024-12-24 00:41:39 |
合計ジャッジ時間 | 6,179 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
package me.yukicoder.lv1; import java.util.Scanner; public class No0431 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int d1 = sc.nextInt(); int d2 = sc.nextInt(); int d3 = sc.nextInt(); int d = d1 + d2 + d3; int S = sc.nextInt(); if (S == 1 || d < 2) { System.out.println("SURVIVED"); } else { System.out.println("DEAD"); } } } }