結果

問題 No.431 死亡フラグ
ユーザー togaerrortogaerror
提出日時 2016-10-19 22:31:29
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 381 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 131,112 KB
実行使用メモリ 134,568 KB
最終ジャッジ日時 2023-08-16 03:51:54
合計ジャッジ時間 8,281 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 365 ms
134,176 KB
testcase_01 AC 369 ms
134,268 KB
testcase_02 AC 381 ms
134,476 KB
testcase_03 AC 370 ms
134,056 KB
testcase_04 AC 359 ms
134,316 KB
testcase_05 AC 369 ms
134,316 KB
testcase_06 AC 369 ms
134,140 KB
testcase_07 AC 370 ms
134,196 KB
testcase_08 AC 371 ms
134,496 KB
testcase_09 AC 364 ms
134,056 KB
testcase_10 AC 367 ms
134,192 KB
testcase_11 AC 360 ms
134,564 KB
testcase_12 AC 363 ms
134,328 KB
testcase_13 AC 371 ms
134,056 KB
testcase_14 AC 367 ms
134,568 KB
testcase_15 AC 366 ms
134,200 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

use v6;

my @d = get().chomp.split(' ');
if (@d[3] == 1) {
	say "SURVIVED";
} else {
	if (@d[0] + @d[1] + @d[2] < 2) {
		say "SURVIVED";
	} else {
		say "DEAD";
	}
}

exit;
0