結果

問題 No.8103 Range Chmax and Maximize Abs Sum
ユーザー ciel
提出日時 2023-04-02 01:00:57
言語 Ruby
(3.4.1)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 61 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 27,904 KB
最終ジャッジ日時 2024-09-24 14:46:49
合計ジャッジ時間 4,904 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,*a=`dd`.split.map(&:to_i);m=a.max;p a.sum{|e|[e.abs,m].max}
0