結果
問題 |
No.2259 Gas Station
|
ユーザー |
![]() |
提出日時 | 2023-04-07 21:42:12 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 129 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-10-02 19:14:35 |
合計ジャッジ時間 | 3,190 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 14 WA * 7 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - memo Syntax OK
ソースコード
L, R, C = gets.split.map(&:to_i) memo = Hash.new(false) x_list = (L..[L + 999, R].min) puts x_list.map { |x| x * C % 1000 }.min