結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
fal_rnd
|
| 提出日時 | 2016-10-27 23:39:10 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 126 ms / 2,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 2,129 ms |
| コンパイル使用メモリ | 74,232 KB |
| 実行使用メモリ | 41,592 KB |
| 最終ジャッジ日時 | 2024-11-24 05:00:42 |
| 合計ジャッジ時間 | 4,898 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
import java.util.*;
class A {
static Scanner s = new Scanner(System.in);
public static void main(String[] args) {
int f = s.nextInt()+s.nextInt()+s.nextInt();
if((s.nextInt()==1) || (f<=1)) {
System.out.println("SURVIVED");
}else {
System.out.println("DEAD");
}
}
}
fal_rnd