結果

問題 No.836 じょうよ
ユーザー ducktailducktail
提出日時 2019-06-14 22:13:57
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 330 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 23,808 KB
最終ジャッジ日時 2024-04-26 16:59:12
合計ジャッジ時間 3,703 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
23,552 KB
testcase_01 AC 23 ms
15,872 KB
testcase_02 AC 24 ms
15,872 KB
testcase_03 AC 23 ms
16,128 KB
testcase_04 AC 22 ms
15,872 KB
testcase_05 AC 22 ms
16,128 KB
testcase_06 AC 23 ms
15,872 KB
testcase_07 AC 23 ms
15,872 KB
testcase_08 AC 22 ms
15,872 KB
testcase_09 AC 23 ms
16,000 KB
testcase_10 AC 22 ms
16,000 KB
testcase_11 AC 35 ms
17,280 KB
testcase_12 AC 37 ms
17,152 KB
testcase_13 AC 35 ms
17,152 KB
testcase_14 AC 23 ms
16,128 KB
testcase_15 AC 35 ms
17,152 KB
testcase_16 AC 117 ms
23,680 KB
testcase_17 AC 103 ms
23,552 KB
testcase_18 AC 29 ms
17,024 KB
testcase_19 AC 45 ms
17,280 KB
testcase_20 AC 77 ms
23,552 KB
testcase_21 AC 26 ms
16,384 KB
testcase_22 AC 62 ms
23,296 KB
testcase_23 AC 111 ms
23,808 KB
testcase_24 AC 29 ms
17,152 KB
testcase_25 AC 56 ms
21,376 KB
testcase_26 AC 24 ms
16,384 KB
testcase_27 AC 26 ms
16,384 KB
testcase_28 AC 38 ms
17,408 KB
testcase_29 AC 28 ms
16,384 KB
testcase_30 AC 27 ms
16,256 KB
testcase_31 AC 40 ms
17,280 KB
testcase_32 AC 38 ms
17,280 KB
testcase_33 AC 26 ms
16,384 KB
testcase_34 AC 37 ms
17,152 KB
testcase_35 AC 35 ms
17,280 KB
testcase_36 AC 81 ms
23,680 KB
testcase_37 AC 82 ms
23,680 KB
testcase_38 AC 97 ms
23,552 KB
testcase_39 AC 84 ms
23,680 KB
testcase_40 AC 138 ms
23,680 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