結果

問題 No.1663 Maximum Remainder
ユーザー n_getn_get
提出日時 2022-07-13 14:06:35
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 371 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 15,596 KB
最終ジャッジ日時 2023-09-06 23:13:36
合計ジャッジ時間 2,685 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 361 ms
15,344 KB
testcase_01 AC 371 ms
15,508 KB
testcase_02 AC 26 ms
14,832 KB
testcase_03 AC 25 ms
12,836 KB
testcase_04 AC 26 ms
12,612 KB
testcase_05 AC 40 ms
15,596 KB
testcase_06 AC 31 ms
12,896 KB
testcase_07 AC 37 ms
13,300 KB
testcase_08 AC 28 ms
12,840 KB
testcase_09 AC 27 ms
12,700 KB
testcase_10 AC 26 ms
12,676 KB
testcase_11 AC 26 ms
12,668 KB
testcase_12 AC 28 ms
12,764 KB
testcase_13 AC 25 ms
12,620 KB
testcase_14 AC 25 ms
12,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define a (read))
(define b (read))
(define c (read))
(define d (read))
(define m (read))
(define ans 0)
(dotimes [i (- b a -1)]
         (dotimes [j (- d c -1)]
                  (set! ans (max ans (mod (+ a c i j) m)))))
(print ans)
0