結果
問題 |
No.1663 Maximum Remainder
|
ユーザー |
![]() |
提出日時 | 2025-03-20 21:08:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,080 KB |
実行使用メモリ | 60,752 KB |
最終ジャッジ日時 | 2025-03-20 21:08:40 |
合計ジャッジ時間 | 1,511 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
a, b, c, d, m = map(int, input().split()) max_remainder = -1 for x in range(a, b + 1): for y in range(c, d + 1): current = (x + y) % m if current > max_remainder: max_remainder = current print(max_remainder)