結果

問題 No.598 オーバーフローファンタジー
ユーザー tails
提出日時 2017-11-24 23:50:05
言語 Ruby
(3.4.1)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 48 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-12-26 01:56:35
合計ジャッジ時間 3,801 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

N,X,A,B=$<.map &:to_i
p -[-X/A,(X-2**~-N)/B].max
0