結果

問題 No.598 オーバーフローファンタジー
ユーザー ducktailducktail
提出日時 2017-12-30 18:50:49
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 13,752 KB
最終ジャッジ日時 2023-08-26 22:34:45
合計ジャッジ時間 1,987 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,680 KB
testcase_01 AC 16 ms
11,680 KB
testcase_02 AC 16 ms
11,864 KB
testcase_03 AC 16 ms
11,752 KB
testcase_04 AC 16 ms
13,752 KB
testcase_05 AC 16 ms
11,688 KB
testcase_06 AC 15 ms
11,652 KB
testcase_07 AC 16 ms
11,836 KB
testcase_08 AC 16 ms
11,616 KB
testcase_09 AC 15 ms
11,612 KB
testcase_10 AC 16 ms
11,704 KB
testcase_11 AC 15 ms
11,652 KB
testcase_12 AC 15 ms
11,680 KB
testcase_13 AC 15 ms
11,744 KB
testcase_14 AC 16 ms
11,752 KB
testcase_15 AC 16 ms
11,628 KB
testcase_16 AC 15 ms
11,692 KB
testcase_17 AC 15 ms
11,672 KB
testcase_18 AC 15 ms
11,644 KB
testcase_19 AC 16 ms
11,692 KB
testcase_20 AC 16 ms
11,648 KB
testcase_21 AC 16 ms
11,652 KB
testcase_22 AC 16 ms
11,796 KB
testcase_23 AC 16 ms
11,824 KB
testcase_24 AC 16 ms
11,616 KB
testcase_25 AC 16 ms
11,888 KB
testcase_26 AC 16 ms
11,684 KB
testcase_27 AC 15 ms
11,644 KB
testcase_28 AC 15 ms
11,788 KB
testcase_29 AC 15 ms
11,628 KB
testcase_30 AC 15 ms
11,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (main args)
  (let* ([n (read)]
         [x (read)]
         [a (read)]
         [b (read)])
    (print
     (min
      (quotient (+ x a -1) a) (quotient (+ (- (expt 2 (- n 1)) x) b -1) b))))
  0)
0