結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
yui
|
| 提出日時 | 2017-02-20 11:22:24 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 2,744 ms |
| コンパイル使用メモリ | 74,056 KB |
| 実行使用メモリ | 41,656 KB |
| 最終ジャッジ日時 | 2024-12-30 06:02:39 |
| 合計ジャッジ時間 | 5,861 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
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