結果

問題 No.546 オンリー・ワン
ユーザー maimai
提出日時 2017-07-17 18:33:59
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 114 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-16 23:55:49
合計ジャッジ時間 1,697 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: `**' after local variable or literal is interpreted as binary operator
Main.rb:3: warning: even though it seems like argument prefix
Syntax OK

ソースコード

diff #

n,l,h,*z=`dd`.split.map &:to_i
p 0..n .reduce{|r,i|z.combination(i){|v|e=v.reduce :lcm
r-=-1 **i*i*(h/e-~-l/e)};r}
0