結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
satumaimo
|
| 提出日時 | 2017-07-07 18:09:56 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 59 ms / 2,000 ms |
| + 647µs | |
| コード長 | 663 bytes |
| 記録 | |
| コンパイル時間 | 1,383 ms |
| コンパイル使用メモリ | 85,556 KB |
| 実行使用メモリ | 42,964 KB |
| 最終ジャッジ日時 | 2026-09-11 01:32:06 |
| 合計ジャッジ時間 | 3,915 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
}
satumaimo