結果

問題 No.1663 Maximum Remainder
コンテスト
ユーザー n_get
提出日時 2022-07-13 14:06:35
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 245 ms / 2,000 ms
+ 522µs
コード長 234 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 20,992 KB
最終ジャッジ日時 2026-07-29 06:05:21
合計ジャッジ時間 2,416 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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