結果

問題 No.51 やる気の問題
ユーザー RinRin
提出日時 2015-09-12 11:20:58
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 14,948 KB
最終ジャッジ日時 2023-09-26 11:37:20
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
13,652 KB
testcase_01 AC 18 ms
11,824 KB
testcase_02 AC 18 ms
11,740 KB
testcase_03 AC 20 ms
12,012 KB
testcase_04 AC 18 ms
11,752 KB
testcase_05 AC 59 ms
13,824 KB
testcase_06 AC 48 ms
13,756 KB
testcase_07 AC 46 ms
13,884 KB
testcase_08 AC 31 ms
13,064 KB
testcase_09 AC 71 ms
13,988 KB
testcase_10 AC 32 ms
12,988 KB
testcase_11 AC 32 ms
13,008 KB
testcase_12 AC 49 ms
13,988 KB
testcase_13 AC 51 ms
13,760 KB
testcase_14 AC 44 ms
13,828 KB
testcase_15 AC 62 ms
13,880 KB
testcase_16 AC 28 ms
12,924 KB
testcase_17 AC 21 ms
12,240 KB
testcase_18 AC 65 ms
14,496 KB
testcase_19 AC 64 ms
13,828 KB
testcase_20 AC 48 ms
13,888 KB
testcase_21 AC 22 ms
12,248 KB
testcase_22 AC 75 ms
14,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let loop(
          (W (read))
          (D (read))
         )
  (if (= D 1)
      (System.out.println W)
      (loop (- W (floor (/ W (expt D 2)))) (- D 1))
  )
)
0