結果
| 問題 |
No.1663 Maximum Remainder
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2022-12-27 20:54:12 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 152 bytes |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-11-22 07:25:26 |
| 合計ジャッジ時間 | 2,485 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 3 WA * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
a,b,c,d,m=gets.split(" ").map{|e| e.to_i}
ans=0
a.upto(b){|n1|
c.upto(d){|n2|
e=(n1+n2)%m
if ans<e then
p [n1,n2,e]
ans=e
end
}
}
puts ans
horiesiniti