結果
問題 | No.1663 Maximum Remainder |
ユーザー |
|
提出日時 | 2021-09-25 17:34:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 143 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-07-05 12:09:32 |
合計ジャッジ時間 | 1,387 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
a, b, c, d, m = map(int, input().split()) lower = a + c upper = b + d if lower // m == upper // m: print(upper % m) else: print(m-1)