結果

問題 No.836 じょうよ
ユーザー ducktailducktail
提出日時 2019-06-14 22:13:57
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 330 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 5,316 KB
実行使用メモリ 20,460 KB
最終ジャッジ日時 2023-08-09 01:09:21
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
20,240 KB
testcase_01 AC 16 ms
11,880 KB
testcase_02 AC 16 ms
11,784 KB
testcase_03 AC 17 ms
11,772 KB
testcase_04 AC 16 ms
11,784 KB
testcase_05 AC 17 ms
11,676 KB
testcase_06 AC 17 ms
11,776 KB
testcase_07 AC 17 ms
11,868 KB
testcase_08 AC 16 ms
11,660 KB
testcase_09 AC 18 ms
11,756 KB
testcase_10 AC 17 ms
11,664 KB
testcase_11 AC 24 ms
15,328 KB
testcase_12 AC 32 ms
13,876 KB
testcase_13 AC 24 ms
13,200 KB
testcase_14 AC 18 ms
12,024 KB
testcase_15 AC 24 ms
13,432 KB
testcase_16 AC 99 ms
20,244 KB
testcase_17 AC 90 ms
20,276 KB
testcase_18 AC 22 ms
13,028 KB
testcase_19 AC 34 ms
13,868 KB
testcase_20 AC 65 ms
17,556 KB
testcase_21 AC 18 ms
12,408 KB
testcase_22 AC 56 ms
17,548 KB
testcase_23 AC 101 ms
20,456 KB
testcase_24 AC 21 ms
12,864 KB
testcase_25 AC 49 ms
15,556 KB
testcase_26 AC 18 ms
11,916 KB
testcase_27 AC 18 ms
12,204 KB
testcase_28 AC 24 ms
13,408 KB
testcase_29 AC 19 ms
12,260 KB
testcase_30 AC 18 ms
12,152 KB
testcase_31 AC 23 ms
13,600 KB
testcase_32 AC 23 ms
13,500 KB
testcase_33 AC 18 ms
12,272 KB
testcase_34 AC 23 ms
13,152 KB
testcase_35 AC 24 ms
13,380 KB
testcase_36 AC 71 ms
20,244 KB
testcase_37 AC 63 ms
17,480 KB
testcase_38 AC 82 ms
20,460 KB
testcase_39 AC 74 ms
20,236 KB
testcase_40 AC 122 ms
20,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (main args)
  (let* ([l (read)]
         [r (read)]
         [n (read)]
         [ql (quotient l n)]
         [rl (remainder l n)]
         [qr (quotient r n)]
         [rr (remainder r n)]
         [bn (- qr ql -1)])
    (for-each print
              (map (^r (- bn (if (< r rl) 1 0) (if (> r rr) 1 0))) (iota n))))
  0)
0