結果

問題 No.863 計算量
ユーザー ducktailducktail
提出日時 2019-08-16 21:49:46
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 205 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 16,016 KB
最終ジャッジ日時 2023-10-23 22:30:24
合計ジャッジ時間 1,924 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
16,016 KB
testcase_01 AC 23 ms
16,016 KB
testcase_02 AC 22 ms
16,016 KB
testcase_03 AC 21 ms
16,016 KB
testcase_04 AC 21 ms
16,016 KB
testcase_05 AC 21 ms
16,016 KB
testcase_06 AC 20 ms
16,016 KB
testcase_07 AC 21 ms
16,016 KB
testcase_08 AC 21 ms
16,016 KB
testcase_09 AC 21 ms
16,016 KB
testcase_10 AC 21 ms
16,016 KB
testcase_11 AC 21 ms
16,016 KB
testcase_12 AC 21 ms
16,016 KB
testcase_13 AC 21 ms
16,016 KB
testcase_14 AC 21 ms
16,016 KB
testcase_15 AC 21 ms
16,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (solve a b)
  (let ([r (/ b a)])
    (cond [(< (abs (- r 40)) (abs (- r 1600))) 1]
          [else 2])))

(define (main args)
  (let* ([a (read)]
         [b (read)])
    (print (solve a b)))
  0)
0