結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 96 ms
12,160 KB
testcase_03 WA -
testcase_04 AC 94 ms
12,160 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 105 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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