We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
現在は実装が途中までなので \sum_{i<n} \sum_{j<n} |a_i-a_j| https://judge.kimiyuki.net/problem/sum-sum-abs-one しか解けない。
現在は sum (map (fun a_i -> (sum (map (fun a_j -> abs (a_i - a_j))) a)) a) を簡約しているが sum (map (fun i -> (sum (map (fun j -> abs (a[i] - a[j]))) (range (len a)))) (range (len a))) とかも受け入れるようにしたい
sum (map (fun a_i -> (sum (map (fun a_j -> abs (a_i - a_j))) a)) a)
sum (map (fun i -> (sum (map (fun j -> abs (a[i] - a[j]))) (range (len a)))) (range (len a)))
現在のソースコード: https://github.com/kmyk/Jikka/blob/master/src/Jikka/Core/Convert/SortAbs.hs
https://judge.kimiyuki.net/problem/sum_sum_abs_one_lt これが解きたい
The text was updated successfully, but these errors were encountered:
ちょっと重めだけど他よりましだから good first issue 付けとこ
Sorry, something went wrong.
No branches or pull requests
Description / 説明
現在は実装が途中までなので \sum_{i<n} \sum_{j<n} |a_i-a_j| https://judge.kimiyuki.net/problem/sum-sum-abs-one しか解けない。
現在は
sum (map (fun a_i -> (sum (map (fun a_j -> abs (a_i - a_j))) a)) a)
を簡約しているがsum (map (fun i -> (sum (map (fun j -> abs (a[i] - a[j]))) (range (len a)))) (range (len a)))
とかも受け入れるようにしたい現在のソースコード: https://github.com/kmyk/Jikka/blob/master/src/Jikka/Core/Convert/SortAbs.hs
Motivation / 動機
https://judge.kimiyuki.net/problem/sum_sum_abs_one_lt これが解きたい
The text was updated successfully, but these errors were encountered: