結果

問題 No.431 死亡フラグ
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-11-06 11:25:13
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 11,872 KB
最終ジャッジ日時 2023-08-16 13:57:45
合計ジャッジ時間 1,496 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,756 KB
testcase_01 AC 17 ms
11,872 KB
testcase_02 AC 17 ms
11,616 KB
testcase_03 AC 17 ms
11,692 KB
testcase_04 AC 18 ms
11,788 KB
testcase_05 AC 18 ms
11,788 KB
testcase_06 AC 18 ms
11,668 KB
testcase_07 AC 17 ms
11,756 KB
testcase_08 AC 18 ms
11,672 KB
testcase_09 AC 17 ms
11,760 KB
testcase_10 AC 17 ms
11,804 KB
testcase_11 AC 18 ms
11,688 KB
testcase_12 AC 17 ms
11,592 KB
testcase_13 AC 17 ms
11,636 KB
testcase_14 AC 18 ms
11,692 KB
testcase_15 AC 17 ms
11,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (f d1 d2 d3 s)
  (or (= s 1)
      (< (+ d1 d2 d3) 2)))

(define (MAIN)
  (display
    (if (apply f (map string->number (string-split (read-line) #\space)))
      "SURVIVED"
      "DEAD"))
  (newline))
  
(MAIN)

0