結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
yui
|
| 提出日時 | 2017-02-20 11:24:08 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 158 ms / 2,000 ms |
| コード長 | 413 bytes |
| コンパイル時間 | 2,666 ms |
| コンパイル使用メモリ | 78,084 KB |
| 実行使用メモリ | 41,152 KB |
| 最終ジャッジ日時 | 2024-12-30 06:03:06 |
| 合計ジャッジ時間 | 5,817 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int fl1 = sc.nextInt();
int fl2 = sc.nextInt();
int fl3 = sc.nextInt();
int fl4 = sc.nextInt();
int count = fl1+fl2+fl3;
if((fl4==1)||(count<2)){
System.out.println("SURVIVED");
}else{
System.out.println("DEAD");
}
}
}
yui