結果
問題 | No.431 死亡フラグ |
ユーザー |
![]() |
提出日時 | 2017-07-07 18:09:56 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 663 bytes |
コンパイル時間 | 2,406 ms |
コンパイル使用メモリ | 74,416 KB |
実行使用メモリ | 56,012 KB |
最終ジャッジ日時 | 2024-10-06 10:01:35 |
合計ジャッジ時間 | 5,209 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); int d = s.nextInt(); if (d == 1){ System.out.println("SURVIVED"); }else if (a+b+c<2){ System.out.println("SURVIVED"); } else{ System.out.println("DEAD"); } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); } }