結果

問題 No.857 素振り
ユーザー ducktailducktail
提出日時 2019-08-09 21:33:36
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 11,896 KB
最終ジャッジ日時 2023-09-26 17:24:23
合計ジャッジ時間 1,177 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,684 KB
testcase_01 AC 19 ms
11,872 KB
testcase_02 AC 18 ms
11,664 KB
testcase_03 AC 18 ms
11,744 KB
testcase_04 AC 18 ms
11,888 KB
testcase_05 AC 18 ms
11,876 KB
testcase_06 AC 18 ms
11,732 KB
testcase_07 AC 19 ms
11,896 KB
testcase_08 AC 19 ms
11,676 KB
testcase_09 AC 18 ms
11,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (solve x y z)
  (- z (if (<= x z) 1 0) (if (<= y z) 1 0)))

(define (main args)
  (let* ([x (read)]
         [y (read)]
         [z (read)])
    (print (solve x y z)))
  0)
0