結果

問題 No.431 死亡フラグ
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-11-06 11:25:13
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-05-03 22:19:41
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
15,744 KB
testcase_01 AC 24 ms
15,872 KB
testcase_02 AC 25 ms
16,000 KB
testcase_03 AC 25 ms
15,744 KB
testcase_04 AC 25 ms
15,872 KB
testcase_05 AC 24 ms
15,872 KB
testcase_06 AC 24 ms
15,744 KB
testcase_07 AC 24 ms
16,000 KB
testcase_08 AC 25 ms
15,872 KB
testcase_09 AC 24 ms
16,000 KB
testcase_10 AC 25 ms
15,744 KB
testcase_11 AC 24 ms
16,000 KB
testcase_12 AC 24 ms
15,744 KB
testcase_13 AC 24 ms
15,872 KB
testcase_14 AC 24 ms
16,000 KB
testcase_15 AC 24 ms
15,744 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